SPARC: Sensor Placement for Accurate Risk Contaminant Detection in Water Distribution Networks Using Deep Q-Network and Grid Search
Open Access
- 29 January 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Access
- Vol. 14, 16904-16920
Abstract
Optimal placement of sensors inwater distribution networks is crucial for rapidly and efficiently detecting contamination, thus minimizing public health risks. However, identifying sensor locations that ensure broad detection coverage and minimal detection time presents a significant challenge. This paper presents the SPARC framework, which uses a Deep Q-Network (DQN) combined with systematic hyperparameter tuning via Grid Search to study sensor placement strategies for contaminant detection in water distribution networks. Rather than introducing a new RL algorithm, SPARC provides a domain-specific and reproducible evaluation of how tuned and untuned DQN agents compare to a Greedy baseline across multiple benchmark networks in terms of detection coverage, detection time, and cumulative reward. As a form of Deep Reinforcement Learning, DQN enables an agent to learn from the environment and develop optimal placement strategies based on reward feedback. To enhance DQN performance, hyperparameter optimization is performed using the Grid Search method, exploring combinations of learning rate, discount factor, batch size, and epsilon decay to identify the best configuration. Experiments were conducted using a simulated water distribution network, evaluated across three key metrics: detection coverage, detection time, and cumulative reward. The results demonstrate that SPARC achieves the highest detection coverage (81.08 %) and the fastest average detection time of 1.07 s on the FOS dataset, outperforming the Greedy baseline (70.27%, 5.23 s) and untuned DQN (78.38%, 2.07 s). Coverage improvement is statistically significant (p = 0.031), while differences in average detection time are not significant (p = 0.576). These findings confirm that SPARC significantly enhances both detection effectiveness and operational efficiency compared to conventional heuristic methods.Keywords
Funding Information
- Deanship of Scientific Research, King Saud University (IMSIU-DDRSP2602)
This publication has 32 references indexed in Scilit:
- GA-Sense: Sensor placement strategy for detecting leaks in water distribution networks based on time series flow and genetic algorithmMethodsX, 2024
- Grid search with a weighted error function: Hyper-parameter optimization for financial time series forecastingApplied Soft Computing, 2024
- A survey on multi-objective hyperparameter optimization algorithms for machine learningArtificial Intelligence Review, 2022
- A Deep Reinforcement Learning Approach to Sensor Placement under UncertaintyIFAC-PapersOnLine, 2022
- Hyperparameter optimization of neural networks based on Q-learningSignal, Image and Video Processing, 2022
- Water contaminants detection using sensor placement approach in smart water networksJournal of Ambient Intelligence and Humanized Computing, 2020
- Logic-based benders decomposition algorithm for contamination detection problem in water networksComputers & Operations Research, 2020
- Drinking water distribution systems contamination management to reduce public health impacts and system service interruptionsEnvironmental Modelling & Software, 2014
- Random Search Algorithms2011
- Identification of overlapping community structure in complex networks using fuzzy -means clusteringPhysica A: Statistical Mechanics and its Applications, 2007