Automatic image-based electrical energy meter reading using deep learning

We propose to perform image-based automatic electrical energy meter reading. The major region where the display is located is the most important as it shows the reading of the energy consumption. Our aim is to extract these regions from the image of a meter and then recognize the digits and characte

2025-06-28 16:25:26 - Adil Khan

Project Title

Automatic image-based electrical energy meter reading using deep learning

Project Area of Specialization Artificial IntelligenceProject Summary

We propose to perform image-based automatic electrical energy meter reading. The major region where the display is located is the most important as it shows the reading of the energy consumption. Our aim is to extract these regions from the image of a meter and then recognize the digits and characters in the extracted regions in order to record both the readings. However, such region extraction and character recognition become challenging due to image variations caused by several factors such as partial occlusion due to dust on the meter display, orientation and scale variations caused by camera positioning, and non-uniform illumination caused by shades. To this end, we propose to use state-of-the-art deep learning algorithms such as YOLO (You Only Look Once) for text detection and extraction. This will be followed by applying optical character recognition (OCR) of the Tesseract library. Our image dataset contains 20,000 images of electrical energy meters that will further be expanded by data augmentation such as in-plane rotation and scaling in order to make the deep learning algorithms robust to such image variations. For training and evaluation, the image dataset will be annotated to produce the ground truth of all the images using the Microsoft VoTT annotation tool. The method in this project can be highly instrumental in reducing the time and effort involved in the current meter reading process where the workers visit door to door, take images of the meters, and extract the readings from these images manually.

Project Objectives Objectives

The following are the objectives of our proposed system: 

'Automatic image-based electrical energy meter reading using deep learning' _1639954014.png

Project Implementation Method

The following are the steps for implementation:

1. Electrical energy meter image data collection

The images of electric meters are to be collected from residential areas of all types of meters, the project is focusing on only digital meters and analog meters are not part of the dataset collection. Pakistan has multiple manufacturers making electric meters, the different digital meters are part of the dataset and they are not further divided into type classes. The dataset has 20k images.

2. Image annotation for ground truth generation

Training a deep learning model requires the ground truth for the model to train upon, for this, the dataset is manually labeled by human labor by drawing bounding boxes around the display of the meter and the digits. The labeling has two parts, which technically splits the datasets into two. The first dataset that the model is trained upon only has the bounding boxes drawn around the display in the image of the meter. After the display is cropped out using the deep learning model, those pictures are further labeled for digits, dividing them into further 20 classes. These include 0-9 digits and then the digits that have the decimal point next to them like 1., 2., 3. etc.

3. Images pre-processing (re-scaling and aspect ratio correction)

The pre-processing of the images is necessary for model training as the model needs a normalized dataset where the images have a consistent resolution throughout and correct aspect ratios. The images in this dataset are resized to 416x416 pixels before input to the training process. Using Microsoft VoTT, the dataset is exported to a specific format which can be fed into the network.

4. Performance evaluation of deep learning models

Once the model is trained on the YOLOv3 algorithm, the same dataset is used to train other deep learning models such as the variant of  YOLO, R-CNN, Fast R-CNN, and Faster R-CNN to compare the performance of similar state of the art models for best results.

5. Raspberry Pi Implementation

The embedded part of the project involves the implementation of the trained models on Raspberry Pi, once the models are trained a pipeline of the trained models will be transferred to the Raspberry Pi which will run the models using a Python script and inquire the user for an input image, the image goes through the pipeline of display recognition, then the extraction of the reading from the display and giving a final string of numbers to the user as the reading. This reading will be stored in an excel file that is output by the Python script.

Block Diagram

'Automatic image-based electrical energy meter reading using deep learning' _1639954015.png

Raspberry Pi Implementation Flow Chart

'Automatic image-based electrical energy meter reading using deep learning' _1639954016.png Benefits of the Project

The project scope targets the current meter reading process used by WAPDA, it aims at automating the process of meter reading, some of its benefits include:

Technical Details of Final Deliverable

The final deliverable will include the following:

Final Deliverable of the Project HW/SW integrated systemCore Industry Energy Other Industries Education , IT Core Technology Artificial Intelligence(AI)Other Technologies Internet of Things (IoT), Cloud Infrastructure, Big DataSustainable Development Goals Decent Work and Economic Growth, Industry, Innovation and Infrastructure, Responsible Consumption and ProductionRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 27900
Raspberry Pi 4 - 4GB Equipment11700017000
Camera Module for Pi Equipment1700700
SD Card 32 GB Equipment114001400
Card Reader Miscellaneous 1500500
Heat Sinks Miscellaneous 1300300
Casing + Fans Miscellaneous 110001000
Other Expenses (Printing, Posters, Documentation) Miscellaneous 170007000

More Posts