Online verification and management scheme of gateway meter flow in the power system by machine learning

View article
PeerJ Computer Science

Introduction

Currently, power companies primarily verify the accuracy of the gateway meter flow (referred to as the total meter) in the power system through dismantling inspection or periodic sampling inspection conducted by professionals (Liu et al., 2021). However, with the vast power grid in China, comprising over 500 million meters, the existing verification approach faces challenges in terms of high work, lengthy verification periods, low management efficiency, and the inability to meet the requirements of smart meter maintenance and replacement (Dai et al., 2020). To transition from regular verification to state verification of smart meters and ensure measurement accuracy, it is imperative to explore an efficient and precise online remote verification and management solution for the operation of the total meter. The traditional safety analysis method for online check of the gateway meter flow in the power system is the point-by-point method. This approach involves performing power flow calculation simulations for each potential operating mode of the system and analyzing the simulation results to identify stable safety risks in different operating modes. To reduce computational complexity, behavioral indicators can sort expected accidents, and the point-by-point simulation is performed accordingly until no new high-risk accidents are found. However, as the power grid’s operating modes become increasingly diverse, the traditional point-by-point method struggles to meet the demands of power grid security analysis in this evolving context. The existing online remote verification methods for smart meters, based on measurement data analysis, primarily include ordinary least squares inversion and weighted recursive least squares. However, these methods suffer from low solution accuracy and practicability, and they are susceptible to factors such as power consumption levels, the number of user meters, and data quality (Liu, Liang & He, 2020). Wang et al. (2020) proposed an error analysis approach for electricity meters based on advanced meter infrastructure measurement data. By comparing existing meters within a cluster, they calculated the error without the need for external standard instruments. Wang et al. (2019) proposed a machine learning (ML)-based power system attack detection model. The model utilized information and logs collected by phasor measurement units, with a random forest chosen as the basic classifier of AdaBoost. The experimental results demonstrated an accuracy rate of 93.91% and a detection rate of 93.6%. Zhang et al. (2022) provided an overview of the basic principle, research progress, training methods, typical structure, and application characteristics of deep learning (DL). They summarized the application status of DL in frequency situation awareness, frequency security and stability assessment, frequency regulation, and other aspects. They also discussed the adaptability of DL applications to various problems. Lastly, the development trend of DL and its application in power system frequency were prospected. Guo et al. (2022) introduced a real-time dynamic optimal energy management based on a deep reinforcement learning algorithm. They employed proximal policy optimization to capture the uncertain characteristics of renewable energy generation and load consumption through historical data. The effectiveness and computational efficiency of the proposed method were verified with an example. However, this method requires consideration of algorithmic factors, such as the number of measurement periods, the number of meters in the station area, and the out-of-tolerance of a single low-voltage user meter on the model results. The Marketing Department of State Grid Corporation of China has researched the state inspection plan for electricity meters. The operation state of the meters is scored through four triggering methods: family defects, online monitoring, on-site inspection, and regular triggering. Corresponding inspection strategies are generated according to the scoring results (Tan et al., 2020). However, the analysis results provided by this research qualitatively divide the electricity meter into several states, and the analysis results are relatively coarse. Thus, it is not possible to achieve accurate remote verification of the electricity meter.

An online verification and management scheme of gateway meter flow in the power system by ML is proposed to simplify the verification method of the total meter and improve the verification accuracy. Firstly, the accurate automatic meter reading is realized through the implementation of a dial reading recognition system, incorporating the Faster Region Convolutional Neural Networks (Faster-RCNN) model and the Single Shot MultiBox Detector (SSD) model. Secondly, the data obtained from automatic meter readings are used to estimate the operation error of the electricity meter. The limited memory recursive least squares algorithm (LMRLSA) is employed for precise estimation. The error estimation results of the electric meter are then verified and analyzed. Subsequently, the online remote verification results are combined with the business decision-making process. Finally, the proposed scheme undergoes rigorous verification and testing to validate its scientific validity and feasibility. The research offers significant insights for realizing remote intelligent online meter reading and verification management of electricity meters.

Design of the Scheme

Faster-RCNN model and SSD model

The Faster-RCNN model, first proposed in 2015, is characterized by its large size and strong feature extraction capability. Due to these qualities, it is well-used for accurately identifying the specific readings in dial images. However, it should be noted that its running speed is relatively slow (Mansour et al., 2021). The network structure of the model is presented in Fig. 1.

The network structure of the Faster-RCNN model.

Figure 1: The network structure of the Faster-RCNN model.

The Faster-RCNN model is used to identify the specific readings of the dial image, but its running speed is relatively slow.

In the proposed approach, the input image is initially resized to a fixed size. Subsequently, the feature map is extracted using the convolutional neural network. The region proposal networks (RPN) then generate candidate boxes based on the feature map. These candidate boxes, along with the feature map, are passed through the Regions of Interest pooling layer to obtain a fixed-size proposal feature map. Finally, the candidate boxes are classified and refined through a fully connected layer to get a more accurate target frame (Lv et al., 2020; Li & Zhou, 2020).

The SSD model is renowned for its compact size, exceptional accuracy in detecting large targets, and its ability to perform fast detection (Yang et al., 2021). Thus, the SSD model is employed to detect the effective reading area of the dial image. The core of the SSD model involves predicting the category score and offset of the candidate box. Simultaneously, it can generate candidate boxes of different sizes by predicting feature maps at different scales (Zhang et al., 2021a). The network structure of the SSD model is displayed in Fig. 2.

The network structure of the SSD model.

Figure 2: The network structure of the SSD model.

The core of the SSD model is to predict the category score and offset of the candidate box. Simultaneously, candidate boxes of different sizes can be obtained by predicting on feature maps of different scales.

The SSD model differs from the Faster-RCNN model in terms of object detection. The Faster-RCNN model initially generates candidate regions through RPN, followed by classification of these candidate regions and followed by classification of location information. In contrast, the SSD model obtains a series of candidate regions on feature maps of various scales. Each point on these feature maps corresponds to different positions of the original image, thereby enabling high-precision detection results (Zhang et al., 2021b; Sindhwani et al., 2021). When limited computational resources or faster speeds are required, alternative algorithms can be employed for object detection tasks. For instance, You Only Look Once (YOLO) and RetinaNet are viable options. YOLO excels in speed, facilitating real-time detection in applications that require swift processing. On the other hand, RetinaNet utilizes a feature pyramid network structure, enabling inspections at multiple scales. RetinaNet can handle targets of different sizes and maintain high accuracy efficiently by conducting inspections at multiple scales.

While the SSD model boasts superior speed, the Faster R-CNN model typically outperforms it in terms of target detection accuracy. The Faster R-CNN model incorporates a Region Proposal Network that generates candidate regions, subsequently subjecting them to classification and positioning. This two-stage design empowers the Faster R-CNN to achieve greater accuracy when confronted with intricate scenes and small-scale targets.

Realization of image recognition function

This research utilizes the Google TensorFlow framework for model training. As an excellent development framework for ML, TensorFlow provides developers with various mature model implementation solutions. In particular, TensorFlow provides the TensorFlow Object Detection API, a part of the TensorFlow models subproject, which is employed for object detection tasks. This framework is renowned for its extensive application in Google’s computer vision projects. Leveraging an open-source framework, it facilitates the easy construction, training, and deployment of object detection models (Rani et al., 2021; Ghifari, Darlis & Hartaman, 2021; Sajeevan et al., 2020). For electricity meter reading recognition, two models are mainly trained. The first model focuses on training the SSD model to detect the effective reading area on the electricity meter screen. The second model centers on training the Faster-RCNN model to identify the readings within the detected effective reading area. Figure 3 illustrates the specific training process of the SSD model.

The specific training process of the SSD model (Song & Wen, 2020).

Figure 3: The specific training process of the SSD model (Song & Wen, 2020).

When training the SSD model, first, the input meter image is resized, the height of the image is uniformly set to 500px, and the width is scaled proportionally. Then, LabelImg software is used to label the effective reading area of the image screen, a training sample set is constructed, and an XML format file is generated. Next, the generated XML format files and images are converted into TFRecord format files. Finally, the pre-trained model is read and the TFRecord format file is used for model training, resulting in the desired SSD model.

During the training of the SSD model, several steps are followed. First, the input meter image is resized to ensure consistency. The height of the image is uniformly set to 500 pixels, while the width is adjusted proportionally to maintain the original aspect ratio. To define the effective reading area of the image screen, the LabelImg software is used for manual annotation. This process creates a training sample set and generates an XML format file containing the annotated information. All labeled data is utilized to construct the training sample set and generate the corresponding XML format files. Next, the generated XML format files and their corresponding images are converted into TFRecord format files. Finally, the pre-trained model is loaded, and the TFRecord format files are used for model training. The desired SSD model is obtained through this process (Shi et al., 2020; Wang et al., 2021).

The training process of the Faster-RCNN model is plotted in Fig. 4.

The training process of the Faster-RCNN model.

Figure 4: The training process of the Faster-RCNN model.

For the Faster-RCNN model trained to identify the readings in the effective reading area, the effective reading area is firstly processed in grayscale, and then the brightness is adjusted, which can solve the problem that some images are too bright or too dark, and reduce the complexity of identifying the readings in the effective reading area. Secondly, LabelImg software is also used to label the numbers in the area, generate an xml format file, and convert it into a TFRecord format file. Finally, the model is trained to obtain the desired Faster-RCNN model.

To train the Faster-RCNN model for identifying readings within the effective reading area, the following steps are followed. Firstly, the effective reading area is processed in grayscale. Besides, the brightness is adjusted, which can solve the problem that some images are too bright or too dark and reduce the complexity of identifying the readings in the effective reading area. Second, LabelImg software is also utilized to label the numbers in the area, generating an xml format file. This file is then converted into a TFRecord format file, suitable for training the model. Lastly, the model is trained to obtain the desired Faster-RCNN model (Xiong et al., 2021; Albahli et al., 2021; Li et al., 2020). The specific training steps for the two models are shown in Fig. 5.

The training steps for the models.

Figure 5: The training steps for the models.

The specific training steps for the two models.

Analysis of measurement data

The Faster-RCNN and the SSD models are employed to gather electricity metering information from both the total meter and sub-meters at predefined intervals. The collected data is then transmitted to the master station, where it is automatically copied and aggregated. Pre-processing techniques are applied to the gathered measurement data. Subsequently, an estimation model and solution method are established through the pre-processed data. The estimation accuracy is evaluated to accomplish the goal of online verification and assisting in business decision-making (Cui et al., 2021; Kalinov & Rimlyand, 2020). The specific process is illustrated in Fig. 6.

The process of scheme.

Figure 6: The process of scheme.

The Faster-RCNN model and the SSD model are used to collect the electricity metering information of the total meter and sub-meters according to the pre-set time, and after the collection and summary, the user’s electricity consumption information is transmitted to the master station, and the electricity consumption data is automatically copied and collected. The obtained measurement data is preprocessed, and then the estimation model and solution method are established through the preprocessed data. The estimation accuracy is checked, and finally, the purpose of online verification and business assistant decision-making is realized.

The improved fuzzy C-means clustering technology pre-processes the time series of original measurement data. This pre-processing step involves excluding the measurement data under light load conditions, which serves as an input variable for the online remote verification model (Zhao et al., 2021). The specific steps for pre-processing time series of the original measurement data based on the improved fuzzy C-means clustering are outlined below:

Step 1: The weighting index w and the iteration termination parameter ∑ are determined according to the ratio of the increment of the electricity meter reading and the range of the electricity meter, ensuring that the difference is less than 0.1.

Step 2: The number of clusters and cluster centers are determined. The measurement data samples are sequentially selected and substituted into the hill-climbing function, as expressed in Eq. (1): M ˆ 1 x r = j = 1 n e α x j x r 2

In Eq. (1), xj refers to the jth sample; n indicates the total number of samples; xr means the r-th sample, which is the cluster center. M ˆ 1 x r signifies the hill-climbing function when the r-th sample is taken as the cluster center, α stands for a positive number. If x r = x 1 , where x 1 is a sample in the sample set, get the first hill-climbing function to get the maximum value M ˆ m a x 1 = max M ˆ 1 x 1 , x 1 can be taken as the first cluster center (Kumar, Sharma & Sharma, 2021). When searching for other cluster centers, to eliminate the influence of x 1 , the revised t-th hill-climbing function can be written as Eq. (2): M ˆ t x r = M ˆ t 1 x r M ˆ m a x t 1 j = 1 n e β x j x t 1 2

In Eq. (2), M ˆ t x r means the updated hill-climbing function; M ˆ t 1 x r refers to the hill-climbing function of the previous step; M ˆ m a x t 1 represents the maximum value of the hill-climbing function of the previous step. The process of identifying cluster centers continues until the convergence condition M ˆ m a x t / M ˆ m a x 1 δ is satisfied, where δ is the convergence coefficient of the classification, typically set to 0.001 (Nasir, Samsudin & Shabri, 2020). The total number of iterative clustering before convergence is determined as the classification number c in fuzzy clustering. At each clustering, the sample with the largest value of the hill-climbing function is denoted as x t .

Step 3: The membership matrix is calculated using Eq. (3). x r = j = 1 n u r j w x j j = 1 n u r j w 1 r c u r j = k = 1 c x j x r x j x k 2 / w 1 1 1 r c , 1 j n

In Eq. (3), urj represents the membership degree of the jth sample with respect to the r-th cluster center. The weighting index w signifies determines the fuzziness of the final clustering effect and has a value range of [1, + ∞). For this method, a value of 1.8 is chosen to achieve the desired clustering outcome.

Step 4: The objective function is calculated as the weighted sum of squares of distances from each sample to all cluster centers, given by Eq. (4). J w U , V = j = 1 n r = 1 c u r j w x j x r 2

Equation (4) serves as the iterative equation. The clustering process terminates when the two iteration errors ΔJw(UV) before and after the objective function are less than the termination parameter ∑. By eliminating the light load condition from the time series of the original measurement data, the data pre-processing stage is completed.

After the data is pre-processed, an equation is established for solving the meter error. The remaining measurement data is arranged in chronological order to create the total and sub-meter matrices, respectively, which serves as input samples for the error solution of the LMRLSA (Yadav, Mohan & Yadav, 2020). Based on the law of energy conservation, the reading of the total meter in any measurement period is equal to the sum of the true values of each user sub-meter plus the sum of the line losses in this period (Bohnker & Breuer, 2020). For the t-th measurement period, the relationship between the total meter and the sub-meter readings can be expressed as Eq. (5). y 0 t = i = 1 m z i t 1 + ξ i t + w loss t

In Eq. (5), y0(t) refers to the reading increment of the total meter in the measurement period; zi(t) and ξi(t) indicate the reading increment and error of the ith sub-meter in the measurement period; z i t 1 + ξ i t means the actual power value consumed by the ith sub-meter in the measurement period; wloss(t) stands for the power consumption of all lines in the measurement period; m signifies the total number of all sub-meters. The Levenberg–Marquardt (LM) algorithm optimizes the multi-layer feedforward neural network model to calculate the line loss (Mulashani et al., 2021). Then, 1 + ξi(t) in Eq. (5) is represented by θi(t), and a set of measurement data series is formed by each unit measurement period zi(t) and the solution obtained y(t). Equation (6) is derived by expressing Eq. (5) in matrix form. y t = Z t Θ ˆ t ζ ˆ t = Θ ˆ t I

In Eq. (6), Z t = z 1 t , z 2 t , , z m t represents the measurement data matrix of each user’s sub-meter in t th periods; Θ ˆ t = θ 1 t , θ 2 t , , θ m t T refers to the error parameter matrix to be estimated by each user’s sub-meter in the t-th measurement period; θi(t) denotes the operating error parameter of the ith meter to be found in the t-th measurement period. ζ ˆ t = ζ ˆ 1 t , ζ ˆ 2 t , , ζ ˆ m t T is the remote estimated value of the operating error of the electricity meter in the tth measurement period. Once the equation is established, the operation error of the electricity meter is estimated through the LMRLSA. The specific steps are as follows:

Step 1: The initial value Θ ˆ 0 , 0 and P 0 , 0 = α I are selected, where each element of Θ ˆ 0 , 0 is 0 or a small number, P 0 , 0 = α I , where α is a sufficiently large positive number, typically ranging from 105 to 1010, and I is the unit matrix. L represents the memory length, and T refers to the latest measurement period. Compare T and L. If T ≤L, proceed to Step 2; if T>L, proceed to Step 3.

Step 2: When T ≤L, the ordinary Recursive Least Squares algorithm is used to obtain the initial parameter estimate Θ ˆ 0 , L 1 , the corresponding P(0, L − 1) and the gain matrix K(0, L − 1), and use it as the initial quantity of the LMRLSA. The specific process is as follows:

a. After the previous t measurements, the matrix equation can be obtained as illustrated in Eq. (7). Θ ˆ t = Z t T Z t 1 Z t T Y t

In Eq. (7), Z t = z 1 1 z 2 1 z m 1 z 1 2 z 2 2 z m 2 z 1 t z 2 t z m t is the sub-meter matrix, and Y t = y 1 y 2 y t is the total meter matrix. It is assumed that Θ ˆ t 1 has been calculated in the (t − 1)st recursion. Before the t-th recursion, the time series of the new total and sub-meter measurement data collected are y t and Z t = z 1 t , z 2 t , , z m t . All the measurement data of each user sub-meter measured in the previous t times are represented by Zt, and all the measurement data of the total meter measured in the previous t times are represented by Yt. The previous t − 1 measurements are represented by Zt−1 and Yt−1, respectively. Based on the measurement data collected in the previous (t − 1)st measurement and the previous t-th measurement, the estimation result of the meter error parameter is given by Eq. (8). Θ ˆ t 1 = Z t 1 T Z t 1 1 Z t 1 T Y t 1 Θ ˆ t = Z t T Z t 1 Z t T Y t

b. The inverse P(t) of the covariance matrix of the measurement data is calculated according to Eq. (9). P t = Z t T Z t 1 = Z t 1 T , Z T t Z t 1 Z t 1 = Z t 1 T Z t 1 + Z T t Z t 1 = P 1 t 1 + Z T t Z t 1 = I P t 1 Z T t Z t 1 + Z t P t 1 Z T t P t 1

c. The estimated value of the error parameter of each user’s sub-meter is calculated as Θ ˆ t using Eq. (10). Θ ˆ t = Z t T Z t 1 Z t T Y t = P t Z t 1 T , Z T t Y t 1 y t = P t Z t 1 T Y t 1 + Z T t y t = P t P 1 t 1 Θ ˆ t 1 + Z T t y t = P t P 1 t Z T t Z t Θ ˆ t 1 + Z T t y t = Θ ˆ t 1 + P t Z T t y t Z t Θ ˆ t 1

d. The defined gain matrix is expressed as K(t): K t = P t 1 Z T t 1 + Z t P t 1 Z T t

e. Combining Eqs. (8) with (11), when T ≤L, the error check of the smart meter is given by Eq. (12). P t = P t 1 I K t 1 Z t Θ ˆ t = Θ ˆ t 1 + K t y t Z t Θ ˆ t 1

Step 3: When T>L, the specific solution process of the LMRLSA module is as follows:

a. With the addition of a new set of data from the latest measurement period T, the calculation process of the inverse matrix P(T − LT) of the covariance of the measurement data is performed based on the measurement data of the L +1 group of smart meters from the (T-L)th to the T-th and the recursive calculation results of the previous T-1 times: P T L , T = Z T L , T T Z T L , T 1 = Z T L , T 1 T Z T L , T 1 + Z T T Z T 1 = P 1 T L , T 1 + Z T T Z T 1 = I P T L , T 1 Z T T Z T 1 + Z T P T L , T 1 Z T T P T L , T 1 = I K T L , T Z T P T L , T 1

In Eq. (13), the sub-meter reading matrix from (T-L)th to T times is demonstrated in Eq. (14): Z T L , T = Z T L , Z T L + 1 , , Z T T = z 1 T L z 2 T L z m T L z 1 T L + 1 z 2 T L + 1 z m T L + 1 z 1 T z 2 T z m T

b. K(T − LT) is defined as the gain matrix, as illustrated in Eq. (15): K T L , T = P T L , T 1 Z T T 1 + Z T P T L , T 1 Z T T

c. The estimated value of the error parameter of the meter is calculated as follows: Θ ˆ T L , T = θ 1 , θ 2 , , θ m T = Z T L , T T Z T L , T 1 Z T L , T T Y T L , T = P T L , T Z T L , T 1 T Y T L , T 1 + Z T T y T = P T L , T P T L , T 1 1 Θ ˆ T L , T 1 + Z T T y T = Θ ˆ T L , T 1 + K T L , T × y T Z T Θ ˆ T L , T 1

Among them, the total meter reading matrix is expressed as Y(T − LT) = [y(T − L), y(T − L + 1), …, y(T)]T.

d. According to the above analysis, when a new set of T-th measurement data is added, the solution of the LMRLSA reads: K T L , T = P T L , T 1 Z T T 1 + Z T P T L , T 1 Z T T P T L , T = I K T L , T Z T P T L , T 1 Θ ˆ T L , T = Θ ˆ T L , T 1 + K T L , T × y T Z T Θ ˆ T L , T 1

e. To maintain a constant memory length L unchanged, the measurement data from a group of smart meters at time T is added, while the measurement data from time T-L needs to be removed. Based on the measurement data from the (T − L + 1)th to the L sets of T-th and the calculation result obtained by Eq. (17), the LMRLSA can be obtained by excluding the measurement data from time T-L. The solution of the LMRLSA is defined as Eq. (18): K T L + 1 , T = P T L , T Z T T L 1 Z T L P T L , T Z T T L P T L + 1 , T = I + K T L + 1 , T Z T L P T L , T Θ ˆ T L + 1 , T = Θ ˆ T L , T K T L + 1 , T × y T L Z T L Θ ˆ T L , T

Step 4: Based on the actual data, the calculation example analysis is performed to conduct online verification and analysis of the estimation error of the electricity meter. This analysis includes the following contents:

a. The ratio between the total number of electricity meters and the sample size is determined.

b. Stratification is carried out according to the electricity consumption level of each user, thereby determining the number of smart meter samples drawn from each layer.

c. The sum of the number of smart meters drawn from each layer should be equal to the sample size.

d. For numbers that cannot be rounded, their approximate values are determined.

e. After extracting the actual values of the error parameters of the smart meter through on-site stratified sampling, the Mean Absolute Percent Error (MAPE) and the Root Mean Square Error (RMSE) are used as assessment criteria. In the process of remotely verifying the error of smart meters, a lower MAPE value and RMSE indicate a higher accuracy of the estimated error parameters (Lv & Qiao, 2020). If the total number of on-site samples is denoted as p, the MAPE and RMSE can be calculated using the following Eqs. (19) and (20): M A P E = 1 p i = 1 p θ ˆ i θ i θ i × 100 % R M S E = 1 p i = 1 p θ ˆ i θ i 2

In Eqs. (19) and (20), θi means the actual error of the meter in the detected area, and θ ˆ i refers to the estimated value of θi.

Subsequently, a hierarchical processing mechanism for abnormal situations in low-voltage areas can be developed. By incorporating the obtained results of the operation error of the smart meter, factors such as the magnitude of the operation error, its proportion within the batch, the underlying cause of the deviation, and the severity of the abnormality can be analyzed. This analysis enables the identification and replacement of faulty smart meters, as well as the provision of services such as online detection of electricity theft and electric leakage (Feizi, 2020; Wan et al., 2021).

Experimental Results and Analysis

Verification of image recognition effect

The TensorFlow Object Detection API provides the corresponding eval.py script specifically for model verification. Executing the script can verify the test set and generate the corresponding log file. Then, the log file is accessed through TensorBoard, allowing for the visualization of the model’s performance. Figures 7 and 8 display the graphical representation of the verification results, demonstrating the effectiveness of the model evaluation process.

The SSD model detects the effective reading area of the electricity meter.

Figure 7: The SSD model detects the effective reading area of the electricity meter.

The TensorFlow Object Detection API provides the corresponding eval. py script to verify the trained model. Running the script can verify the test set and generate the corresponding log file. Then, the log file is read through TensorBoard and the verification effect of the model is displayed.
The Faster-RCNN model identifies the specific readings of the electricity meter.

Figure 8: The Faster-RCNN model identifies the specific readings of the electricity meter.

The figure shows the specific display effect.

The proposed step-by-step image recognition method is verified using a dedicated test dataset. The recognition accuracy is calculated based on the recognition results. The specific verification scheme is portrayed in Fig. 9.

Verification scheme.

Figure 9: Verification scheme.

The proposed step-by-step image recognition method is verified using the test data set, and the accuracy of recognition is calculated according to the recognition results.

The verification scheme uses the Remote Procedure Call (RPC) image recognition interface implemented within the system for verification. Then, the RPC interface facilitates the invocation of the recognition service on the image recognition terminal, enabling the retrieval of recognition results. These results are then compared against the correct readings to assess the accuracy of the recognition system. A total of 528 electric meter images are used for testing. After conducting thorough testing and verification, the recognition accuracy is 98.49% when using the sample set of 528 images. Additionally, when using sample sets of 558 and 628 electric meter images, the recognition accuracies achieved 98.55% and 98.65%. Therefore, it is concluded that the proposed step-by-step image recognition method exhibits high effectiveness and accuracy in the recognition of electric meter readings.

Validation of remote verification methods

To verify the effectiveness of the proposed method, this experiment utilizes real electricity meter measurement data collected from a city in China from February to May 2021, with a data collection frequency of 15min. The research area contains a total of 1 meter and 195 user sub-meters. Data pre-processing is conducted to filter measurements taken during no-load or light-load data conditions, resulting in the acquisition of distinct measurement data sets for analysis. The memory length L is assigned a value of 1,000. The resulting recursive estimation curve of the operation error of the smart meter, obtained through the proposed method, is represented in Fig. 10.

The recursive estimation curve of the operation error of the electricity meter.

Figure 10: The recursive estimation curve of the operation error of the electricity meter.

There are 5 m in the research area with extremely large errors, and the estimated error parameters of the remaining meters are all within the allowable range of normal errors.

Figure 10 illustrates that within the research area, there are 5 m with substantial errors, while the estimated error parameters of the remaining meters fall within the allowable range of normal errors. By considering data from a given measurement period, the estimated error value of the electricity meter for that specific period can be obtained, as detailed in Fig. 11.

The estimation error value of the electricity meter in a certain period.

Figure 11: The estimation error value of the electricity meter in a certain period.

Most of the error rates of the user sub-meters in the selected power distribution area are within the allowable range of normal errors. User sub-meters No. 48, 65, 112, 135, and 181 have errors out of tolerance.

Figure 11 indicates that most of the error rates among the selected user sub-meters in the designated power distribution area are within the allowable range of normal errors. However, user sub-meters No. 48, 65, 112, 135, and 181 exhibit errors that surpass the tolerance threshold. The error rates of the No. 48, 65, 112, 135, and 181 m are 4.2885%, 6.9741%, −14.1072%, 3.9381%, and 4.5189%, respectively. The user profile information obtained by the user information collection system enables accurate identification of the corresponding electricity customer information associated with the out-of-tolerance smart meters. A further collection of smart meter data allows for a detailed analysis and verification of the specific reasons behind the observed errors. For example, a positive error indicates potential aging and damage to the electricity meter, while a negative error suggests artificial tampering or electricity theft. Figure 11 reveals a prevalence of these two types of errors, indicating their common occurrence. Over time, internal components of the electricity meter may experience wear or decay, leading to increased measurement errors and deviations between meter readings and actual energy consumption. Moreover, burn-in effects can contribute to a decline in overall meter accuracy by approximately 5% to 10%, particularly under prolonged usage and high loads. Regular maintenance and calibration procedures are thus crucial for ensuring accuracy and reliability.

Based on the operational characteristics of the research area, an analysis is conducted to determine the optimal value range of the memory length L. The value of L in the proposed method is influenced by the frequency of the measurement data collected by the electricity meter in the area. Figure 12 illustrates the estimation error values of the electricity meter for different L values.

The estimation error value of the electricity meter with different memory length.

Figure 12: The estimation error value of the electricity meter with different memory length.

When L = 100, the estimation error value of a normal smart meter seriously deviates from its actual error value, because the number of recursive estimation equations is in an underdetermined state when it is less than the number of error parameters to be estimated. The results cannot be applied. When L = 400, the number of measurements is greater than the number of error parameters to be estimated, and the estimation error value begin to converge. However, the estimation error value of some normal smart meters are still in the out of tolerance range, and the estimation effect is not ideal. When L = 1, 000, the estimation error value of each electricity meter is close to a certain value, and a more accurate estimation of the error parameters of the smart meter is obtained, and the estimation effect is ideal. When the value of L is large, although the error can also be estimated parameters, it takes a long time and reduces the efficiency of online analysis. Therefore, based on the actual working conditions of the research area, to ensure the accuracy of the estimated value and the real-time performance of the solution analysis, the recommended value of L ranges from 600 to 1,200.

Figure 12 demonstrates the impact of different values of L on the estimation error of smart meters. It is observed that when L is set to 100, the estimation error significantly deviates from the actual error value of a normal smart meter. This discrepancy arises due to an insufficient number of recursive estimation equations, resulting in an underdetermined state in relation to the number of error parameters to be estimated. Consequently, the results cannot be applied. When L is increased to 400, the number of measurements surpasses the number of error parameters to be estimated, leading to convergence in the estimation error values. However, some normal smart meters still exhibit estimation error values that fall outside the acceptable tolerance range, indicating room for improvement in the estimation effect. By setting L to 1000, the estimation error values of each electricity meter approach a specific value, resulting in a more accurate estimation of the error parameters of the smart meter. This yields an ideal estimation effect. Nonetheless, when L is excessively large, although error parameters can still be estimated, it prolongs the analysis process and reduces the efficiency of online analysis. Therefore, considering the actual working conditions of the research area and aiming to ensure both accurate estimation results and real-time performance of the solution analysis, it is recommended to set the value of L within the range of 600 to 1,200.

In this research, the line loss is considered in the calibration of the electricity meter. Thus, significant calculation errors in the line loss can also impact the estimation result of the operation error of the electricity meter. Figure 13 provides a comparison of the estimation error value of each electricity meter under different calculation error rates of the line loss, namely 1%, 5%, 8%, and 10%.

The estimation error value of electricity meters under line losses of different errors.

Figure 13: The estimation error value of electricity meters under line losses of different errors.

When the error of the line loss calculation result is within 5%, it has little effect on finding the out-of-tolerance electricity meter in the area, and the out-of-tolerance electricity meter can be accurately found, and the effect is ideal. when the error of the line loss calculation result is about 8%, although the out-of-tolerance meter can be found, the estimation error of the normal electricity meter is higher than its actual error value. There is a situation of wrong detection, and the estimation effect is not good. When the error of the line loss calculation result is more than 10%, the obtained out-of-tolerance meter has the situation of missed detection and wrong detection, and the estimation effect is poor.

Figure 13 shows that when the error in calculating the line loss is below 5%, it has minimal impact on identifying the out-of-tolerance electricity meter in the area. Accurate detection of out-of-tolerance meters is achieved, yielding satisfactory results. However, when the error in line loss calculation approaches 8%, exceeding their actual error values. This leads to instances of incorrect detection, indicating a need for improvement in estimation accuracy. Moreover, with line loss calculation errors exceeding 10%, there are cases of missed detection and false detection of out-of-tolerance meters, resulting in a poor estimation effect. The above analysis manifests the importance of accurate line loss to minimize its influence on the estimation of operating errors in electricity meters. The acceptable range of error is between 1% and 10%, and current technical methods necessitate a line loss calculation accuracy of less than 5%.

Data pre-processing is required to exclude data under light load conditions. In the analysis of the light load condition, the proposed algorithm is used to estimate the operation error of the smart meter using the measurement data obtained through clustering. The estimation results of the performance of the algorithm under light load conditions are manifested in Fig. 14.

Estimation error value of electricity meter without excluding light load condition.

Figure 14: Estimation error value of electricity meter without excluding light load condition.

When the measurement data under light load is used to remotely estimate the operating error of the electricity meter, it is impossible to determine the out-of-tolerance meter, and most of the estimation error of the electricity meter belong to the out-of-tolerance range.

Figure 14 illustrates the challenges encountered when estimating the operating error of electricity meters using measurement data under light load conditions. In such scenarios, it becomes difficult to accurately identify out-of-tolerance meters and a significant portion of the estimation error of the electricity meter fall within the out-of-tolerance range. This phenomenon can be attributed to two primary factors. Firstly, the irregular pulse generated by smart meters under light load conditions can cause creeping, further complicating the estimation process. Secondly, the increased proportion of excitation loss and iron loss in the current transformer (CT) at light load affects the error characteristic of the CT, causing it to enter the nonlinear region. Consequently, there is no clear relationship between the error and the load, making accurate error compensation challenging. To ensure the accuracy of the estimation error for each user’s smart meter and avoid over-checking, it is crucial to remove measurement data collected under light load conditions during the data pre-processing stage.

Conclusion

The increasing scale of China’s power grid necessitates the development of efficient and accurate methods for verifying electricity meters. The purpose is to simplify the meter verification method and enhance work efficiency without compromising calibration accuracy. An integrated approach is proposed to achieve this objective. Firstly, the automatic meter reading is realized through the Faster-RCNN and the SSD models, enabling the collection of metering information that is aggregated and transmitted to the master station. Secondly, the master station pre-processes the original measurement data, excluding data obtained under light load conditions. Thirdly, an estimation error model and solution equation of the electricity meter are established based on the pre-processed data. The operation error of the electricity meter is estimated, and the LMRLSA algorithm checks the accuracy of the estimation. Business assistant decision-making is then conducted based on the remote verification results. Furthermore, the accuracy of the image recognition system, employing the proposed Faster-RCNN and SSD models, is evaluated by testing the image recognition effectiveness. Test results show recognition accuracies of 98.49%, 98.55%, and 98.65% when using 528, 558, and 628 electric meter images, respectively. Through remote verification testing, it is demonstrated that the proposed algorithm effectively mitigates the influence of outdated measurement data on error parameter estimation, improves the accuracy of the error parameter estimation, and enables real-time error estimation by adjusting the memory length. The recursive estimation curve facilitates online monitoring of electricity theft or leakage. Moreover, by analyzing the influence of parameters on error results, it is revealed that a memory length ranging from 600 to 1,200 and a line loss error of less than 5% yield the most suitable accuracy for electricity meter error estimation. It is recommended to remove measurement data collected under light load conditions to prevent over-checking. However, due to limited resources, the current solution requires further development in the backend to enhance data operations. Future improvements will focus on enhancing the operation experience. This research holds significant reference value for achieving intelligent remote online meter reading, verification, and management of electricity meters.

Supplemental Information

Raw data

VSDX files must be opened using Visio software, which is a drawing software. OPJ files must be opened using Origin software, which can automatically generate statistical charts from the data. Therefore, after opening the OPJ file using Origin software, we can see the data we have generated for the article.

The network structure of the Faster-RCNN model is shown in Fig. 1; The network structure of the SSD model is exhibited in Fig. 2; In the electricity meter reading recognition, the specific training process of two models on the SSD model is mainly defined, as displayed in Fig. 3; The training process of the Faster-RCNN model is outlined in Fig. 4; The specific training steps for the abovetwo models are presented in Fig. 5; The specific process of measurement data analysis through the Faster-RCNN model and SSD model is expressed in Fig. 6; The specific display effect of the effective reading area of the electricity meter tested by the SSD model is demonstrated in Fig. 7; The specific display effect of the effective reading area of the electricity meter tested by the Faster-RCNN model is suggested in Fig. 8; The proposed step-by-step image recognition method is verified using the test data set, and the recognition accuracy is calculated according to the recognition results. The specific verification scheme is revealed in Fig. 9; The recursive estimation curve of the operation error of the smart meter solved by the remote verification method is denoted in Fig. 10; Taking any data in a measurement period, the estimated error value of the electricity meter in this period can be obtained, as indicated in Fig. 11; The estimation error value of the electricity meter with different memory length values is illustrated in Fig. 12; When the calculation errors of the line loss are 1%, 5%, 8%, and 10%, respectively, the comparison of the estimation error value of each electricity meter is portrayed in Fig. 13; The following analysis is made for the light load condition. Based on the measurement data obtained by clustering under the light load condition, the proposed algorithm is used to estimate the operation error of the smart meter. The results are shown in Fig. 14.

DOI: 10.7717/peerj-cs.1581/supp-1

Calculation code

Specific code for measuring data analysis

DOI: 10.7717/peerj-cs.1581/supp-2
  Visitors   Views   Downloads