A method, system, device and medium for determining abnormality in electric energy measurement
By performing time-series segmentation processing and information gain value calculation on the electric energy measurement data, an abnormality identification model is constructed, which solves the problem of low efficiency caused by the complexity and variability of the electric energy measurement data, and achieves fast and accurate abnormality identification and efficiency improvement.
Patent Information
- Application Number
- CN202311526900.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-15
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-11-15
AI Technical Summary
In the existing technology, the abnormal identification process of electric energy measurement consumes a lot of manpower and material resources. Complex data leads to inaccurate judgments, and the long monitoring time results in low work efficiency. The existing device cannot alarm and analyze the causes of inaccurate measurement, and the complexity and variability of data reduce efficiency.
By segmenting the electric energy measurement data based on time seriality, calculating the information gain value to classify the time series data, building an abnormality discrimination model, generating an electric energy measurement state diagram, automatically outputting abnormal results, reducing the data dimension, reducing the impact of noise, and improving discrimination. efficiency.
It achieves fast and accurate identification of abnormal energy measurement, reduces the problem of low work efficiency, improves data processing efficiency, and can accurately determine the abnormal time period of energy measurement data and feed it back to the staff.
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric energy metering abnormality determination, and in particular to an electric energy metering abnormality determination method, system, equipment and medium. Background Art
[0002] In the past, the means of monitoring abnormal energy metering were single, the troubleshooting technology was not sophisticated, and the problem was not handled in a timely manner. The process of distinguishing abnormal metering involves many factors, the data is complicated, a lot of manpower and material resources are consumed, and there is a risk of inaccurate judgment. How to analyze and organize the collected electricity consumption information based on existing equipment and combine emerging technical means to provide users with more advanced energy services and provide companies with more efficient management means is an urgent problem to be solved. In addition, in the prior art, the energy metering device cannot alarm for abnormal situations and cannot analyze the reasons for inaccurate metering. At the same time, when the energy metering monitoring device in the prior art collects data information, it will transmit all the collected data to the data platform center at the same time. Due to the complexity and variability of many data, it takes a long time for operators to distinguish abnormal metering, which causes unnecessary troubles and reduces work efficiency. Summary of the invention
[0003] Based on the technical problems raised by the above-mentioned background technology, the purpose of the present invention is to provide a method, system, equipment and medium for distinguishing abnormalities in electric energy metering. By means of a method for distinguishing abnormalities in electric energy metering, abnormalities can be distinguished from electric energy metering data, and a method for distinguishing abnormalities in electric energy metering can be integrated into a system, equipment and medium for distinguishing abnormalities in electric energy metering. Through the system, equipment and medium, the metering data is input, and the system automatically outputs the metering abnormality results, thereby solving the problem of low work efficiency caused by the complexity and variability of electric energy metering data, which causes operators to take a long time to distinguish metering abnormalities.
[0004] The present invention is achieved through the following technical solutions:
[0005] A first aspect of the present invention provides a method for determining abnormality in electric energy metering, comprising the following steps:
[0006] Step S1, acquiring electric energy metering data, and segmenting the electric energy metering data based on time series to obtain time series data of electric energy metering;
[0007] Step S2, selecting a subsequence of the time series data, calculating an information gain value of the subsequence, classifying the time series data according to the information gain value, and generating an electric energy metering state diagram;
[0008] Step S3: construct an abnormality discrimination model, and use the abnormality discrimination model to discriminate the electric energy metering state diagram to obtain an abnormal electric energy metering result.
[0009] In the above technical solution, the process of distinguishing abnormality of electric energy metering data will consume a lot of manpower and material resources due to the complexity of data. At the same time, if the acquired electric energy metering data is directly distinguished, there will be a risk of inaccurate judgment. This technical solution processes the electric energy metering data in segments based on time series, thereby reducing the dimension of the electric energy metering data, reducing the influence of noise in the measurement process, and providing accurate, reliable and easy-to-process data for subsequent abnormality judgment.
[0010] In order to solve the problem that the existing methods for distinguishing abnormalities in electric energy metering take a long time to distinguish, this technical solution calculates the information gain value of each subsequence of the time series data and classifies the time series data with the same power characteristics into the same category, so as to facilitate subsequent abnormality distinction of the data with the same power characteristics.
[0011] By building an abnormality identification model to identify abnormalities in the electric energy state diagram of the same electric power feature, the time period when the electric energy metering data is abnormal can be determined and fed back to the power staff through the system, thus solving the problem of low work efficiency caused by the complexity and variability of electric energy metering data, which causes operators to spend a long time in identifying metering abnormalities.
[0012] In an optional embodiment, the electric energy metering data is segmented based on time series to obtain the time series data of electric energy metering, including:
[0013] Step S11, the electric energy metering data includes a one-to-one corresponding time series, a state series and electric power data, and a data compression value is calculated according to the electric power data;
[0014] Step S12, processing the electric energy metering data with the data compression value as the segment interval to obtain a segment sequence;
[0015] Step S13, using the DTW distance function to calculate the similarity between the time series and the segmented sequence, and taking the points in the segmented sequence whose similarity is greater than or equal to a similarity threshold as sequence feature points;
[0016] Step S14: Integrate the sequence feature points, the state sequence corresponding to the sequence feature points, and the power data to generate time series data.
[0017] In an optional embodiment, the electric energy metering data is processed with the data compression value as the segment interval to obtain the segment sequence, which includes:
[0018] Step S121, dividing the time series into segments at equal intervals using the data compression value as the segmentation interval to generate a plurality of sub-time series;
[0019] Step S122, acquiring power data corresponding to the sub-time series, and calculating the power data to obtain a voltage fluctuation value;
[0020] Step S123, connecting the left endpoint value and the right endpoint value of the sub-time series to generate a segmented time series of the sub-time series;
[0021] Step S124: Fit the voltage fluctuation value with the segmented time series to generate a segmented sequence.
[0022] In an optional embodiment, selecting a subsequence of the time series data and calculating the information gain value of the subsequence includes:
[0023] Step S21, dividing the time series data into multiple subsequences using the sequence feature points as segmentation points;
[0024] Step S22, randomly selecting two subsequences from the multiple subsequences, calculating the Euclidean distance of the power data of the two subsequences, and calculating the information gain values of the two subsequences according to the Euclidean distance;
[0025] Step S23, repeating step S22 until the information gain values of any two subsequences in the multiple subsequences are calculated, and finally generating an information gain set.
[0026] In an optional embodiment, randomly selecting two subsequences from the multiple subsequences, calculating the Euclidean distance of the power data of the two subsequences, and calculating the information gain values of the two subsequences according to the Euclidean distance includes:
[0027]
[0028]
[0029] Where D is the Euclidean distance of the power data of the two subsequences; l1 and l2 are the sequence lengths of the two subsequences respectively; t i , t i ′ are the time points of two subsequences respectively; v i , v′ i are two subsequences t i , t′ i The corresponding power data; Im is the information gain value of the two subsequences; S, S′ are two subsequences respectively; S i , S′ i are the sequence fragments of the two subsequences respectively; p i , p i are the information gain probabilities corresponding to the sequence fragments respectively.
[0030] In an optional embodiment, the process of classifying the time series data by using the information gain value includes:
[0031] Step S24, sorting the information gain values from large to small;
[0032] Step S25, setting an information gain threshold, and dividing the sorted information gain set by the information gain threshold to obtain multiple classification sets;
[0033] Step S26: aggregate the same classification set to generate an electric energy metering block, and splice multiple electric energy metering blocks to generate an electric energy metering state diagram.
[0034] In an optional embodiment, constructing an abnormality discrimination model, and using the abnormality discrimination model to discriminate the electric energy metering state diagram, and obtaining the abnormal result of electric energy metering includes:
[0035] Step S31, obtaining historical abnormal energy metering data, and analyzing the current and voltage in the historical abnormal energy metering data;
[0036] Step S32: using the analysis results as a sample set for training and verification to generate measurement anomaly features;
[0037] Step S33, randomly select an electric energy metering block from the electric energy metering state diagram, and extract electric energy data of the electric energy metering block;
[0038] Step S34: Calculate the similarity between the electric energy data and the abnormal measurement feature. If the similarity is greater than the similarity threshold, it is determined that the electric energy measurement state is abnormal, and the abnormal electric energy measurement result is recorded in the state sequence.
[0039] A second aspect of the present invention provides an electric energy metering abnormality determination system, comprising:
[0040] An electric energy metering data processing module, the electric energy metering data module is used to obtain electric energy metering data, and to process the electric energy metering data in sections based on time series to obtain time series data of electric energy metering;
[0041] An electric energy metering state module, the electric energy metering state module is used to select a subsequence of the time series data, calculate the information gain value of the subsequence, classify the time series data according to the information gain value, and generate an electric energy metering state diagram;
[0042] The abnormality discrimination module is used to construct an abnormality discrimination model, and the electric energy metering state diagram is judged by the abnormality discrimination model to obtain an abnormal result of electric energy metering.
[0043] A third aspect of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, an electric energy metering abnormality determination method is implemented.
[0044] A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for determining abnormality in electric energy metering.
[0045] Compared with the prior art, the present invention has the following advantages and beneficial effects:
[0046] 1. Segment the electric energy metering data based on time series, thereby reducing the dimension of the electric energy metering data, reducing the impact of noise in the measurement process, and providing accurate, reliable and easy-to-process data for subsequent abnormality identification;
[0047] 2. By calculating the information gain value of each subsequence of the time series data, the time series data with the same power characteristics are classified into the same category, so as to perform abnormal identification on the data with the same power characteristics in the future, thereby improving the data processing efficiency;
[0048] 3. By constructing an abnormality identification model to identify abnormalities in the electric energy metering status diagram of the same power characteristics, the time period when the electric energy metering data is abnormal can be determined, and the data can be fed back to the power staff through the system, thereby solving the problem of low work efficiency caused by the complexity and variability of electric energy metering data, which causes operators to spend a long time in metering abnormality identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without creative work. In the drawings:
[0050] Figure 1 A schematic diagram of a flow chart of a method for determining abnormality in electric energy metering provided by an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of the structure of an electric energy metering abnormality determination system provided by an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0054] Example 1
[0055] Figure 1 A flow chart of a method for determining abnormality in electric energy metering provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, a method for determining abnormality in electric energy metering includes:
[0056] Step S1, acquiring electric energy metering data, and segmenting the electric energy metering data based on time series to obtain time series data of electric energy metering;
[0057] In an optional embodiment, the electric energy metering data is segmented based on time series to obtain the time series data of electric energy metering, including:
[0058] Step S11, the electric energy metering data includes a one-to-one corresponding time series, a state series and electric power data, and a data compression value is calculated according to the electric power data;
[0059] Step S12, processing the electric energy metering data with the data compression value as the segment interval to obtain a segment sequence;
[0060] Step S13, using the DTW distance function to calculate the similarity between the time series and the segmented sequence, and taking the points in the segmented sequence whose similarity is greater than or equal to a similarity threshold as sequence feature points;
[0061] Step S14: Integrate the sequence feature points, the state sequence corresponding to the sequence feature points, and the power data to generate time series data.
[0062] It should be noted that the electric energy metering data involved in the present invention is a kind of data closely related to time, with high dimension, large scale and complex structure. In the process of distinguishing abnormality of electric energy metering data, it will consume a lot of manpower and material resources due to the complexity of data. At the same time, if the acquired electric energy metering data is directly distinguished, there will be a risk of inaccurate judgment.
[0063] In this regard, the present invention performs segmented processing on the electric energy metering data based on time series, thereby reducing the dimension of the electric energy metering data, reducing the impact of noise in the measurement process, and providing accurate, reliable and easy-to-process data for subsequent abnormality identification.
[0064] Specifically, in the present invention, the data compression value used to divide the time series can be determined by analyzing the voltage curve of the power data, and the time series is divided into equal intervals according to the data compression value to obtain a segmented sequence.
[0065] The DTW distance function is used to calculate the similarity between the time series and the segmented sequence, and the points in the segmented sequence with similarity greater than or equal to the similarity threshold are used as sequence feature points. Sequence feature points are obtained from the segmented sequence, and other unimportant points are discarded, realizing the dimensionality reduction processing of the electric energy metering data, thereby improving the data processing efficiency of subsequent abnormality identification.
[0066] In an optional embodiment, the electric energy metering data is processed with the data compression value as the segment interval to obtain the segment sequence, which includes:
[0067] Step S121, dividing the time series into segments at equal intervals using the data compression value as the segmentation interval to generate a plurality of sub-time series;
[0068] Step S122, acquiring power data corresponding to the sub-time series, and calculating the power data to obtain a voltage fluctuation value;
[0069] Step S123, connecting the left endpoint value and the right endpoint value of the sub-time series to generate a segmented time series of the sub-time series;
[0070] Step S124: Fit the voltage fluctuation value with the segmented time series to generate a segmented sequence.
[0071] It should be noted that the purpose of the present invention is to judge and filter out abnormal data in electric energy metering data, among which the most critical is the voltage data used for judgment, and the voltage data is not stable data, but has certain volatility. If the electric energy metering data is only processed from the time dimension, the trend characteristics of the sequence will be lost, and the volatility characteristics of the voltage curve cannot be effectively fitted. Therefore, in the present invention, the time characteristics of the sub-time series and the volatility characteristics of the power data are considered at the same time, and the segmented time series and voltage fluctuation value of the sub-time series are fitted. The segmented sequence obtained takes into account both the time series and voltage volatility of the power data.
[0072] In this embodiment, the voltage fluctuation value is the slope of the voltage curve in the power data. The slope of the voltage curve is fitted with the slope of the segmented time series generated by connecting the left endpoint value and the right endpoint value of the sub-time series, and then a segmented sequence can be generated. The fitting process can be understood as adjusting the segmented time series through the slope of the voltage curve to make it more consistent with the voltage fluctuation.
[0073] In the segmented sequence, the slope of each segment represents the degree of change in the time period, and the length represents the duration.
[0074] Step S2, selecting a subsequence of the time series data, calculating an information gain value of the subsequence, classifying the time series data according to the information gain value, and generating an electric energy metering state diagram;
[0075] In an optional embodiment, selecting a subsequence of the time series data and calculating the information gain value of the subsequence includes:
[0076] Step S21, dividing the time series data into multiple subsequences using the sequence feature points as segmentation points;
[0077] Step S22, randomly selecting two subsequences from the multiple subsequences, calculating the Euclidean distance of the power data of the two subsequences, and calculating the information gain values of the two subsequences according to the Euclidean distance;
[0078] Step S23, repeating step S22 until the information gain values of any two subsequences in the multiple subsequences are calculated, and finally generating an information gain set.
[0079] It should be noted that the sequence feature point is the best matching point in the time series data. With the sequence feature point as the segmentation point, the time series data can be divided into multiple subsequences for analyzing the characteristics of the power data. The purpose of calculating the Euclidean distance of the power data of two subsequences is to calculate the similarity of the voltage curves between the two subsequences. The information gain value represents the classification characteristics of the power data. The larger the information gain value, the greater the possibility that the two belong to the same type of power data. Therefore, in the present invention, the information gain value of the subsequence is calculated according to the Euclidean distance, and it can be determined whether the two subsequences belong to the same type of power data.
[0080] In an optional embodiment, randomly selecting two subsequences from the multiple subsequences, calculating the Euclidean distance of the power data of the two subsequences, and calculating the information gain values of the two subsequences according to the Euclidean distance includes:
[0081]
[0082]
[0083] Where D is the Euclidean distance of the power data of the two subsequences; l1 and l2 are the sequence lengths of the two subsequences respectively; t i , t′ i are the time points of two subsequences respectively; v i , v′ i are two subsequences t i , t′ i The corresponding power data; Im is the information gain value of the two subsequences; S, S′ are two subsequences respectively; S i, S′ i are the sequence fragments of the two subsequences respectively; p i , p i are the information gain probabilities corresponding to the sequence fragments respectively.
[0084] In an optional embodiment, the process of classifying the time series data by using the information gain value includes:
[0085] Step S24, sorting the information gain values from large to small;
[0086] Step S25, setting an information gain threshold, and dividing the sorted information gain set by the information gain threshold to obtain multiple classification sets;
[0087] Step S26: aggregate the same classification set to generate an electric energy metering block, and splice multiple electric energy metering blocks to generate an electric energy metering state diagram.
[0088] Step S3: construct an abnormality discrimination model, and use the abnormality discrimination model to discriminate the electric energy metering state diagram to obtain an abnormal electric energy metering result.
[0089] In an optional embodiment, building an abnormality discrimination model includes:
[0090] Step S31, obtaining historical abnormal energy metering data, and analyzing the current and voltage in the historical abnormal energy metering data;
[0091] Step S32: Use the analysis results as a sample set for training and verification to generate measurement anomaly features.
[0092] In this embodiment, the analysis of the current and voltage in the historical electric energy metering abnormal data includes judging the voltage phase failure abnormality for the dedicated transformer customer and judging the current loss abnormality for the dedicated transformer customer.
[0093] Furthermore, the judgment of abnormal phase failure of the voltage of the dedicated transformer customer includes:
[0094] (1) The voltage of any phase of the AC phase in the three-phase three-wire is less than K1*nominal voltage, and the current of the same phase is less than K2*rated (basic) current, and the voltage of the other phase is not less than K1*nominal voltage
[0095] The three-phase three-wire B phase voltage does not participate in the judgment.
[0096] (2) The voltage of any phase ABC in the three-phase four-wire system is less than K1*nominal voltage, and the current of the same phase is less than K2*rated (basic) current, while the voltage of the other two phases is not less than K1*nominal voltage.
[0097] (3) Three points need to be monitored within one day.
[0098] Normal: 3 points are monitored within one day
[0099] Important: Any 30 points accumulated over 3 consecutive days generate anomalies
[0100] Severe: At least 60 points are monitored in one day, and the abnormal threshold is adjusted when any 30 points are monitored.
[0101] (4) The nominal voltage is the rated voltage of the meter at the metering point; the rated (basic) current is 1.5A.
[0102] Furthermore, the abnormal current loss judgment for the dedicated transformer customer includes:
[0103] (1) If one phase of a three-phase three-wire current is higher than 10% of the rated current, and the absolute value difference between the two-phase currents is more than 10%, the difference ratio is divided into three levels: general, important, and severe according to 10%-20%, 20-50%, and more than 50%.
[0104] (2) If the current of any phase of a three-phase four-wire ABC is higher than 10% of the rated current, and the absolute value difference between the two-phase currents is more than 10%, the difference ratio is divided into three levels: general, important, and severe according to 10%-20%, 20-50%, and more than 50%.
[0105] (3) At least three consecutive points must be monitored in one day to generate an abnormality.
[0106] In an optional embodiment, judging the electric energy metering state diagram by using the abnormality judgment model includes:
[0107] Step S33, randomly select an electric energy metering block from the electric energy metering state diagram, and extract electric energy data of the electric energy metering block;
[0108] Step S34, calculating the similarity between the electric energy data and the measurement abnormality feature, and if the similarity is greater than a similarity threshold, determining that the electric energy measurement state is abnormal, and recording the electric energy measurement abnormality result in the state sequence.
[0109] Example 2
[0110] Figure 2 A schematic diagram of the structure of an electric energy metering abnormality determination system provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, a system for determining abnormality in electric energy metering includes:
[0111] An electric energy metering data processing module, the electric energy metering data module is used to obtain electric energy metering data, and to process the electric energy metering data in sections based on time series to obtain time series data of electric energy metering;
[0112] An electric energy metering state module, the electric energy metering state module is used to select a subsequence of the time series data, calculate the information gain value of the subsequence, classify the time series data according to the information gain value, and generate an electric energy metering state diagram;
[0113] The abnormality discrimination module is used to construct an abnormality discrimination model, and the electric energy metering state diagram is judged by the abnormality discrimination model to obtain an abnormal result of electric energy metering.
[0114] Example 3
[0115] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention is shown in FIG. Figure 3 As shown, the electronic device includes a processor 21, a memory 22, an input device 23 and an output device 24; the number of processors 21 in the computer device can be one or more. Figure 3 A processor 21 is taken as an example; the processor 21, the memory 22, the input device 23 and the output device 24 in the electronic device can be connected by a bus or other means. Figure 3 The example of connecting through bus is taken in the following.
[0116] The memory 22 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and modules. The processor 21 executes various functional applications and data processing of the electronic device by running the software programs, instructions, and modules stored in the memory 22, that is, implements an abnormality determination method for electric energy metering of Example 1.
[0117] The memory 22 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 22 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 22 may further include a memory remotely arranged relative to the processor 21, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0118] The input device 23 can be used to receive the ID and password input by the user, etc. The output device 24 is used to output the network configuration page.
[0119] Example 4
[0120] Embodiment 4 of the present invention further provides a computer-readable storage medium, wherein the computer-executable instructions are used to implement a method for determining an abnormality in electric energy metering as provided in Embodiment 1 when executed by a computer processor.
[0121] The storage medium containing computer executable instructions provided in the embodiment of the present invention is not limited to the method operations provided in Example 1, and can also execute related operations in the electric energy metering abnormality determination method provided in any embodiment of the present invention.
[0122] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for determining abnormality in electric energy measurement, characterized in that: The steps include: Step S1, acquiring electric energy metering data, and segmenting the electric energy metering data based on time series to obtain time series data of electric energy metering; Step S2, selecting a subsequence of the time series data, calculating an information gain value of the subsequence, classifying the time series data according to the information gain value, and generating an electric energy metering state diagram; Step S3, constructing an abnormality discrimination model, and using the abnormality discrimination model to discriminate the electric energy metering state diagram to obtain an abnormal result of electric energy metering; Selecting a subsequence of the time series data and calculating the information gain value of the subsequence includes: Step S21, dividing the time series data into multiple subsequences using sequence feature points as dividing points; Step S22, randomly selecting two subsequences from the multiple subsequences, calculating the Euclidean distance of the power data of the two subsequences, and calculating the information gain values of the two subsequences according to the Euclidean distance; Step S23, repeating step S22 until the information gain values of any two subsequences in the multiple subsequences are calculated, and finally generating an information gain set; Selecting any two subsequences from the multiple subsequences, calculating the Euclidean distance of the power data of the two subsequences, and calculating the information gain values of the two subsequences according to the Euclidean distance includes: Where D is the Euclidean distance of the power data of the two subsequences; l1 and l2 are the sequence lengths of the two subsequences respectively; t i , t i ′ are the time points of two subsequences respectively; v i , v i ′ are two subsequences t i , t i ′ corresponds to the power data; Im is the information gain value of the two subsequences; S, S′ are two subsequences respectively; S i , S i ′ are the sequence fragments of the two subsequences respectively; p i , p i ' are the information gain probabilities corresponding to the sequence fragments; The process of classifying the time series data by using the information gain value includes: Step S24, sorting the information gain values from large to small; Step S25, setting an information gain threshold, and dividing the sorted information gain set by the information gain threshold to obtain multiple classification sets; Step S26: aggregate the same classification set to generate an electric energy metering block, and splice multiple electric energy metering blocks to generate an electric energy metering state diagram.
2. The method for determining abnormality in electric energy measurement according to claim 1, characterized in that: The electric energy metering data is segmented based on time series, and the obtained time series data of electric energy metering includes: Step S11, the electric energy metering data includes a one-to-one corresponding time series, a state series and electric power data, and a data compression value is calculated according to the electric power data; Step S12, processing the electric energy metering data with the data compression value as the segment interval to obtain a segment sequence; Step S13, using the DTW distance function to calculate the similarity between the time series and the segmented sequence, and taking the points in the segmented sequence whose similarity is greater than or equal to a similarity threshold as sequence feature points; Step S14: Integrate the sequence feature points, the state sequence corresponding to the sequence feature points, and the power data to generate time series data.
3. The method for determining abnormality in electric energy measurement according to claim 2, characterized in that: The electric energy metering data is processed by using the data compression value as a segment interval to obtain a segment sequence including: Step S121, dividing the time series into segments at equal intervals using the data compression value as the segmentation interval to generate a plurality of sub-time series; Step S122, acquiring power data corresponding to the sub-time series, and calculating the power data to obtain a voltage fluctuation value; Step S123, connecting the left endpoint value and the right endpoint value of the sub-time series to generate a segmented time series of the sub-time series; Step S124: Fit the voltage fluctuation value with the segmented time series to generate a segmented sequence.
4. The method for determining abnormality in electric energy measurement according to claim 1, characterized in that: Construct an abnormality discrimination model, and use the abnormality discrimination model to discriminate the electric energy metering state diagram: Step S31, obtaining historical abnormal energy metering data, and analyzing the current and voltage in the historical abnormal energy metering data; Step S32: using the analysis results as a sample set for training and verification to generate measurement anomaly features; Step S33, randomly select an electric energy metering block from the electric energy metering state diagram, and extract electric energy data of the electric energy metering block; Step S34, calculating the similarity between the electric energy data and the measurement abnormality feature, and if the similarity is greater than a similarity threshold, determining that the electric energy measurement state is abnormal, and recording the electric energy measurement abnormality result in the state sequence.
5. An electric energy metering abnormality identification system, characterized in that: include: An electric energy metering data processing module, the electric energy metering data module is used to obtain electric energy metering data, and to process the electric energy metering data in sections based on time series to obtain time series data of electric energy metering; An electric energy metering state module, the electric energy metering state module is used to select a subsequence of the time series data, calculate an information gain value of the subsequence, classify the time series data according to the information gain value, and generate an electric energy metering state diagram; An abnormality discrimination module, the abnormality discrimination module is used to construct an abnormality discrimination model, and the electric energy metering state diagram is judged by the abnormality discrimination model to obtain an abnormal result of electric energy metering; The electric energy metering state module comprises: A segmentation unit, the segmentation unit is used to segment the time series data into multiple subsequences using sequence feature points as segmentation points; A gain calculation unit, the gain calculation unit is used to select any two subsequences from the multiple subsequences, calculate the Euclidean distance of the power data of the two subsequences, and calculate the information gain value of the two subsequences according to the Euclidean distance; wherein the gain calculation unit executes the following formula when calculating the information gain value: Where D is the Euclidean distance of the power data of the two subsequences; l1 and l2 are the sequence lengths of the two subsequences respectively; t i , t i ′ are the time points of two subsequences respectively; v i , v i ′ are two subsequences t i , t i ′ corresponds to the power data; Im is the information gain value of the two subsequences; S, S′ are two subsequences respectively; S i , S i ′ are the sequence fragments of the two subsequences respectively; p i , p i ' are the information gain probabilities corresponding to the sequence fragments; an iterative calculation unit, the iterative calculation unit being used to repeatedly perform gain calculation until information gain values of any two subsequences in the multiple subsequences are calculated, and finally generating an information gain set; A sorting unit, wherein the sorting unit is used to sort the information gain values from large to small; A set partitioning unit, the set partitioning unit is used to set an information gain threshold, and partition the sorted information gain set according to the information gain threshold to obtain a plurality of classification sets; The aggregation unit is used to aggregate the same classification set to generate an electric energy metering block, and to splice multiple electric energy metering blocks to generate an electric energy metering state diagram.
6. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, an electric energy metering abnormality determination method as claimed in any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, an electric energy metering abnormality determination method as described in any one of claims 1 to 4 is implemented.
Citation Information
Cited By
Abnormal metering identification method for electric energy metering box
CN122413213A
