Hybrid Reinforcement Learning for Optimizing Pump Sustainability in Real-World Water Distribution Networks

Harsh Patel, Yuan Zhou, Alexander P. Lamb, Shu Wang, Jieliang LuoarXiv 2023 · DOI

Introduction

Managing municipal Water Distribution Networks (WDNs) is a complex balancing act. Operators must maintain a consistent water supply by keeping storage tanks within specific levels while simultaneously minimizing the significant electricity costs associated with industrial pumping. Traditional methods, such as rule-based strategies or Genetic Algorithms (GAs), often fall short; GAs are computationally intensive and slow for real-time adjustments, while rule-based systems can lack adaptability.

Reinforcement Learning (RL) offers a promising, high-speed alternative. However, its application in critical infrastructure is hindered by a "trust" problem. RL agents can recommend erratic actions if training simulations are imperfect, and frequent pump toggling—common in "jittery" agents—leads to mechanical wear and tear. This paper introduces a "Hybrid Reinforcement Learning" framework designed to overcome these hurdles by anchoring RL recommendations in historical data and implementing sustainability-focused constraints.

System Architecture and Methods

The proposed framework manages a complex network of pumps, valves, and tanks. To ensure operational viability, the researchers employed several key techniques:

Schematic of the Water Distribution Network showing tanks, pumps, and demand zones.
  • Proximal Policy Optimization (PPO): A robust RL algorithm was used to control a 6-dimensional action vector representing various pump and valve stations.
  • Multi-Objective Reward Engineering: Rewards were weighted to prioritize safety, with 70% of the weight assigned to tank level constraints and 30% to energy cost reduction.
  • Frame-Skipping (Toggle Management): To prevent excessive mechanical wear, the agent's decision frequency was reduced from every 15 minutes to every 2 hours (12 actions per day).
  • Hybrid Injection Strategy: This core innovation uses a "query-based" model. The system identifies the best historical match for the current state. If the historical baseline is predicted to violate a constraint, the RL agent "injects" a corrective action to nudge the system back into a safe state.

Datasets and Simulation

The study utilized a comprehensive real-world dataset from a water utility company, spanning 2019 to 2023. This data included 15-minute interval records of tank levels, pump flow, power consumption, water demand, and electricity tariffs. A machine-learning-based simulation was developed to forecast demand and model the impact of pump schedules over a 24-hour horizon.

Performance and Results

The RL agents were evaluated against historical operational data across 330 random sample cases. The training progress for different agent configurations—focusing on constraints alone, constraints plus cost, and the addition of toggle management—is shown below.

Mean episode reward curves for three agent configurations: (a) Constraints, (b) Constraints + Cost, and (c) Constraints + Cost + Toggle.

Key results include:

  • Constraint Adherence: The best-performing agent achieved a 90% reduction in the magnitude of tank level violations ("Area Out of Boundary") and a 93% reduction in the total number of violations compared to historical baselines.
  • Cost Efficiency: Even when prioritizing constraints, the agents managed a 0.2% cost saving. For large-scale utilities, even fractional percentage savings translate to significant financial and energy reductions.
  • Hybrid Strategy Success: The "Targeted Start/Dynamic End" hybrid strategy effectively reduced violations during the injection period by 23.1% and post-injection violations by 14.8%.

Discussion and Future Work

A significant insight from this research is the "Post-Injection" challenge: fixing a violation in the present can inadvertently trigger a new one later in the day. The "Targeted Start/Dynamic End" strategy was specifically developed to mitigate this ripple effect. Furthermore, while frame-skipping slightly reduced target precision, it vastly improved the "smoothness" of control, which is essential for physical infrastructure longevity.

Current limitations include simulation error; as the forecast horizon extends toward 24 hours, the Mean Absolute Percentage Error (MAPE) increases, reducing long-term reliability. Future research will focus on "surgical" injection timing, triggering RL interventions based on specific water level trends or proximity to boundary values rather than fixed violation windows. This evolution aims to make the hybrid system even more efficient and reliable for real-world municipal deployment.

Summary updated

BibTeX
@misc{patel2023hybrid,
  author = {Harsh Patel and Yuan Zhou and Alexander P. Lamb and Shu Wang and Jieliang Luo},
  title = {{Hybrid Reinforcement Learning for Optimizing Pump Sustainability in Real-World Water Distribution Networks}},
  year = {2023},
  eprint = {2310.09412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.09412},
}
Figure