Method and system for analyzing abnormal line loss of transformer area based on multi-source data

By using multi-source data correlation analysis and improving the DCRNN model, the problems of data mismatch and model instability in transformer area line loss anomaly analysis were solved, enabling accurate location and cause analysis of transformer area line loss anomalies, and improving identification accuracy and management efficiency.

CN123179241APending Publication Date: 2026-11-27SHENYANG HANHUA SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611588220.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-14
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for analyzing abnormal line loss in transformer substations suffer from problems such as data mismatch, mixed identification of abnormal data, unstable model output, and reliance on human experience to pinpoint the cause of abnormalities, making it difficult to accurately identify and locate the cause of abnormal line loss.

Method used

By using correlation analysis based on multi-source data and an improved DCRNN model, the metering attribution relationship between transformer substations, master meters, and users is established. Recursive feedback of supply and sales discrepancies and screening of abnormal responses are carried out. Combined with replacement of stable states before anomalies and verification of discrepancy declines, the accurate location of abnormal line loss objects and causes in transformer substations is achieved.

Benefits of technology

It improves the accuracy and stability of abnormal line loss identification, reduces the workload of manual investigation, and enhances the intelligence and precision of line loss management in transformer areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179241A_ABST
    Figure CN123179241A_ABST
Patent Text Reader

Abstract

The application discloses a transformer area line loss abnormality analysis method and system based on multi-source data, relates to the technical field of industrial data analysis, and comprises the following steps: associating multi-source data to generate transformer area multi-source data; establishing metering attribution and mapping power supply and sales to generate transformer area metering association data; analyzing supply and sale differences to generate line loss candidate segments; using an improved DCRNN model to constrain diffusion and feedback difference deviations to generate line loss abnormality response data; matching abnormality responses and candidate segments to generate line loss abnormality segments; replacing a stable state before abnormality and recalculating supply and sale differences to generate an abnormality association object set; and combining collection abnormality, attribution changes and difference backfalls to generate transformer area line loss abnormality analysis results. The application realizes accurate identification of transformer area line loss abnormality objects and abnormality cause determination by constructing a transformer area line loss analysis process based on multi-source data association, improved DCRNN model abnormality response analysis and difference backfall review.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial data analysis technology, and in particular to a method and system for analyzing line loss anomalies in transformer substations based on multi-source data. Background Technology

[0002] With the continuous advancement of digital transformation of power distribution networks, the operation and management of distribution transformer areas is gradually shifting from manual statistics to collaborative analysis of multi-source data. Distribution transformer line loss, as a crucial indicator reflecting the operational status, metering quality, and marketing management level, typically requires analysis based on comprehensive data including distribution transformer area records, total meter power supply, user electricity sales, data collection status, and marketing indicators. Current technologies often employ statistical analysis of the difference between power supply and sales or the line loss rate based on metering cycles, combined with rules such as fixed thresholds, year-on-year and month-on-month changes, and abnormal fluctuation amplitudes to screen for abnormal distribution transformer areas. Maintenance personnel then further investigate reasons such as missing data collection, meter malfunctions, changes in transformer-customer relationships, and power consumption losses. Some methods further incorporate time-series analysis or neural network models to predict historical line loss data, using prediction bias to aid in anomaly identification.

[0003] While existing technologies can perform preliminary screening for abnormal line losses in transformer substations, they still have shortcomings in practical applications. Data from different sources differ in object identification, metering cycle, and collection time. Supplementary collection, missing data, and changes in attribution can easily lead to mismatches in electricity supply and sales in terms of time and object dimensions. Relying solely on line loss rates or supply-sales differences can easily confuse data collection anomalies with actual loss anomalies. Existing time-series forecasting methods typically focus on single time-series changes, underutilizing the metering attribution relationships between transformer substations, master meters, and users. When a local node experiences a collection anomaly, the abnormal data may also participate in subsequent feature propagation along the correlation, reducing the stability of the model output. Furthermore, after obtaining anomaly responses, existing methods often stop at correlation judgment, lacking a verification process that involves state replacement for the abnormal object and recalculation of the supply-sales difference. Therefore, it is difficult to determine whether a particular master meter or user truly has a substantial impact on line loss anomalies. In addition, the lack of a unified correlation determination mechanism between collection anomalies, attribution changes, and actual loss anomalies easily leads to reliance on human experience in locating the cause of anomalies.

[0004] Therefore, how to provide a method and system for analyzing transformer line loss anomalies based on multi-source data is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] One objective of this invention is to propose a method and system for analyzing line loss anomalies in transformer substations based on multi-source data. This invention fully utilizes multi-source data correlation analysis and an improved DCRNN model to perform unified correlation processing on transformer substation archive data, power supply and sales data, data collection status data, and marketing indicator data. Through metering reliability diffusion gating, recursive feedback of supply and sales difference, continuous anomaly response screening, and replacement of stable state before anomalies and verification of difference decline, it achieves the analysis of abnormal objects and causes of abnormal line loss in transformer substations. It has the advantages of strong data correlation, high accuracy of anomaly identification, reliable location of abnormal objects, and clear determination of anomaly causes.

[0006] The method for analyzing transformer substation line loss anomalies based on multi-source data according to embodiments of the present invention includes:

[0007] Collect data from transformer area archives, electricity supply and sales data, collection status data, and marketing indicator data, and associate them by object and metering cycle to generate multi-source data for transformer areas;

[0008] Based on the data archived by the transformer area, establish the metering attribution relationship between the transformer area, the master meter and the user, map the electricity supply and sales data and mark collection anomalies and attribution changes, and generate transformer area metering association data;

[0009] Calculate the supply and sales difference for each metering period, filter abrupt change intervals and continuous deviation intervals, and link the master table and users to generate candidate segments of line loss;

[0010] The improved DCRNN model is input into the multi-source data and metering correlation data of the transformer area. The abnormal data is propagated according to the collection anomaly constraint to form the supply and sales difference deviation state and feed it back to the decoding cycle to generate line loss anomaly response data. The improved DCRNN model includes a metering reliability diffusion gate layer, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, a supply and sales difference recursive feedback layer and an anomaly response output layer.

[0011] Match abnormal line loss response data with candidate line loss segments, filter continuous response segments, and generate abnormal line loss segments;

[0012] Filter the master table and users according to the abnormal response of line loss, replace the corresponding status with the stable status before the abnormality and recalculate the supply and sales difference, and generate an abnormal related object set according to the decline of the difference;

[0013] By combining the abnormal data collection, attribution changes, and differential decline of the associated objects, the cause of the anomaly is determined, and the abnormal line loss analysis results for the transformer area are generated.

[0014] Optionally, the transformer area archive data includes transformer area identifier, master meter identifier, user identifier, metering point identifier, and transformer-household affiliation; the electricity supply and sales data includes master meter electricity supply, user electricity sales, metering time, and metering cycle; the data collection status includes data collection status, data collection time, data collection success rate, missing records, and supplementary data collection records; and the marketing indicator data includes transformer area line loss rate, line loss electricity, and indicator statistical cycle.

[0015] Optionally, the generation of multi-source data for the transformer area includes:

[0016] Establish an object association index for the master table, metering points and users according to the transformer area identification and the relationship between transformer and user, and associate the power supply and sales data, collection status data and marketing indicator data with the corresponding objects to generate object association data;

[0017] Map the measurement time, collection time and indicator statistical period in the object-related data to the corresponding measurement period, and backfill the corresponding missing records based on the supplementary collection records to generate period-aligned data;

[0018] Data is aggregated according to the transformer area identifier and metering cycle, and the corresponding power supply and sales data, collection status data and marketing indicator data are retained to generate multi-source data for the transformer area.

[0019] Optionally, the generation of transformer area metering association data includes:

[0020] Based on the transformer area identification and the relationship between transformer and user, the master table, metering points and users are associated to establish a metering attribution chain and generate metering relationship data;

[0021] The electricity supply and sales data are mapped according to the metering relationship data. Combined with the collection status data, missing collection, supplementary collection and discontinuous collection time are identified, collection anomalies are marked, and metering mapping data is generated.

[0022] By comparing the metering attribution chains in the metering mapping data according to the metering cycle, the attribution changes due to changes in connection relationships are marked, and metering relationship data, power supply and sales data, collection anomalies and attribution changes are collected to generate metering association data for the transformer area.

[0023] Optionally, generating candidate segments for line loss includes:

[0024] The total electricity supply and user sales volume are summarized according to the transformer area identification and metering cycle. The supply and sales difference is determined by deducting the total electricity supply from the user sales volume during the same period, and a supply and sales difference sequence is generated.

[0025] Calculate the magnitude of the difference change between adjacent measurement periods, determine the abrupt change boundary using the upper quartile value, and screen the abrupt change interval; determine the difference benchmark using the median value of the supply and sales difference sequence, screen measurement periods that are continuously located on the same side of the difference benchmark and whose deviation magnitude increases, form continuous deviation intervals, and generate interval labeled data.

[0026] The corresponding metering period is determined by the interval marker data. The master table and users are linked from the metering association data of the transformer area. The supply and sales difference and interval markers are collected to generate candidate segments of line loss.

[0027] Optionally, the generation of abnormal line loss response data includes:

[0028] Based on the diffusion convolution gated recurrent encoding structure, diffusion convolution gated recurrent decoding structure, and output mapping structure in the DCRNN model, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, and an abnormal response output layer are formed, respectively. A measurement reliability diffusion gated layer is added before the diffusion convolution gated recurrent encoding layer and connected to the diffusion convolution entry point. A supply and sales difference recursive feedback layer is added after the diffusion convolution gated recurrent decoding layer and connected to the state input end of the next decoding cycle, thus forming an improved DCRNN model.

[0029] The multi-source data and metering association data of the transformer area are input into the metering trusted diffusion gating layer. The master table and users are used as association nodes. A two-way diffusion relationship is established according to the metering attribution relationship. The diffusion gating strength is determined based on the collection success rate and the number of continuous metering cycles with collection anomalies, and trusted diffusion data is generated.

[0030] The reliable diffusion data is input into the diffusion convolution gated recurrent coding layer, and bidirectional diffusion convolution and gated state update are performed according to the metering period to generate historical state data of the transformer area.

[0031] The historical status data of the transformer area is input into the diffusion convolution gated recurrent decoding layer, which gradually decodes the total power supply and user electricity sales while retaining the hidden state, and generates metering prediction data.

[0032] The measurement and forecast data is input into the supply and sales difference recursive feedback layer to determine the predicted supply and sales difference and the actual supply and sales difference respectively. The two are compared to form the supply and sales difference deviation state, which is then concatenated with the input state of the next decoding cycle to participate in the hidden state update and generate the difference feedback decoding data.

[0033] Input the differential feedback decoding data into the abnormal response output layer, compare the predicted values ​​of the total power supply and the user's electricity sales with the corresponding actual values, combine the supply and sales difference deviation status to form an abnormal response, and generate line loss abnormal response data;

[0034] Acquire historical transformer area archive data, historical power supply and sales data, historical data collection status data, and historical marketing indicator data to generate historical transformer area multi-source data and historical transformer area metering correlation data; input the improved DCRNN model, determine the training objective based on the prediction deviation of total meter power supply, user power sales, and supply and sales difference, iteratively update the model parameters until convergence, and obtain the trained improved DCRNN model.

[0035] Optionally, the generation of abnormal line loss segments includes:

[0036] Match abnormal line loss response data with candidate line loss segments according to transformer area identifier, metering cycle and master table or user, extract corresponding abnormal responses, and generate response matching data;

[0037] Arrange response matching data according to the metering period, filter out segments of the same master table or user that have consecutive abnormal responses and merge adjacent segments to generate continuous response segments.

[0038] Match continuous response segments with mutation intervals and continuous deviation intervals, retain continuous response segments with overlapping metering periods and consistent across the master table or user, and generate line loss anomaly segments.

[0039] Optionally, generating the abnormal correlation object set according to the difference decline magnitude includes:

[0040] Extract the summary table and user anomaly responses from online loss anomaly segments, filter them by the number of continuous metering cycles of the anomaly response and the response magnitude, and generate a set of objects to be audited;

[0041] Extract the electricity supply and sales data and metering attribution relationship of the target object for continuous metering cycles before the abnormal loss segment. Determine the stable metering status before the abnormality based on the change range of electricity supply and sales in adjacent metering cycles. Determine the stable attribution status before the abnormality based on the continuously unchanged metering attribution relationship. Replace the corresponding metering attribution relationship with the stable attribution status before the abnormality for the target object with the stable attribution status before the abnormality. Replace the corresponding electricity supply and sales data with the stable metering status before the abnormality for the other target objects.

[0042] The replacement measurement data of each object to be verified is sequentially filled back into the measurement association data of the transformer area, the supply and sales difference after replacement is recalculated, and the difference before and after replacement is used to determine the magnitude of the difference reduction and generate the difference reduction data.

[0043] Sort by the magnitude of the difference decline, use the median value to determine the filtering threshold, retain the total table and users whose difference decline is positive and not lower than the filtering threshold, and generate an abnormal association object set.

[0044] Optionally, the generated transformer area line loss anomaly analysis results include:

[0045] Extract the collection anomalies, attribution changes, and difference reduction data corresponding to the abnormal associated object set, and associate them by master table or user and metering period to generate anomaly judgment data;

[0046] Based on the anomaly judgment data, the total table or user with collection anomaly and positive difference decline is judged as collection anomaly, the total table or user with ownership change and positive difference decline is judged as relationship anomaly, and the total table or user without collection anomaly and ownership change and continuous positive difference decline is judged as loss anomaly, and anomaly reason data is generated.

[0047] The abnormal cause data is associated with the abnormal line loss segments according to the transformer area identifier and metering period. The summary table or user, abnormal cause, difference reduction range and metering period range are collected to generate the transformer area line loss abnormality analysis results.

[0048] The transformer substation line loss anomaly analysis system based on multi-source data according to an embodiment of the present invention includes the following modules:

[0049] The multi-source data aggregation module is used to organize transformer area archive data, power supply and sales data, collection status data and marketing indicator data according to objects and metering cycles, and generate multi-source data for transformer areas.

[0050] The metering association construction module is used to establish metering attribution relationships, map power supply and sales data, record collection anomalies and attribution changes, and generate metering association data for distribution areas.

[0051] The line loss candidate filtering module is used to filter the sudden change range and continuous deviation range of the supply and sales difference and associate it with the master table and users to generate line loss candidate segments;

[0052] The anomaly response modeling module is used to generate line loss anomaly response data by performing diffusion gating and recursive feedback of supply and sales difference through an improved DCRNN model.

[0053] The continuous response confirmation module is used to match abnormal line loss response data with candidate line loss segments and generate abnormal line loss segments.

[0054] The difference fallback verification module is used to replace the corresponding state with the stable state before the anomaly and recalculate the supply and sales difference respectively, and generate an anomaly-related object set according to the difference fallback magnitude;

[0055] The anomaly cause determination module is used to determine the cause of anomalies by combining data acquisition anomalies, attribution changes, and the magnitude of the difference in losses, and to generate anomaly analysis results for transformer area line loss.

[0056] The beneficial effects of this invention are:

[0057] This invention unifies and correlates data from transformer substation archives, electricity supply and sales, data collection status, and marketing indicators. It establishes metering correlation data for transformer substations based on the metering affiliation relationships between substations, master meters, and users, enabling data from different sources, objects, and metering periods to participate in line loss analysis under a unified framework. By filtering abrupt and continuous deviation intervals in the supply-sales difference sequence and correlating them with corresponding master meters and users to form candidate line loss segments, it reduces the bias caused by relying solely on a single line loss rate or fixed threshold. This provides a clear analytical basis with a defined time frame and associated objects for subsequent anomaly identification, improving the targeting of transformer substation line loss anomaly screening.

[0058] This invention further improves the DCRNN model to perform time-series correlation analysis on multi-source data and metering correlation data of transformer substations. A metering reliability diffusion gating layer is introduced into the model to adjust the diffusion propagation degree of correlation nodes based on the acquisition success rate and the persistence of acquisition anomalies, reducing interference caused by missing, supplementary, or abnormal acquisition data propagating along metering relationships. Simultaneously, a recursive feedback layer for supply-sales difference feeds back the deviation between the predicted and actual supply-sales difference to subsequent decoding cycles, enabling the model to continuously characterize the abnormal evolution process of the supply-sales difference. This allows the model to consider both the metering relationships within the transformer substation and the time-series changes in line loss, improving the stability and accuracy of line loss anomaly response under complex acquisition conditions.

[0059] This invention matches abnormal line loss response data with candidate line loss segments, screening and verifying continuously occurring abnormal responses within a continuous metering period. This filters out short-term responses caused by instantaneous fluctuations or occasional anomalies, improving the reliability of abnormal line loss segment confirmation. Furthermore, it replaces associated abnormal objects with their pre-abnormal stable states and recalculates the supply-sales difference after replacement for each. The degree of decline in the supply-sales difference before and after replacement is used to evaluate the correlation between the corresponding master table or user and the abnormal line loss. This transforms the identification of abnormal objects from simple correlation identification into a verification process based on difference changes, enhancing the credibility of the abnormal object location results.

[0060] This invention also combines the abnormal collection of associated objects, changes in attribution, and the magnitude of the difference in the amount of loss to determine the cause of the abnormality. It further classifies line loss abnormalities into collection abnormalities, relationship abnormalities, and loss abnormalities. This allows the analysis results to not only determine whether there is an abnormality in the transformer area, but also to provide the corresponding master table or user and the cause of the abnormality. This reduces the workload of manual item-by-item investigation, improves the efficiency of transformer area line loss anomaly location and cause analysis, and provides clearer data basis for transformer area line loss management, metering relationship verification, and abnormal electricity consumption investigation, thereby improving the intelligence and precision of transformer area line loss management. Attached Figure Description

[0061] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0062] Figure 1 This is a flowchart of the transformer area line loss anomaly analysis method based on multi-source data proposed in this invention;

[0063] Figure 2 This is a schematic diagram of the improved DCRNN model for the transformer area line loss anomaly analysis method based on multi-source data proposed in this invention;

[0064] Figure 3This is a schematic diagram of the structure of the transformer area line loss anomaly analysis system based on multi-source data proposed in this invention. Detailed Implementation

[0065] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.

[0066] refer to Figure 1 and Figure 2 A method for analyzing transformer substation line loss anomalies based on multi-source data includes:

[0067] Collect data from transformer area archives, electricity supply and sales data, collection status data, and marketing indicator data, and associate them by object and metering cycle to generate multi-source data for transformer areas;

[0068] Based on the data archived by the transformer area, the metering attribution relationship between the transformer area, the master meter and the user is established, the power supply and sales data are mapped and collection anomalies and attribution changes are marked, and the metering association data of the transformer area is generated.

[0069] Calculate the supply and sales difference for each metering period, filter abrupt change intervals and continuous deviation intervals, and link the master table and users to generate candidate segments of line loss;

[0070] The improved DCRNN model is input into the multi-source data and metering correlation data of the transformer area. The abnormal data is propagated according to the collection anomaly constraint to form the supply and sales difference deviation state and feed it back to the decoding cycle to generate line loss anomaly response data. The improved DCRNN model includes a metering reliability diffusion gate layer, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, a supply and sales difference recursive feedback layer and an anomaly response output layer.

[0071] Match abnormal line loss response data with candidate line loss segments, filter continuous response segments, and generate abnormal line loss segments;

[0072] Filter the master table and users according to the abnormal response of line loss, replace the corresponding status with the stable status before the abnormality and recalculate the supply and sales difference, and generate an abnormal related object set according to the decline of the difference.

[0073] By combining the abnormal collection of related objects, changes in ownership, and the magnitude of the difference in losses, the cause of the abnormality is determined, and the abnormal analysis results of the transformer area line loss are generated.

[0074] In this embodiment, the transformer area archive data includes transformer area identifier, master meter identifier, user identifier, metering point identifier, and transformer-household affiliation; the power supply and sales data includes master meter power supply, user power sales, metering time, and metering cycle; the data collection status data includes data collection status, data collection time, data collection success rate, missing records, and supplementary data collection records; and the marketing indicator data includes transformer area line loss rate, line loss power, and indicator statistical cycle.

[0075] In this embodiment, the generation of multi-source data for the transformer area includes:

[0076] Establish an object association index for the master table, metering points and users according to the transformer area identification and the relationship between transformer and user, and associate the power supply and sales data, collection status data and marketing indicator data with the corresponding objects to generate object association data;

[0077] The measurement time, collection time, and indicator statistical period in the object-related data are mapped to the corresponding measurement period, and the missing records are backfilled based on the supplementary collection records to generate period-aligned data. Specifically, the generation of period-aligned data involves:

[0078] Using the metering cycle in the electricity supply and sales data as a unified time unit, the metering time, collection time, and indicator statistical cycle corresponding to the master table, metering points, and users are read according to the object association index. Records whose metering time and collection time fall within the same start and end range are assigned to the corresponding metering cycle. The indicator statistical cycle is directly mapped to the metering cycle with the same start and end range. When the indicator statistical cycle covers multiple metering cycles, cycle correspondence is established according to the time intersection. For missing records in the collection status data, the object identifier and the corresponding metering cycle of the missing record are extracted. Records with the same object identifier and the same metering cycle of the supplementary collection data are searched in the supplementary collection records. When multiple supplementary collection records match the same missing record, they are arranged from earliest to latest collection time, and the supplementary collection record with the latest collection time and normal collection status is selected. The electricity supply and sales in the supplementary record are written into the metering cycle corresponding to the missing record and the supplementary collection record mark is retained. The electricity supply and sales data, collection status data, and marketing indicator data that have been mapped and backfilled are collected according to the object identifier and metering cycle to generate cycle-aligned data.

[0079] Data is aggregated according to the transformer area identifier and metering cycle, and the corresponding power supply and sales data, collection status data and marketing indicator data are retained to generate multi-source data for the transformer area.

[0080] In this embodiment, the generation of transformer area metering association data includes:

[0081] Based on the transformer area identification and the master table of transformer household affiliation, metering points, and users, a metering affiliation chain is established to generate metering relationship data. Specifically, establishing the metering affiliation chain and generating metering relationship data involves:

[0082] The data in the transformer substation archives are grouped according to the substation substation identifier. Under the same substation substation identifier, the master table identifier, metering point identifier, user identifier, and substation / household affiliation relationship are read. A primary association is established between the master table identifier and the corresponding metering point identifier, and a secondary association is established between the metering point identifier and the corresponding user identifier. The substation substation to which the user identifier belongs is verified to be consistent with the substation substation to which the master table identifier belongs. The primary and secondary associations that are consistent with the substation substation are retained. The master table, metering points, and users are connected sequentially according to the primary and secondary associations to form a metering affiliation chain with the master table as the starting point, metering points as intermediate nodes, and users as the terminal nodes. For each metering affiliation chain, the substation substation identifier, master table identifier, metering point identifier, user identifier, and corresponding substation / household affiliation relationship are recorded and aggregated according to the substation substation identifier to generate metering relationship data.

[0083] The electricity supply and sales data are mapped according to the metering relationship data. Combined with the data collection status data, missing data collection, supplementary data collection, and discontinuous data collection are identified, and collection anomalies are marked. Metering mapping data is then generated. Specifically, the generation of metering mapping data involves:

[0084] Based on the master table identifier, metering point identifier, and user identifier in the metering relationship data, the electricity supply and sales data are mapped to the corresponding metering attribution chain, and the corresponding collection status data is arranged according to the metering cycle. Objects with metering cycles but lacking corresponding electricity supply and sales records are marked as missing collections. Records with the same object identifier as the missing record object identifier and belonging to the same metering cycle in the supplementary collection records are marked as supplementary collections. Records with a collection time interval greater than the length of the corresponding metering cycle for two adjacent collection records of the same object are marked as discontinuous collection time. When any metering cycle has missing collections, supplementary collections, or discontinuous collection time, the corresponding master table, metering point, or user is marked as a collection anomaly. When multiple anomalies occur simultaneously in the same metering cycle, all anomaly types are retained. The mapped electricity supply and sales data, collection status data, collection anomalies, and corresponding anomaly types are aggregated according to the metering attribution chain to generate metering mapping data.

[0085] By comparing the metering attribution chains in the metering mapping data according to the metering cycle, changes in attribution due to changes in connection relationships are marked. Metering relationship data, power supply and sales data, data collection anomalies, and attribution changes are aggregated to generate transformer area metering association data. Specifically, the generation of transformer area metering association data includes:

[0086] Metering attribution chains in the metering mapping data are arranged according to metering cycle. The total meter identifier, metering point identifier, and user identifier under the same transformer area identifier in adjacent metering cycles are compared. When the connection relationship between the total meter identifier and the metering point identifier is added, reduced, or replaced, the total meter association change is marked. When the connection relationship between the metering point identifier and the user identifier is added, reduced, or replaced, the user attribution change is marked. The metering cycle corresponding to any change in connection relationship is marked as an attribution change. Metering relationship data, power supply and sales data, collection anomalies, and attribution changes are collected according to transformer area identifier and metering cycle, and the corresponding total meter identifier, metering point identifier, and user identifier are retained to generate transformer area metering association data.

[0087] In this embodiment, generating candidate segments for line loss includes:

[0088] The total electricity supply and user sales volume are summarized according to the transformer area identification and metering cycle. The supply and sales difference is determined by deducting the total electricity supply from the user sales volume during the same period, and a supply and sales difference sequence is generated.

[0089] Calculate the magnitude of the difference change between adjacent measurement periods, determine the abrupt change boundary using the upper quartile value, and screen the abrupt change interval; determine the difference benchmark using the median value of the supply-sales difference sequence, screen measurement periods that are continuously located on the same side of the difference benchmark and whose deviation magnitude increases, forming continuous deviation intervals, and generate interval labeled data. Specifically, the generation of interval labeled data involves:

[0090] The supply and sales difference sequence is read sequentially according to the measurement period. The supply and sales difference of the previous measurement period is subtracted from the supply and sales difference of the next measurement period, and the absolute value of the difference is taken as the difference change range of the corresponding adjacent measurement periods. All difference change ranges are arranged from smallest to largest, and the upper quartile position is determined according to the 75th percentile of the data. When the position is an integer, the corresponding difference change range is read. When the position is not an integer, the average of the difference change ranges corresponding to the two adjacent positions is taken as the upper quartile value, and the upper quartile value is used as the abrupt change threshold. Adjacent measurement periods with difference change ranges greater than the abrupt change threshold are marked as abrupt change periods. Abrupt change periods with continuous time are merged to form a sudden change period. Variable intervals; Arrange the supply and sales difference sequence from smallest to largest. When the number of data points is odd, take the supply and sales difference corresponding to the middle position as the difference benchmark. When the number of data points is even, take the average of the supply and sales difference corresponding to the two middle positions as the difference benchmark. Calculate the difference between the supply and sales difference and the difference benchmark for each measurement period. If the difference signs are the same, they indicate that they are on the same side of the difference benchmark. When the difference signs are consistent for more than 3 consecutive measurement periods and the absolute value of the difference increases period by period, it is marked as a continuous deviation period. Merge the continuous deviation periods with continuous time to form a continuous deviation interval. Record the abrupt interval markers and continuous deviation interval markers according to the measurement period to generate interval marker data.

[0091] The corresponding metering period is determined based on the interval marker data. The master table and users are linked from the transformer area metering correlation data. The supply-sales difference and interval markers are aggregated to generate candidate line loss segments. Specifically, the generation of candidate line loss segments involves:

[0092] The starting and ending metering periods and interval types of abrupt change intervals and continuous deviation intervals are read according to the interval marker data, and the corresponding candidate time ranges are formed from the starting to the ending metering periods. The metering association data of the transformer area is retrieved according to the transformer area identifier and the candidate time range. The master table identifier and user identifier in the metering attribution chain corresponding to each metering period are read, and the master table and user are associated with the corresponding metering period. The supply and sales difference is extracted according to the metering period, and the supply and sales difference, master table identifier, user identifier and corresponding interval marker are written into the candidate time range. When the abrupt change interval and the continuous deviation interval overlap, both types of interval markers are retained. The supply and sales difference, master table identifier, user identifier and interval marker in the continuous metering period are collected according to the transformer area identifier and the candidate time range to generate line loss candidate segments.

[0093] In this embodiment, the generation of abnormal line loss response data includes:

[0094] Based on the diffusion convolution gated recurrent encoding structure, diffusion convolution gated recurrent decoding structure, and output mapping structure in the DCRNN model, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, and an abnormal response output layer are formed, respectively. A measurement reliability diffusion gated layer is added before the diffusion convolution gated recurrent encoding layer and connected to the diffusion convolution entry point. A supply and sales difference recursive feedback layer is added after the diffusion convolution gated recurrent decoding layer and connected to the state input end of the next decoding cycle, thus forming an improved DCRNN model.

[0095] This invention structurally optimizes the traditional DCRNN model by adding a metering reliability diffusion gating layer and a supply-sales difference recursive feedback layer, thereby enhancing the model's adaptability to changes in data collection status and supply-sales difference.

[0096] To address the issue that missing data collection, re-collection, and discontinuous data collection can easily interfere with the propagation of features of associated nodes, a reliable metering diffusion gating layer is introduced. The diffusion gating strength is adjusted based on the data collection success rate and the number of continuous metering cycles of abnormal data collection, thereby reducing the impact of abnormal data collection states on diffusion propagation.

[0097] To enhance the ability to characterize continuous line loss anomalies, a recursive feedback layer for supply and sales difference is introduced, which feeds back the deviation status of supply and sales difference to the next decoding cycle, thereby improving the ability to identify continuous deviations and cumulative anomalies.

[0098] Regarding abnormal response output, the abnormal response is formed by combining the total power supply, the predicted deviation of user electricity sales, and the deviation of supply and sales difference, thereby improving the correspondence between the abnormal response of line loss and the actual changes in supply and sales.

[0099] Through the above structural improvements, the improved DCRNN model can take into account the measurement relationship, the collection status, and the evolution characteristics of the supply and sales difference, thereby improving the stability and accuracy of the line loss anomaly response data.

[0100] Multi-source data and metering association data of the transformer substation area are input into the metering trusted diffusion gating layer. Using the master table and users as association nodes, a two-way diffusion relationship is established according to metering affiliation. The diffusion gating strength is determined based on the data collection success rate and the number of consecutive metering cycles with abnormal data collection, generating trusted diffusion data. The metering trusted diffusion gating layer includes:

[0101] Metering Node Mapping Unit: Based on the metering attribution relationship in the metering association data of the transformer area, the master table and users are mapped as associated nodes, and a forward diffusion relationship from the master table to the user and a reverse diffusion relationship from the user to the master table are established.

[0102] Trusted computing unit: Reads the acquisition success rate and the number of consecutive measurement periods with acquisition anomalies for each associated node in the corresponding measurement period, and calculates the diffusion gating strength;

[0103] Bidirectional diffusion gating unit: Adjusts the propagation amount of associated nodes in the forward and reverse diffusion relationships according to the diffusion gating strength to form the gating bidirectional diffusion result;

[0104] Trusted diffusion output unit: It collects the bidirectional diffusion results of associated nodes according to the metering period, and maintains the correspondence between the objects and metering periods with the multi-source data of the corresponding nodes to generate trusted diffusion data;

[0105] In the trusted diffusion gating layer for metering, the metering node mapping unit reads the master table and users within the same area according to the metering affiliation, establishes a forward connection between the master table and the affiliated user, and establishes a reverse connection in the opposite direction; the trusted acquisition calculation unit converts the acquisition success rate into a value between 0 and 1, divides the number of metering cycles in which acquisition anomalies occur consecutively by the total number of metering cycles contained in the current input sequence to obtain the anomaly persistence ratio. When there are no acquisition anomalies, the anomaly persistence ratio is 0. The value obtained by subtracting the anomaly persistence ratio from 1 and the acquisition success rate are each assigned a weight of 0.5 and summed to obtain the diffusion gating strength of the corresponding associated node; the bidirectional diffusion gating unit multiplies the propagation state of the associated node by the diffusion gating strength and distributes it proportionally according to the number of forward connections or the number of reverse connections to obtain the forward diffusion result and the reverse diffusion result respectively; the trusted diffusion output unit aggregates the forward diffusion result and the reverse diffusion result according to the associated node and metering cycle, retains the object relationship and time order of the corresponding master table and user, and generates trusted diffusion data for the diffusion convolutional gated recurrent coding layer to call;

[0106] Reliable diffusion data is input into a diffusion-gated convolutional recurrent coding layer. Bidirectional diffusion convolution and gated state updates are performed according to the metering period to generate historical state data for the transformer area. The diffusion-gated convolutional recurrent coding layer includes:

[0107] Bidirectional diffusion convolutional unit: Receives reliable diffusion data, aggregates the association status between the master table and the user along the forward diffusion relationship and the reverse diffusion relationship respectively, and generates bidirectional diffusion features;

[0108] Reset gate calculation unit: Determines the reset gate state based on the bidirectional diffusion characteristics and the hidden state of the previous metering cycle, and controls the proportion of the hidden state of the previous metering cycle participating in the calculation of the current candidate state;

[0109] Update gate calculation unit: Determines the update gate state based on the bidirectional diffusion characteristics and the hidden state of the previous metering cycle, and controls the retention ratio between the hidden state of the previous metering cycle and the current candidate state;

[0110] Candidate state generation unit: Adjusts the hidden state of the previous measurement cycle according to the reset gate state, and generates the current candidate state together with the bidirectional diffusion feature;

[0111] Historical status output unit: According to the update gate status, the hidden status of the previous metering cycle and the current candidate status are merged to obtain the hidden status of the current metering cycle, and the historical status data of the transformer area is generated by arranging them according to the metering cycle.

[0112] In the diffusing convolution gated recurrent coding layer, the bidirectional diffusing convolution unit reads the forward and backward diffusing results from the reliable diffusing data, respectively, and weights and aggregates the node states connected to the current associated node according to the corresponding diffusing results. The forward aggregation result and the backward aggregation result are then concatenated to form the bidirectional diffusing feature. The reset gate calculation unit linearly maps the bidirectional diffusing feature to the hidden state of the previous metering period and converts it into a reset gate state between 0 and 1 through a sigmoid activation function. The update gate calculation unit independently performs linear mapping and sigmoid activation with the same input to obtain an update gate state between 0 and 1. The candidate state generation unit multiplies the hidden state of the previous metering period by the reset gate state and concatenates it with the bidirectional diffusing feature. The current candidate state is generated through linear mapping and hyperbolic tangent activation. The historical state output unit uses the update gate state as the retention ratio of the hidden state of the previous metering period and 1 minus the update gate state as the retention ratio of the current candidate state. The two results are summed to obtain the hidden state of the current metering period, and the data is continuously encoded according to the metering period to generate the historical state data of the transformer area.

[0113] Historical data of the transformer substation is input into the diffusion-gated recurrent decoding layer to progressively decode the total electricity supply and user electricity sales while retaining the hidden state, generating metering prediction data. The diffusion-gated recurrent decoding layer includes:

[0114] Decoding state initialization unit: Reads the hidden state of the last metering cycle in the historical state data of the transformer area to form the initial decoding state;

[0115] Bidirectional diffusion decoding unit: Based on the forward and reverse diffusion relationships between the master table and the user, it performs bidirectional diffusion convolution on the input state of the current decoding cycle to generate decoding diffusion features;

[0116] Gated state update unit: Calculates the reset gate state, update gate state, and candidate state based on the decoding diffusion characteristics and the hidden state of the previous decoding cycle, and generates the hidden state of the current decoding cycle;

[0117] Supply and sales volume mapping unit: Maps the hidden state of the current decoding cycle to the total meter power supply prediction value and the user power sales prediction value respectively, forming the prediction result of the current metering cycle;

[0118] Metering Prediction Output Unit: Arranges the total meter power supply prediction value, user power sales prediction value and corresponding hidden status according to the decoding cycle to generate metering prediction data;

[0119] In the diffusing convolution gated recurrent decoding layer, the decoding state initialization unit extracts the hidden state corresponding to the last metering cycle from the historical state data of the transformer area and writes it into the initial decoding state according to the node arrangement order of the master table and the user. The bidirectional diffusion decoding unit reads the input state of the current decoding cycle, gathers the node states propagated from the master table to the user along the forward diffusion relationship, and gathers the node states propagated from the user to the master table along the reverse diffusion relationship. The two types of gathering results are concatenated to form the decoding diffusion feature. The gated state update unit performs linear mapping on the decoding diffusion feature and the hidden state of the previous decoding cycle, respectively, and obtains a value between 0 and 1 through the sigmoid activation function. The system resets the gate state and updates the gate state. The hidden state of the previous decoding cycle is multiplied by the reset gate state and concatenated with the decoding diffusion feature. This concatenation is then processed by linear mapping and hyperbolic tangent activation to form candidate states. The hidden state of the previous decoding cycle and the candidate states are then fused according to the update gate state to obtain the hidden state of the current decoding cycle. The power supply and sales mapping unit performs a linear mapping on the hidden state of the current decoding cycle, mapping the master meter node to the master meter's predicted power supply value and the user node to the user's predicted power sales value. The metering prediction output unit collects the predicted power supply and sales values ​​and hidden states corresponding to each master meter and user according to the decoding cycle, generating metering prediction data.

[0120] The measurement and forecast data is input into the supply and sales difference recursive feedback layer to determine the predicted supply and sales difference and the actual supply and sales difference, respectively. The two are compared to form the supply and sales difference deviation state, which is then concatenated with the input state of the next decoding cycle to participate in the hidden state update, generating the difference feedback decoding data. The supply and sales difference recursive feedback layer includes:

[0121] Prediction Difference Calculation Unit: Reads the total meter power supply prediction value and the user power sales prediction value from the meter forecast data, and calculates the predicted supply-sales difference;

[0122] Actual difference calculation unit: Reads the total electricity supply and user electricity sales from the same period's electricity supply and sales data, and calculates the actual supply and sales difference;

[0123] Deviation State Generation Unit: Compares the predicted supply-sales gap with the actual supply-sales gap to generate a supply-sales gap deviation state;

[0124] Recursive feedback unit: It concatenates the supply-sales difference deviation state with the input state of the next decoding cycle and participates in the hidden state update;

[0125] Feedback decoding output unit: Collects the supply and sales difference deviation status, hidden status and supply and sales electricity prediction values ​​for each decoding cycle, and generates difference feedback decoding data;

[0126] In the recursive feedback layer for supply and sales difference, the prediction difference calculation unit summarizes the predicted electricity sales of all users within the same distribution area according to the decoding cycle, and subtracts the summarized user electricity sales forecast from the total meter power supply forecast to obtain the predicted supply and sales difference; the actual difference calculation unit summarizes the electricity sales of users in the same period according to the same distribution area and metering cycle, and subtracts the summarized user electricity sales forecast from the total meter power supply in the same period to obtain the actual supply and sales difference; the deviation state generation unit subtracts the actual supply and sales difference from the predicted supply and sales difference to obtain the difference deviation amount, and compares the difference deviation amount with the absolute value of the predicted supply and sales difference. The larger of the absolute values ​​of the supply and sales difference is normalized to obtain the supply and sales difference deviation state. When both absolute values ​​are 0, the supply and sales difference deviation state is set to 0. The recursive feedback unit writes the supply and sales difference deviation state into the corresponding decoding cycle and concatenates it with the input state of the next decoding cycle to form the feedback input state. The spread convolution gated recurrent decoding layer updates the hidden state based on the feedback input state. The feedback decoding output unit arranges the total table power supply prediction value, user power sales prediction value, supply and sales difference deviation state and corresponding hidden state according to the decoding cycle to generate difference feedback decoding data.

[0127] The differential feedback decoding data is input into the anomaly response output layer. The predicted values ​​of the total power supply and user electricity sales are compared with the corresponding actual values. An anomaly response is generated by combining the supply and sales difference deviation status, and line loss anomaly response data is generated. The anomaly response output layer includes:

[0128] Power supply deviation calculation unit: compares the predicted power supply value of the master meter with the corresponding actual value, and generates the predicted deviation of the master meter;

[0129] Electricity sales deviation calculation unit: compares the predicted value of user electricity sales with the corresponding actual value to generate user prediction deviation;

[0130] Difference Status Fusion Unit: Fuses the master table prediction deviation, user prediction deviation, and supply and sales difference deviation status to generate abnormal responses for the master table and users;

[0131] Anomaly Response Output Unit: Collects anomaly responses according to transformer area identifier, master meter identifier, user identifier and metering cycle, and generates line loss anomaly response data;

[0132] In the anomaly response output layer, the power supply deviation calculation unit calculates the absolute value of the difference between the predicted value of the total power supply and the corresponding actual value, and divides it by the larger of the two absolute values ​​to obtain the total meter prediction deviation between 0 and 1. When both are 0, the total meter prediction deviation is set to 0. The electricity sales deviation calculation unit calculates the user prediction deviation between the predicted value of each user's electricity sales and the corresponding actual value in the same way. The difference status fusion unit reads the supply and sales difference deviation status of the same metering period, takes the absolute value of the supply and sales difference deviation status and limits it to the range of 0 to 1, assigns a weight of 0.5 to the total meter prediction deviation and the supply and sales difference deviation status respectively, and sums them to obtain the total meter anomaly response. The user prediction deviation and the supply and sales difference deviation status are assigned a weight of 0.5 respectively and summed to obtain the user anomaly response. The anomaly response output unit arranges the total meter anomaly response and the user anomaly response according to the metering period, and retains the corresponding transformer area identifier, total meter identifier, and user identifier to generate line loss anomaly response data.

[0133] Acquire historical transformer area archive data, historical power supply and sales data, historical data collection status data, and historical marketing indicator data to generate historical transformer area multi-source data and historical transformer area metering correlation data; input the improved DCRNN model, determine the training objective based on the prediction deviation of total meter power supply, user power sales, and supply-sales difference, iteratively update the model parameters until convergence, and obtain the trained improved DCRNN model, specifically as follows:

[0134] Historical transformer substation multi-source data and historical transformer substation metering correlation data are divided into training data, validation data, and test data according to the metering cycle order, with proportions of 70%, 15%, and 15%, respectively, maintaining the continuity of metering cycles within each dataset. The training data is input into the improved DCRNN model, which is processed sequentially through a metering reliability diffusion gated layer, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, a supply-sales difference recursive feedback layer, and an anomaly response output layer to obtain the total meter power supply prediction value, the user power sales prediction value, and the predicted supply-sales difference. The average absolute difference between the total meter power supply prediction value and the corresponding actual value, the average absolute difference between the user power sales prediction value and the corresponding actual value, and the average absolute difference between the predicted supply-sales difference and the actual supply-sales difference are calculated respectively. The average difference is calculated by assigning weights of 0.3, 0.3, and 0.4 to the three average deviations respectively, and then summing them to obtain the training target value. The Adam optimization algorithm is used to update the model parameters, with a learning rate of 0.001. Each batch of input consists of 32 consecutive metering period samples. After each training round, the training target value is calculated using the validation data. Training stops when the decrease in the training target value obtained from 10 consecutive validation rounds is less than 0.0001. If the stopping condition is not met after 200 training rounds, the parameter update is terminated. The model parameters corresponding to the lowest training target value in the validation data are retained, and the prediction deviations of total meter power supply, user power sales, and supply-sales difference are tested using test data to obtain the improved DCRNN model after training.

[0135] In this embodiment, the generation of abnormal line loss segments includes:

[0136] Match abnormal line loss response data with candidate line loss segments according to transformer area identifier, metering cycle, and master table or user, extract corresponding abnormal responses, and generate response matching data. Specifically, the generation of response matching data involves:

[0137] Read the abnormal line loss response data and candidate line loss segments according to the transformer area identifier. Within the same transformer area, establish object correspondence using either the master table identifier or the user identifier, and read the start and end metering periods of the candidate line loss segments. When the master table identifier or user identifier in the abnormal line loss response data matches the corresponding identifier in the candidate line loss segment, and the metering period of the abnormal response is between the corresponding start and end metering periods, the abnormal response is determined to match the candidate line loss segment. Extract the abnormal responses that meet the matching conditions, and retain the corresponding transformer area identifier, master table identifier or user identifier, metering period, and interval marker in the candidate line loss segment. Arrange them according to the metering period to generate response matching data.

[0138] Response matching data is arranged by metering period. Segments of consecutive abnormal responses from the same master table or user are filtered and adjacent segments are merged to generate continuous response segments. Specifically, generating continuous response segments involves:

[0139] Group the response matching data according to the master table identifier or user identifier, and arrange the abnormal responses of each group according to the metering period. Arrange the abnormal responses corresponding to the same master table or user from smallest to largest, and determine the upper quartile position according to the 75th position of the number of data. When the position is an integer, read the corresponding abnormal response. When the position is not an integer, take the average of the abnormal responses corresponding to the two adjacent positions. Use the obtained upper quartile value as the abnormal response screening threshold. Retain metering periods where the abnormal response is not lower than the abnormal response screening threshold. Divide three or more consecutive metering periods that meet the screening conditions into continuous response segments. For two continuous response segments of the same master table or user, if the segments are only separated by one metering period and the abnormal response of the metering period is not lower than 80% of the abnormal response screening threshold, merge the two continuous response segments and the metering period. If the interval is more than one metering period or the abnormal response of the metering period is lower than 80% of the abnormal response screening threshold, keep the segments separate. Record the station area identifier, master table identifier or user identifier, start metering period, end metering period, abnormal response and interval mark corresponding to each continuous response segment to generate a continuous response segment.

[0140] The continuous response segments are matched with the mutation intervals and continuous deviation intervals. Continuous response segments with overlapping metering periods and consistency between the master table and the user are retained to generate line loss anomaly segments. Specifically, the generation of line loss anomaly segments is as follows:

[0141] Read the transformer area identifier, master meter identifier or user identifier, start metering period, and end metering period corresponding to the continuous response segment, the sudden change interval, and the continuous deviation interval, respectively. When the transformer area identifier, master meter identifier or user identifier of the continuous response segment are consistent with those of the sudden change interval or the continuous deviation interval, and the two intervals contain at least one identical metering period, the corresponding continuous response segment is determined to meet the matching condition. The continuous response segments that meet the matching condition are retained, and the abnormal response, interval mark, and supply-sales difference corresponding to the overlapping metering period are written into the corresponding continuous response segment. The matched continuous response segments are aggregated according to the transformer area identifier and the master meter identifier or user identifier to generate the line loss abnormal segment.

[0142] In this embodiment, generating the abnormal correlation object set according to the difference decline range includes:

[0143] Extract the summary table and user anomaly responses from online loss anomaly segments, filter them by the number of continuous measurement periods and response magnitude, and generate a set of objects to be audited. Specifically, the generated set of objects to be audited includes:

[0144] The abnormal responses in the abnormal line loss segments are grouped according to the master table identifier or user identifier. The number of metering cycles in which each master table or user has consecutive abnormal responses is counted. If the number of consecutive metering cycles is not less than 3, the corresponding master table or user is retained. The abnormal responses of the retained master table or user within the consecutive metering cycles are summed and divided by the number of corresponding metering cycles to obtain the response amplitude. All response amplitudes within the same abnormal line loss segment are arranged from smallest to largest. If the number is odd, the response amplitude at the middle position is taken as the screening threshold. If the number is even, the average of the response amplitudes at the two middle positions is taken as the screening threshold. The master tables and users with response amplitudes not lower than the screening threshold are retained, and the corresponding transformer area identifier, master table identifier or user identifier, number of consecutive metering cycles, response amplitude, and start and end metering cycles of the abnormal line loss segment are recorded to generate a set of objects to be verified.

[0145] Extract the electricity supply and sales data and metering attribution relationships of the target objects for continuous metering cycles prior to the online loss anomaly segment. Determine the stable metering status before the anomaly based on the changes in electricity supply and sales in adjacent metering cycles, and determine the stable attribution status before the anomaly based on the continuously unchanged metering attribution relationships. For target objects with attribution changes, replace the corresponding metering attribution relationships with the stable attribution status before the anomaly. For other target objects, replace the corresponding electricity supply and sales data with the stable metering status before the anomaly, generating replacement metering data. Specifically, generating replacement metering data involves:

[0146] Read the electricity supply and sales data and metering attribution for the target object for the six consecutive metering cycles preceding the start of the abnormal line loss segment; calculate the difference between the electricity supply and sales of two adjacent metering cycles and take the absolute value, using the absolute value as the change range of the electricity supply and sales for the corresponding adjacent metering cycles; arrange the five change ranges of electricity supply and sales formed by the six metering cycles from smallest to largest, take the change range corresponding to the middle position as the stability judgment threshold, filter out three or more consecutive metering cycles with corresponding change ranges not exceeding the stability judgment threshold, and calculate the average of the electricity supply and sales within the filtered metering cycles as the stable metering state before the anomaly; when multiple consecutive stable segments exist, select the distance from the start of the abnormal line loss segment. The most recent continuous stable segment of the measurement cycle; simultaneously read the metering attribution relationship within 6 metering cycles. When the connection relationship of the master meter identifier, metering point identifier, and user identifier remains consistent for more than 3 consecutive metering cycles, the most recent continuous stable attribution relationship from the starting metering cycle of the abnormal line loss segment is taken as the stable attribution state before the abnormality; for the object to be verified with attribution changes, the metering attribution relationship of the corresponding metering cycle within the abnormal line loss segment is replaced with the stable attribution state before the abnormality; for the object to be verified without attribution changes, the electricity supply and sales volume of the corresponding metering cycle is replaced with the stable metering state before the abnormality, and the electricity supply and sales volume data and metering attribution relationship that have not been replaced are retained to generate replacement metering data;

[0147] The replacement metering data for each object to be verified is sequentially backfilled into the transformer area metering association data. The supply-sales difference after replacement is recalculated. The difference in supply-sales difference before and after replacement is used to determine the magnitude of the difference reduction, and difference reduction data is generated. Specifically, the generation of difference reduction data is as follows:

[0148] According to the master table identifier or user identifier in the set of objects to be verified, the corresponding replacement metering data is read sequentially. Only one object's replacement metering data is backfilled into the distribution area metering association data at a time, while the original power supply and sales data and metering attribution relationships of the remaining master tables and users remain unchanged. The power supply of the master tables and the power sales of users are re-summarized according to the distribution area identifier and metering cycle. The power supply of the master tables is subtracted from the total power sales of users in the same period to obtain the replacement power supply and sales difference for each metering cycle. The pre-replacement power supply and sales difference for the same metering cycle is read to replace... The difference between the supply and sales difference before replacement and the supply and sales difference after replacement is subtracted to obtain the single-period difference reduction value. A positive single-period difference reduction value indicates that the supply and sales difference has decreased after replacement. For objects to be audited that span multiple metering periods, the single-period difference reduction values ​​of each metering period within the abnormal line loss segment are summed and divided by the corresponding number of metering periods to obtain the object-level difference reduction magnitude. The difference reduction data is generated by recording the supply and sales difference before replacement, the supply and sales difference after replacement, the single-period difference reduction value, and the object-level difference reduction magnitude for each metering period according to the object identification.

[0149] Sort by the magnitude of the difference decline, use the median value to determine the filtering threshold, and retain the total table and users whose difference decline is positive and not lower than the filtering threshold. Generate an abnormal association object set, which is specifically generated as follows:

[0150] Read the object-level differential reduction magnitude corresponding to each object to be checked in the differential reduction data, and sort them in ascending order of value; when the number of objects to be checked is odd, take the object-level differential reduction magnitude corresponding to the middle position as the filtering limit; when the number of objects to be checked is even, take the average of the object-level differential reduction magnitudes corresponding to the two middle positions as the filtering limit; retain the total table and users whose object-level differential reduction magnitude is greater than 0 and not lower than the filtering limit, and remove the total table and users whose object-level differential reduction magnitude is not greater than 0 or lower than the filtering limit; according to the transformer area identifier and the total table identifier or user identifier, collect the object-level differential reduction magnitude, the start metering period and the end metering period of the abnormal line loss segment corresponding to the retained object, and generate the abnormal associated object set.

[0151] In this embodiment, the generated transformer area line loss anomaly analysis results include:

[0152] Extract the collection anomaly, attribution change, and difference reduction data corresponding to the abnormal associated object set, and associate them by master table or user and metering period to generate anomaly judgment data. The specific process for generating anomaly judgment data is as follows:

[0153] Read the corresponding data on data collection anomalies, attribution changes, and differential reductions according to the area identifier, master table identifier, or user identifier in the abnormal association object set, and align them using the metering period as a common time index; record the data collection anomaly status, attribution change status, and single-period differential reduction value for each metering period, and simultaneously write the object-level differential reduction magnitude corresponding to the abnormal association object; if there are no data collection anomalies or attribution changes for the same master table or user in the same metering period, the corresponding status is recorded as not occurring; if there are corresponding records, retain the corresponding anomaly type or attribution change flag; generate anomaly judgment data by arranging the aligned data collection anomaly status, attribution change status, single-period differential reduction value, and object-level differential reduction magnitude according to the master table or user and metering period;

[0154] Based on the anomaly detection data, the master table or user with a positive difference reduction is identified as having a data collection anomaly; the master table or user with a positive difference reduction is identified as having a relationship anomaly; and the master table or user without a data collection anomaly or a change in ownership but with a continuously positive difference reduction is identified as having a loss anomaly. Anomaly cause data is generated, specifically as follows:

[0155] According to the master table identifier or user identifier, read the collection anomaly status, attribution change status, single-cycle difference decline value, and object-level difference decline magnitude from the anomaly judgment data; when the object-level difference decline magnitude is greater than 0 and there is a collection anomaly in at least one metering cycle, mark the corresponding master table or user as a collection anomaly; when the object-level difference decline magnitude is greater than 0 and there is an attribution change in at least one metering cycle, mark the corresponding master table or user as a relationship anomaly; when the same master table or user meets both the collection anomaly and relationship anomaly judgment conditions, retain both types of reasons; when there is no collection anomaly or attribution change, count the number of metering cycles with a single-cycle difference decline value that is continuously greater than 0; when there are 3 or more consecutive metering cycles with a value that is greater than 0, mark the corresponding master table or user as a loss anomaly; generate anomaly reason data according to the anomaly reason type, corresponding metering cycle, single-cycle difference decline value, and object-level difference decline magnitude of the master table or user;

[0156] The abnormal cause data is associated with the abnormal line loss segments according to the transformer area identifier and metering period. The data is then compiled into a summary table or user list, abnormal cause, difference reduction range, and metering period range to generate transformer area line loss anomaly analysis results. Specifically, the generation of transformer area line loss anomaly analysis results includes:

[0157] According to the transformer area identifier, master table identifier or user identifier and metering period, the abnormal cause data is associated with the abnormal line loss segment, and the abnormal cause type, the object-level difference reduction range, the start metering period and the end metering period of the abnormal line loss segment are read. When the same master table or user corresponds to multiple abnormal cause types, each abnormal cause type is retained and associated with the corresponding metering period range. The master table identifier or user identifier, abnormal cause type, object-level difference reduction range, start metering period and end metering period are collected according to the transformer area identifier, and arranged in the order of metering period to generate the transformer area line loss abnormality analysis results.

[0158] refer to Figure 3 The transformer substation line loss anomaly analysis system based on multi-source data includes the following modules:

[0159] The multi-source data aggregation module is used to organize transformer area archive data, power supply and sales data, collection status data and marketing indicator data according to objects and metering cycles, and generate multi-source data for transformer areas.

[0160] The metering association construction module is used to establish metering attribution relationships, map power supply and sales data, record collection anomalies and attribution changes, and generate metering association data for distribution areas.

[0161] The line loss candidate filtering module is used to filter the sudden change range and continuous deviation range of the supply and sales difference and associate it with the master table and users to generate line loss candidate segments;

[0162] The anomaly response modeling module is used to generate line loss anomaly response data by performing diffusion gating and recursive feedback of supply and sales difference through an improved DCRNN model.

[0163] The continuous response confirmation module is used to match abnormal line loss response data with candidate line loss segments and generate abnormal line loss segments.

[0164] The difference fallback verification module is used to replace the corresponding state with the stable state before the anomaly and recalculate the supply and sales difference respectively, and generate an anomaly-related object set according to the difference fallback magnitude;

[0165] The anomaly cause determination module is used to determine the cause of anomalies by combining data acquisition anomalies, attribution changes, and the magnitude of the difference in losses, and to generate anomaly analysis results for transformer area line loss.

[0166] Example 1: To verify the feasibility of this invention in practice, it was applied to a scenario of abnormal line loss analysis in a city's power distribution network. One residential power distribution area was selected as the implementation object. This area contained one master meter and 286 user metering points. Data was collected for 60 consecutive metering cycles, each cycle being 1 hour. The collected distribution area archive data included the distribution area identifier, master meter identifier, user identifier, metering point identifier, and user affiliation. The electricity supply and sales data included the master meter's electricity supply, user electricity sales, metering time, and metering cycle. The collection status data included collection status, collection time, collection success rate, missing records, and supplementary collection records. The marketing indicator data included the distribution area line loss rate, line loss electricity, and indicator statistical cycle.

[0167] The system establishes an object association index for the master table, metering points, and users based on the transformer area identifier and the relationship between the transformer and the user, associating the four types of data with the corresponding objects. In this embodiment, a total of 17,220 user periodic records and 60 master table periodic records are generated, including 46 records with missing data collection, 31 records with supplementary data collection, and 18 records with discontinuous data collection time.

[0168] During the period alignment process, the 1-hour metering cycle in the electricity supply and sales data is used as a unified time unit to map the metering time, collection time, and indicator statistical cycle to the corresponding metering cycle. For supplementary collection records, the corresponding missing record is found based on the object identifier and the original metering cycle. When multiple supplementary collection records exist for the same missing record, the supplementary collection record with the latest collection time and normal collection status is retained. After processing, 31 missing records were filled, and the missing status of the remaining 15 missing records was retained, generating period alignment data.

[0169] The system establishes a metering attribution chain based on transformer area identification and user affiliation. A primary association is established between the master meter and its corresponding metering point, and a secondary association is established between the metering point and the user, ultimately forming one master meter main chain and 286 user-related branch chains. Electricity supply and sales data are mapped to the master meter and users according to metering relationship data, and missing data collection, supplementary data collection, and discontinuous data collection times are identified by combining data collection status data. When a corresponding anomaly occurs in any metering cycle, the relevant master meter or user is marked as having a data collection anomaly.

[0170] The system compares adjacent metering affiliation chains according to the metering cycle. During implementation, it was found that three users experienced changes in their affiliation during the 37th metering cycle. Two users were transferred out of the current metering area, and one user was transferred in from a neighboring metering area. The affiliation changes were marked on the relevant connections, ultimately forming the metering association data for the metering area.

[0171] During the online loss candidate segment screening phase, the system summarizes the total electricity supply from the meter and the electricity sales of 286 users according to the metering cycle. Taking a certain metering cycle as an example, the total electricity supply is 438.6 kWh, and the total electricity sales of users is 412.3 kWh, corresponding to a supply-sales difference of 26.3 kWh. The system calculates the supply-sales difference for 60 metering cycles sequentially, forming a supply-sales difference sequence.

[0172] The absolute values ​​of the supply-sales difference between adjacent metering periods were calculated to obtain 59 variation ranges. Arranging these 59 values ​​in ascending order, the variation range corresponding to the 75th percentile was 8.6 kWh; therefore, 8.6 kWh was used as the abrupt change threshold. Six abrupt change periods were identified and merged to form three abrupt change intervals. Simultaneously, the 60 supply-sales differences were sorted, yielding a median value of 21.4 kWh, which was used as the difference benchmark. Segments where the deviation from the benchmark increased in magnitude for three or more consecutive metering periods were identified as continuous deviation intervals, ultimately resulting in two continuous deviation intervals.

[0173] Candidate time ranges are determined based on interval marker data, and corresponding master tables and users are retrieved from the transformer area metering correlation data. When abrupt change intervals and continuous deviation intervals overlap, both types of interval markers are retained simultaneously, ultimately forming 5 candidate segments for line loss, with the longest candidate segment lasting for 7 metering cycles.

[0174] Multi-source data and metering association data of the transformer substation corresponding to the candidate line loss segments are input into the improved DCRNN model. The metering reliability diffusion gating layer uses the master table and users as association nodes and establishes a bidirectional diffusion relationship based on the metering attribution relationship. The acquisition success rate is converted to the range of 0 to 1. The number of metering cycles with abnormal acquisition duration is divided by the length of the current input sequence to obtain the abnormal duration ratio. The acquisition success rate and the value obtained by subtracting the abnormal duration ratio from 1 are each assigned a weight of 0.5 and summed to obtain the diffusion gating strength.

[0175] For example, user U126 experiences consecutive acquisition anomalies in metering cycles 41 to 43. The current input sequence contains 12 metering cycles, with an acquisition success rate of 0.79% and an anomaly persistence rate of 0.25%. The calculated diffusion gating strength is 0.77. Consequently, the forward and reverse diffusion participation of the corresponding node decreases, reducing the propagation of abnormal acquisition states to associated nodes.

[0176] Reliable diffused data is input into the diffused convolutional gated recurrent encoding layer. The system performs diffused convolution along the direction from the master meter to the user and from the user to the master meter, and encodes continuous metering cycles by combining the reset gate, update gate, and candidate state to generate historical status data for the transformer area. The historical status data of the transformer area is then input into the diffused convolutional gated recurrent decoding layer to decode the power supply of the master meter and the power sales of the user cycle by cycle.

[0177] During a certain abnormal cycle, the model predicted a total metered electricity supply of 451.2 kWh and a total user electricity sales of 421.7 kWh, resulting in a predicted supply-sales gap of 29.5 kWh. The actual total metered electricity supply was 454.8 kWh, and the actual total user electricity sales were 416.1 kWh, resulting in an actual supply-sales gap of 38.7 kWh. The supply-sales gap recursively feedbacks to form a deviation state, which is then concatenated with the input state for the next decoding cycle, allowing the continuous deviation information to participate in the hidden state update for the next cycle.

[0178] The anomaly response output layer compares the total power supply and the predicted power sales of users with the corresponding actual values, and combines the supply and sales difference deviation to form an anomaly response. In this embodiment, a total of 17 total meters or user objects with high anomaly responses were extracted, of which 12 objects showed anomalies for more than 3 consecutive metering cycles.

[0179] The system matches abnormal line loss response data with five candidate line loss segments, using the consistency of the object and the metering period falling within the range of the candidate segments as matching criteria. Abnormal responses for the same object are arranged by metering period, with the upper quartile of the abnormal response used as the filtering threshold. A continuous response segment is formed when the filtering criteria are met for three or more consecutive metering periods. Ultimately, eight continuous response segments are obtained, six of which overlap with abrupt change intervals or continuous deviation intervals in their metering periods, forming six abnormal line loss segments.

[0180] Within the abnormal online loss segment, the system filters the objects to be verified based on the number of continuous metering cycles of the abnormal response and the average response amplitude, resulting in a total of 9 objects to be verified. For each object to be verified, the power supply and sales data and metering attribution relationships for the 6 consecutive metering cycles preceding the start of the abnormal segment are read. The stable metering status is determined based on the change amplitude of power supply and sales in adjacent cycles, and a stable attribution status is determined by maintaining a consistent metering attribution relationship for 3 or more consecutive cycles.

[0181] For objects with changed attribution, the metering attribution relationship within the abnormal segment is replaced with the stable attribution status before the anomaly; for objects without changed attribution, the corresponding electricity supply and sales are replaced with the stable metering status before the anomaly. The system replaces only one object to be verified at a time, while the remaining objects remain in their original state, and re-summarizes the total electricity supply and user electricity sales to calculate the supply and sales difference.

[0182] For example, user U126 had an average supply-sales difference of 36.8 kWh in the four abnormal metering cycles before replacement, and an average supply-sales difference of 28.1 kWh after replacement, with an object-level difference reduction of 8.7 kWh; user U203 had an average supply-sales difference of 34.9 kWh before and 34.1 kWh after replacement, with an object-level difference reduction of only 0.8 kWh. The difference reduction magnitudes of the nine objects to be verified were sorted, and the median value of 3.6 kWh was used as the screening threshold. Five total tables or users with a difference reduction magnitude of positive and not less than 3.6 kWh were retained, generating an abnormal associated object set.

[0183] The system further reads the acquisition anomaly, attribution change, and differential decline data corresponding to 5 abnormal related objects. An object-level differential decline with a positive value and the presence of an acquisition anomaly is identified as an acquisition anomaly; an attribution change is identified as an attribution anomaly; and no acquisition anomaly or attribution change, but a single-cycle differential decline value is positive for more than 3 consecutive metering cycles, is identified as a loss anomaly. Ultimately, 2 acquisition anomaly objects, 1 attribution anomaly object, and 2 loss anomaly objects are obtained, forming the substation line loss anomaly analysis results.

[0184] On the same batch of historical data, the method of this invention was compared with the traditional analysis method using a fixed line loss rate threshold. The accuracy rate of the traditional method in identifying abnormal objects was 76.8%, while that of this invention was 91.4%; the accuracy rate of the traditional method in determining the cause of abnormalities was 69.5%, while that of this invention was 88.7%; the false alarm rate of the traditional method was 18.6%, while that of this invention was 7.9%; the average anomaly location time of the traditional method was 21.4 minutes, while that of this invention was 8.6 minutes.

[0185] As can be seen from Example 1, the present invention can uniformly correlate multi-source metering data, suppress the propagation of abnormal acquisition states by improving the DCRNN model, strengthen the continuous anomaly identification by using recursive feedback of supply and sales differences, and verify the correlation between abnormal objects and line loss changes by replacing the stable state before the anomaly and verifying the difference fallback, thereby improving the accuracy and reliability of identifying abnormal objects and determining the causes of anomalies in the transformer area.

[0186] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A method for analyzing transformer substation line loss anomalies based on multi-source data, characterized in that, include: Collect data from transformer area archives, electricity supply and sales data, collection status data, and marketing indicator data, and associate them by object and metering cycle to generate multi-source data for transformer areas; Based on the data archived by the transformer area, establish the metering attribution relationship between the transformer area, the master meter and the user, map the electricity supply and sales data and mark collection anomalies and attribution changes, and generate transformer area metering association data; Calculate the supply and sales difference for each metering period, filter abrupt change intervals and continuous deviation intervals, and link the master table and users to generate candidate segments of line loss; The improved DCRNN model is input into the multi-source data and metering correlation data of the transformer area. The abnormal data is propagated according to the collection anomaly constraint to form the supply and sales difference deviation state and feed it back to the decoding cycle to generate line loss anomaly response data. The improved DCRNN model includes a metering reliability diffusion gate layer, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, a supply and sales difference recursive feedback layer and an anomaly response output layer. Match abnormal line loss response data with candidate line loss segments, filter continuous response segments, and generate abnormal line loss segments; Filter the master table and users according to the abnormal response of line loss, replace the corresponding status with the stable status before the abnormality and recalculate the supply and sales difference, and generate an abnormal related object set according to the decline of the difference; By combining the abnormal data collection, attribution changes, and differential decline of the associated objects, the cause of the anomaly is determined, and the abnormal line loss analysis results for the transformer area are generated.

2. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The transformer area archive data includes transformer area identifier, master meter identifier, user identifier, metering point identifier, and transformer-household affiliation; the electricity supply and sales data includes master meter electricity supply, user electricity sales, metering time, and metering cycle; the data collection status data includes data collection status, data collection time, data collection success rate, missing records, and supplementary data collection records; the marketing indicator data includes transformer area line loss rate, line loss electricity, and indicator statistical cycle.

3. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The generated multi-source data for the transformer area includes: Establish an object association index for the master table, metering points and users according to the transformer area identification and the relationship between transformer and user, and associate the power supply and sales data, collection status data and marketing indicator data with the corresponding objects to generate object association data; Map the measurement time, collection time and indicator statistical period in the object-related data to the corresponding measurement period, and backfill the corresponding missing records based on the supplementary collection records to generate period-aligned data; Data is aggregated according to the transformer area identifier and metering cycle, and the corresponding power supply and sales data, collection status data and marketing indicator data are retained to generate multi-source data for the transformer area.

4. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The generated transformer area metering association data includes: Based on the transformer area identification and the relationship between transformer and user, the master table, metering points and users are associated to establish a metering attribution chain and generate metering relationship data; The electricity supply and sales data are mapped according to the metering relationship data. Combined with the collection status data, missing collection, supplementary collection and discontinuous collection time are identified, collection anomalies are marked, and metering mapping data is generated. By comparing the metering attribution chains in the metering mapping data according to the metering cycle, the attribution changes due to changes in connection relationships are marked, and metering relationship data, power supply and sales data, collection anomalies and attribution changes are collected to generate metering association data for the transformer area.

5. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The generated line loss candidate segments include: The total electricity supply and user sales volume are summarized according to the transformer area identification and metering cycle. The supply and sales difference is determined by deducting the total electricity supply from the user sales volume during the same period, and a supply and sales difference sequence is generated. Calculate the magnitude of the difference change between adjacent measurement periods, determine the abrupt change boundary using the upper quartile value, and screen the abrupt change interval; determine the difference benchmark using the median value of the supply and sales difference sequence, screen measurement periods that are continuously located on the same side of the difference benchmark and whose deviation magnitude increases, form continuous deviation intervals, and generate interval labeled data. The corresponding metering period is determined by the interval marker data. The master table and users are linked from the metering association data of the transformer area. The supply and sales difference and interval markers are collected to generate candidate segments of line loss.

6. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The generated line loss anomaly response data includes: Based on the diffusion convolution gated recurrent encoding structure, diffusion convolution gated recurrent decoding structure, and output mapping structure in the DCRNN model, a diffusion convolution gated recurrent encoding layer, a diffusion convolution gated recurrent decoding layer, and an abnormal response output layer are formed, respectively. A measurement reliability diffusion gated layer is added before the diffusion convolution gated recurrent encoding layer and connected to the diffusion convolution entry point. A supply and sales difference recursive feedback layer is added after the diffusion convolution gated recurrent decoding layer and connected to the state input end of the next decoding cycle, thus forming an improved DCRNN model. The multi-source data and metering association data of the transformer area are input into the metering trusted diffusion gating layer. The master table and users are used as association nodes. A two-way diffusion relationship is established according to the metering attribution relationship. The diffusion gating strength is determined based on the collection success rate and the number of continuous metering cycles with collection anomalies, and trusted diffusion data is generated. The reliable diffusion data is input into the diffusion convolution gated recurrent coding layer, and bidirectional diffusion convolution and gated state update are performed according to the metering period to generate historical state data of the transformer area. The historical status data of the transformer area is input into the diffusion convolution gated recurrent decoding layer, which gradually decodes the total power supply and user electricity sales while retaining the hidden state, and generates metering prediction data. The measurement and forecast data is input into the supply and sales difference recursive feedback layer to determine the predicted supply and sales difference and the actual supply and sales difference respectively. The two are compared to form the supply and sales difference deviation state, which is then concatenated with the input state of the next decoding cycle to participate in the hidden state update and generate the difference feedback decoding data. Input the differential feedback decoding data into the abnormal response output layer, compare the predicted values ​​of the total power supply and the user's electricity sales with the corresponding actual values, combine the supply and sales difference deviation status to form an abnormal response, and generate line loss abnormal response data; Acquire historical transformer area archive data, historical power supply and sales data, historical data collection status data, and historical marketing indicator data to generate historical transformer area multi-source data and historical transformer area metering correlation data; input the improved DCRNN model, determine the training objective based on the prediction deviation of total meter power supply, user power sales, and supply and sales difference, iteratively update the model parameters until convergence, and obtain the trained improved DCRNN model.

7. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The generated line loss anomaly segment includes: Match abnormal line loss response data with candidate line loss segments according to transformer area identifier, metering cycle and master table or user, extract corresponding abnormal responses, and generate response matching data; Arrange response matching data according to the metering period, filter out segments of the same master table or user that have consecutive abnormal responses and merge adjacent segments to generate continuous response segments. Match continuous response segments with mutation intervals and continuous deviation intervals, retain continuous response segments with overlapping metering periods and consistent across the master table or user, and generate line loss anomaly segments.

8. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The process of generating an abnormal correlation object set based on the magnitude of the difference decline includes: Extract the summary table and user anomaly responses from online loss anomaly segments, filter them by the number of continuous metering cycles of the anomaly response and the response magnitude, and generate a set of objects to be audited; Extract the electricity supply and sales data and metering attribution relationship of the target object for continuous metering cycles before the abnormal loss segment. Determine the stable metering status before the abnormality based on the change range of electricity supply and sales in adjacent metering cycles. Determine the stable attribution status before the abnormality based on the continuously unchanged metering attribution relationship. Replace the corresponding metering attribution relationship with the stable attribution status before the abnormality for the target object with the stable attribution status before the abnormality. Replace the corresponding electricity supply and sales data with the stable metering status before the abnormality for the other target objects. The replacement measurement data of each object to be verified is sequentially filled back into the measurement association data of the transformer area, the supply and sales difference after replacement is recalculated, and the difference before and after replacement is used to determine the magnitude of the difference reduction and generate the difference reduction data. Sort by the magnitude of the difference decline, use the median value to determine the filtering threshold, retain the total table and users whose difference decline is positive and not lower than the filtering threshold, and generate an abnormal association object set.

9. The method for analyzing transformer substation line loss anomalies based on multi-source data according to claim 1, characterized in that, The generated transformer area line loss anomaly analysis results include: Extract the collection anomalies, attribution changes, and difference reduction data corresponding to the abnormal associated object set, and associate them by master table or user and metering period to generate anomaly judgment data; Based on the anomaly judgment data, the total table or user with collection anomaly and positive difference decline is judged as collection anomaly, the total table or user with ownership change and positive difference decline is judged as relationship anomaly, and the total table or user without collection anomaly and ownership change and continuous positive difference decline is judged as loss anomaly, and anomaly reason data is generated. The abnormal cause data is associated with the abnormal line loss segments according to the transformer area identifier and metering period. The summary table or user, abnormal cause, difference reduction range and metering period range are collected to generate the transformer area line loss abnormality analysis results.

10. A transformer substation line loss anomaly analysis system based on multi-source data, executing the transformer substation line loss anomaly analysis method based on multi-source data as described in any one of claims 1 to 9, characterized in that, Includes the following modules: The multi-source data aggregation module is used to organize transformer area archive data, power supply and sales data, collection status data and marketing indicator data according to objects and metering cycles, and generate multi-source data for transformer areas. The metering association construction module is used to establish metering attribution relationships, map power supply and sales data, record collection anomalies and attribution changes, and generate metering association data for distribution areas. The line loss candidate filtering module is used to filter the sudden change range and continuous deviation range of the supply and sales difference and associate it with the master table and users to generate line loss candidate segments; The anomaly response modeling module is used to generate line loss anomaly response data by performing diffusion gating and recursive feedback of supply and sales difference through an improved DCRNN model. The continuous response confirmation module is used to match abnormal line loss response data with candidate line loss segments and generate abnormal line loss segments. The difference fallback verification module is used to replace the corresponding state with the stable state before the anomaly and recalculate the supply and sales difference respectively, and generate an anomaly-related object set according to the difference fallback magnitude; The anomaly cause determination module is used to determine the cause of anomalies by combining data acquisition anomalies, attribution changes, and the magnitude of the difference in losses, and to generate anomaly analysis results for transformer area line loss.