Digitization of Analogue Gauges using Computer Vision

Erico Kayumba Mutonkole, Olasupo Ajayi, Omowunmi IsafiadearXiv 2026 · arXiv

TL;DR

This paper presents an automated system for reading analogue pressure gauges by comparing traditional computer vision with modern deep learning models. The researchers found that a classification-based approach using ResNet18 achieves a remarkable 97.3% accuracy, vastly outperforming both VGG19 and traditional edge-detection methods for industrial automation.

What Problem Does This Paper Address?

Despite the rise of digital sensors, analogue gauges remain a staple in manufacturing, oil, and gas industries due to their reliability and low cost. However, manual monitoring is a major bottleneck: it is time-consuming, potentially dangerous in hazardous environments, and prone to human error—with studies citing error rates as high as 5%.

While replacing these with digital meters is expensive, "retrofitting" them with cheap cameras (like a Raspberry Pi or ESP32) offers a middle ground. The challenge lies in creating software that can accurately interpret these images under varying lighting, angles, and noise. This paper specifically tackles the lack of comparative research between traditional computer vision (CV) and modern deep learning (DL) architectures for this task on low-resource devices.

Methods

The authors implemented and compared three distinct hybrid approaches:

  1. Traditional CV (OpenCV + Scikit-Image): A four-stage pipeline using Canny edge detection and a Probabilistic Hough Line Transform to identify the needle and calculate its angle geometrically.
  2. Deep Sequential Learning (OpenCV + VGG19): A deep CNN architecture that processes images through sequential layers.
  3. Modern Residual Learning (OpenCV + ResNet18): A CNN utilizing "skip connections" to overcome the vanishing gradient problem.

A key architectural decision was framing the task as a multi-class classification problem rather than a regression problem. Instead of trying to calculate a continuous needle angle, the authors discretized the 0-10 BAR range into 11 distinct classes. This makes the models significantly more robust to visual noise.

Datasets

Because large, public datasets of industrial gauges are scarce, the authors curated a custom dataset of 1,848 images:

  • Source: Three original pressure gauge types were sourced via web scraping.
  • Synthesis: 33 base image classes were generated using Adobe Photoshop to represent different readings.
  • Augmentation: To simulate real-world conditions, the authors applied a rigorous pipeline including random rotations (±15°), scaling, perspective transformations, and "salt-and-pepper" noise injection.
Samples of the original gauges used as the dataset foundation.
A comparison showing how synthetic images (right) were generated from originals (left).

Key Insights and Ideas

  • The Power of Residuals: ResNet18's "skip connections" were the clear winner. While VGG19 is a deeper network, it suffered from training instability (vanishing gradients), whereas ResNet18 converged rapidly to a near-zero loss.
  • Classification vs. Geometry: Traditional CV methods rely on "handcrafted" features (like finding a straight line for the needle). If the edge detection fails due to glare or low contrast, the whole system fails. By treating the reading as a classification task, the DL models "learned" the overall visual pattern of the gauge, making them much more resilient.
  • Precision vs. Recall Trade-off: The traditional Scikit-Image approach achieved 100% precision but only 63.8% recall. This means that when it did make a prediction, it was always right, but it was so conservative that it missed nearly 40% of the actual readings.

Key Results

The experimental results highlight a massive performance gap between architectures:

Metric ResNet18 VGG19 Scikit-Image
Accuracy 97.3% 64.4% 63.8%
Inference Time 23.4 ms 41.2 ms 127.5 ms
Model Size 42.7 MB 532.6 MB N/A

ResNet18 was not only the most accurate but also the fastest and most memory-efficient, making it the only viable candidate for deployment on low-spec edge hardware like microcontrollers.

Fig. 3. Samples of augmented images.

Limitations and Future Work

The study focused exclusively on 0-10 BAR pressure gauges. While the classification approach is robust, it limits the precision of the reading to the number of classes defined (in this case, ±0.1 BAR).

The authors suggest that future work should involve:

  • Fine-tuning the models for other types of analogue instruments like thermometers or flow meters.
  • Real-world deployment on mobile devices and single-board computers to test performance in actual industrial environments.
  • Exploring transfer learning further to see if these models can generalize to entirely different gauge face designs without extensive retraining.

Summary updated

Abstract

Analogue gauges remain prevalent in manufacturing industries for measuring physical quantities, yet manual monitoring by operators introduces human error and operational inefficiency. This research developed and evaluated an automated gauge reading system using computer vision and deep learning techniques. Three hybrid approaches were implemented and compared: OpenCV with Scikit-Image (traditional computer vision), OpenCV with ResNet18, and OpenCV with VGG19 (deep learning approaches). A comprehensive dataset of 1,848 pressure gauge images (0-10 BAR range) was curated through web scraping, synthetic generation, and augmentation techniques. The experimental results demonstrate that ResNet18 significantly outperforms the alternatives, achieving an accuracy of 97.3%, compared to VGG19's 64.4% and Scikit-Image's 63.8%. The study validates the effectiveness of residual learning architectures for industrial gauge digitization, providing a robust foundation for Industry 5.0 automation applications.
BibTeX
@misc{mutonkole2026digitization,
  author = {Erico Kayumba Mutonkole and Olasupo Ajayi and Omowunmi Isafiade},
  title = {{Digitization of Analogue Gauges using Computer Vision}},
  year = {2026},
  eprint = {2611.26262},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26262},
}
Figure