Your network
An EPANET export from WaterGEMS, WaterCAD or InfoWater. No model? A GIS layer, an AutoCAD drawing or a paper map traced in Google Earth becomes a starting pipe network.
Disinfectant mapping for small drinking water systems
Residual Maps combines a water system's hydraulic model, or a map of its mains, with the grab samples it already takes. It estimates the disinfectant residual at every junction for every hour of the day, shows how sure it is, and plans where to sample next.
No new sensors. Residual Maps uses the model or map a system already keeps and the readings its operators already log, then shows where chlorine is likely to run low, including dead ends and night hours that nobody samples.
An EPANET export from WaterGEMS, WaterCAD or InfoWater. No model? A GIS layer, an AutoCAD drawing or a paper map traced in Google Earth becomes a starting pipe network.
The log as your lab or field sheet exports it, CSV or Excel. Free and total chlorine are never mixed, and readings like <0.02 or ND are kept and marked.
Residual at every junction for every hour, with a 90% range and the chance it is below the 0.2 mg/L minimum. Decay rates are calibrated to your readings.
Where and when to sample next month: sites that confirm likely low spots and sites that narrow the widest ranges.
In simulation the true chlorine at every junction is known, so every estimate can be checked. These numbers are the demo you can open in the workspace: EPA's Net3 network with 8 grab samples taken between 07:00 and 17:00.
Simulation on a public EPA network. Residual Maps has not yet been checked against a real system's own chlorine readings; that is what the pilots are for.
One EPANET water movement check against real readings exists, on EPA's own Net2 model, without Residual Maps' own estimator: see the field check.
A small system might sample a handful of sites a month at the same daytime hours, while the lowest chlorine sits at dead ends and at night. Most have no hydraulic model, and many keep their pipe records on paper.
A free pilot: send a model or map and a few months of readings, get back a map, likely low spots and a sampling plan.
6 sites for next month's route, 07:00 to 17:00
| # | Junction | When | Chance below 0.2 | Water age | Why |
|---|
Share of junctions whose median estimate is below 0.2 mg/L, by hour. Select a bar to map that hour.
EPA Net3, an example network bundled with EPANET
| Item | Value | Where it comes from |
|---|
Off in the hosted demo. In a pilot, files are processed privately.
Export from WaterGEMS, WaterCAD, InfoWater or EPANET. The file is identified by its content, fixed in a copy if needed, and test-run before anything else.
GeoPackage, zipped shapefile, GeoJSON or KML of the water mains. Lines are joined where their ends meet and pipe sizes are read from the attributes.
A DXF from AutoCAD or Civil 3D. Pipe sizes come from layer names or the labels next to each line.
Trace the mains over aerial imagery in Google Earth, name each line with its size, and save it as KML.
| Junction | Taken at | Reading | Model at that hour | 90% range |
|---|
Off in the hosted demo
Any CSV or Excel log works as exported: columns are guessed from the header (Sample Point, Date/Time, Free Chlorine mg/L) for you to confirm. Lab exports with one row per analyte, decimal commas, µg/L and month-name dates are read. Every row that is not used is listed with its reason.
The local app writes this page as a one-page PDF. Downloads are off in this prototype.
A pilot runs Residual Maps on one system's own files and checks it against months of readings the model never saw. It costs nothing, and the system is never named without written permission.
15 minutes on how you choose sampling sites and times, and what records you keep.
Your model or a map of the mains, 3 to 12 months of grab samples, the list of sampling sites, and the dose leaving the plant.
A chlorine map, the likely low spots, a suggested sampling plan, and an accuracy check on the months held back.
Keep using it with each month's readings, or stop. Your files are deleted on request.
Tick what you have. The list on the right shows what a pilot would use and what is still missing.
Residual Maps is a personal project by Devansh Sanghavi, a junior at Los Altos High School in California.
devansh.sanghavi@gmail.comMeasured fluoride tracer readings against fluoride simulated by EPANET, the simulator Residual Maps builds on, running EPA's own Net2 model. This check does not use Residual Maps' own estimator. This is fluoride, not chlorine: it checks water movement, not chlorine decay.
MAE and RMSE in mg/L fluoride, lower is better. For r, higher is better.
| Prediction | MAE | RMSE | Pearson r |
|---|
| Node | Readings | Model MAE | Own mean MAE | Flat 1.0 MAE | Model RMSE | Model r | Model beats flat 1.0? |
|---|
Set after reading the measurements. A miss would show here as plainly as a pass.
55 hours from the 08:00 start.
Net2, schematic