TL;DR
This paper introduces the concept of algorithmic fairness to water distribution networks (WDNs), demonstrating that standard machine learning methods for leakage detection can inadvertently discriminate against certain geographic areas. To fix this, the authors propose novel optimization techniques that enforce group fairness constraints within non-differentiable ensemble classification models, successfully balancing detection accuracy with equitable service delivery.
What Problem Does This Paper Address?
Machine learning is increasingly used to manage critical socioeconomic infrastructure, such as detecting leaks in water distribution networks (WDNs). However, if an algorithm is better at detecting leaks in one neighborhood than another, it leads to an unfair distribution of public services—resulting in prolonged water outages or unaddressed property damage in neglected areas.
While algorithmic fairness is widely studied in social domains like criminal justice and hiring, it has yet to gain a foothold in physical infrastructure management. The authors address this gap by defining group fairness specifically for WDNs and proving that standard, threshold-based leakage detection methods exhibit significant regional bias.
Methods
The authors build upon standard leakage detection frameworks and introduce fairness-enhancing modifications:
- Baseline (H-Method): This standard approach trains "virtual sensors" (linear regression models) to predict expected water pressure at specific nodes based on data from neighboring nodes. When actual pressure drops significantly below the prediction, a threshold-based classifier flags a potential leak. An ensemble of these classifiers votes to declare a network-wide leak.
- Fairness Generalization: The authors extend standard binary fairness metrics—Disparate Impact (DI) and Equal Opportunity (EO)—to accommodate multiple non-binary sensitive groups, which represent different geographic zones within the water network.
- Fairness-Enhancing Optimization: They reframe hyperparameter selection as a constrained optimization problem (OP) using two distinct strategies:
- Loss Optimization with Fairness Constraints: This method minimizes classification loss (such as accuracy or the difference between true and false positive rates) while bounding the empirical covariance between the sensitive geographic groups and the model's predictions. To make the traditionally non-differentiable threshold functions compatible with efficient gradient-based solvers (like BFGS), they introduce a smooth sigmoid approximation.
- Fairness Optimization with Accuracy Constraints (DI+ACC): This approach directly maximizes the Disparate Impact score while ensuring overall accuracy does not drop below a user-defined threshold ($\lambda$). Because this formulation remains non-differentiable, it is solved using a non-gradient technique called the Nelder-Mead simplex method.
Datasets
- Hanoi WDN Benchmark: The methods were evaluated using a simulated dataset based on the real-world topology of the Hanoi water network, which consists of 32 nodes and 34 links. Pressure data was generated using the
atmntoolbox at 10-minute intervals. The network was divided into three distinct geographic zones (the protected groups) monitored by three physical sensors. Leakages of varying diameters (5cm, 10cm, and 15cm) were simulated across all nodes to thoroughly test the models.
Key Insights and Ideas
- Infrastructure is Inherently Biased: Standard leakage detection algorithms are structurally unfair. Because physical sensors are placed at specific nodes, the network's topology naturally makes the algorithm highly sensitive to leaks near those sensors, while leaving other zones relatively blind.
- Mathematical Equivalence in WDNs: The authors prove a unique lemma for WDNs: because a leak in a specific zone directly implies that a leak exists in the broader network, Disparate Impact and Equal Opportunity metrics become mathematically linked. Improving one inherently improves the other.
- Smooth Approximations Unlock Gradient Solvers: By replacing hard threshold steps with continuous sigmoid functions, the authors successfully applied efficient gradient-based optimization techniques to traditionally stubborn, non-differentiable ensemble models.
Key Results
- Standard Methods Fail Fairness Benchmarks: For all leak sizes, the baseline H-method yielded a Disparate Impact (DI) score between 0.57 and 0.64. In fairness literature, a DI score below 0.80 is considered heavily biased.
- Restoring Fairness: The proposed fairness-enhancing methods successfully pushed the DI score up to a perfect 1.0 (complete fairness) across all simulated leak diameters.
- The Cost of Fairness: This regional equity came at a very minor cost to overall performance. Achieving a legally desirable DI score of 0.80 only required a minor accuracy drop of roughly 0.03 to 0.05 points, establishing a clear Pareto front for utility operators to navigate.
Limitations and Future Work
- Non-Convexity and Local Optima: The underlying objective functions are non-convex. As a result, the optimization algorithms can get trapped in local optima, making the final solution highly sensitive to the initial parameter choices.
- Scale and Complexity: The framework was validated on the relatively small Hanoi network. Future work must evaluate how these fairness constraints scale to massive, real-world municipal networks containing thousands of nodes and highly complex topologies.
- Algorithm Sophistication: This study focused on simple linear regression and threshold ensembles. Extending this fairness framework to more advanced machine learning models, such as Graph Neural Networks (GNNs), remains an open and essential area of research.
Summary updated