Computer Vision in Water Treatment: Reading Gauges and Sight Glasses

Technical Deep Dive · Engineering Perspective · Published: October 27, 2026

Key Takeaways

  • A research-grade pipeline for reading analog gauges in the field — detect the gauge, find the scale marks, fit the dial ellipse, segment the needle, read the scale values and units by OCR, then interpolate — gets relative reading error below about 2% without any prior knowledge of gauge type [1].
  • Accuracy depends on image quality. In one documented robustness test, heavy Gaussian noise dropped correctly read gauges to 43.3%, while most other image adjustments stayed above 75% [2].
  • Transfer learning pushes classification accuracy high: a DenseNet169-based gauge-reading detector reported about 98% test precision and an F1 score of 97.6 on its own dataset [3].
  • Cameras now take over work that used to depend on an operator’s eyes. A municipal deployment in Granada watches for spills at a plant entrance and for bubbles in secondary settling tanks as an indication of denitrification [5].
  • Vision complements in-line instrumentation rather than replacing it. Multi-parameter sensors remain the source of continuous, calibrated process data; vision extends digital coverage to the installed base of analog devices [6].
  • The framing worth keeping: sensors that feed your AI water model, not just your dashboard. Computer vision adds a visual channel to that same model, with its own failure modes to manage.

Why the Installed Base Still Speaks Analog

Water plants are layered with instruments speaking two languages.

Newer assets — analyzers, transmitters, flow meters — speak digital and stream into historians and control systems. Older assets speak analog: pressure gauges, vacuum gauges, rotary meters, sight glasses, graduated level columns. They are cheap, tough, and everywhere. They will stay in service for decades, because replacing them means interrupting processes that cannot be interrupted.

Manual rounds have always been the bridge across that gap, and they carry the usual costs: manual inspection is labour-intensive, error-prone, and in some locations hazardous [1].

The promise of computer vision is to retrofit the installed base instead. Point a camera at the device, let software read it, stream the result into the same historian the digital instruments feed. No process interruption, no re-plumbing, no meter replacement program.

How a Machine Reads a Dial

The current state of the art is a modular pipeline, not a single neural network. The framework documented by ETH Zurich researchers runs in six stages: gauge detection, scale-mark detection, ellipse fitting, needle segmentation, scale value and unit recognition via OCR, and reading computation [1].

The Geometric Heart: Ellipse Fitting

Ellipse fitting is the geometric core. Fitting an ellipse to the scale arc corrects the perspective distortion created by camera angles that are never quite perpendicular in a real plant. Because the pipeline reads scale values and units by OCR and interpolates the needle against them, it needs no advance knowledge of gauge type, range, or units — and it holds relative reading error below about 2% across web-scraped images and a proprietary refinery dataset [1].

For water treatment the architecture transfers directly. A fixed camera on a chlorine drum scale, plant-air pressure gauge, or filter effluent indicator can be read on a schedule and trended like any transmitter.

Accuracy Numbers and Their Fine Print

Numbers quoted for machine reading deserve the same scrutiny as any instrument specification. Three documented results bracket the reality.

At the top end, deep transfer learning applied to gauge-reading detection reached test precision of about 98% and an F1 score of 97.61 for the DenseNet169 architecture in a peer-reviewed study [3]. Read the fine print: that model was trained on roughly a thousand labeled images across nine reading classes, so it describes classification accuracy on that dataset, not field accuracy on your gauge bank.

In the field, the modular ETH pipeline holds relative error below about 2% — a strong figure, achieved with deliberate pipeline design [1]. At the cautionary end, robustness testing of an IoT gauge-reading implementation showed performance bound to image quality: heavy Gaussian noise cut correctly read gauges to 43.3%, while most other adjustments stayed above 75% [2].

The lesson is not that the technology fails. It is that lighting, lens placement, and lens cleanliness belong in the instrument specification, exactly as they do for an optical turbidity sensor.

Scenario Input Output Documented reliability
Analog gauge retrofit Fixed camera photo of the dial Numeric reading Below ~2% relative error, no prior gauge knowledge [1]
Gauge reading detection Image dataset with transfer learning Detected and classified reading 98.01% test precision, 97.61 F1 (DenseNet169) [3]
Reading under degraded images Noisy or blurred frames Numeric reading 43.3% correct under heavy Gaussian noise; above 75% under most other adjustments [2]
Clarifier state watching Video of a secondary settling tank Bubble presence as a denitrification indicator Demonstrated in a municipal deployment [5]
Spill detection Entrance camera Event alerts Deployed at a biofactory entrance [5]
Foam and color observation Sight glass or tank surface image Qualitative state trends Surveyed as an emerging vision application [4]

Sight Glasses, Foam, and Clarifier State

Beyond gauges, water treatment has always depended on looking at the water. Operators judge aeration quality by bubble pattern, biological health by foam and colour, clarifier behaviour by the visibility of the sludge interface.

These are visual judgments — subjective, operator-dependent, inconsistently recorded — and they are exactly the kind of input computer vision can turn into objective data. A survey of automated monitoring for industrial water treatment plants identifies the core applications as inflow anomaly detection and aeration monitoring through bubble segmentation in treatment tanks [4]. Foam image analysis is an established branch of the same family: segmentation networks quantify foam coverage, size, and texture in process vessels, turning a glance into a trendable variable.

The Granada deployment shows what this looks like in operation. The Zerovision project installed three cameras at a biofactory — one at the entrance detecting spills, two watching secondary settling tanks for the bubbles that indicate denitrification [5]. None of those cameras replaced a sensor. They digitized observations that previously lived in operators’ heads and on round sheets.

Where Vision Fits Against In-Line Sensors

The complementary relationship is the whole design pattern.

In-line sensors — a single 4-in-1 probe already carrying pH, ORP, conductivity, and temperature [6] — deliver continuous, calibrated, physically grounded measurements, and they remain the backbone of process control and compliance reporting. Computer vision covers what sensors never reached: the analog gauge bank, the sight glass, the clarifier surface, the tank no probe touches. It also produces evidence, since an image is auditable in a way a drifting transmitter is not.

In practice the two streams belong in one data model. A multi-parameter sensor publishing synchronized pH, ORP, conductivity, and temperature from one probe gives the process model its continuous state [6]. The vision layer adds visual state and digitizes the installed base. A plant feeding both into the same historian extends the modern instrumentation promise — sensors that feed your AI water model, not just your dashboard — to the last analog corner of the plant.

Limits: Light, Dirt, and Occlusion

Every vision deployment inherits the same three enemies.

Lighting: glare and reflections can obscure digits or the needle completely, which is why fixed, shielded, diffused lighting belongs in the camera installation rather than on an accessories list.

Contamination: lens fouling, condensation, and scale deposits degrade images gradually, so image-quality monitoring — the system flagging its own blur — belongs in the deployment design.

Occlusion and geometry: gauges read at angles, behind railings, or partly shadowed produce perspective and illumination errors. The ellipse-fitting stage exists precisely to survive imperfect angles [1], but there are physical limits no algorithm overcomes. Robustness testing makes the sensitivity concrete: image noise a human barely notices can push correct readings down to 43.3% [2].

The engineering response is to treat the camera like an analyzer — with a mounting specification, a cleaning schedule, and a health check.

A Pragmatic Adoption Path

Start with the gauges whose readings already trigger action, and validate against manual rounds through a full seasonal cycle before trusting the trend. Deploy cameras with controlled lighting and documented sightlines. Route digitized readings into the same historian and alarm rules as the in-line sensors, so a drifting number gets caught by comparison rather than by complaint. Keep a human in the loop for low-confidence readings, the way analyzers flag validation samples.

A useful pilot shape: pick five to ten gauges on one process unit, photograph them on the existing round schedule for a month, and score camera readings against operator readings and the occasional portable reference. The pilot costs little, produces the per-gauge accuracy evidence a plant needs before scaling, and — just as valuable — surfaces the installation problems (glare, access, fouling) while they are still cheap to fix.

Plants that skip the validation phase tend to discover those problems after the fleet is ordered rather than before.

Computer vision in water treatment is not a moonshot; it is a retrofit. The research results are mature enough to quote — below about 2% relative error in the field [1], and about 98% precision in a classification task [3] — and the deployment lessons are consistent: image quality is the instrument, the camera is its sensor, and the data belongs with everything else the plant already measures. For a plant sitting on decades of analog instrumentation, that is the fastest route to a fully digital record. One camera, one gauge, one sight glass at a time.

References

  1. alphaXiv (ETH Zurich) — “Under pressure: learning-based analog gauge reading in the wild”: six-stage pipeline and approximately 2% relative reading error on real-world datasets. https://www.alphaxiv.org/zh/overview/2404.08785
  2. MDPI Inventions — “Development of an Analog Gauge Reading Solution Based on Computer Vision and Deep Learning for an IoT Application”: robustness results including 43.3% correct readings under Gaussian noise and above 75% under other adjustments. https://www.mdpi.com/2673-4001/3/4/32/html
  3. PubMed Central — “Computer vision and deep transfer learning for automatic gauge reading detection”: DenseNet169 test precision of 98.01% and F1 score of 97.61. https://pmc.ncbi.nlm.nih.gov/articles/PMC11449899/
  4. Minicod (ICAART paper record) — “Analysing Automated Monitoring of Industrial Water Treatment Plants: From IoT Sensing to Computer Vision Approaches”: survey of vision-based monitoring applications, including inflow anomaly detection and aeration/bubble segmentation.
  5. Zerovision project coverage (Granada, Spain) — municipal deployment of entrance spill-detection and secondary-settling-tank bubble monitoring cameras at a biofactory.
  6. Shanghai ChiMay — “Multi-Parameter Sensors: Streamlining Water Reuse Quality Management” (chimaytech.net): 4-in-1 multi-parameter technology covering pH, ORP, conductivity, and temperature, with integration and data-quality advantages. https://chimaytech.net/tr?p=30827

About the author: Written by the Shanghai ChiMay Technical Editorial Team — engineers working at the intersection of water quality instrumentation and digital integration, covering multi-parameter sensing, Modbus-ready transmitters, and hybrid monitoring architectures for treatment plants.