Linking drinking water quality to customer complaints: a data-driven study in the barcelona metropolitan area

IF 5.7 3区 环境科学与生态学 Q1 WATER RESOURCES
Applied Water Science Pub Date : 2026-07-06 Epub Date: 2026-07-14 DOI:10.1007/s13201-026-02882-2
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,&nbsp;Andrea Páez-Izquierdo,&nbsp;Félix Carrasco,&nbsp;Miquel Paraira,&nbsp;Marta Ganzer,&nbsp;Sergio Montes,&nbsp;Federico Botta,&nbsp;Diogo Pacheco,&nbsp;Raziyeh Farmani,&nbsp;Joana Tobella,&nbsp;Eduardo Martínez-Gomariz,&nbsp;Narciso Berberana,&nbsp;Manel Poch,&nbsp;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.

Abstract Image

将饮用水质量与客户投诉联系起来:巴塞罗那大都市区的数据驱动研究
本研究解决了城市自来水公司在将技术水质参数转化为客户感知的可操作见解方面所面临的挑战,在巴塞罗那都会区使用数据科学方法。来自水务公司aig es de Barcelona的十年客户投诉数据(2013-2023)与相应的水质测量相结合。综合数据管道优先考虑用于预测分析的高覆盖参数,包括余氯、电导率、pH和温度。探索性数据分析揭示了矿物相关参数之间的强相关性,并确定了残留氯和浊度是投诉相关病例中最显著的变量。随机森林和XGBoost的预测建模实现了一致的区分(AUC-ROC = 0.75在一个暂时搁置的测试集)。阈值优化使召回率超过0.90,与早期发现潜在客户不满的操作目标保持一致。使用SHapley加性解释的可解释性分析证实,剩余氯和电导率与温度和pH的相互作用是投诉概率的最重要驱动因素,表现出非线性效应。这些模式通过热图和离散四分位数的逻辑回归转化为可操作的操作改进阈值。总体而言,数据驱动的机器学习方法成功地将水质技术变量与消费者不满联系起来,为公用事业管理提供了可操作的见解。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Applied Water Science
Applied Water Science WATER RESOURCES-
CiteScore
9.90
自引率
3.60%
发文量
268
审稿时长
13 weeks
期刊介绍:
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书