SwimSignal

Sampling planner

Where the E. coli samples behind SwimSignal's model are thin, and what a simulation found for simple ways of spending a sampling budget. A planning aid for a conversation with a sampler, not a sampling plan: nothing here has been tested in real water.

Where samples are thin

SwimSignal's E. coli model learns only from lab samples. All of them are the Environment Agency's, at the 38 inland bathing waters: 2,265 samples from 2023 to 2026.

SwimSignal's spots by area.
AreaSpotsWith EA samplesWith none
Cumbria and the Lake District28819
East of England835
Lancashire211
London550
Midlands330
North East303
Peak District and Sheffield808
Severn and the Welsh borders844
South West1239
South and South East835
Thames Valley1147
Yorkshire1349
Each bathing water, fewest samples first. After rain: samples after more than 10 mm in 48 hours, of those with archived rain, 2024 to 2026.
Bathing waterKindSamples2023202420252026MayJunJulAugSepAfter rain
Falcon Meadow, River Waveneyriver2000020255442 of 17
Ham and Kingston, River Thamesriver2000020255532 of 18
River Avon at Queen Elizabeth Gardensriver2000020354442 of 17
Sandy Lane, Chesterriver2000020245451 of 17
Pangbourne Meadow, River Thamesriver2100021245462 of 16
Swale above Richmond Fallsriver2100021263552 of 17
Frensham Great Pondlake5520151010913121382 of 34
Cotswold Country Park and Beachlake5620161010139111112–
Wharfe at Wilderness Carparkriver5802020181111151386 of 56
Coniston Water, Boating Centrelake6002020209151512930 of 57
Coniston Water, Brown Howelake6002020209151512928 of 57
Coniston Water, Monk Conistonlake6002020209151512929 of 57
Hampstead Heath (Mens Pond)lake60201515101113131310–
Nidd at the Lido, Knaresboroughriver60020202011121413107 of 57
River Avon at Fordingbridgeriver60020202011141112129 of 57
River Frome at Farleigh Hungerfordriver60020202010131411127 of 56
River Ribble at Edisford Bridgeriver60020202010151614522 of 59
River Severn in Shrewsburyriver6002020208121515108 of 57
Derwent Water at Crow Parklake6102020219171314820 of 59
River Severn at Ironbridgeriver6102021208121515119 of 58
River Teme in Ludlowriver6102120208131515107 of 58
River Tone at French Weir Parkriver6102120201014141496 of 58
Sheep's Green, River Camriver6102120209121214147 of 57
Wallingford Beach, River Thamesriver61020202110131213136 of 56
Friars Meadow, River Stourriver6202120219151312133 of 58
Colwick Country Park (West Lake)lake692015151912131715128 of 45
Hampstead Heath (Mixed Pond)lake70201515201216151611–
Rutland Water Sykes Lanelake702020201012161514137 of 48
Rutland Water Whitwell Creeklake762120201513171616148 of 52
Henleaze Lakelake79201920201218171814–
Hampstead Heath (Ladies Pond)lake80202020201318191614–
Wharfe at Cromwheel, Ilkleyriver8020202020151719171210 of 57
Windermere, Lakeside YMCAlake8020202020132119171019 of 57
Windermere, Millerground Landinglake8020202020132119171018 of 57
Windermere, Rayrigg Meadowlake8020202020132119171017 of 57
Wolvercote Mill Streamriver802020192114171517176 of 54
The Serpentine - Hyde Parklake81202021201318191714–
Windermere, Fellfootlake8120202021132120171017 of 57

Four ways to spend a budget, in a simulation

A simulation tried four ways of choosing where and when to take 60 extra samples in one season. Its world was made up: 40 made-up sites, 12 of them never sampled before; a 20-week season, at most 2 samples a day. The truth is a logistic model with normal site offsets, the same form the information score assumes. Nothing here has been tried on real water.

Equal coverage
Each week, the sites with the fewest samples so far, on a random weekday.
Wettest, riskiest days
Each week, the site-days with the highest predicted chance of a high count. Not a pure wet-day rule, which was not simulated, but in practice it picked the wettest days.
Most informative
Each week, the site-days whose result would teach the model most, by an information score (BALD).
Random
Each week, site-days drawn at random. A reference, not a proposal.
The simulation's results, means over 200 made-up worlds. Error is how far the model's rate for each site was from the true rate in a later season: lower is better. A high result is a made-up sample over the line.
PolicyErrorLower than randomError at sites never sampled beforeHigh results, of 60Rain in the 48 hours before, mm
Equal coverage0.0030311%0.0055311.23.5
Wettest, riskiest days0.003313%0.0067148.615.5
Most informative0.0028416%0.0049624.110.1
Random0.00340–0.0067911.43.5

The information policy failed its test. It needed lower error than equal coverage in at least 60% of the 200 worlds, and had it in 58.5%. Its mean gain over equal coverage was 0.000189 (95% interval 0.000077 to 0.000306), about 6% of equal coverage's error. Against random it had lower error in 73%. Nothing was adopted, and this page does not change that.

Almost all of the difference was at sites never sampled before. Equal coverage and the information policy both went mostly there; the information policy also chose wetter days. The wettest, riskiest days caught the most samples over the line, but taught the model little more than random did.

The information policy against equal coverage, in each simulated run. The runs other than the first were checks that decided nothing.
RunSamplesLower error inMean gain95% interval
The test: 5 per new site6058.5%0.0001890.000077 to 0.000306
Check: 5 per new site, sites truly alike6066.0%0.0003870.000190 to 0.000582
Check: 10 per new site12051.0%0.000060−0.000066 to 0.000179

With about 10 samples per new site, equal coverage caught up: the interval includes 0.

What a season would cost

Set the samples, the price of one sample and the sites to share them over. Starting values to change, not a quote: 60 samples over 12 sites is the simulation's season. £100 a sample is a round figure; a lab's price, travel and staff time are not counted.

Every policy here takes the same number of samples, so the lab bill is the same. What differs is which sites and which days.

Suggested priorities, not a plan

If a sampler asks where one more sample would add most, the rule of thumb recorded on 26 October 2026 is: the least-sampled sites, on wetter days. It comes from the simulation above, not from real water. On these files it points to:

These are things to talk about. SwimSignal does not choose where or when anyone samples, and sends no list to a sampler. It has not shown that any of these choices teaches the model more than a fixed schedule.

What this rests on

What would show a policy works

Only a field study. A sampler with a budget would take samples by one rule in some weeks and by their usual schedule in others, with each week's rule drawn at random before the season. The models updated with each set of samples would then be scored on later samples that neither rule chose. The test, its pass rule and its size would be written down before the first sample. Until then, no policy here can be called more efficient. The study in full.

Sources

Environment Agency bathing water quality data, Open Government Licence v3.0.