Residual Maps Open the demo
Working prototype. The demo shows Residual Maps' real output on EPA's public Net3 network, in simulation. Uploads are off.

Disinfectant mapping for small drinking water systems

Chlorine at every junction, every hour.

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.

EPA Net3, 92 junctions, estimated from 8 daytime grab samples. Deeper pink means more free chlorine, as on a DPD test. likely below 0.2 mg/L

From the files a system already has to next month's route.

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.

1

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.

2

Your grab samples

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.

3

The map

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.

4

The route

Where and when to sample next month: sites that confirm likely low spots and sites that narrow the widest ranges.

Scored against a hidden truth.

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.

Built around how small systems work.

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.

  • Starts from what existsAn EPANET model, a GIS layer, a DXF drawing, or a paper map traced in Google Earth. In a pilot, the source, tanks and pumps are filled in with the operator using a short form.
  • Two disinfectantsFree chlorine, and a separate chloramine mode for total chlorine with its own decay ranges and a 0.5 mg/L default minimum.
  • Water ageThe hours since water left the source, at every junction, with the range it could move if the model's demands or pipe roughness are off.
  • Several inletsA zone fed from more than one point uses each inlet's measured residual.
  • Private by defaultThe hosted demo runs public example networks only. In a pilot, a utility's files are processed privately and never shared or named without written permission.

Looking for the first systems to try it.

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.

See how a pilot works

EPA Net3

Example network Simulation Free chlorine · dose 1.2 mg/L · minimum 0.2 mg/L
Grab samples
Show
When
07:00

Sample here next

6 sites for next month's route, 07:00 to 17:00

#JunctionWhenChance below 0.2Water ageWhy

When is the network lowest?

Share of junctions whose median estimate is below 0.2 mg/L, by hour. Select a bar to map that hour.

How a free pilot works.

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.

1

A short call

15 minutes on how you choose sampling sites and times, and what records you keep.

2

Send files

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.

3

About two weeks

A chlorine map, the likely low spots, a suggested sampling plan, and an accuracy check on the months held back.

4

Decide

Keep using it with each month's readings, or stop. Your files are deleted on request.

What would your system send?

Tick what you have. The list on the right shows what a pilot would use and what is still missing.

Start with an email.

Residual Maps is a personal project by Devansh Sanghavi, a junior at Los Altos High School in California.

devansh.sanghavi@gmail.com

Field check against real fluoride readings.

Measured 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.

Results

MAE and RMSE in mg/L fluoride, lower is better. For r, higher is better.

PredictionMAERMSEPearson r
NodeReadingsModel MAEOwn mean MAEFlat 1.0 MAEModel RMSEModel rModel beats flat 1.0?

Bars set before simulating fluoride

Set after reading the measurements. A miss would show here as plainly as a pass.

    Measured and modelled, node by node.

    55 hours from the 08:00 start.

    measured model at nominal settings range across the 9 demand and roughness settings

    Where the readings were taken

    Net2, schematic

    measured node source tank

    Calibration test

    What this does and does not test

    • What it checksWhether EPANET, the simulator Residual Maps builds on, running EPA's own Net2 model, moves water through the pipes and tank at the right times. This check does not use Residual Maps' own estimator. Fluoride does not decay, so a gap between measured and modelled fluoride comes from water movement, the source record or reading error, not from chemistry.
    • What it does not checkChlorine decay. No simulated chlorine is validated here.
    • The dataField data from one small network. EPA's file gives no site, study or date. The University of Kentucky toolkit identifies Net2 as Cherry Hills/Brushy Plains, New Haven, CT, and links a 1994 paper as its system description. That paper is paywalled and was not read, so it is not confirmed as the source of these readings.
    • Chlorine readingsThe public file holds no chlorine readings. None have been obtained, and whether any can be is not confirmed.
    • A replay, not a forecastThe Net2 file carries hourly demand, pump station and source fluoride patterns written for these same 55 hours, so the model was set up for this test period. Whether its demands were also tuned to these readings could not be confirmed. Read these numbers as a best case.
    • How it was runBars set after reading the measurements but before simulating fluoride. Net2 itself had been simulated earlier in this project for other work, and the timing rests on local file timestamps. The first run's units bug (kg/m3 read as mg/L) showed B1 and B3 as misses; fixing it flipped them. The method and bars did not change.
    • Time stepSimulated with a 5 minute report step and compared by linear interpolation in time.
    • Who uses itNo utility is using Residual Maps.
    • SourcesUniversity of Kentucky system page, EPA's EPANET 2.2 release, the readings themselves: Net2-FL.dat, and, not read, the paper that page links.