TinyML Digital Counter

Screen-scraping electricity meter displays with a custom neural network on an OpenMV Cam M7

TinyML Digital Counter is an edge AI system that reads digital electricity meter displays autonomously — capturing digit images on a microcontroller, running inference locally, and transmitting readings to a cloud dashboard over WiFi via MQTT.

Problem

In Nigeria and across much of Sub-Saharan Africa, electricity meters are still read manually by field agents visiting millions of households monthly. This is expensive, error-prone, and creates billing disputes. The goal was a low-cost device that could be retrofitted in front of an existing meter display — no hardware modification to the meter itself.

Solution

  • Screen scraping approach: a rule-based coordinate mapping pipeline segments the meter display image, isolates each digit (15×20 px), and detects the decimal point position
  • Custom neural network (three dense layers) trained on 3,260 labeled digit samples — a MobileNet baseline achieved only 20.2% accuracy on the non-standard 15×20 input; the custom model reached 99.8% accuracy
  • TensorFlow Lite (INT8 quantised) deployed on an OpenMV Cam M7 running MicroPython via OpenMV IDE
  • Model trained and optimised in Edge Impulse Studio
  • Readings transmitted over WiFi using MQTT to an Adafruit IO cloud dashboard for real-time monitoring

Key Outcomes

  • 99.8% digit recognition accuracy on held-out test set
  • Full pipeline runs on a microcontroller — no cloud inference required
  • Presented at the Hackster.io Impact Summit 2023

(Igwegbe & Awojide, 2023)

References

2023

  1. TinyML
    TinyML Digital Counter for Electric Metering System
    G. Igwegbe, and Martins Awojide
    2023
    Hackster.io Impact Summit 2023