Data feature analysis method and system for intelligent electric meter

Through the daily electricity consumption data analysis of smart electricity meters, the user's electricity consumption stability characteristic value is calculated and the European distance is improved. Combined with the DTW and DBSCAN algorithms, the clustering deviation problem of traditional electricity meters when the user's electricity consumption behavior changes is solved, and more accurate electricity consumption behavior analysis and abnormal detection are achieved.

CN120561631AActive Publication Date: 2025-08-29YOONO ENERGY TECH (JIANGSU) CO LTD

Patent Information

Application Number
CN202511066356.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2025-08-29
Estimated Expiration
2045-07-31

AI Technical Summary

Technical Problem

When analyzing users' electricity consumption behavior, traditional electricity meters ignore changes in users' daily electricity consumption, resulting in clustering deviations and affecting the accuracy of the analysis results.

Method used

By collecting daily electricity consumption data of smart electricity meters, calculating the stability characteristic value of user electricity consumption changes, quantifying the similarity using the DTW algorithm, and improving the European distance calculation method, combining the DBSCAN clustering algorithm to separate users with unstable electricity consumption behavior.

Benefits of technology

It improves the accuracy of electricity consumption behavior analysis and the reliability of abnormal detection, accurately separates users with unstable electricity consumption behavior, and avoids interference with normal user clustering results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120561631A_ABST
    Figure CN120561631A_ABST
Patent Text Reader

Abstract

The invention discloses a data feature analysis method and system for an intelligent electric meter, and relates to the technical field of data processing analysis, and the method comprises the steps: collecting daily electricity consumption data of all electricity users in a target region in a preset time period, and carrying out the preprocessing, and obtaining a corresponding daily electricity consumption time sequence and a daily electricity consumption curve; calculating the similarity between the adjacent daily electricity consumption curves of each user, and obtaining the stability characteristic value of the electricity consumption change of the user; calculating an optimal Euclidean distance between the daily electricity consumption time sequences of different users in combination with the stability characteristic values of the electricity consumption changes of the users; clustering the users in the target area based on the optimal Euclidean distance; analyzing the power consumption behavior of the user based on the clustering result; by measuring the stability of the power consumption behavior of the user, the problem of clustering deviation caused by neglecting time sequence fluctuation in a traditional method is solved, and the clustering accuracy is improved, so that the precision of power consumption behavior analysis and the reliability of anomaly detection are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing and analysis, and in particular to a data feature analysis method and system for a smart meter. Background Art

[0002] With the global energy transition and the accelerated development of smart grids, the deployment of electricity meters, a key terminal device connecting electricity users to the grid, has seen explosive growth. Furthermore, with the continuous development of the power industry and the advancement of smart grids, the performance and functionality requirements for electricity meters are becoming increasingly stringent. Compared to traditional meters, which only provide periodic, cumulative electricity usage data, smart meters offer powerful data acquisition, storage, and communication capabilities. They can continuously and densely record multi-dimensional time-series data, including active power, reactive power, voltage, current, power factor, and frequency, along with associated timestamps and device status information such as switch status and fault alarms, at a frequency of minutes or even seconds. This creates a massive, high-dimensional, and dynamically updated dataset of user electricity usage behavior. By analyzing smart meter data corresponding to electricity users in a target area, it is possible to effectively monitor user electricity usage within the target area, providing technical support for the advancement of smart grids.

[0003] Traditional electricity meter monitoring mainly focuses on measuring electrical parameters such as current, voltage, and power. When analyzing user electricity usage behavior, existing technologies use clustering algorithms based on different users' daily electricity consumption to cluster users with similar electricity usage characteristics into one category, so as to analyze user electricity usage characteristics and detect electricity anomalies. However, this technology ignores the changes in users' daily electricity usage, which will affect the subsequent clustering and the process and results of user electricity usage behavior analysis. Summary of the Invention

[0004] To effectively separate users with unstable electricity usage data when their daily electricity usage behavior changes, and to address the clustering bias problem caused by traditional methods that ignore time series fluctuations, the present invention provides a data feature analysis method and system for smart meters. The technical solution is as follows: In a first aspect, the present invention provides a data feature analysis method for a smart meter, comprising the following steps: collecting daily electricity consumption data of all electricity users in a target area within a preset time period and preprocessing the data to obtain corresponding daily electricity consumption time series and daily electricity consumption curves; calculating the similarity between adjacent daily electricity consumption curves of each user to obtain a stability characteristic value of the user's electricity consumption changes; calculating the optimal Euclidean distance between the daily electricity consumption time series of different users based on the stability characteristic value of the user's electricity consumption changes; clustering the users in the target area based on the optimal Euclidean distance; and analyzing the users' electricity consumption behavior based on the clustering results. The calculation process of the optimal Euclidean distance is as follows: using the standard Euclidean distance calculation formula, the basic Euclidean distance of the corresponding daily electricity consumption time series between two users in the target area is calculated; based on the similarity between the users' adjacent daily electricity consumption curves, the stability characteristic value of each user is obtained; the minimum value of the stability characteristic values ​​of the two users is negatively normalized and multiplied by the corresponding basic Euclidean distance as the optimal Euclidean distance between the corresponding two users.

[0005] Preferably, the periodic interval and time period for collecting data are preset according to the actual application scenario, all electricity users in the target area are numbered, and the smart meter data corresponding to all electricity users in the target area are periodically collected to obtain the daily electricity consumption data of the users within the preset time period; the collected electricity consumption data are aligned according to the timestamp of the data collection period and normalized to obtain the daily electricity consumption time series of each user, and the normalized daily electricity consumption data are plotted into curves that change with time to obtain the daily electricity consumption curves of all electricity users within the preset time period.

[0006] Preferably, the DTW algorithm is used to match the data points on two adjacent daily electricity consumption curves, obtain the number of matching point pairs on the two curves and the Euclidean distance between the matching point pairs, and calculate the similarity between the two adjacent daily electricity consumption curves of each user. The similarity calculation formula is: Where, Represents a user During the preset period Article and The similarity between the daily electricity consumption curves, represents the number of matching point pairs, Indicates the Article and The daily electricity consumption curve The Euclidean distance between pairs of matching points, Indicates the Article and The daily electricity consumption curve The time difference between the matching point pairs, is the setting parameter for normalizing the time difference, Indicates the Article and The standard deviation of the time difference between all matching point pairs on the daily electricity consumption curve, The value range of is related to the preset time period and is a positive integer, represents the natural exponential function.

[0007] Preferably, the stability characteristic value of the power consumption change of all power users in the target area is calculated by the similarity between the adjacent daily power consumption curves, wherein the user The stability characteristic value of the power consumption change within the preset time period is , the calculation formula is: Where, Represents a user The standard deviation of the similarity between two adjacent daily electricity consumption curves within the preset time period, Represents a user The average similarity between two adjacent daily electricity consumption curves within a preset time period.

[0008] Preferably, the optimal Euclidean distance of the daily power consumption time series between all electricity users in the target area is calculated in sequence; wherein, the user With users The optimal Euclidean distance between the corresponding daily electricity consumption time series is , the calculation formula is: Where, Represents a user With users The basic Euclidean distance between the corresponding daily electricity consumption time series, Indicates user and users The minimum value among the stability eigenvalues.

[0009] Preferably, the DBSCAN clustering algorithm is used to cluster the data points in the user's daily electricity consumption time series, where the minimum number of points is 3.

[0010] Preferably, users belonging to the same cluster are combined and analyzed to extract the electricity usage pattern behaviors of users in the same cluster, and the differences between the electricity usage behaviors of users in different clusters are compared and analyzed; for users who do not belong to any cluster, their electricity usage behaviors are marked as abnormal.

[0011] In a second aspect, the present invention provides a data feature analysis system for a smart meter, which is used to implement the above-mentioned data feature analysis method, including: a processor, a memory and a communication interface, and the processor stores computer program instructions for implementing the data feature analysis method.

[0012] Compared with the prior art, the present invention has the following beneficial effects: The present invention introduces the DTW algorithm to calculate the similarity of two adjacent daily electricity consumption curves of a user, quantifies the volatility of the user's own electricity consumption, and enables the similarity calculation to simultaneously reflect the curve shape and the degree of time misalignment. The time misalignment degree and the curve shape difference are then converted into a computable stability index, which can effectively deal with the misalignment problem of time series and more accurately measure the stability of the user's electricity consumption behavior. At the same time, the stability feature is used to improve the Euclidean distance between users, so that the distance between users with low stability and other users is widened, avoiding clustering of users with low stability and users with high stability into one category, so as to separate users with unstable electricity consumption behavior and avoid their interference with the clustering results of normal users. It can solve the clustering bias problem caused by ignoring time series fluctuations in traditional methods, improve the accuracy of clustering, and thus effectively improve the accuracy of electricity consumption behavior analysis and the reliability of anomaly detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 Flowchart for the implementation of data feature analysis method; Figure 2 This is the structural diagram of the data feature analysis system; DETAILED DESCRIPTION The technical features of the present invention are further described in detail below with reference to the accompanying drawings so that those skilled in the relevant art can understand them.

[0014] A data feature analysis method for smart meters, the implementation process is as follows Figure 1 The specific implementation steps are as follows: Step S1: Collecting and preprocessing the daily power consumption data of all power users in the target area within a preset time period to obtain the corresponding daily power consumption time series and daily power consumption curve; Specifically, according to the actual application scenario, the periodic interval and time period for data collection are preset, all electricity users in the target area are numbered, and the smart meter data corresponding to all electricity users in the target area are periodically collected to obtain the daily electricity consumption data of the users within the preset time period; the collected electricity consumption data are aligned according to the timestamps of the data collection period and normalized to obtain the daily electricity consumption time series of each user; the normalized daily electricity consumption data are plotted as time-varying curves to obtain the daily electricity consumption curves of all electricity users within the preset time period; The data collection interval is usually set to half an hour, and the preset time period is 10 days. After normalizing the daily electricity consumption data of each user, the data is used as the daily electricity consumption time series of the corresponding user in the preset time period, thereby obtaining 10 columns of daily electricity consumption time series and 10 daily electricity consumption curves for each user. The collected electricity consumption data is normalized by obtaining the maximum value of all electricity consumption data, taking the ratio of each electricity consumption data value to the maximum electricity consumption data value as the corresponding normalization value, and thus normalizing the electricity consumption data values ​​of all electricity users in the target area to a range of 0 to 1; The purpose of normalization is to scale electricity consumption data to a uniform scale, eliminate dimensionality effects, and ensure fairness in Euclidean distance calculations. A user's daily electricity consumption curve is a time-series curve that describes the changes in electricity consumption every half hour within a single day and can reflect the user's electricity consumption behavior patterns.

[0015] Step S2: Calculate the similarity between the power consumption curves of each user on adjacent days to obtain the stability characteristic value of the user's power consumption change; In the process of analyzing user electricity usage behavior, existing technical solutions usually only perform cluster analysis on different users based on the user's total electricity consumption or daily average electricity consumption over a period of time, and then perform fault analysis through other power parameters such as voltage, current, and power. However, existing technical solutions cannot perform accurate and effective cluster analysis on changes in users' daily electricity usage behavior, and ignore the impact of the stability of users' electricity usage changes on subsequent clustering and user electricity usage behavior analysis. Therefore, it is necessary to analyze the stability of users' electricity usage to identify and separate users with unstable electricity usage behavior and improve the accuracy of subsequent clustering results.

[0016] Obtain the stability characteristic value of the power consumption changes of all power users in the target area within a preset time period. The specific process is as follows: The DTW algorithm is used to match the data points on two adjacent daily electricity consumption curves, obtain the number of matching point pairs on the two curves and the Euclidean distance between the matching point pairs, and calculate the similarity between the two adjacent daily electricity consumption curves of each user; the DTW algorithm is a dynamic time warping method that can calculate the optimal matching path of two time series curves and solve the time misalignment problem, such as peak electricity consumption offset, thereby quantifying the similarity between the two curves; among them, the user During the preset period Article and The similarity between the daily electricity consumption curves is , the calculation formula is: Where, represents the number of matching point pairs, Indicates the Article and The daily electricity consumption curve The Euclidean distance between pairs of matching points, Indicates the Article and The daily electricity consumption curve The time difference between the matching point pairs, is the setting parameter for normalizing the time difference, Indicates the Article and The standard deviation of the time difference between all matching point pairs on the daily electricity consumption curve, The value range is related to the preset time period and is a positive integer, Represents a natural exponential function. When the preset time period is 10 days, The value range of is 1 to 9; Among them, the Euclidean distance between matching point pairs is weighted by the time difference between them, which can quantify the impact of the degree of time misalignment on the distance between two adjacent daily electricity consumption curves of users. The larger the time difference, the larger the Euclidean distance between the corresponding matching point pairs and the lower the similarity. The larger the value, the more likely the user The more similar the daily electricity consumption characteristics are and the more stable the changes in electricity consumption are; The smaller the value of , the closer the distance between the matching point pairs is and the higher the similarity is. Indicates the time difference between the matching point pairs, which is the time offset of the matching point pairs on the two curves. For example, the difference between 08:00 and 08:30 is 0.5 hours, which is used for weighted Euclidean distance. The larger the value of , the higher the degree of misalignment between the corresponding matching point pairs, the greater the difference between the two adjacent daily electricity consumption curves of the corresponding user, and the more unstable the electricity consumption change of the user; Used to standardize the time difference, which can be selected according to the actual situation. Usually, the definition For two hours, set The value of is 2, and the unit is hour; The larger the value of , the greater the numerical difference in the time difference between all matching point pairs on the two adjacent daily electricity consumption curves of the corresponding user, that is, the lower the similarity between the two daily electricity consumption curves, and the lower the stability of the corresponding user's electricity consumption changes; The natural constant The exponential function with base is negatively correlated with the similarity value, and can map the similarity value to between 0 and 1.

[0017] In addition, the stability characteristic value of the electricity consumption change of all electricity users in the target area is calculated by the similarity between the adjacent daily electricity consumption curves. The higher the stability characteristic value, the more similar the daily electricity consumption curves of the user in the preset period are, the smaller the difference in electricity consumption change is, and the more stable the electricity consumption behavior of the corresponding user is. The stability characteristic value of the power consumption change within the preset time period is , the calculation formula is: Where, Represents a user The standard deviation of the similarity between two adjacent daily electricity consumption curves within the preset time period, Represents a user The average similarity between each two adjacent daily electricity consumption curves within the preset time period; the stability characteristic value is inversely proportional to the stability of the user's electricity consumption behavior. The larger the stability characteristic value, the more severe the corresponding user's electricity consumption fluctuations and the worse the stability of the electricity consumption behavior.

[0018] Step S3: Calculate the optimal Euclidean distance between different users’ daily electricity consumption time series based on the stability characteristic value of the user’s electricity consumption changes; In traditional clustering algorithms, when calculating the Euclidean distance between different user data points, users with different stability tend to be grouped together. Therefore, it is necessary to improve the Euclidean distance calculation formula by utilizing the stability characteristics of user power consumption changes to avoid grouping users with low stability and users with high stability together. This effectively separates users with unstable power consumption behavior, avoids interfering with the clustering results of normal users, and improves clustering accuracy. Specifically, the calculation process of the Euclidean distance in the traditional clustering algorithm is improved to be applicable to the application scenario of the present invention. The calculation process of the optimal Euclidean distance is as follows: The standard Euclidean distance calculation formula is used to calculate the basic Euclidean distance of the daily electricity consumption time series between two users in the target area. The minimum value of the stability characteristic value between the two users is taken and negative correlation normalization is performed on the minimum value, that is, the natural exponential function is used for reverse mapping to obtain the mapping parameter of the stability characteristic. The product of the mapping parameter and the basic Euclidean distance is used as the optimal Euclidean distance between the corresponding two users. The optimal Euclidean distance of the daily electricity consumption time series between all electricity users in the target area is calculated in sequence. Among them, users With users The optimal Euclidean distance between the corresponding daily electricity consumption time series is , and its calculation formula is: Where, Represents a user With users The basic Euclidean distance between the corresponding daily electricity consumption time series is calculated as follows: The total number of data elements representing the electricity consumption of each user, Represents a user The normalized value of the mth data element, Represents a user The normalized value of the mth data element, when the data collection interval is set to half an hour and the preset time period is 10 days, The value of is 480. The basic Euclidean distance can measure the difference in average daily electricity consumption between users in the traditional clustering method; Indicates user and users Taking the minimum value of the stability characteristic values ​​between two users can ensure that the Euclidean distance is amplified when any user is unstable, and widen the Euclidean distance between the daily power consumption time series of users with low stability and other users, which can avoid classifying users with low stability and other users into the same category, thereby preventing users with unstable electricity consumption behavior from interfering with subsequent analysis; represents the natural exponential function.

[0019] Step S4: clustering users in the target area based on the optimal Euclidean distance; Specifically, the DBSCAN clustering algorithm is used to cluster the data points in the user's daily electricity consumption time series based on the corresponding optimal Euclidean distance. This density-based spatial clustering method can automatically identify clusters and exclude noise points, that is, unstable users, without the need to preset the number of clusters; wherein, the minimum number of points is set to 3, and the cluster radius is selected according to the actual situation; since the electricity consumption data is normalized in step S1, the value of the cluster radius should be selected according to the actual situation. Under normal circumstances, when the preset time period is 10 days, the cluster radius can be set to 0.1.

[0020] Step S5: Analyze the user's electricity usage behavior based on the clustering results; Specifically, users belonging to the same cluster are combined for analysis, their electricity usage patterns are extracted, and differences in electricity usage behaviors between users in different clusters are compared and analyzed. For users who do not belong to any cluster, their electricity usage behaviors are marked as abnormal. After further investigation and confirmation of the corresponding user's electricity failure, an alarm is issued. Since it avoids clustering users with low stability and users with high stability into one category, the accuracy of clustering is improved. When subsequently analyzing the data characteristics of electricity users in the target area, the electricity behavior analysis based on the clustering results can be more accurate and effective. Moreover, by separating users with unstable electricity behavior, users with abnormal electricity usage can be quickly located, and rapid and effective anomaly detection and analysis of electricity failures can be achieved, thereby improving the accuracy of electricity behavior analysis and the reliability of anomaly detection.

[0021] The present invention also discloses a data feature analysis system for smart meters, the structure of which is as follows: Figure 2 As shown, the method for implementing the above-mentioned data feature analysis method includes: a processor, a memory and a communication interface. The processor stores computer program instructions for implementing the above-mentioned data feature analysis method, the memory contains several databases for storing data, and the communication interface is used to receive and transmit data.

[0022] The embodiments included in the present invention are merely descriptions of preferred implementation methods of the present invention and are not limited to the precise structures described above and shown in the accompanying drawings. Various modifications and changes can be made without departing from the scope of protection of the present invention. Without departing from the design concept of the present invention, various variations and improvements made to the technical solutions of the present invention by engineers and technicians in this field should fall within the scope of protection of the present invention.

Claims

1. A data feature analysis method for a smart meter, characterized by: Daily electricity consumption data for all electricity users in the target area within a preset time period is collected and preprocessed to obtain corresponding daily electricity consumption time series and daily electricity consumption curves. The similarity between adjacent daily electricity consumption curves of each user is calculated to obtain the stability characteristic value of the user's electricity consumption changes. Combined with the stability characteristic value of the user's electricity consumption changes, the optimal Euclidean distance between the daily electricity consumption time series of different users is calculated. Based on the optimal Euclidean distance, users in the target area are clustered. Based on the clustering results, the users' electricity consumption behavior is analyzed. The calculation process of the optimal Euclidean distance is as follows: using the standard Euclidean distance calculation formula, the basic Euclidean distance of the corresponding daily electricity consumption time series between two users in the target area is calculated; based on the similarity between the users' adjacent daily electricity consumption curves, the stability characteristic value of each user is obtained; the minimum value of the stability characteristic values ​​of the two users is negatively normalized and multiplied by the corresponding basic Euclidean distance as the optimal Euclidean distance between the corresponding two users.

2. The data feature analysis method for a smart meter according to claim 1, characterized in that: The method collects daily electricity consumption data of all electricity users in the target area within a preset time period and pre-processes it to obtain a corresponding daily electricity consumption time series and a daily electricity consumption curve, including: pre-setting the periodic interval and time period for data collection according to the actual application scenario, numbering all electricity users in the target area, periodically collecting smart meter data corresponding to all electricity users in the target area, and obtaining the daily electricity consumption data of the users within the preset time period; aligning the collected electricity consumption data according to the timestamp of the data collection period and normalizing it to obtain a daily electricity consumption time series for each user, and plotting the normalized daily electricity consumption data into curves that change with time to obtain daily electricity consumption curves for all electricity users in the preset time period.

3. The data feature analysis method for a smart meter according to claim 1, characterized in that: The calculation of the similarity between adjacent daily electricity consumption curves of each user includes: using the DTW algorithm to match the data points on two adjacent daily electricity consumption curves, obtaining the number of matching point pairs on the two curves and the Euclidean distance between the matching point pairs, and calculating the similarity between the two adjacent daily electricity consumption curves of each user, wherein the similarity calculation formula is: Where, Represents a user During the preset period Article and The similarity between the daily electricity consumption curves, represents the number of matching point pairs, Indicates the Article and The daily electricity consumption curve The Euclidean distance between pairs of matching points, Indicates the Article and The daily electricity consumption curve The time difference between the matching point pairs, is the setting parameter for normalizing the time difference, Indicates the Article and The standard deviation of the time difference between all matching point pairs on the daily electricity consumption curve, The value range of is related to the preset time period and is a positive integer, represents the natural exponential function.

4. The data feature analysis method for a smart meter according to claim 3, characterized in that: The obtaining of the stability characteristic value of the user's power consumption change includes: calculating the stability characteristic value of the power consumption change of all power users in the target area through the similarity between the adjacent daily power consumption curves, wherein the user The stability characteristic value of the power consumption change within the preset time period is , the calculation formula is: Where, Represents a user The standard deviation of the similarity between two adjacent daily electricity consumption curves within the preset time period, Represents a user The average similarity between two adjacent daily electricity consumption curves within a preset time period.

5. The data feature analysis method for a smart meter according to claim 4, characterized in that: The method of calculating the optimal Euclidean distance between the daily electricity consumption time series of different users in combination with the stability characteristic value of the user's electricity consumption change includes: sequentially calculating the optimal Euclidean distance between the daily electricity consumption time series of all electricity users in the target area; wherein, the user With users The optimal Euclidean distance between the corresponding daily electricity consumption time series is , the calculation formula is: Where, Represents a user With users The basic Euclidean distance between the corresponding daily electricity consumption time series, Indicates user and users The minimum value among the stability eigenvalues.

6. The data feature analysis method for a smart meter according to claim 2, characterized in that: Clustering users in the target area based on the optimal Euclidean distance includes: clustering data points in the user's daily electricity consumption time series using a DBSCAN clustering algorithm, wherein the minimum number of points is 3.

7. The data feature analysis method for a smart meter according to claim 6, characterized in that: The analysis of the user's electricity usage behavior based on the clustering results includes: merging and analyzing users belonging to the same cluster, extracting the electricity usage pattern behavior of users in the same cluster, and comparing and analyzing the differences between the electricity usage behaviors of users in different clusters; for users who do not belong to any cluster, marking their electricity usage behavior as abnormal.

8. A data feature analysis system for a smart meter, characterized by: The method comprises a processor, a memory and a communication interface, wherein the processor stores computer program instructions for implementing the data feature analysis method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Load characteristic evaluation method for access of new energy to power system

    CN108462165A

  • Electricity stealing identification method based on curve similarity and ensemble learning algorithm

    CN113033598A

  • System for Providing Realtiime Trenches Security Guard Service by using Drone in Field

    KR102118345B1

Cited By

  • Control method of low-power-consumption high-precision electric energy meter

    CN120751295A

  • Electricity utilization safety early warning method and system based on big data of electric energy meter

    CN120892976A