Pol V. Lamolla, Andrea Páez-Izquierdo, Félix Carrasco, Miquel Paraira, Marta Ganzer, Sergio Montes, Federico Botta, Diogo Pacheco, Raziyeh Farmani, Joana Tobella, Eduardo Martínez-Gomariz, Narciso Berberana, Manel Poch, María Molinos-Senante
{"title":"Linking drinking water quality to customer complaints: a data-driven study in the barcelona metropolitan area","authors":"Pol V. Lamolla, Andrea Páez-Izquierdo, Félix Carrasco, Miquel Paraira, Marta Ganzer, Sergio Montes, Federico Botta, Diogo Pacheco, Raziyeh Farmani, Joana Tobella, Eduardo Martínez-Gomariz, Narciso Berberana, Manel Poch, María Molinos-Senante","doi":"10.1007/s13201-026-02882-2","DOIUrl":null,"url":null,"abstract":"<div><p>This study addresses the challenge faced by urban water utilities in translating technical water quality parameters into actionable insights on customer perception, using a data science approach in the Barcelona Metropolitan Area. Ten years of customer complaint data (2013–2023) from the water utility, Aigües de Barcelona, were integrated with corresponding water quality measurements. A comprehensive data pipeline prioritised high-coverage parameters for predictive analysis, including residual chlorine, conductivity, pH, and temperature. Exploratory Data Analysis revealed strong correlations among mineral-related parameters and identified residual chlorine and turbidity as the most distinctive variables in complaint-associated cases. Predictive modelling with Random Forest and XGBoost achieved consistent discrimination (AUC–ROC = 0.75 on a temporally held-out test set). Threshold optimisation enabled a recall exceeding 0.90, aligning with the operational objective of early detection of potential customer dissatisfaction. Interpretability analyses using SHapley Additive exPlanations confirmed that residual chlorine and conductivity, in interaction with temperature and pH, were the most influential drivers of complaint probability, exhibiting non-linear effects. These patterns were translated into actionable thresholds for operational improvement through heatmaps and logistic regression on discretised quartiles. Overall, the data-driven machine learning approach successfully links technical water quality variables to consumer dissatisfaction, providing actionable insights for utility management.</p></div>","PeriodicalId":8374,"journal":{"name":"Applied Water Science","volume":"16 8","pages":""},"PeriodicalIF":5.7000,"publicationDate":"2026-07-06","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://link.springer.com/content/pdf/10.1007/s13201-026-02882-2.pdf","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Water Science","FirstCategoryId":"93","ListUrlMain":"https://link.springer.com/article/10.1007/s13201-026-02882-2","RegionNum":3,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/7/14 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"WATER RESOURCES","Score":null,"Total":0}
引用次数: 0
Abstract
This study addresses the challenge faced by urban water utilities in translating technical water quality parameters into actionable insights on customer perception, using a data science approach in the Barcelona Metropolitan Area. Ten years of customer complaint data (2013–2023) from the water utility, Aigües de Barcelona, were integrated with corresponding water quality measurements. A comprehensive data pipeline prioritised high-coverage parameters for predictive analysis, including residual chlorine, conductivity, pH, and temperature. Exploratory Data Analysis revealed strong correlations among mineral-related parameters and identified residual chlorine and turbidity as the most distinctive variables in complaint-associated cases. Predictive modelling with Random Forest and XGBoost achieved consistent discrimination (AUC–ROC = 0.75 on a temporally held-out test set). Threshold optimisation enabled a recall exceeding 0.90, aligning with the operational objective of early detection of potential customer dissatisfaction. Interpretability analyses using SHapley Additive exPlanations confirmed that residual chlorine and conductivity, in interaction with temperature and pH, were the most influential drivers of complaint probability, exhibiting non-linear effects. These patterns were translated into actionable thresholds for operational improvement through heatmaps and logistic regression on discretised quartiles. Overall, the data-driven machine learning approach successfully links technical water quality variables to consumer dissatisfaction, providing actionable insights for utility management.
本研究解决了城市自来水公司在将技术水质参数转化为客户感知的可操作见解方面所面临的挑战,在巴塞罗那都会区使用数据科学方法。来自水务公司aig es de Barcelona的十年客户投诉数据(2013-2023)与相应的水质测量相结合。综合数据管道优先考虑用于预测分析的高覆盖参数,包括余氯、电导率、pH和温度。探索性数据分析揭示了矿物相关参数之间的强相关性,并确定了残留氯和浊度是投诉相关病例中最显著的变量。随机森林和XGBoost的预测建模实现了一致的区分(AUC-ROC = 0.75在一个暂时搁置的测试集)。阈值优化使召回率超过0.90,与早期发现潜在客户不满的操作目标保持一致。使用SHapley加性解释的可解释性分析证实,剩余氯和电导率与温度和pH的相互作用是投诉概率的最重要驱动因素,表现出非线性效应。这些模式通过热图和离散四分位数的逻辑回归转化为可操作的操作改进阈值。总体而言,数据驱动的机器学习方法成功地将水质技术变量与消费者不满联系起来,为公用事业管理提供了可操作的见解。