Wednesday, October 7, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Chemistry

Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes

October 7, 2026
in Chemistry
Bethany Barker
By Bethany Barker Scienmag Editorial Profile - Catalysis
Reading Time: 5 mins read
0
Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes

Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Every time a city resident turns on a tap, an invisible network of pipes, pumps, valves, and reservoirs delivers water that is expected to be clean, pressurized, and safe. When a contaminant slips into that network, whether through accidental intrusion, backflow, or deliberate attack, the consequences can reach thousands of people within hours. A new study published in Case Studies in Chemical and Environmental Engineering tackles one of the hardest questions in urban water security: given only the readings from a handful of water-quality sensors scattered across a network, can engineers work backwards to pinpoint exactly where the contamination entered, when it started, and how concentrated it was?

Researchers MohammadReza Najarzadegan and Ramtin Moeini developed and validated an integrated simulation-optimization framework that couples an improved artificial bee colony (IABC) algorithm with EPANET, the widely used hydraulic and water-quality modeling software from the United States Environmental Protection Agency. Rather than introducing a brand-new optimization technique, the authors’ contribution lies in formulating and testing a complete inverse problem: simultaneously estimating the contamination source location, the injection time, and the injection concentration from residual-chlorine observations. These three variables are deeply intertwined through contaminant transport, network hydraulics, and chlorine decay, which makes the search space nonlinear and non-convex, meaning that small changes in one variable can dramatically alter the optimal values of the others.

The artificial bee colony algorithm draws its inspiration from the foraging behavior of honeybees, in which employed bees explore food sources, onlooker bees select promising sources based on shared information, and scout bees search for new regions. In the improved version used in this study, the relative contribution of employed and onlooker bees is adjusted to control how search effort is divided between broad exploration of the solution space and intensive refinement of promising candidates. This balance matters for contamination-source identification because the source location is a discrete variable, while injection time and concentration are continuous. Too much local search risks premature convergence on a wrong node; too much exploration prevents the algorithm from sharpening an accurate estimate of timing and concentration.

The mechanics of the framework are elegantly cyclical. In each iteration, the IABC algorithm generates a candidate contamination scenario consisting of a source node, an injection start time, and an injection concentration. These values are transferred from MATLAB to EPANET through the EPANET-MATLAB Toolkit, which triggers a full hydraulic and water-quality simulation of how the contaminant would propagate through the pipes. The simulated concentrations at the monitoring sensors are then extracted and compared with the observed values, and the objective function, defined as the sum of squared differences between observed and simulated concentrations across all sensors and time steps, is evaluated. The algorithm updates its population of candidate solutions based on these scores, and the cycle repeats until the stopping criterion is met.

Chlorine plays a central role as the diagnostic signal. Utilities maintain free chlorine between roughly 0.5 and 1 milligram per liter throughout their networks, and any contaminant entering the system reacts with and depletes that residual disinfectant. The researchers modeled this depletion using first-order reaction kinetics, in which chlorine and the reactive contaminant decay at rates proportional to their concentrations, with stoichiometric coefficients handled automatically by EPANET. Water age, the hydraulic residence time of water at each node, was also computed as supporting information, since older water tends to carry less residual chlorine and can confound the interpretation of sensor signals.

To test the framework, the team used two case studies of very different scale. The first was the third example network from EPANET, a benchmark containing 92 nodes, 117 conduits, 3 tanks, 2 pumps, and two reservoirs, analyzed over a 24-hour extended period simulation. Two contamination scenarios were examined, with injections at node 100 and node 209 respectively, each beginning at 11 a.m., coinciding with peak demand, at a nominal concentration of 50 milligrams per liter lasting 3 hours. The second case study was far more ambitious: the real water distribution network of Baharestan, Iran, comprising 3,147 consumer nodes, 3,402 pipes, 12 pressure-reducing valves, and 11 quality sensors placed according to actual operating conditions.

Each optimization problem was solved 30 independent times to account for the stochastic nature of the metaheuristic search. In the EPANET benchmark, IABC achieved mean objective-function values of 0.506 and 0.198 for the two scenarios, compared with 0.579 and 0.352 for the shuffled frog algorithm, reductions of 12.60 percent and 43.75 percent respectively. In the Baharestan network, IABC’s mean objective-function value of 6.720 beat the shuffled frog algorithm’s 7.820, a 14.07 percent reduction. When compared with genetic algorithm results from a previous benchmark study, IABC’s mean absolute concentration errors at selected observation points were 92.88 percent and 93.47 percent lower in the two EPANET scenarios. However, the authors are careful to note that Wilcoxon rank-sum tests found no statistically significant difference between IABC and the shuffled frog algorithm at the 5 percent level, so the reported advantages are descriptive rather than proof of superiority.

Robustness was probed by injecting synthetic measurement noise of plus or minus 5, 10, and 20 percent into the observations. As expected, higher uncertainty inflated the objective-function values and degraded identification accuracy, underscoring how much the framework depends on reliable, well-calibrated sensors. A sensitivity analysis over contaminant concentration and injection duration showed that the identification problem becomes harder as events grow larger or longer; for instance, raising the source concentration from 50 to 100 milligrams per liter increased the mean objective-function value in the Baharestan network from 6.930 to 7.510. Notably, in the large Baharestan network, the identified source node varied across the 30 runs, revealing that source localization was not unique under the adopted sensor configuration even when the objective-function values remained low.

The authors are candid about limitations. The validation was conducted under modeled conditions with fixed sensor numbers and locations, and the analysis did not explicitly account for sensor failures, calibration errors, communication delays, missing data, or temporal changes in demand and hydraulics that occur in real systems. The noise perturbations represent a controlled approximation of field uncertainty rather than its full complexity. Broader validation using field-monitoring data, alternative sensor configurations, and dynamically varying hydraulic conditions is recommended before the framework can be generalized to operational networks.

Even with those caveats, the study marks a meaningful step forward for water security. Most previous research on contamination in water distribution networks has concentrated on where to place sensors, how to assess vulnerability, or how to mitigate consequences after detection. Far fewer studies have attempted the full inverse problem of characterizing an unknown contamination event from water-quality observations alone. By demonstrating that a bee-inspired optimizer, coupled to a physically grounded simulation engine, can simultaneously recover source location, timing, and concentration across networks ranging from a 92-node benchmark to a city-scale system of more than 3,000 nodes, the research offers utilities a practical template for turning sparse sensor data into actionable forensic intelligence. In an era when drinking-water infrastructure faces growing threats from emerging contaminants such as microplastics, pharmaceuticals, and antibiotic-resistance pollutants, tools that can rapidly answer where, when, and how much may prove indispensable for protecting public health.

Subject of Research: Inverse identification of contamination source location, injection time, and concentration in water distribution networks using an improved artificial bee colony algorithm coupled with EPANET simulation

Article Title: Using an improved artificial bee colony algorithm to identify contamination sources in water distribution networks

Article References: Najarzadegan, M., & Moeini, R. (2026). Using an improved artificial bee colony algorithm to identify contamination sources in water distribution networks. Case Studies in Chemical and Environmental Engineering, 14, Article 101500. https://doi.org/10.1016/j.cscee.2026.101500

Image Credits: AI Generated

DOI: 10.1016/j.cscee.2026.101500

Keywords: water distribution networks, contamination source identification, artificial bee colony algorithm, EPANET, metaheuristic optimization, residual chlorine, water quality monitoring, inverse problem, shuffled frog algorithm, genetic algorithm, chlorine decay, water security

Cite Scienmag News

Bethany Barker. (October 7, 2026). Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes. Scienmag. https://scienmag.com/bee-inspired-algorithm-tracks-hidden-contamination-in-city-water-pipes/

Bethany Barker. "Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes." Scienmag, 7 October 2026, https://scienmag.com/bee-inspired-algorithm-tracks-hidden-contamination-in-city-water-pipes/. Accessed 7 October 2026.

Bethany Barker. "Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes." Scienmag. October 7, 2026. https://scienmag.com/bee-inspired-algorithm-tracks-hidden-contamination-in-city-water-pipes/

Tags: advanced algorithms for water infrastructure monitoringartificial bee colony algorithmartificial bee colony algorithm applications in water securitybee-inspired optimization algorithms for water qualitychlorine decaychlorine decay and contaminant transport modelingcontamination source identificationcontamination source pinpointing in city water networksEPANETEPANET hydraulic and water-quality modelinggenetic algorithmhydraulic modeling for leak and contamination localizationinverse modeling of water pipe contamination sourcesinverse problemmetaheuristic optimizationresidual chlorineshuffled frog algorithmsimulation-optimization methods for urban water safetyurban water contamination detectionwater distribution networkswater pipeline sensor data analysiswater quality monitoringwater securitywater security and contamination incident detection
Share26Tweet16
Previous Post

From Soil to Smile: Amazon Pasture Microbes Linked to Cattle Gum Disease

Next Post

Zambia’s Tick Map Reveals a Shifting Landscape of Disease Vectors

Related Posts

Full Infill Wins: Tuning 3D-Printed Carbon Fiber Parts for Space
Chemistry

Full Infill Wins: Tuning 3D-Printed Carbon Fiber Parts for Space

October 7, 2026
From Rice Waste to Water Cleaner: Porous Silica Ceramics Tackle Dyes and Industrial Coolant
Chemistry

From Rice Waste to Water Cleaner: Porous Silica Ceramics Tackle Dyes and Industrial Coolant

October 7, 2026
Timing Is Everything: When Wheat Gets Nitrogen Reshapes Its Starch From the Inside Out
Chemistry

Timing Is Everything: When Wheat Gets Nitrogen Reshapes Its Starch From the Inside Out

October 7, 2026
Milkweed Sap Yields Anti-Inflammatory Molecules That Dock onto Key Enzymes
Chemistry

Milkweed Sap Yields Anti-Inflammatory Molecules That Dock onto Key Enzymes

October 7, 2026
Rubber Reinvented: How Nanofillers Are Hardening the Power Grid’s Weakest Link
Chemistry

Rubber Reinvented: How Nanofillers Are Hardening the Power Grid’s Weakest Link

October 7, 2026
Stretching a Quantum Material Splits Its Superconductivity in Two
Chemistry

Stretching a Quantum Material Splits Its Superconductivity in Two

October 7, 2026
Next Post
Zambia’s Tick Map Reveals a Shifting Landscape of Disease Vectors

Zambia's Tick Map Reveals a Shifting Landscape of Disease Vectors

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • Bovine Colostrum Supplement Fails to Protect Travellers Against Diarrhoea in Landmark Field Trial
  • Zambia’s Tick Map Reveals a Shifting Landscape of Disease Vectors
  • Bee-Inspired Algorithm Tracks Hidden Contamination in City Water Pipes
  • From Soil to Smile: Amazon Pasture Microbes Linked to Cattle Gum Disease

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,150 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading