Dual-mode electric energy metering abnormality analysis method and system based on edge computing
By using edge computing to acquire and process metering data and link quality from electricity meters, the reliability problem of metering anomaly identification under dual-mode communication link quality fluctuations is solved, enabling accurate identification and secure transmission of abrupt and gradual anomalies.
Patent Information
- Application Number
- CN202611353678.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-02
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies struggle to reliably identify metering anomalies under conditions of fluctuating quality in dual-mode communication links. In particular, when packet loss, retransmission, or data loss occurs during communication, incomplete data can easily be misjudged as anomalies, and there is a lack of channel quality processing mechanisms.
By acquiring metering curve data and link quality statistics from electricity meters through edge computing, alignment and encapsulation processing is performed to extract channel quality features. Data credibility weights are obtained through hierarchical weighting, multi-dimensional feature vectors are constructed for outlier evaluation, and historical records are combined for classification and discrimination. Feature verification and error calibration are performed for abrupt and gradual anomalies, respectively.
It effectively solves the data integrity problem caused by the quality fluctuation of dual-mode communication links, improves the accuracy of anomaly identification and anti-interference ability, and ensures the reliability and security of measurement anomaly judgment results.
Smart Images

Figure CN123158451A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart energy metering technology, and in particular to a method and system for analyzing metering anomalies in dual-mode energy meters based on edge computing. Background Technology
[0002] Currently, in the field of smart energy metering technology, the accurate identification of metering anomalies is a key link in ensuring reliable energy data acquisition and timely detection of operational abnormalities, and has become a major research focus. With the increasing prevalence of dual-mode energy meters, metering data acquired by electrical sensors such as voltage and current sensors, along with the status of dual-mode communication links, are gradually becoming an important data foundation for anomaly analysis.
[0003] In one existing technology, anomaly analysis methods based on metering data such as voltage, current, and power factor are mainly employed. These methods involve threshold comparison or outlier detection of the collected data, and the degree of data mutation is used to determine whether the electricity meter exhibits metering anomalies. However, this approach typically analyzes the received metering data directly, failing to adequately consider the link quality fluctuations caused by line load, harmonic interference, and electromagnetic environment affecting power line carrier and low-power wireless channels. When packet loss, retransmission, or data loss occurs during communication, incomplete data can easily present characteristics similar to abnormal electricity consumption. Furthermore, it lacks mechanisms for handling primary / backup channel switching, missing data re-collection, and data reliability grading based on channel quality. Especially in scenarios with frequent fluctuations in dual-mode links, communication anomalies are easily carried over into subsequent anomaly detection processes, leading to deviations in metering anomaly identification results.
[0004] In summary, existing technologies are insufficient to reliably identify metering anomalies under conditions of fluctuating quality in dual-mode communication links. Summary of the Invention
[0005] This invention provides a method and system for analyzing metering anomalies in dual-mode energy meters based on edge computing, so as to achieve reliable metering anomaly identification under conditions of fluctuating quality of dual-mode communication links.
[0006] Firstly, to address the aforementioned technical problems, this invention provides a method for analyzing metering anomalies in dual-mode energy meters based on edge computing, comprising:
[0007] Obtain the metering curve data of the electricity meter and the link quality statistics of the dual-mode communication link, and perform alignment and encapsulation processing to obtain the initial metering data;
[0008] Based on the link quality statistics, channel quality features are extracted, and based on the channel quality features, the acquisition task is scheduled and processed to obtain complete metering data and integrity indicators.
[0009] Data credibility weights are obtained by performing hierarchical weighting processing based on the integrity index.
[0010] Extract electrical quantity features and event record counts from the complete metering data, concatenate the electrical quantity features, the event record counts, and the data confidence weights to construct a multi-dimensional feature vector, and perform outlier evaluation calculations on the multi-dimensional feature vector to obtain initial anomaly results;
[0011] An anomaly type label is obtained by performing classification and discrimination processing based on the historical records associated with the initial anomaly result; if the anomaly type label is a mutation label, the electricity theft feature is obtained by combining the event record; if it is a gradual change label, the drift feature is obtained by comparison based on the error calibration record; if the electricity theft feature or the drift feature meets the preset anomaly judgment condition, a metering anomaly result is generated; if the anomaly judgment condition is not met, a normal identification result is generated.
[0012] Secondly, the present invention provides a dual-mode energy meter metering anomaly analysis system based on edge computing, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the dual-mode energy meter metering anomaly analysis method based on edge computing as described above.
[0013] Thirdly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the edge computing-based dual-mode energy meter metering anomaly analysis method as described above.
[0014] Compared with the prior art, the present invention has the following beneficial effects:
[0015] (1) This invention obtains initial metering data by acquiring link quality statistics of dual-mode communication links and metering curve data of electricity meters, performing alignment and encapsulation processing, and extracting channel quality characteristics based on link quality statistics. When the channel quality is lower than the threshold, a backup channel is switched to supplement the data collection, resulting in complete metering data and integrity indicators. Then, data reliability weights are obtained by assigning weights according to the integrity indicators. This method directly reads link statistics such as packet loss rate and signal-to-noise ratio from the dual-mode module management interface, breaking through the limitation of traditional anomaly analysis that only focuses on the metering data itself and ignores the impact of communication link fluctuations on data integrity. It effectively compensates for data loss through channel-aware scheduling and supplementary collection mechanisms, and assigns different reliability levels according to the degree of data integrity. This solves the problem of misjudgment caused by the direct use of incomplete data in anomaly analysis due to dual-mode channel fluctuations, and provides a reliable basis for subsequent metering anomaly judgment that matches the actual availability of the data.
[0016] (2) This invention extracts voltage statistics, current statistics, power factor statistics, and event records such as the number of times the cover was opened, the number of times magnetic field interference occurred, and the number of times voltage and current loss occurred from complete metering data. These are then concatenated with data credibility weights to construct a multi-dimensional feature vector. An isolated forest is used to perform recursive space partitioning and average path length calculation on the feature vector to obtain an initial anomaly score. When the score exceeds the threshold and the credibility level is low, the sample is marked as pending verification instead of being directly judged as an anomaly. This approach integrates three types of information: electrical quantity characteristics, event corroboration, and credibility level. It differs from the traditional method that relies solely on electrical quantity outlier detection. In particular, by separately verifying low-credibility data, it effectively suppresses false outlier scores caused by missing communication data, avoids misjudging communication quality problems as metering anomalies, and improves the anti-interference capability and accuracy of the initial anomaly screening process.
[0017] (3) This invention performs classification and discrimination processing based on the historical records associated with the initial anomaly results to obtain anomaly type labels. For abrupt change labels, the step segment of the daily frozen energy sequence is extracted and time-aligned with the event record to obtain electricity theft characteristics. For gradual change labels, the error calibration record is retrieved and compared with the error limit to obtain drift characteristics. When the judgment conditions are met, a metering anomaly result is generated and sent to the main station for cross-verification in conjunction with the line loss data of the same transformer area and the power balance relationship of adjacent energy meters. This method uses different criteria for event verification and error calibration comparison for abrupt change and gradual change anomalies respectively, avoiding the misjudgment caused by relying solely on the monotonicity of load fluctuations to judge drift. At the same time, the line loss and power balance data of the transformer area on the main station side are used for secondary confirmation, which significantly improves the confidence of the anomaly conclusion. Furthermore, the entire process adopts national cryptographic symmetric encryption transmission and integrity verification to ensure the transmission security of data in the dual-mode link. Attached Figure Description
[0018] Figure 1 This is a schematic diagram of a method for analyzing metering anomalies in a dual-mode energy meter based on edge computing, provided in the first embodiment of the present invention.
[0019] Figure 2 This is a schematic diagram of the channel quality characteristics change of the dual-mode communication link provided in the first embodiment of the present invention;
[0020] Figure 3 This is a schematic diagram of the initial anomaly scoring and triage results provided in the first embodiment of the present invention;
[0021] Figure 4 This is a schematic diagram of cross-verification of measurement anomaly results provided in the first embodiment of the present invention. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0023] Reference Figure 1 The first embodiment of the present invention provides a method for analyzing metering anomalies in dual-mode energy meters based on edge computing, comprising the following steps:
[0024] S11: Obtain the metering curve data of the electricity meter and the link quality statistics of the dual-mode communication link, and perform alignment and encapsulation processing to obtain the initial metering data;
[0025] S12, extract channel quality features based on the link quality statistics, and perform scheduling processing on the acquisition task based on the channel quality features to obtain complete metering data and integrity indicators;
[0026] S13, perform hierarchical weighting processing based on the integrity index to obtain data credibility weight;
[0027] S14, extract the electrical quantity characteristics and event record counts of the complete metering data, concatenate the electrical quantity characteristics, the event record counts and the data credibility weights to construct a multi-dimensional feature vector, and perform outlier evaluation calculation on the multi-dimensional feature vector to obtain the initial anomaly result;
[0028] S15, perform classification and discrimination processing based on the historical records associated with the initial abnormal results to obtain abnormal type labels; if the abnormal type label is a mutation label, then combine the event records to obtain the electricity theft feature; if it is a gradual change label, then perform comparison based on the error calibration records to obtain the drift feature; if the electricity theft feature or the drift feature meets the preset abnormal judgment conditions, then generate a metering abnormal result; if it does not meet the abnormal judgment conditions, then generate a normal identification result.
[0029] In step S11, the acquisition of the metering curve data of the energy meter and the link quality statistics of the dual-mode communication link, and the execution of alignment and encapsulation processing to obtain the initial metering data, includes:
[0030] Encrypted messages are received from the dual-mode communication link. The encrypted messages are decrypted and their integrity is verified. After the verification is successful, voltage records, current records, active power records, and electrical energy records are extracted as metering curve data, and the acquisition timestamp is extracted.
[0031] If the integrity check fails, a transmission interruption alarm is generated and a retransmission is triggered.
[0032] If the record corresponding to the collection timestamp is missing, a supplementary collection command is sent through the backup channel of the dual-mode communication link to perform supplementary collection calculation and obtain the supplementary collection record. If the acquisition is successful, the metering curve data is added; if the acquisition fails, a missing identifier is generated.
[0033] The completed measurement curve data, the missing identifier, and the collection timestamp are aligned and encapsulated to obtain the initial measurement data.
[0034] It should be noted that, firstly, the main control chip receives encrypted messages from the energy meter via the dual-mode communication link. These encrypted messages carry voltage, current, active power, and energy records, as well as a timestamp. The main control chip then uses the preset SM4 symmetric encryption algorithm to decrypt the encrypted messages, obtaining the plaintext messages. Subsequently, an integrity check is performed on the plaintext messages. This check uses the SM3 hash algorithm, inputting all bytes of the plaintext message into the SM3 hash engine to generate a first hash value. This first hash value is then compared bit-by-bit with the second hash value carried at the end of the message. If the first and second hash values are completely identical, the integrity check passes, and the record retrieval process begins. If they are not completely identical, the integrity check fails.
[0035] Next, if the integrity check fails, the main control chip generates a transmission interruption alarm and sends a retransmission request through the original channel of the dual-mode communication link. The maximum number of retransmissions is set to 3 according to the industry standard for retransmission mechanisms in dual-mode communication links, and is configured as a fixed parameter in the main control chip. If the integrity check still fails after 3 consecutive retransmissions, the message is discarded, the transmission interruption alarm record is retained, and the current reception ends. If the integrity check passes, voltage records, current records, active power records, and energy records are extracted from the plaintext message in the order of preset fields, and the acquisition timestamp is also extracted. The unit for voltage records is V, the unit for current records is A, the unit for active power records is W, and the unit for energy records is kWh. The acquisition timestamp uses the Unix timestamp format with a precision of seconds.
[0036] Secondly, the main control chip performs a missing record check on the extracted records, based on whether the acquisition timestamp exists in the preset curve acquisition time scale table for the corresponding acquisition time. If the record corresponding to the acquisition timestamp is missing, a supplementary acquisition command is sent through the backup channel of the dual-mode communication link. The supplementary acquisition command is generated by the main control chip and includes the target energy meter address, the missing acquisition timestamp, and a list of fields to be acquired. Simultaneously with sending the supplementary acquisition command, the main control chip increments the total number of supplementary acquisition commands by 1 and writes it to the supplementary acquisition command issuance record; upon receiving the supplementary acquisition record, it increments the number of successful supplementary acquisitions by 1 and writes it to the supplementary acquisition command issuance record, which is persistently stored in the main control chip's internal memory. After receiving the supplementary acquisition command, the energy meter performs supplementary meter reading calculations, rereads the voltage record, current record, active power record, and energy record at the corresponding time point, and returns the supplementary acquisition record through the backup channel. After successfully acquiring the supplementary acquisition record, the main control chip inserts the supplementary acquisition record into the metering curve data in ascending order of acquisition timestamp. If the retrieval fails, a missing value is generated. The missing value is a Boolean value, where 1 indicates missing and 0 indicates complete.
[0037] Subsequently, after the supplementary data is added, the main control chip performs format alignment on all metering curve data, missing data flags, and acquisition timestamps within the current statistical period. Format alignment involves aligning the six fields—voltage record, current record, active power record, energy record, acquisition timestamp, and missing data flag—to the same acquisition time within the same row, forming six columns of data. If the supplementary data comes from a backup channel, its field order may differ from that in the main channel message. Therefore, during alignment, the fields are rearranged according to a preset order: voltage record, current record, active power record, energy record, acquisition timestamp, and missing data flag. If the supplementary data acquisition fails, the missing data flag in the corresponding row is set to 1, and the voltage record, current record, active power record, and energy record fields are left blank.
[0038] Then, the main control chip performs encapsulation and splicing processing on the aligned records. Encapsulation and splicing involves concatenating the six fields from the same acquisition point into a fixed-length data packet, with a total data packet length of a fixed number of bytes. Voltage records, current records, active power records, and electrical energy records are all represented using 32-bit single-precision floating-point numbers, each occupying 4 bytes. The acquisition timestamp is represented using a 32-bit unsigned integer, occupying 4 bytes, and the missing information is represented using an 8-bit Boolean value, occupying 1 byte. Ultimately, the data packet for each acquisition point has a fixed length of 21 bytes, and the data packets from multiple acquisition points are arranged in ascending order of acquisition timestamps to form the initial metering data.
[0039] In step S12, the step of extracting channel quality features based on the link quality statistics and performing scheduling processing on the acquisition task based on the channel quality features to obtain complete metering data and integrity indicators includes:
[0040] The packet loss rate, signal-to-noise ratio and retransmission count within the statistical period are read from the channel management interface. Sliding window statistics and normalized weighting are performed according to the channel category to obtain the channel quality characteristics.
[0041] If the channel quality characteristics of the current primary channel are lower than the preset quality judgment threshold, the acquisition task will be switched to the backup channel and a channel switching event will be generated; if the quality characteristics are not lower than the preset quality judgment threshold, the primary channel will be maintained.
[0042] Statistical calculations are performed based on the records of supplementary sampling instructions, the success rate of supplementary sampling is obtained, and the supplemented data is extracted as complete measurement data.
[0043] The integrity index is obtained by normalizing the success rate of the re-collection and the number of missing identifiers.
[0044] It should be noted that, firstly, the main control chip reads the packet loss rate, signal-to-noise ratio, and retransmission count within the statistical period from the channel management interface of the dual-mode communication link. The statistical period is consistent with the metering curve acquisition period, set to 15 minutes. The main control chip reads the above three indicators for the power line carrier channel and the low-power wireless channel respectively, and performs sliding window statistical processing for each channel. The sliding window length is 10 statistical periods, and the step size is 1 statistical period. The arithmetic mean of the packet loss rate, signal-to-noise ratio, and retransmission count within each sliding window is calculated to obtain three statistical values. At the same time, the main control chip reads the supplementary acquisition command issuance records and the number of missing identifiers within the statistical period. The supplementary acquisition command issuance records include the total number of supplementary acquisition commands and the number of successful supplementary acquisitions. These two values are synchronously written and persistently saved by the main control chip when supplementary acquisition commands are issued and supplementary acquisition records are returned.
[0045] Next, normalization is performed on the three statistical values. After normalization, each component is uniformly represented by a larger value, indicating better link quality. The packet loss rate, being a percentage, is directly divided by 100 to map to the 0-1 range. Then, 1 is taken and the normalized value is subtracted to obtain the packet loss rate component; a smaller packet loss rate indicates a larger packet loss rate component. The signal-to-noise ratio (SNR) is normalized using a minimum-maximum normalization process. The SNR operating range of 10dB to 30dB given in the communication module specifications is used as the lower and upper bounds for normalization. The current SNR value is mapped to the 0-1 range as the SNR component; a larger SNR indicates a larger SNR component. The retransmission count is also normalized using a minimum-maximum normalization process. The minimum retransmission count (0) and maximum retransmission count (3) are used as the lower and upper bounds for normalization. The current retransmission count is mapped to the 0-1 range, and 1 is subtracted from the normalized value to obtain the retransmission count component; a smaller retransmission count indicates a larger retransmission count component. Then, a weighted fusion calculation is performed. The signal-to-noise ratio (SNR) component reflects the physical transmission quality of the link and has the greatest impact on communication stability, so it is assigned a weight of 0.5. The packet loss rate component directly affects data integrity and is assigned a weight of 0.3. The retransmission count component reflects the degree of link congestion and is assigned a weight of 0.2. After weighted fusion, the channel quality characteristics in the range of 0 to 1 are obtained. The larger the channel quality characteristic, the better the link quality. The three weights are preset values, determined according to the order of their impact on communication stability: SNR has the greatest impact, followed by packet loss rate, and retransmission count has the least impact.
[0046] Secondly, the quality assessment threshold is set according to the industry standard for the quality requirements of dual-mode communication links. This standard stipulates that the packet loss rate should be less than 2%, the signal-to-noise ratio (SNR) should be greater than 15 dB, and the number of retransmissions should not exceed 2. The standard requirements are calculated using the same normalization and weighted fusion method. The packet loss rate, normalized to 2%, is 0.02. Subtracting 0.02 from 1 gives the packet loss rate component (0.98). The SNR, normalized to 15 dB, is 0.25. The number of retransmissions, normalized to 2, is 0.667. Subtracting 0.667 from 1 gives the retransmission count component (0.333). The weighted summation (0.3 × 0.98 + 0.5 × 0.25 + 0.2 × 0.333) yields the quality assessment threshold of 0.486. This threshold can be adjusted within the range of 0.8 to 1.2 times the baseline value. If the channel quality characteristic of the primary channel is lower than 0.486, the acquisition task will be switched to the backup channel, and a channel switching event will be generated. The channel switching event records the switching time, the original primary channel identifier, and the backup channel identifier. If the channel quality characteristic of the primary channel is not lower than 0.486, the primary channel will remain unchanged.
[0047] Subsequently, the main control chip performs statistical calculations based on the supplementary sampling command issuance records to obtain the supplementary sampling success rate. The supplementary sampling success rate equals the number of successful supplementary samplings within the statistical period divided by the total number of supplementary sampling commands. The total number of supplementary sampling commands and the number of successful supplementary samplings are read from the supplementary sampling command issuance records. If no supplementary sampling command is issued within the statistical period, the supplementary sampling success rate is directly set to 1.
[0048] Then, the main control chip extracts the supplemented data as complete metering data. Complete metering data includes voltage records, current records, active power records, electrical energy records, and acquisition timestamps, but does not include missing identifiers. The number of missing identifiers is counted separately and used for subsequent completeness index calculations.
[0049] Finally, the main control chip performs normalization calculations on the success rate of data re-collection and the number of missing identifiers to obtain the integrity index. The data completeness rate equals 1 minus the number of missing identifiers divided by the total number of points to be collected. The integrity index equals the success rate of data re-collection multiplied by 0.5 plus the data completeness rate multiplied by 0.5, where 0.5 and 0.5 are preset equal-weighting coefficients, indicating that the success rate of data re-collection and the data completeness rate have equal importance to data integrity. The integrity index ranges from 0 to 1. This step outputs complete measurement data and the integrity index. The complete measurement data dimension is a two-dimensional record array of the number of points to be collected within the statistical period multiplied by 5. The integrity index is a scalar used for subsequent integrity grading and weighting.
[0050] For example, Figure 2 This diagram illustrates the changes in channel quality characteristics of a dual-mode communication link. It shows how the quality characteristics of the power line carrier channel and the low-power wireless channel change over a statistical period. When the quality characteristics of the current primary channel fall below the quality judgment threshold, the backup channel can provide a higher-quality communication link for the data acquisition task, thereby supporting channel switching and supplementary acquisition of missing records, and reducing the impact of link quality fluctuations on complete metering data.
[0051] In step S13, the step of performing hierarchical weighting processing based on the integrity index to obtain data credibility weights includes:
[0052] If the integrity index is greater than the preset high credibility threshold, the corresponding credibility level is determined as the high credibility level, and the preset first weight is used as the data credibility weight.
[0053] If the integrity index is not greater than the high credibility threshold but is greater than the preset low credibility threshold, then the corresponding credibility level is determined as the medium credibility level, and the preset second weight is used as the data credibility weight.
[0054] If the integrity index is not greater than the low confidence threshold, the corresponding confidence level is determined as the low confidence level, and the preset third weight is used as the data confidence weight.
[0055] Wherein, the first weight is greater than the second weight, and the second weight is greater than the third weight.
[0056] It should be noted that, firstly, the main control chip acquires the integrity index, which is a scalar value ranging from 0 to 1. This index is calculated by weighting the data acquisition success rate and the data completeness rate, and can reflect the effectiveness of data acquisition and the proportion of missing data within the statistical period. The closer the integrity index is to 1, the fewer missing measurement data and the more sufficient the acquisition is within the statistical period.
[0057] Next, the high confidence threshold was set to 0.95, and the low confidence threshold was set to 0.85. These two thresholds were determined based on the relationship between the proportion of missing data collection points and the corresponding electricity billing deviation. The data completeness rate equals 1 minus the proportion of missing data collection points. When 15% of the data collection points are missing within the statistical period, the data completeness rate is 0.85. The electricity consumption during the missing period needs to be estimated based on the average power of the adjacent normal period. The accumulated estimation error causes the electricity deviation during the statistical period to reach three times the allowable error limit of the electricity meter accuracy level, exceeding the acceptable range for electricity billing. When 5% of the data collection points are missing within the statistical period, the data completeness rate is 0.95. The accumulated estimation error does not exceed one time the allowable error limit for electricity consumption, and the electricity billing remains reliable. The completeness index is composed of the success rate of data collection replenishment and the data completeness rate with equal weights. The higher the proportion of missing data collection points, the lower the data completeness rate and the more data collection points need to be replenished, resulting in a lower overall success rate for replenishment and a lower completeness index. Therefore, 0.85 was determined as the low confidence threshold, and 0.95 was determined as the high confidence threshold. The two thresholds can be adjusted within the range of 0.9 to 1.1 times the baseline value to accommodate the different requirements of different distribution areas for electricity billing accuracy.
[0058] Secondly, the preset weights are 0.9 for the first weight, 0.6 for the second weight, and 0.3 for the third weight. The weight determination process is as follows: High-confidence data is used as the benchmark, as it has high data integrity and small estimation bias; therefore, the first weight is set to 0.9, close to 1, to leave a certain margin for subsequent outlier assessment. Medium-confidence data has an integrity index between 0.85 and 0.95, indicating moderate estimation bias; therefore, the second weight is set to two-thirds of the first weight, i.e., 0.6. Low-confidence data has a missing rate exceeding 15%, indicating significant estimation bias; therefore, the third weight is set to one-third of the first weight, i.e., 0.3. The weights are maintained in a hierarchy where the first weight is greater than the second weight, and the second weight is greater than the third weight.
[0059] Subsequently, the main control chip compares the integrity index with the high-confidence threshold and the low-confidence threshold sequentially. If the integrity index is greater than 0.95, the confidence level is determined to be high-confidence, and the first weight of 0.9 is used as the data confidence weight. If the integrity index is not greater than 0.95 but greater than 0.85, the confidence level is determined to be medium-confidence, and the second weight of 0.6 is used as the data confidence weight. If the integrity index is not greater than 0.85, the confidence level is determined to be low-confidence, and the third weight of 0.3 is used as the data confidence weight.
[0060] Then, the data confidence weights, as input for subsequent feature construction, will participate in outlier evaluation as the 10th dimension of the multidimensional feature vector. High confidence weights ensure that the corresponding feature vector maintains its full contribution in outlier evaluation, medium confidence weights reduce the contribution, and low confidence weights minimize the contribution, thereby avoiding false alarms caused by incomplete data.
[0061] In step S14, the electrical quantity features and event record counts of the complete metering data are extracted, and the electrical quantity features, event record counts, and data reliability weights are concatenated to construct a multi-dimensional feature vector, including:
[0062] Perform statistical extraction processing on the complete metering data to obtain voltage statistics, current statistics, and power factor statistics as electrical quantity characteristics;
[0063] The number of times the cover was opened, the number of times magnetic field interference occurred, and the number of times the voltage and current were lost within the traceback period are extracted from the event log of the energy meter to obtain the event record count;
[0064] The electrical quantity features, the event record counts, and the data reliability weights are subjected to feature alignment processing to obtain an aligned feature set;
[0065] The aligned feature set is linearly concatenated in a preset order to obtain a multidimensional feature vector.
[0066] It should be noted that, firstly, the main control chip acquires complete metering data and data reliability weights. Complete metering data is a two-dimensional record array consisting of the number of collection points multiplied by 5 within the statistical period, including voltage records, current records, active power records, electrical energy records, and collection timestamps. The data reliability weight is a scalar value ranging from 0 to 1, derived from the completeness-based weighting process. The main control chip performs statistical extraction processing on the complete metering data. It filters collection points where the voltage, current, and active power records are all non-empty, and where both voltage and current records are non-zero. For the filtered valid collection points, it calculates the mean, standard deviation, mean, and standard deviation of the voltage and current records, respectively. For each valid collection point, the main control chip divides the active power record by the product of the voltage and current records to obtain the power factor for that collection point, and then calculates the mean and standard deviation of the power factor for all valid collection points. The electrical quantity characteristics consist of six values: the mean voltage record, the standard deviation of the voltage record, the mean current record, the standard deviation of the current record, the mean power factor, and the standard deviation of the power factor, with a dimension of 6. The units for the mean and standard deviation of the voltage record are V, the units for the mean and standard deviation of the current record are A, and the units for the mean and standard deviation of the power factor are dimensionless.
[0067] Next, the main control chip extracts the number of times the cover was opened, the number of times there was magnetic interference, and the number of times there was a voltage or current loss within the backtracking period from the event log of the energy meter. The event log is stored in the internal memory of the energy meter, and the main control chip reads the full text of the log through a dual-mode communication link. Each record in the event log includes an event type identifier, an event occurrence time, and an event clearing time. The event type identifier includes cover opening events, magnetic interference events, and voltage or current loss events. The backtracking period is set to 30 days. The main control chip filters the records within the most recent 30 days according to the event occurrence time and accumulates the occurrence counts of cover opening events, magnetic interference events, and voltage or current loss events respectively. The event record count is a 3D vector, arranged in the order of cover opening count, magnetic interference count, and voltage or current loss count.
[0068] Secondly, the main control chip performs feature alignment processing on the electrical quantity characteristics, event record counts, and data reliability weights. The preset feature order of the main control chip is: mean voltage record, standard deviation of voltage record, mean current record, standard deviation of current record, mean power factor, standard deviation of power factor, number of times the cover was opened, number of times magnetic field interference occurred, number of times voltage and current loss occurred, and data reliability weight. The main control chip arranges the above 10 values into a row according to this preset order to obtain the aligned feature set.
[0069] Subsequently, the main control chip performs linear concatenation processing on the aligned feature set. Linear concatenation involves extracting the 10 scalar elements from the aligned feature set one by one in a preset order and arranging them sequentially to form a multidimensional feature vector. The aligned feature set does not involve dimensionality reduction, dimensionality increase, mapping, or weight transformation; the vector dimension before and after linear concatenation is 10 dimensions.
[0070] Then, the main control chip performs outlier evaluation on the multidimensional feature vector. The outlier evaluation uses the Isolation Forest algorithm. The multidimensional feature vector serves as the input to the Isolation Forest. The Isolation Forest consists of 100 isolated trees. Each isolated tree is recursively partitioned by randomly selecting a feature and randomly choosing a split value between the maximum and minimum values of that feature, until each child node contains only one sample or reaches the maximum depth of 12. The main control chip calculates the average path length of the multidimensional feature vector across the 100 isolated trees and calculates the initial anomaly score based on the average path length and a normalization constant. The initial anomaly score is located in the range of 0 to 1. The hyperparameters of the Isolation Forest in the outlier evaluation are: 100 trees and a subsampling size of 256. The main control chip compares the initial anomaly score with a preset anomaly distribution threshold. The anomaly distribution threshold is determined based on the distribution of initial anomaly scores of confirmed abnormal and normal samples in the historical operating data of the main control chip. The 95th percentile of the initial anomaly score of normal samples is taken as the baseline threshold of 0.62, which can be used to distinguish between normal and abnormal energy meters. The abnormal distribution threshold can be adjusted within the range of 0.8 to 1.2 times the baseline value.
[0071] Finally, if the initial anomaly score is greater than the anomaly distribution threshold and the confidence level is low, the multidimensional feature vector is marked as data to be reviewed, and no initial anomaly result is generated. If the initial anomaly score is greater than the anomaly distribution threshold and the confidence level is not low, an initial anomaly result is generated based on the electricity meter asset number associated with the multidimensional feature vector. If the initial anomaly score is not greater than the anomaly distribution threshold, it is determined to be normal data. This step outputs either an initial anomaly result or a normal label; the initial anomaly result is used for subsequent classification and anomaly confirmation.
[0072] In one implementation, the step of performing outlier evaluation calculation on the multidimensional feature vector to obtain an initial anomaly result includes:
[0073] Perform recursive space partitioning calculations on the multidimensional feature vectors to obtain a set of data distribution trees;
[0074] The average path length is calculated based on the data distribution tree set to obtain the initial anomaly score;
[0075] If the initial anomaly score is greater than the preset anomaly distribution threshold and the confidence level is low confidence level, then the multidimensional feature vector is marked as data to be reviewed.
[0076] If the initial anomaly score is greater than the anomaly distribution threshold and the confidence level is not low confidence level, then an initial anomaly result is generated; if the initial anomaly score is not greater than the anomaly distribution threshold, then it is determined to be normal data.
[0077] It should be noted that, firstly, the main control chip acquires the multi-dimensional feature vector and the confidence level. The multi-dimensional feature vector is a 10-dimensional row vector, derived from electrical quantity features, event record counts, and data confidence weights through concatenation. The confidence level is one of high, medium, or low confidence. The main control chip performs recursive space partitioning calculations on the multi-dimensional feature vector. The recursive space partitioning uses the isolated forest algorithm to construct a data distribution tree set of 100 isolated trees. The construction process of each isolated tree involves randomly selecting 256 samples without replacement from the historical measurement feature dataset stored in the main control chip as the training subset of that tree. Starting from the root node, the isolated tree randomly selects a feature dimension of the multi-dimensional feature vector, and randomly selects a splitting value between the maximum and minimum values of the current subset in that feature dimension, dividing the subset into the left or right child node. This partitioning is recursively performed until the child node contains only one sample or the maximum depth of 12 is reached. Each leaf node corresponds to one sample or a group of samples that cannot be further partitioned.
[0078] Next, the main control chip calculates the average path length based on the data distribution tree set. For the current multidimensional feature vector, it starts from the root node of each isolation tree and moves down layer by layer according to the feature dimension and split value stored in each node until it falls into a leaf node. The number of edges traversed is the path length on that isolation tree. The main control chip calculates the arithmetic mean of the path lengths of the multidimensional feature vector on 100 isolation trees to obtain the average path length. Then, the average path length is divided by the normalization constant, and the negative of the quotient is used to calculate the natural index to obtain the initial anomaly score. The smaller the average path length, the easier the sample is to isolate, and the closer the initial anomaly score is to 1. The normalization constant is only related to the number of samples and is approximated by the harmonic number when 256 samples are used in the construction. The initial anomaly score is located in the range of 0 to 1. The larger the value, the more the multidimensional feature vector deviates from the historical econometric feature distribution.
[0079] Subsequently, the main control chip compares the initial anomaly score with the anomaly distribution threshold. If the initial anomaly score is greater than the anomaly distribution threshold and the confidence level is low, the multidimensional feature vector is marked as data to be reviewed, and no initial anomaly result is generated. If the initial anomaly score is greater than the anomaly distribution threshold and the confidence level is not low, an initial anomaly result is generated based on the electricity meter asset number associated with the multidimensional feature vector. The initial anomaly result includes the electricity meter asset number and the initial anomaly score. If the initial anomaly score is not greater than the anomaly distribution threshold, it is determined to be normal data, and a normal data label is generated.
[0080] Then, the main control chip stores the data to be reviewed and the initial anomaly results into different data tables. The data to be reviewed table stores the electricity meter asset number, multidimensional feature vector, initial anomaly score, confidence level, and generation time. The initial anomaly result table stores the electricity meter asset number, initial anomaly score, multidimensional feature vector, and generation time for subsequent classification and anomaly confirmation. Normal data is discarded directly and not stored in the database.
[0081] For example, Figure 3 This is a schematic diagram of the initial anomaly score triage results. The diagram shows the initial anomaly scores and their judgment results for independent field test samples. Samples with initial anomaly scores not greater than the anomaly distribution threshold are judged as normal data; samples with scores exceeding the anomaly distribution threshold and a confidence level not of low confidence level generate initial anomaly results; samples with scores exceeding the threshold but a confidence level of low confidence level are marked as data to be reviewed, avoiding the direct judgment of outlier features caused by missing communication data as measurement anomalies.
[0082] In step S15, the classification and discrimination process is performed based on the historical records associated with the initial anomaly result to obtain an anomaly type label; if the anomaly type label is a mutation label, the electricity theft feature is obtained by combining the event record; if it is a gradual change label, the drift feature is obtained by comparison based on the error calibration record, including:
[0083] Based on the initial anomaly results, extract the daily frozen electrical energy sequence and the event record count, and perform classification and deduction processing to obtain anomaly type labels;
[0084] If the anomaly type label is a mutation type label, then the step segment of the daily frozen electrical energy sequence is extracted, and the start time of the step segment is aligned with the execution time of the event record. After the verification is successful, the step segment is identified as an electricity theft feature.
[0085] If the anomaly type label is a gradient label, then the error deviation magnitude in the error calibration record is extracted, and the error deviation magnitude is compared and calculated with a preset error judgment threshold.
[0086] If the error deviation is greater than the error determination threshold, the error deviation is determined as a drift feature; if it is not greater than the error determination threshold, an aging warning message is generated.
[0087] In one implementation, if the electricity theft feature or the drift feature meets a preset anomaly determination condition, a metering anomaly result is generated; otherwise, a normal identification result is generated.
[0088] It should be noted that, firstly, the main control chip acquires the initial anomaly result, which is a structured record containing the meter asset number and initial anomaly score. Based on the meter asset number in the initial anomaly result, the main control chip extracts the daily frozen energy sequence and event record counts for the past 30 days from the storage module. The daily frozen energy sequence is a 30-dimensional vector, with each dimension representing the frozen energy of the meter for the corresponding natural day, in kWh. The event record counts are a 3-dimensional vector, arranged in the order of cover opening counts, magnetic field interference counts, and voltage / current loss counts. The main control chip concatenates the daily frozen energy sequence and event record counts in a preset order to form a 33-dimensional classification input vector. Subsequently, the main control chip inputs this 33-dimensional classification input vector into a preset classification inference model. The classification inference model uses a support vector machine (SVM), with a radial basis function kernel, a penalty coefficient C of 10, a kernel parameter γ of 0.1, a hinge loss function, and a Sequence Minimum Optimization (SMO) algorithm for the optimizer, with 200 training epochs. The training set for the support vector machine comes from the historical abnormal work order database of the main station, containing abnormal energy meter data that has been verified on-site. It includes 500 mutation-type samples and 500 gradual-type samples. The labels are derived from the anomaly types confirmed on-site. During training, the data is divided into training and validation sets in a 7:3 ratio, and 5-fold cross-validation is performed. The classification and inference model outputs anomaly type labels, which are either mutation-type or gradual-type labels.
[0089] Next, if the anomaly type label is a mutation label, the main control chip extracts a step segment from the daily frozen energy sequence. The main control chip calculates the absolute difference between the energy values of two adjacent days in the daily frozen energy sequence, obtaining 29 absolute difference values. The main control chip calculates the median and interquartile range of these 29 absolute difference values, setting the mutation threshold to the median plus three times the interquartile range. This mutation threshold can be adjusted within the range of 0.8 to 1.2 times the baseline value. The main control chip scans backwards starting from the first absolute difference value. When an absolute difference value is greater than the mutation threshold, the daily frozen energy sequence index corresponding to that difference is recorded as the step start point. The scanning continues until the absolute difference value is no greater than the mutation threshold. The daily frozen energy sequence segment between the step start point and the step end point is extracted as the step segment.
[0090] Secondly, the main control chip performs time alignment and verification between the start time of the step segment and the occurrence time of the event record. The main control chip extracts the occurrence times of the opening cover event, magnetic field interference event, and voltage / current loss event from the event log. The time window for time alignment and verification is set to 24 hours. This time window is based on the lag time after an electricity theft event occurs, affecting the electricity meter's metering circuit and causing a step change in the daily frozen energy. It can be adjusted within 0.8 to 1.2 times the baseline value. The main control chip compares the start time of the step segment with the occurrence time of each event record one by one. If any event record occurs within 24 hours before or after the start time of the step segment, the time alignment and verification is considered successful. After successful verification, the main control chip identifies the step segment as an electricity theft characteristic.
[0091] Subsequently, if the anomaly type label is a gradient label, the main control chip extracts the error deviation magnitude from the error calibration record. The error calibration record is stored in the main control chip's internal memory. Each error calibration record includes the electricity meter asset number, calibration time, and error deviation magnitude. The error deviation magnitude is in percentage form and dimensionless. The main control chip compares the error deviation magnitude with a preset error judgment threshold. The error judgment threshold is set according to the error limit corresponding to the 0.5S accuracy class of the active energy meter. The error limit for this class of energy meter is ±0.5%, and the absolute value of 0.5% is taken as the baseline threshold, which can be adjusted within the range of 0.8 to 1.2 times the baseline value.
[0092] Then, if the error deviation exceeds the error judgment threshold of 0.5%, the main control chip identifies the error deviation as a drift characteristic. If the error deviation is not greater than the error judgment threshold of 0.5%, an aging warning message is generated. The aging warning message includes the electricity meter asset number, the current error deviation, and the message that the metering error is within the allowable range but there is an aging trend. The aging warning message is not included in the metering anomaly results.
[0093] Finally, the main control chip determines whether preset anomaly criteria are met based on the electricity theft or drift characteristics. The criteria for meeting the anomaly criteria for electricity theft characteristics are successful time alignment verification and successful capture of the step segment. The criteria for meeting the anomaly criteria for drift characteristics is that the error deviation exceeds the error threshold. If either the electricity theft or drift characteristic meets the anomaly criteria, a metering anomaly result is generated, which includes the electricity meter asset number, anomaly type label, the electricity theft or drift characteristic, and the detection timestamp. If the anomaly criteria are not met, a normal identification result is generated. A normal identification result ends the detection process.
[0094] To facilitate understanding of the present invention, some preferred embodiments of the present invention will be further described below. After generating the measurement anomaly result, the method further includes:
[0095] The metering anomaly results are sent to the main station to extract line loss data and energy balance data of adjacent electricity meters in the same area;
[0096] The line loss data and the power balance data are used to perform cross-verification calculations on the metering anomaly results to obtain a verification conclusion.
[0097] If the review conclusion is confirmed as abnormal, an abnormality confirmation work order is generated; if the review conclusion is not confirmed, the measurement abnormality result is archived as an observation record.
[0098] After the cross-checking calculation confirms that the data to be reviewed is abnormal, a corresponding measurement anomaly result is generated.
[0099] It should be noted that, firstly, after the metering anomaly result is generated, the main control chip sends the result to the master station via a dual-mode communication link. Before sending, the main control chip uses the SM4 symmetric encryption algorithm to encrypt the result. After receiving the result, the master station uses the SM4 symmetric encryption algorithm to decrypt it, and then uses the SM3 hash algorithm to perform integrity verification. After successful verification, the result is written to the master station's metering anomaly database. The metering anomaly result includes the electricity meter asset number, anomaly type tag, electricity theft or drift characteristics, and detection timestamp.
[0100] Next, the main station extracts the line loss data for the most recent statistical period for the transformer area where the electricity meter is located from the transformer area line loss statistics module. The line loss data includes the energy consumption of the meter at the transformer area's gateway and the sum of the energy consumption of all user meters within that transformer area. The statistical period is the same as the metering curve acquisition period, set to 15 minutes. The main station also extracts the energy balance data of adjacent electricity meters from the transformer area balance analysis module. Adjacent electricity meters refer to those connected to the same branch circuit as the abnormal electricity meter, and include the electricity meter itself that has been cross-checked. The energy balance data includes the energy consumption of each adjacent electricity meter within the same statistical period.
[0101] Secondly, the master station performs cross-checking calculations on the metering anomalies using line loss data and energy balance data. The cross-checking calculation consists of two parts: line loss rate verification and energy balance deviation verification. Line loss rate verification involves the master station subtracting the sum of the energy consumption of all users' meters in the same area from the energy consumption of the meter at the transformer substation's gateway to obtain the line loss amount. This line loss amount is then divided by the energy consumption of the meter at the gateway and multiplied by 100% to obtain the line loss rate. If the line loss rate is greater than the line loss rate verification threshold, the line loss rate is judged as abnormal; otherwise, it is judged as normal. The line loss rate verification threshold is set at 10% based on the economic operation standard of the transformer substation, and this threshold can be adjusted within the range of 0.8 to 1.2 times the benchmark value. Energy balance deviation verification involves the master station calculating the arithmetic mean of the energy consumption of each adjacent meter, then dividing the absolute value of the difference between the energy consumption of the cross-checked meter and this arithmetic mean by the arithmetic mean and multiplying by 100% to obtain the energy balance deviation of the cross-checked meter. If the energy balance deviation of the cross-checked energy meter exceeds the balance deviation check threshold, the energy balance deviation check is judged as abnormal; otherwise, it is judged as normal. The balance deviation check threshold is set at 2% based on the error limit of ±0.5% corresponding to the 0.5S accuracy class of the active energy meter and taking into account the three-phase imbalance margin. This threshold can be adjusted within the range of 0.8 to 1.2 times the reference value.
[0102] Subsequently, the main station determines the verification conclusion based on the line loss rate verification results and the power balance deviation verification results. If both the line loss rate verification and the power balance deviation verification are deemed abnormal, the verification conclusion is "confirmed abnormal." If both the line loss rate verification and the power balance deviation verification are deemed normal, the verification conclusion is "not confirmed." If both the line loss rate verification and the power balance deviation verification are deemed normal, or vice versa, the verification conclusion is "not confirmed," and this metering anomaly result is temporarily stored in the verification observation queue. The line loss data and power balance data for the next statistical period are then extracted and cross-verification calculations are performed again.
[0103] Then, if the review conclusion confirms an anomaly, the master station generates an anomaly confirmation work order. The anomaly confirmation work order includes the meter asset number, anomaly type label, review conclusion, transformer area line loss rate, power balance deviation, and review time. The master station dispatches the anomaly confirmation work order to the field operation terminal. If the review conclusion is not confirmed, the master station archives the metering anomaly result as an observation record. The observation record includes the meter asset number, detection timestamp, a summary of the metering anomaly result, and the review conclusion.
[0104] Finally, the main station performs the same cross-verification calculation on the data to be verified. The data to be verified originates from the multidimensional feature vectors that did not generate initial anomaly results during the outlier assessment phase due to low confidence levels. The data to be verified includes the electricity meter asset number, initial anomaly score, confidence level, and generation time. Based on the electricity meter asset number in the data to be verified, the main station extracts the line loss data for the same distribution area and the energy balance data for adjacent electricity meters, and performs the same line loss rate verification and energy balance deviation verification. If the verification conclusion is a confirmed anomaly, the main station generates the corresponding metering anomaly result, which includes the electricity meter asset number, initial anomaly score, verification conclusion, and detection timestamp, and sends the metering anomaly result back to the main control chip.
[0105] For example, Figure 4 This is a schematic diagram of cross-checking of measurement anomaly results. The diagram shows the changes in line loss rate and energy balance deviation over a statistical period. During the statistical period in which the anomaly continues, if both the line loss rate and energy balance deviation exceed their respective check thresholds, a check conclusion confirming the anomaly is formed. If only one item exceeds the check threshold, the anomaly is not directly confirmed, thereby increasing the confidence level of the measurement anomaly results.
[0106] In summary, this invention discloses a method for analyzing metering anomalies in dual-mode energy meters based on edge computing, which enables reliable identification of metering anomalies under conditions of fluctuating quality in dual-mode communication links.
[0107] The second embodiment of the present invention provides a dual-mode energy meter metering anomaly analysis system based on edge computing, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the above-described dual-mode energy meter metering anomaly analysis method based on edge computing.
[0108] It should be noted that the edge computing-based dual-mode energy meter metering anomaly analysis system provided in this embodiment of the invention is used to execute all the process steps of the edge computing-based dual-mode energy meter metering anomaly analysis method in the above embodiment. The working principles and beneficial effects of the two are one-to-one, so they will not be described again.
[0109] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above descriptions are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention for those skilled in the art.
Claims
1. A method for analyzing metering anomalies in dual-mode energy meters based on edge computing, characterized in that, include: Obtain the metering curve data of the electricity meter and the link quality statistics of the dual-mode communication link, and perform alignment and encapsulation processing to obtain the initial metering data; Based on the link quality statistics, channel quality features are extracted, and based on the channel quality features, the acquisition task is scheduled and processed to obtain complete metering data and integrity indicators. Data credibility weights are obtained by performing hierarchical weighting processing based on the integrity index. Extract electrical quantity features and event record counts from the complete metering data, concatenate the electrical quantity features, the event record counts, and the data confidence weights to construct a multi-dimensional feature vector, and perform outlier evaluation calculations on the multi-dimensional feature vector to obtain initial anomaly results; An anomaly type label is obtained by performing classification and discrimination processing based on the historical records associated with the initial anomaly result; If the anomaly type label is a mutation type label, then the characteristics of electricity theft can be obtained by combining the event record interception; If it is a gradient label, the drift characteristics are obtained by comparison based on the error calibration record; If the electricity theft feature or the drift feature meets the preset anomaly determination conditions, an anomaly metering result is generated; otherwise, a normal identification result is generated.
2. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 1, characterized in that, The process of acquiring the metering curve data of the electricity meter and the link quality statistics of the dual-mode communication link, and performing alignment and encapsulation processing to obtain the initial metering data includes: Encrypted messages are received from the dual-mode communication link. The encrypted messages are decrypted and their integrity is verified. After the verification is successful, voltage records, current records, active power records, and electrical energy records are extracted as metering curve data, and the acquisition timestamp is extracted. If the integrity check fails, a transmission interruption alarm is generated and a retransmission is triggered. If the record corresponding to the collection timestamp is missing, a supplementary collection command is sent through the backup channel of the dual-mode communication link to perform supplementary collection calculation and obtain the supplementary collection record. If the acquisition is successful, the metering curve data is added; if the acquisition fails, a missing identifier is generated. The completed measurement curve data, the missing identifier, and the collection timestamp are aligned and encapsulated to obtain the initial measurement data.
3. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 1, characterized in that, The step of extracting channel quality features based on the link quality statistics, and performing scheduling processing on the acquisition task based on the channel quality features to obtain complete metering data and integrity indicators includes: The packet loss rate, signal-to-noise ratio and retransmission count within the statistical period are read from the channel management interface. Sliding window statistics and normalized weighting are performed according to the channel category to obtain the channel quality characteristics. If the channel quality characteristics of the current primary channel are lower than the preset quality judgment threshold, the acquisition task will be switched to the backup channel and a channel switching event will be generated; if the quality characteristics are not lower than the preset quality judgment threshold, the primary channel will be maintained. Statistical calculations are performed based on the channel switching event and the supplementary data record to obtain the supplementary data success rate, and the supplemented data is extracted as complete metering data. The integrity index is obtained by normalizing the success rate of the re-collection and the number of missing identifiers.
4. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 1, characterized in that, The step of performing hierarchical weighting processing based on the integrity index to obtain data credibility weights includes: If the integrity index is greater than the preset high credibility threshold, the corresponding credibility level is determined as the high credibility level, and the preset first weight is used as the data credibility weight. If the integrity index is not greater than the high credibility threshold but is greater than the preset low credibility threshold, then the corresponding credibility level is determined as the medium credibility level, and the preset second weight is used as the data credibility weight. If the integrity index is not greater than the low confidence threshold, the corresponding confidence level is determined as the low confidence level, and the preset third weight is used as the data confidence weight. Wherein, the first weight is greater than the second weight, and the second weight is greater than the third weight.
5. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 1, characterized in that, The process involves extracting electrical quantity features and event record counts from the complete metering data, and then concatenating the electrical quantity features, event record counts, and data reliability weights to construct a multi-dimensional feature vector, including: Perform statistical extraction processing on the complete metering data to obtain voltage statistics, current statistics, and power factor statistics as electrical quantity characteristics; The number of times the cover was opened, the number of times magnetic field interference occurred, and the number of times the voltage and current were lost within the traceback period are extracted from the event log of the energy meter to obtain the event log count; The electrical quantity features, the event record counts, and the data reliability weights are subjected to feature alignment processing to obtain an aligned feature set; The aligned feature set is linearly concatenated in a preset order to obtain a multidimensional feature vector.
6. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 4, characterized in that, The step of performing outlier evaluation calculation on the multidimensional feature vector to obtain the initial anomaly result includes: Perform recursive space partitioning calculation on the multidimensional feature vectors to obtain a set of data distribution trees; The average path length is calculated based on the data distribution tree set to obtain the initial anomaly score; If the initial anomaly score is greater than the preset anomaly distribution threshold and the confidence level is low confidence level, then the multidimensional feature vector is marked as data to be reviewed. If the initial anomaly score is greater than the anomaly distribution threshold and the confidence level is not low confidence level, then an initial anomaly result is generated; if the initial anomaly score is not greater than the anomaly distribution threshold, then it is determined to be normal data.
7. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 1, characterized in that, The abnormality type label is obtained by performing classification and discrimination processing based on the historical records associated with the initial abnormality result; If the anomaly type label is a mutation type label, then the characteristics of electricity theft can be obtained by combining the event record interception; If the label is a gradient type, the drift characteristics are obtained by comparing it with the error calibration record, including: Based on the initial anomaly results, extract the daily frozen electrical energy sequence and the event record count, and perform classification and deduction processing to obtain anomaly type labels; If the anomaly type label is a mutation type label, then the step segment of the daily frozen electrical energy sequence is extracted, and the start time of the step segment is aligned with the execution time of the event record. After the verification is successful, the step segment is identified as an electricity theft feature. If the anomaly type label is a gradient label, then the error deviation magnitude in the error calibration record is extracted, and the error deviation magnitude is compared and calculated with a preset error judgment threshold. If the error deviation is greater than the error determination threshold, the error deviation is determined as a drift feature; if it is not greater than the error determination threshold, an aging warning message is generated.
8. The method for analyzing metering anomalies in dual-mode energy meters based on edge computing according to claim 6, characterized in that, After generating the measurement anomaly results, the method further includes: The metering anomaly results are sent to the main station to extract line loss data and energy balance data of adjacent electricity meters in the same area; The line loss data and the power balance data are used to perform cross-verification calculations on the metering anomaly results to obtain a verification conclusion. If the review conclusion is confirmed as abnormal, an abnormality confirmation work order is generated; if the review conclusion is not confirmed, the measurement abnormality result is archived as an observation record. After the cross-checking calculation confirms that the data to be reviewed is abnormal, a corresponding measurement anomaly result is generated.
9. A dual-mode energy meter metering anomaly analysis system based on edge computing, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the edge computing-based dual-mode energy meter metering anomaly analysis method as described in any one of claims 1 to 8.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the edge computing-based dual-mode energy meter metering anomaly analysis method as described in any one of claims 1 to 8.
