Predictive Dosing with AI: From Fixed Ratios to Feedback

Technical Deep Dive · Technical Perspective · Published: November 4, 2026

Key Takeaways

  • Fixed-ratio dosing is calibrated for the worst case, so plants routinely pay for chemical they don’t need on every day the raw water runs milder than the design envelope.
  • The architecture that works is layered: a feedforward layer predicts the dose from incoming water conditions, and a feedback layer trims that prediction against measured effluent quality [1].
  • The model inputs are ordinary plant signals. Influent flow, raw-water turbidity, pH, temperature and effluent turbidity were the operational variables behind a published closed-loop dosing framework [1].
  • On five years of minute-by-minute full-scale data, a deep learning model combining a one-dimensional convolutional network with gated recurrent units was applied to coagulant dosage prediction at a drinking water plant [3].
  • Documented accuracy gains are substantial: an AutoML random forest achieved 37% lower RMSE (0.89) and 52% lower MAE (0.47) than the best single gradient boosting baseline, at R² of 0.96 [2].
  • Early deployments report real savings. One plant’s AI precision dosing system cut coagulant use by 25.7% and aluminium residual by 6.1% [4], while a full-scale municipal wastewater AI programme reported 8% lower electricity and 11–66% lower chemical use, worth USD 206,500 a year [5].

Why Fixed-Ratio Dosing Leaves Money on the Table

Coagulation is one of the largest recurring chemical costs in water treatment, and most plants still dose it the way they did decades ago: a ratio of milligrams of coagulant per litre, set from jar tests and operator experience, adjusted a few times a shift by eye. The ratio is chosen conservatively so the plant survives its worst raw water — a storm spike, an algal bloom, a temperature swing. The consequence is structural. On every day the raw water is milder than the design case, the plant over-doses by design. The chemical gets purchased, pumped and precipitated whether the water needed it or not.

Manual feedback doesn’t fix this. By the time settled-water turbidity shows the dose was wrong, the water has already travelled through the train, so the correction always lags the disturbance. And because the penalty for under-dosing is visible while the penalty for over-dosing is merely expensive, operators rationally lean high. Fixed ratios aren’t an engineering failure. They’re an information failure. The plant has no prediction of what the incoming water will do, so it protects itself with chemical.

The Feedforward + Feedback Architecture

Industrial practice has converged on splitting the problem into two loops with different time constants.

The feedforward layer predicts the dose from conditions measured at the intake — flow, turbidity, pH, temperature — before the water reaches the coagulation basin. Because it acts on prediction rather than on measured outcome, it responds to a disturbance the moment it enters the plant, not one to three hours later when the effect reaches the settled-water sample point. In published closed-loop frameworks, the dose prediction model is paired with a treated-water-quality model that serves as an internal feedback mechanism, validating dosing decisions against predicted effluent before they are applied [1].

The feedback layer measures what actually happened — settled or filtered turbidity, residual aluminium — and trims the feedforward prediction up or down. The compound-loop pattern is familiar from chlorination control: flow pacing gives the feedforward base dose, residual chlorine feedback trims it, the fast loop handles flow changes and the slow loop handles demand drift. Coagulant dosing borrows the shape because the physics is the same. A long dead time between action and observable result makes pure feedback sluggish and pure feedforward blind.

What the Models Actually Learn From

The encouraging part of the literature is that the winning models consume ordinary plant signals, not exotic ones. A closed-loop dosing framework built for a drinking water plant used operational data including influent flow, raw-water turbidity, pH, temperature and effluent turbidity, processed through cross-correlation and feature engineering before model construction [1]. Seasonal and diurnal patterns enter through the same channels, since they show up as shifts in the measured variables rather than as separate inputs.

Data volume, not data exoticism, is what separates strong models from weak ones. A study at a large drinking water plant used minute-by-minute monitoring data spanning five years — described as the first attempt in drinking water process modelling to work with so comprehensive a dataset — combining a 1D convolutional neural network with gated recurrent units to extract features and model the time-series behaviour [3]. The practical implication for plant owners: every month of well-instrumented operation is training data. Which turns the instrumentation budget into a model budget.

Model choice has matured too. In one recent study an automated machine learning pipeline selected a random forest that beat the best single gradient boosting model by 37% on RMSE (0.89), 52% on MAE (0.47) and 5% on R² (0.96), with SHAP analysis keeping the predictions interpretable for operators [2]. Interpretability is not a luxury here. A dose recommendation an operator cannot sanity-check is a recommendation that will get switched off.

Documented Results from Early Deployments

The evidence base for AI-assisted dosing has moved past simulation. A few documented results:

  • At the Qingzhou plant in Taiwan, a system trained on 500,000 data points adjusted chemical dosage continuously, cutting coagulant use by 25.7% and aluminium content by 6.1% while holding water quality stable through high-turbidity periods [4].
  • A full-scale municipal wastewater plant applying AI optimisation across denitrification carbon source dosing, nitrification aeration and coagulant dosing held 97–100% removal of COD, ammonia nitrogen, total phosphorus, total nitrogen and suspended solids while cutting electricity by 8% and chemicals by 11–66% — total savings of USD 206,500 a year and a carbon-footprint reduction of 1,741 tCO2e a year [5].
  • On the modelling side, the AutoML study’s error reductions translate into tighter dosing: a prediction whose error halves lets the control layer run closer to the true optimum without drifting into under-dose [2].
  • The five-year deep learning study demonstrated accurate prediction of coagulant dosage and sedimentation outcomes from real-time data at scale [3].

Two cautions apply when reading those numbers. Savings are site-specific — a plant already running tight manual control has less to harvest than one dosing on a decade-old fixed ratio. And published figures arrive with their measurement context: the wastewater savings span multiple unit processes, not coagulation alone. Transfer them to your own plant as an order of magnitude, not a guarantee.

Safety Boundaries: Manual Takeover, Clamping and Watchdogs

No responsible deployment hands a chemical feed to an unsupervised model. The safety layer sits between the algorithm and the pump, and it has three standard elements.

Manual takeover. The operator must be able to switch between automatic and manual control instantly, per loop, with the model’s suggestion staying visible as an advisory while manual control is active. The staged deployments described in the industry literature keep a human confirming dose decisions until the model has demonstrated reliability on site.

Clamping. The model’s output is bounded by hard minimum and maximum dose limits derived from process constraints: under-dose floors that protect compliance, over-dose ceilings that protect the distribution system and the chemical budget. The model can only steer inside the clamp; it cannot invent a dose outside it. Rate limiting works the same way, so no single correction moves the dose too far in one control cycle.

Watchdogs. Sensor fault detection, pump fault alarms and data-staleness checks run continuously. When a critical input goes stale or a metering pump faults, the loop freezes to a safe fallback setpoint and alarms. A dosing model fed by a drifting turbidity sensor is worse than no model at all, which is why watchdog logic on the instruments is not optional.

A Staged Path to Closed Loop

Stage Strategy Data required Risk control
0 — Instrument Bring multi-parameter sensing online and build history Flow, turbidity, pH, temperature streams, logged continuously Sensor QC and calibration records before any modeling
1 — Advise Model suggests a dose; operator confirms each change Historical dosing logs plus process data No actuation authority; mismatch between advice and operator reviewed weekly
2 — Clamp Closed loop inside hard min/max bounds and rate limits Live feedback analyzers on settled or filtered water Clamps, deadbands, and alarms defined by process engineers
3 — Supervise Full closed loop with watchdogs and manual override Redundant sensors, event logs, model-performance tracking Watchdog auto-freeze to fallback setpoint; override audited

The staging matters because it turns a trust problem into an evidence problem. Each stage generates the operational record that justifies the next one, and nothing in the sequence asks the plant to bet compliance on an algorithm before that algorithm has earned it on the plant’s own data.

What This Means for Instrumentation

Every architecture above has a floor built from instruments. The feedforward layer is only as good as the intake sensors; the feedback layer only as good as the effluent analysers. That is where measurement design becomes an AI decision. Models need synchronised, multi-parameter streams — pH, ORP, conductivity, temperature measured in the same body at the same moment — because feature quality sets model quality, and separately installed single-parameter probes introduce alignment errors and maintenance windows that corrupt training data.

Integrated multi-parameter sensors address exactly this. Shanghai ChiMay’s four-in-one sensors measure conductivity, pH, dissolved oxygen and ORP simultaneously in a single probe; the company’s published overview reports multi-parameter monitoring reducing installation costs by 40–60% compared with individual sensors, a unified platform that simplifies calibration and maintenance, and digital sensor technology that eliminates signal degradation over long cable runs [6]. Four parameters, one probe, no alignment error. With synchronised streams into SCADA or a cloud historian, the same instruments serve a second purpose beyond the dashboard: sensors that feed your AI water model, not just your dashboard. For plants planning the staged path above, Stage 0 is where the project is really won or lost.

References

  1. OUCI — “Data-Driven Optimization of Coagulant Dosing: a Closed-Loop Machine Learning Framework for Drinking Water Treatment”: model inputs, treated-water-quality internal feedback, and algorithm comparison. https://ouci.dntb.gov.ua/en/works/4NkJa2v2/
  2. ScienceDirect — “Interpretable prediction of coagulant dosage in drinking water treatment plant based on automated machine learning and SHAP method”: AutoML random forest 37% lower RMSE (0.89), 52% lower MAE (0.47), 5% higher R² (0.96), with SHAP interpretability. https://www.sciencedirect.com/science/article/pii/S2214714425009973
  3. KAIST KOASAS — “Optimizing coagulant dosage using deep learning models with large-scale data”: five years of minute-by-minute plant data with Conv1D + GRU architecture. https://koasas.kaist.ac.kr/handle/10203/317938
  4. Water New Zealand — “AI-Based Precision Coagulation Dosing System Development”: Qingzhou plant results including 25.7% coagulant reduction and 6.1% lower aluminium content. https://www.waternz.org.nz/Article?Action=View&Article_id=3560
  5. ScienceDirect — “Optimization of denitrification carbon source, nitrification aeration and coagulants dosing with artificial intelligence in full-scale municipal wastewater treatment”: 97–100% removal, 8% electricity and 11–66% chemical savings, USD 206,500/yr, 1,741 tCO2e/yr. https://www.sciencedirect.com/science/article/pii/S2590123025029421
  6. Shanghai ChiMay — “4-in-1 Sensors for Industrial Process Control”: simultaneous conductivity, pH, dissolved oxygen, and ORP measurement with installation-cost comparisons for multi-parameter monitoring. https://www.chimaycorp.com/shanghai_chimay_4-in-1_sensors_for_industrial_process_control/810.html

About the author: Written by the Shanghai ChiMay Technical Editorial Team — the editorial group covering online water quality analysis, sensors, and dosing control applications across Shanghai ChiMay’s instrument product line.

Similar Posts