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:
- 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.
- Deep Sequential Learning (OpenCV + VGG19): A deep CNN architecture that processes images through sequential layers.
- 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.
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.
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