A transformer line impedance abnormality positioning method and system based on transient electrical quantity detection and composite criterion

By using a method based on transient electrical quantity detection, combined with a derivative dynamic time bending algorithm and a deep neural network for phase identification, and constructing a redundant set of equations for impedance calculation, the problem of insufficient phase identification accuracy and dynamic triggering in transformer area line loss analysis is solved, thereby achieving improved accuracy across the entire link and accurate location of line loss anomalies.

CN122859986BActive Publication Date: 2026-11-24洛阳市药物警戒和食品安全监测中心 +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202611358555.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-03
Publication Date
2026-11-24
Estimated Expiration
2046-09-03

AI Technical Summary

Technical Problem

Existing technologies suffer from insufficient accuracy in phase identification, loop impedance calculation, and line loss analysis. These problems include insufficient phase identification accuracy, lack of dynamic triggering and verification mechanisms in impedance calculation, difficulty in accurately quantifying the effects of multi-factor coupling, and lack of systematic integration of various links, resulting in insufficient accuracy in line loss analysis of transformer areas.

Method used

A transient electrical quantity detection method is adopted, which triggers phase identification and impedance calculation through voltage transient disturbance events. The phase identification is combined with derivative dynamic time bending algorithm, hierarchical clustering and deep neural network. A redundant equation system is constructed for impedance calculation, and a multi-factor correction term is constructed for line loss correction, forming a causal chain of event detection, multi-time scale phase identification and piecewise impedance recursive identification.

Benefits of technology

It achieves high-precision phase identification of transformer substations, dynamic triggering and verification of impedance calculation, and dynamic correction of multi-factor line loss, resulting in improved accuracy across the entire link and providing reliable technical support for abnormal line loss location in transformer substations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122859986B_ABST
    Figure CN122859986B_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for locating transformer substation line impedance anomalies based on transient electrical quantity detection and composite criteria. The method includes: real-time monitoring of transformer substation electrical quantity data; capturing transient waveform data and steady-state measurement data when a voltage transient disturbance event is detected; calculating the dynamic time bending distance based on the transient waveform data using adaptive segmented matching according to the similarity of voltage sequence change trends; identifying user phase affiliation and connection sequence using hierarchical clustering and neural networks; recursively extrapolating along the topological path based on phase information; constructing a redundant equation system using steady-state data and solving for the loop impedance of each line segment using constrained least squares; calculating theoretical line loss based on loop impedance and measured electrical quantities using power factor and three-phase imbalance correction coefficient through multi-factor coupling correction; calculating the line loss deviation rate and line loss sensitivity of each line segment; and constructing a dual-criteria system to determine the location of line loss anomalies. This invention enables accurate detection and location of transformer substation line impedance anomalies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power system distribution network line loss detection and analysis technology, specifically involving a method and system for locating abnormal line impedance in transformer substations based on transient electrical quantity detection and composite criteria. Background Technology

[0002] Line loss rate is a core economic and technical indicator that comprehensively reflects the planning, design, operation, and management level of power grid operators. Low-voltage distribution areas are the main points where line losses occur, and reducing the line loss rate of distribution areas is of great practical significance for improving the economic efficiency of power grid operation and promoting energy conservation and emission reduction. With the popularization of smart meters and electricity consumption information collection systems, loop impedance calculation and line loss analysis methods based on measurement data have gradually become a research hotspot.

[0003] In the field of transformer substation line loss analysis, accurately obtaining the line loop impedance is a crucial prerequisite for calculating technical line loss and identifying line loss anomalies. Current technologies for calculating transformer substation line impedance mainly face the following technical challenges:

[0004] First, the phase identification accuracy is insufficient. Phase information of users in a transformer substation is a fundamental prerequisite for impedance calculation. Only by clearly identifying the phase of each user can the voltage and current data used in impedance calculation correspond to the actual line. Existing phase identification methods mainly rely on voltage correlation coefficient sorting (such as the method disclosed in CN110880753B). By calculating the correlation coefficient between the user voltage and the voltage of each phase of the data acquisition unit, the phase with the highest correlation coefficient is determined as the user's phase. This type of method is applicable to transformer substations with relatively stable loads and good three-phase balance. However, in scenarios with severe three-phase load imbalance or insufficient measurement accuracy in older substations, the correlation characteristics of voltages of users in the same phase are weakened, easily leading to phase misjudgment. Furthermore, existing methods only provide the phase assignment of users and cannot determine the series connection order between users in the same phase, which is crucial for subsequent segmented impedance calculation. Some studies have introduced the DTW (Dynamic Time Warping) algorithm for voltage sequence similarity analysis, but traditional DTW is sensitive to amplitude scaling and baseline drift of time-series data, and there is still room for improvement in identification accuracy.

[0005] Secondly, impedance calculations based on measurement data lack dynamic triggering and verification mechanisms. Existing impedance calculation methods typically employ a periodic data acquisition and batch solution approach, collecting multiple sets of voltage and current data within a preset time window and simultaneously solving for impedance parameters using optimization algorithms such as particle swarm optimization. This time-driven mode suffers from the following problems: insufficient computational timeliness, failing to update impedance parameters promptly when the load changes significantly; and a lack of dynamic verification mechanisms for impedance calculation results, which can amplify calculation errors when the measurement data quality is poor. Some solutions attempt to use redundant data for correction, but the correction process still relies on the same batch of data, making it difficult to overcome the inherent quality defects of the data itself.

[0006] Third, the coupled effects of multiple factors in technical line loss calculation are difficult to quantify accurately. Line impedance is the core parameter for technical line loss calculation, but in actual transformer operation, factors such as power factor and three-phase imbalance also have a significant impact on line loss. Existing line loss calculation methods either only consider the single factor of impedance or use fixed correction coefficients for approximation, which makes it difficult to adapt to the dynamic changes in transformer operation under complex conditions such as load fluctuations and distributed power supply access, resulting in large errors in technical line loss calculation.

[0007] Fourth, existing technical solutions are fragmented and lack systematic integration. Publicly available technical literature shows that research on phase identification, impedance calculation, and line loss correction is relatively independent, lacking organic connection between each step. Phase identification results fail to effectively serve impedance calculation, and there is a lack of dynamic feedback mechanism between impedance calculation and line loss correction. This fragmented technical situation results in multiple points of accuracy loss in the complete chain from measurement data acquisition to precise line loss calculation, hindering the improvement of lean line loss management in transformer substations.

[0008] In summary, existing technologies have varying degrees of shortcomings in areas such as transformer area phase identification, loop impedance calculation, and line loss analysis, and there is a lack of systematic synergy and integration among these aspects. Therefore, there is an urgent need for a technical solution that can organically integrate load change detection, phase identification, impedance calculation, and multi-factor line loss correction to achieve a comprehensive improvement in accuracy from data acquisition to line loss analysis. Summary of the Invention

[0009] The purpose of this invention is to provide a method and system for locating abnormal transformer line impedance based on transient electrical quantity detection and composite criteria. The aim is to use voltage transient disturbance events as a common trigger signal to simultaneously drive phase identification and impedance calculation, forming a causal chain of event detection, multi-timescale DDTW phase identification, and segmented impedance recursive identification. This enables high-precision identification of transformer phase, dynamic and accurate calculation of loop impedance, and multi-factor coupling correction of technical line loss, providing reliable technical support for locating abnormal transformer line loss.

[0010] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0011] This invention provides a method for locating transformer substation line impedance anomalies based on transient electrical quantity detection and composite criteria, comprising the following steps:

[0012] S1: Real-time monitoring of electrical quantity data of each phase line in the transformer area. When a voltage transient disturbance event is detected, electrical quantity data within a predetermined time window before and after the occurrence of the voltage transient disturbance event is extracted. The electrical quantity data includes transient waveform data for phase identification and steady-state measurement data for impedance calculation.

[0013] S2: Based on the transient waveform data, the derivative dynamic time bending algorithm is used to adaptively segment and match the voltage sequences of each phase of the transformer and each user, and calculate the dynamic time bending distance between each user voltage sequence and each phase voltage sequence of the transformer; based on the dynamic time bending distance, the user is initially divided into phases using a hierarchical clustering algorithm, and then the initial division result is refined using a deep neural network, outputting the phase assignment of each user and the serial connection order relationship between users in the same phase;

[0014] S3: Based on the phase assignment and series connection sequence, proceed segment by segment along the topology path of the transformer area from the end to the beginning. Construct a redundant set of equations using the steady-state measurement data, and use constrained least squares to solve for the resistance and reactance parameters of each segment of the line to obtain the loop impedance of each segment of the line in the transformer area.

[0015] S4: Based on the circuit impedance and measured electrical quantity data, construct a technical line loss calculation model that includes power factor correction term and three-phase imbalance correction term, and calculate the theoretical line loss of each section of the line in the transformer area;

[0016] S5: Based on the theoretical line loss and the actual line loss collected synchronously, calculate the line loss deviation rate of each line segment; at the same time, calculate the line loss sensitivity of each line segment, whereby the line loss sensitivity represents the degree of influence of the resistance change of the line segment on the total line loss of the transformer area.

[0017] S6: Construct a dual criterion based on the line loss deviation rate and the line loss sensitivity, and determine the line segment whose dual criterion value exceeds the preset threshold as a line impedance abnormality point.

[0018] Further, in step S1, the voltage transient disturbance event is an event detected in the transformer area where the load switching or load fluctuation exceeds a preset threshold; the predetermined time window includes a first window before the voltage transient disturbance event occurs and a second window after the voltage transient disturbance event occurs, and the widths of the first window and the second window are dynamically adjusted according to the load fluctuation rate; the voltage transient disturbance event serves as a common trigger signal for phase identification and impedance calculation, so that steps S2 and S3 are both executed based on data triggered by the same voltage transient disturbance event.

[0019] Furthermore, in step S2, when the derivative dynamic time bending algorithm performs adaptive segmentation matching on the voltage sequence, it first calculates the first derivative of the original voltage sequence to obtain the derivative sequence, then determines the optimal alignment path based on the dynamic time bending distance between the derivative sequences, and determines the boundary points of adaptive segmentation according to the optimal alignment path, dividing the voltage sequence into multiple subsequences with similar change characteristics.

[0020] Further, in step S2, the hierarchical clustering algorithm uses the derivative dynamic time bending distance as a similarity measure, employs the Ward minimum variance method for clustering, and determines the number of clusters using the elbow rule; the deep neural network is a fully connected network containing an input layer, at least two hidden layers, and an output layer, uses the output of the hierarchical clustering as the initial label, performs supervised training using the cross-entropy loss function, and outputs the probability distribution of each user belonging to each phase.

[0021] Further, in step S3, the redundant equation set is: based on the steady-state measurement data at multiple times before and after the occurrence of the same voltage transient disturbance event, the voltage and current equations corresponding to each time time are established to form an overdetermined equation set; the constraint condition for the constrained least squares solution is that the resistance parameter and reactance parameter of each line segment are both positive numbers.

[0022] Further, in step S4, the power factor correction term is calculated based on the offset of the real-time power factor of each line segment relative to the reference power factor; the three-phase imbalance correction term is calculated based on the three-phase current imbalance of each line segment; the power factor correction term and the three-phase imbalance correction term are updated online using the recursive least squares method, and only the correction coefficient is updated incrementally each time new measurement data arrives.

[0023] Furthermore, in step S5, the first Line loss sensitivity of the line segment Calculate using the following formula:

[0024] ,in, For the bus loss in the distribution area, For the first The resistance value of the section of the line, For the first The set of all load nodes downstream of the line segment. For the flow through the first The effective value of the current at each load node, The elastic modulus of the resistance is the square of the current.

[0025] The line loss deviation rate Calculate using the following formula:

[0026] ,in, For the first The actual line loss of the section of the line, For the first The theoretical line loss of a section of the line.

[0027] Furthermore, in step S6, the dual criterion value Calculate using the following formula:

[0028] ,in, , These are the mean and standard deviation of the line loss sensitivity for all line segments in the current transformer area, respectively. , These are the mean and standard deviation of the deviation rate for all line segments in the current transformer area, respectively. , The time-varying weighting coefficient is dynamically adjusted based on at least one of the following operating parameters: current load level, three-phase imbalance, and power factor, to meet the requirements of... ;when When the value is greater than the preset joint criterion threshold, the first criterion is determined. The line section has abnormal impedance.

[0029] Further, in step S6, the preset joint criterion threshold is determined based on the statistical distribution of the dual criterion values ​​under the historical normal operating conditions of the transformer area, and the 90th percentile of the historical dual criterion values ​​is taken as the preset joint criterion threshold; when the dual criterion value exceeds this threshold, the line loss sensitivity standardized value is used. Standardized value of deviation rate The relative magnitude of the values ​​distinguishes the types of anomalies: if the standardized value of line loss sensitivity is higher than the standardized value of deviation rate, it is determined to be an impedance anomaly; if the standardized value of deviation rate is higher than the standardized value of line loss sensitivity, it is determined to be a load anomaly.

[0030] This invention also provides a transformer substation line impedance anomaly location system based on transient electrical quantity detection and composite criteria, comprising:

[0031] The data acquisition module is used to monitor the electrical quantity data of each phase line in the transformer area in real time. When a voltage transient disturbance event is detected, the electrical quantity data within a predetermined time window before and after the occurrence of the voltage transient disturbance event is extracted. The electrical quantity data includes transient waveform data for phase identification and steady-state measurement data for impedance calculation.

[0032] The phase recognition module is used to adaptively segment and match the voltage sequences of each phase of the transformer and each user's voltage sequence based on the transient waveform data using a derivative dynamic time bending algorithm, calculate the dynamic time bending distance between each user's voltage sequence and each phase of the transformer; and based on the dynamic time bending distance, perform preliminary phase division of users using a hierarchical clustering algorithm, and then use a deep neural network to refine the preliminary division results, outputting the phase assignment of each user and the serial connection order relationship between users in the same phase.

[0033] The impedance calculation module is used to calculate the circuit impedance of each line segment along the topology path of the transformer substation from the end to the beginning, based on the phase assignment and series connection sequence relationship. It uses the steady-state measurement data to construct a redundant set of equations and uses constrained least squares to solve for the resistance and reactance parameters of each line segment to obtain the circuit impedance of each line segment in the transformer substation.

[0034] The line loss calculation module is used to construct a technical line loss calculation model, which includes a power factor correction term and a three-phase imbalance correction term, based on the circuit impedance and measured electrical quantity data, and to calculate the theoretical line loss of each section of the line in the transformer area.

[0035] The anomaly location module is used to calculate the line loss deviation rate of each line segment based on the theoretical line loss and the actual line loss collected synchronously, and to calculate the line loss sensitivity of each line segment. The line loss sensitivity represents the degree of influence of the resistance change of the line segment on the total line loss of the transformer area. Based on the line loss deviation rate and the line loss sensitivity, a dual criterion is constructed, and line segments whose dual criterion values ​​exceed a preset threshold are identified as abnormal line impedance points.

[0036] The beneficial effects of the above technical solution are as follows:

[0037] (1) Improve phase identification accuracy. This invention uses the DDTW algorithm to adaptively segment the voltage sequence. By using derivative constraints, it effectively eliminates the interference of baseline drift and amplitude scaling on similarity judgment, overcoming the problem of decreased identification accuracy of the traditional correlation coefficient method under three-phase unbalanced conditions. On this basis, a three-level progressive identification architecture is constructed: "DDTW adaptive segmentation to extract time-series features - hierarchical clustering for initial phase segmentation - deep neural network for refined modeling of node connection relationships". This architecture can not only accurately determine the phase affiliation of users, but also further identify the series connection sequence relationship between users in the same phase, providing more accurate phase topology information for subsequent segmented impedance calculation.

[0038] (2) Achieving dynamic triggering and joint verification of impedance calculation. This invention uses voltage transient disturbance events as a common trigger signal to simultaneously drive two processing branches: phase identification and impedance calculation. The phase identification branch determines the phase based on the voltage sequence changes before and after the voltage transient disturbance event, while the impedance calculation branch identifies the piecewise impedance recursion based on the steady-state measurement data before and after the voltage transient disturbance event. The outputs of the two branches mutually verify and constrain each other, enabling impedance calculation to not only have event-driven dynamic response capabilities but also to verify the phase of the voltage and current data on which the impedance calculation is based using the phase identification results, effectively avoiding impedance calculation errors caused by phase confusion.

[0039] (3) Achieving dynamic correction of technical line loss due to multi-factor coupling. Based on the obtained loop impedance, this invention further integrates measured data such as power factor and three-phase imbalance to construct a three-dimensional correction coefficient matrix, and uses recursive least squares to update the correction coefficients online. Each time new measurement data arrives, only incremental updates are needed, without recalculating all historical data. This ensures computational efficiency while achieving adaptive tracking of the correction coefficients to the operating status of the transformer area. Compared with the approximate processing method using fixed correction coefficients in the prior art, this invention can more accurately quantify the incremental impact of three-phase imbalance and power factor changes on technical line loss, and improve the calculation accuracy of technical line loss under complex operating conditions.

[0040] (4) Forming a closed-loop technology chain from data acquisition to line loss analysis. This invention organically integrates voltage transient disturbance event detection, DDTW adaptive segmented phase identification, segmented impedance recursive identification, and multi-factor coupling dynamic correction. The output accuracy of the previous stage directly serves the input requirements of the next stage. Phase identification provides accurate phase topology for impedance calculation, and impedance calculation provides reliable impedance base values ​​for multi-factor correction. This systematic design overcomes the shortcomings of existing technologies where each stage is relatively independent and accuracy loss accumulates step by step. It achieves a full-link accuracy improvement from measurement data acquisition to line loss analysis, providing a more reliable technical foundation for the location of abnormal line loss in transformer areas. Attached Figure Description

[0041] Figure 1 This is a schematic diagram of the overall process of the present invention;

[0042] Figure 2 Here is a flowchart of the DDTW adaptive segmented phase recognition process;

[0043] Figure 3 Flowchart for segmented impedance recursion identification;

[0044] Figure 4 This is a flowchart for joint determination based on dual criteria and anomaly localization. Detailed Implementation

[0045] The specific embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] Example 1

[0047] This embodiment uses a public distribution transformer substation in a residential community in a city as an application scenario. The substation is equipped with an 800kVA distribution transformer, with a three-phase four-wire power supply on the low-voltage side, covering 6 residential buildings, 12 units, and 288 households. All users in the substation have installed smart meters, capable of real-time acquisition and uploading of electrical quantities such as voltage, current, active power, and reactive power. The acquisition frequency is 96 points per day (i.e., one acquisition point every 15 minutes), with some smart meters supporting minute-level data acquisition. A substation master meter is installed at the low-voltage side outgoing line of the transformer to collect the total power supply and three-phase electrical parameters of the substation.

[0048] I. Data Acquisition and Voltage Transient Disturbance Detection

[0049] As attached Figure 1 As shown, step S1 first involves real-time monitoring of the electrical quantities of each phase line in the transformer substation.

[0050] Data acquisition is accomplished through an electricity information acquisition system. The system reads data such as voltage, current, active power, and reactive power from the main meter of the distribution area and all user electricity meters according to a preset acquisition cycle (every 15 minutes in this embodiment), and uploads it to the data center for storage. The raw data collected may contain noise, erroneous data, and duplicate data due to communication interference, equipment errors, etc., and requires preprocessing.

[0051] Data preprocessing includes the following sub-steps:

[0052] (1) Outlier detection. This embodiment uses a statistical method based on 3 Outlier detection is performed in principle. For a given electrical quantity sequence... Calculate its mean and standard deviation When a certain data point satisfy If the data point is out of the question, mark it as an outlier and remove it.

[0053] (2) Handling missing values. For data missing due to communication interruption, equipment failure, etc., this embodiment adopts different strategies to handle the data based on the data characteristics. For data with strong time-series correlation, such as voltage and current, linear interpolation is used to fill the missing data when the missing data ratio is low (less than 10%); when the missing data ratio is high, the nearest neighbor method is used, that is, the average value of the nearest valid data before and after the missing time is selected for filling.

[0054] (3) Data Standardization. Since voltage, current, power, and other data have different dimensions and value ranges, to avoid affecting subsequent model training, this embodiment uses the Z-Score standardization method to standardize all data, ensuring that all feature data have the same scale. The standardization formula is:

[0055]

[0056] in, The mean of the original data. The standard deviation is 1. After this transformation, the mean of the data is 0 and the standard deviation is 1.

[0057] After data preprocessing, the system monitors the changes in electrical quantities of each phase line in real time and detects voltage transient disturbance events. A voltage transient disturbance event is defined as an event in the distribution area where the load switching or load fluctuation exceeds a preset threshold. In this embodiment, the load fluctuation threshold is set as the rate of change of active power exceeding 30% or the rate of change of the effective value of current exceeding 25% between two adjacent data acquisition times. When a voltage transient disturbance event is detected, the system automatically extracts electrical quantity data within a predetermined time window before and after the event.

[0058] To prevent excessive computational burden caused by frequent voltage transient disturbance events in a short period of time, this embodiment has an event merging mechanism: if multiple voltage transient disturbance events are detected consecutively within 5 minutes, the system retains only the event with the largest fluctuation amplitude as a valid triggering event, and the remaining events are merged and processed, and the subsequent calculation process is not triggered repeatedly.

[0059] The predetermined time window includes a first window before the voltage transient disturbance event and a second window after the voltage transient disturbance event. In this embodiment, the width of the first window is 30 minutes before the voltage transient disturbance event (i.e., two 15-minute data acquisition cycles), and the width of the second window is 30 minutes after the voltage transient disturbance event. The window width is dynamically adjusted according to the load fluctuation rate: when the load in the distribution area fluctuates drastically (such as during peak electricity consumption periods in the morning and evening), the window width is appropriately reduced to improve response sensitivity; when the load is stable, the window width is appropriately increased to ensure sufficient data. For example, during the peak residential electricity consumption period from 19:00 to 22:00 in the evening, the window width is adjusted to 15 minutes before and after; during the off-peak period from 00:00 to 05:00 in the early morning, the window width is adjusted to 60 minutes before and after.

[0060] In this invention, the main function of voltage transient disturbance events is to locate high-value analysis periods, namely, periods when electrical quantities in the transformer area change significantly. During these periods, the voltage sequence exhibits the most pronounced fluctuation characteristics, and the correlation between voltage changes of in-phase users is most prominent, providing ideal input data conditions for the derivative dynamic time warping algorithm.

[0061] The captured electrical quantity data comprises two parts: transient waveform data for phase identification (the period when the voltage sequence fluctuates significantly before and after a voltage transient disturbance event) and steady-state measurement data for impedance calculation (the period when the electrical quantities tend to stabilize before and after a voltage transient disturbance event). The transient waveform data is collected from 3-5 sampling points before and after the voltage transient disturbance event. The steady-state measurement data is collected from 10-15 sampling points during stable operation before the voltage transient disturbance event and 10-15 sampling points during the period of renewed stable operation after the voltage transient disturbance event. Both types of data segments are collected based on the same voltage transient disturbance event, ensuring the data source consistency between phase identification and impedance calculation.

[0062] II. Phase Recognition Based on DDTW Adaptive Segmentation

[0063] After completing data collection and preprocessing, as shown in the attached document... Figure 2 As shown, proceed to the phase recognition step.

[0064] The core task of phase identification is, after verifying the relationship between transformer substations, to determine the phase (phase A, phase B, or phase C) of each user's electricity meter within the same substation, as well as the series connection sequence between users in the same phase. Accurate phase identification is a prerequisite for subsequent impedance calculation. Only by clarifying the phase of each user can we ensure that the voltage and current data used in impedance calculation correspond to the actual line, avoiding calculation errors caused by phase confusion.

[0065] The phase identification method used in this embodiment is based on the following principle: In a low-voltage distribution network in a transformer substation, users on the same phase line are connected in series. Changes in the load of downstream users will cause changes in the voltage of the downstream user and all upstream and downstream users on the same phase to change in the same direction. Therefore, the correlation of voltage fluctuations of users on the same phase is significantly higher than that of users on different phases, and the closer the electrical distance between two metering points, the greater the voltage correlation.

[0066] This embodiment adopts a three-level progressive recognition architecture of "DDTW adaptive segmentation - hierarchical clustering initial segmentation - deep neural network fine correction", as detailed below:

[0067] (I) Level 1: DDTW adaptive segmentation for extracting temporal features

[0068] The Derivative Dynamic Time Warping (DDTW) algorithm is an improved version of the traditional DTW algorithm by introducing derivative constraints. The traditional DTW algorithm finds the optimal alignment path between two time series through dynamic programming, effectively handling the scaling and offset of the series along the time axis. However, traditional DTW is sensitive to amplitude scaling and baseline drift, easily resulting in a single point in one series being aligned to multiple points in another series. The DDTW algorithm effectively overcomes this deficiency by introducing derivative information.

[0069] In the DDTW algorithm, the dynamic time warping distance refers to the cumulative distance after finding the optimal alignment path between two time series through dynamic programming. It is used to measure the shape similarity of the two series after time axis scaling. The core idea of ​​the DDTW algorithm is to compare the changing trends of the series rather than their absolute values. By using derivative constraints, the alignment result depends more on the shape similarity of the series than on their magnitude similarity.

[0070] In this embodiment, the specific implementation steps of the DDTW algorithm are as follows:

[0071] Step 2.1.1: Calculate the first derivative of the original voltage sequence to obtain the derivative sequence. For the voltage sequence... Its derivative at point t is calculated using the following formula (intermediate point). ):

[0072]

[0073] This formula considers a weighted average of forward and backward differences, which can more smoothly reflect the local variation trend of the sequence, while also suppressing measurement noise to a certain extent. For the sequence endpoints, one-sided difference calculation is used:

[0074] left endpoint : ;

[0075] right endpoint : .

[0076] Step 2.1.2: Construct the dynamic time-bending distance matrix between the derivative sequences. For two voltage sequences... and First, calculate its corresponding derivative sequence, then construct a... The distance matrix, where each element Indicates the first Point and the The derivative distance between points:

[0077]

[0078] Step 2.1.3: Find the optimal alignment path using dynamic programming. Define the cumulative distance matrix D, where:

[0079]

[0080] arrive The shortest path is the optimal alignment path. ,in This represents the path length.

[0081] Step 2.1.4: Determine the boundary points of adaptive segmentation based on the optimal alignment path. The points where the cumulative distance change rate changes abruptly in the optimal alignment path are the segmentation boundary points. This embodiment uses a quantization criterion: calculating the cumulative distance change rate between adjacent points on the path. Further calculate the mean of the cumulative distance change rate for all path points. and standard deviation ,when At this point, the segment boundary is marked. Through adaptive segmentation, the voltage sequence is divided into multiple subsequences with similar variation characteristics.

[0082] Step 2.1.5: Calculate the DDTW distance between each user's voltage sequence and the voltage sequence of each phase of the transformer in the distribution area. For the first... Layer For each user, the DDTW distance between their voltage sequence and the voltage sequences of transformer phases A, B, and C is calculated, resulting in three distance values. , , .

[0083] The DDTW adaptive piecewise cost function can be expressed as:

[0084]

[0085] in, and There are two voltage sequences. This is the optimal alignment path.

[0086] (ii) Second level: Hierarchical clustering for preliminary phase division

[0087] After obtaining the DDTW distance between each user and each phase of the transformer, the hierarchical clustering phase initial division stage begins.

[0088] This embodiment uses a hierarchical clustering algorithm to perform preliminary phase segmentation for users. Hierarchical clustering is a tree-structure-based clustering method that does not require pre-specifying the number of clusters. Instead, it calculates the similarity between data points and gradually merges the most similar data points or clusters to form a hierarchical clustering tree (dendrogram).

[0089] The specific steps are as follows:

[0090] Step 2.2.1: Construct a user similarity matrix. Using DDTW distance as the similarity metric, construct an N×N similarity matrix for N users within the same area, where the first... Line number The elements of the column represent users With users The DDTW distance between them.

[0091] Step 2.2.2: Clustering is performed using Ward's minimum variance method. The basic idea of ​​Ward's method is: in each merge step, select the two clusters that minimize the increase in the sum of squared deviations within the merged clusters for merging. The sum of squared deviations is defined as:

[0092]

[0093] in, For the first One cluster, This is the center of the cluster.

[0094] Step 2.2.3: Determine the optimal number of clusters. This embodiment determines the number of clusters as follows: calculate the total sum of squared deviations for different numbers of clusters, plot the "number of clusters - total sum of squared deviations" curve, and select the number of clusters at the inflection point of the curve as the optimal number of clusters. In this embodiment, the number of clusters is determined to be 3 (corresponding to phases A, B, and C).

[0095] Step 2.2.4: Output preliminary phase partitioning results. After hierarchical clustering is completed, each user is assigned to one of the three clusters, A, B, and C, thus completing the preliminary phase partitioning. Simultaneously, users within the same cluster are sorted by their DDTW distance from the transformer's in-phase voltage in ascending order; the smaller the distance, the closer the electrical distance. This determines the series connection order among in-phase users: the user with the smallest distance is closest to the transformer, and the user with the largest distance is farthest from the transformer.

[0096] (III) Level 3: Refined Modeling of Deep Neural Networks

[0097] While hierarchical clustering can perform preliminary phase division, misjudgments may still occur in cases of severe three-phase load imbalance or insufficient measurement accuracy in older transformer substations. Therefore, this embodiment introduces a deep neural network to refine and correct the preliminary division results.

[0098] The deep neural network used in this embodiment is a multi-layer fully connected feedforward neural network, and its structure is as follows:

[0099] Input layer: The input feature vector is the DDTW distance feature vector of each user, including the DDTW distance value between the user and the three-phase voltage of transformers A, B, and C, as well as the statistical features of the DDTW distance between the user and other users in the same layer (mean, variance, minimum, and maximum), for a total of 10 features.

[0100] Hidden layers: Contains two fully connected hidden layers. The first hidden layer contains 128 neurons, and the second hidden layer contains 64 neurons. The activation function used is the ReLU function (Modified Linear Unit), defined as... The ReLU function has advantages such as simple computation and mitigating gradient vanishing, making it suitable for deep neural network training in this embodiment.

[0101] Output Layer: The output layer is a Softmax classifier with three output nodes, corresponding to the probability distributions of phases A, B, and C, respectively. The Softmax function is defined as follows:

[0102]

[0103] in, For the first The activation value of each output node. Indicates input Belongs to the The probability of a class.

[0104] Training strategy: Use the output of hierarchical clustering as the initial labels, and employ supervised training using the cross-entropy loss function. The cross-entropy loss function is defined as follows:

[0105]

[0106] in, For the first The true label of each sample Let N be the probability predicted by the network, and N be the total number of samples.

[0107] During training, the Adam optimizer was used to update parameters. The initial learning rate was set to 0.001, and it decayed to 0.9 times the original rate every 50 training epochs. The training set and validation set were divided in an 8:2 ratio. Training was terminated early when the validation set loss function stopped decreasing for 10 consecutive epochs to prevent overfitting.

[0108] After training, the deep neural network outputs the probability distribution of each user's assigned phase, and the phase with the highest probability is taken as the final phase determination result for that user. Simultaneously, the network automatically learns the connection relationship features between nodes during training, which can help verify the concatenation order relationship between users in the same phase.

[0109] Through the aforementioned three-level progressive identification architecture, this embodiment achieves accurate identification of user phases in the transformer substation area. Verification showed that the phase identification accuracy for the 288 users in this substation area reached 94.7%, higher than the traditional correlation coefficient method (approximately 85%-90%). The improvement in accuracy was particularly significant during periods of high load fluctuation.

[0110] III. Segmented Impedance Recursive Identification

[0111] After completing phase identification, obtaining the phase affiliation of each user, and the serial connection sequence among users in phase, as shown in the appendix... Figure 3 As shown, proceed with the steps for calculating the circuit impedance of the transformer substation.

[0112] This embodiment calculates the loop impedance of each section of the circuit based on basic circuit principles and measurement data. According to Ohm's law... The impedance of a line can be calculated by measuring the voltage drop and current. For the resistive component R, it is directly obtained as the ratio of the real part of the voltage drop to the current; for the reactive component X, it is calculated by considering the circuit's frequency characteristics and reactive power parameters.

[0113] In actual calculations, considering the distributed parameter characteristics of low-voltage distribution lines (i.e., the resistance and reactance of the line are uniformly distributed along the line, rather than being lumped parameters), this embodiment adopts a segmented recursive method: the line is divided into several small segments, each segment is regarded as a lumped parameter unit, and the calculation is performed segment by segment from the end to the beginning.

[0114] The specific steps are as follows:

[0115] Step 3.1: Construct the transformer substation topology path. Based on the phase identification results and the connection sequence of in-phase users output in Step S2, and combined with the transformer substation topology structure obtained from the power geographic information system (GIS) or production management system (PMS), construct a complete topology path from the low-voltage side of the transformer to each user's electricity meter. Each path consists of multiple line segments, and each line segment is uniquely identified by its upstream and downstream nodes.

[0116] Step 3.2: Obtain steady-state measurement data. Extract voltage, current, active power, and reactive power data at each moment from the steady-state measurement data intercepted in step S1. In this embodiment, data from 5 moments of stable operation before the voltage transient disturbance event and 5 moments of stable operation after the event are selected, for a total of 10 sets of steady-state data.

[0117] Step 3.3: Establish the voltage and current equations. For the first... For each section of the line, establish the voltage-current relationship equations based on Kirchhoff's voltage law and current law. For the connection nodes... and nodes The voltage drop equation for the line segment is as follows:

[0118]

[0119] in, The voltage at the upstream node. For downstream node voltage, The current flowing through this section of the line, The impedance of this section of the line ( For resistance, For reactance, (Imaginary unit).

[0120] Flowing through the The current in a line segment is equal to the sum of the currents at all load nodes downstream of that line segment:

[0121]

[0122] in, For the first The set of all load nodes downstream of the line segment. For the first The current at each load node.

[0123] Step 3.4: Construct a redundant set of equations. Based on steady-state measurement data at multiple times before and after the same voltage transient disturbance event, establish the voltage and current equations for each time point, forming an overdetermined set of equations (the number of equations exceeds the number of unknowns). For a transformer substation with N line segments, the unknowns are the resistances of each line segment. and reactance There are a total of 2N unknowns. The measurement data at each moment can provide N voltage equations and N current equations. The 10 sets of steady-state data can provide a total of 20N equations, forming a highly redundant set of equations.

[0124] Step 3.5: Impedance Solution. The redundant equations are solved using the constrained least squares method. The objective function is the sum of squares of the measurement residuals at each time step:

[0125]

[0126] The constraint is that the resistance and reactance of each line segment are positive numbers. , , .

[0127] This embodiment uses the Sequential Quadratic Programming (SQP) algorithm to solve the constrained optimization problem described above. The basic idea of ​​the SQP algorithm is to approximate the original problem as a quadratic programming subproblem at the current iteration point, solve this subproblem to obtain the search direction, and then perform a one-dimensional search along this direction to obtain a new iteration point. This process iterates until the convergence accuracy is met (in this embodiment, the norm of the objective function gradient is taken to be less than...). The SQP algorithm can effectively handle nonlinear optimization problems with inequality constraints and is a standard method in the field of engineering optimization.

[0128] Step 3.6: Handling Unobservable Line Segments. In actual transformer substations, some terminal line segments (such as certain drop lines) may not have measuring devices installed, and their impedance cannot be solved independently. For these unobservable line segments, this embodiment adopts the following method: First, identify the line segments in the topology path that lack terminal measurements. Then, estimate the initial impedance value based on the nominal parameters (length, wire diameter, material) of the line segment. During the SQP optimization process, keep the impedance parameters of these line segments fixed and do not use them as free variables in the optimization. This approach ensures the engineering feasibility of the impedance solution algorithm under conditions of incomplete measurement coverage.

[0129] Step 3.7: Output the impedance of each line segment. After solving, the resistance and reactance parameters of each line segment in the transformer area are obtained, that is, the loop impedance of each line segment. .

[0130] In this embodiment, a total of 387 line segments (including main lines, branch lines, and service drop lines) from the transformer outlet to each user's meter box were identified in the transformer area. Among them, 351 line segments were observable, and 36 line segments were unobservable (mainly some old service drop lines). The resistance values ​​of each line segment ranged from 0.01Ω to 0.5Ω, and the reactance values ​​ranged from 0.005Ω to 0.15Ω, which basically matched the actual length and wire diameter of the line, verifying the rationality of the impedance calculation results.

[0131] IV. Technical Line Loss Calculation for Multi-Factor Coupled Dynamic Correction

[0132] After obtaining the loop impedance of each section of the line in the transformer area, the technical line loss calculation step is performed.

[0133] Technical line loss refers to the normal energy loss that occurs during power transmission and distribution due to factors such as heat generation from line resistance and reactance consumption. Traditional line loss calculation methods mainly rely on formulas. While resistance loss is calculated, in actual transformer operation, factors such as power factor and three-phase imbalance also significantly affect line loss. This embodiment introduces a multi-factor coupled dynamic correction mechanism based on traditional methods, as detailed below:

[0134] Step 4.1: Data integration and time-series alignment.

[0135] Collect circuit impedance data for the transformer substation area (output of step S3, including the resistance of each line segment). and reactance The sampling frequency for both the measured electrical quantity data (including current, voltage, active power, reactive power, power factor, etc. at various times) and the loop impedance data is 96 points / day, consistent with the sampling frequency of the electrical quantity data. To address the slight timestamp differences that may exist between the two types of data, a linear interpolation method is used for time alignment to ensure that the impedance at the same time is matched one-to-one with the electrical quantity data.

[0136] Step 4.2: Calculate the basic line loss.

[0137] For the For a given section of the line, the basic line loss (considering only resistance loss) is calculated using the following formula:

[0138]

[0139] in, The stream flows through the t-th time. The effective value of the current in the section of the line, This is the resistance value of this section of the line.

[0140] Step 4.3: Power factor correction.

[0141] The power factor reflects the ratio of active power to apparent power. A low power factor means a larger proportion of reactive power, which leads to increased current and consequently increased line losses. This embodiment introduces a power factor correction term, calculating a correction coefficient based on the deviation of the real-time power factor of each line segment from the reference power factor.

[0142] Reference power factor The average power factor of this line segment under normal operating conditions is taken (0.92 in this embodiment). Real-time power factor. The results are calculated from the active and reactive power at that moment:

[0143]

[0144] The formula for calculating the power factor correction factor is:

[0145]

[0146] in, This is the power factor influence coefficient. The value of is not a fixed constant, but an empirical coefficient obtained by least-squares fitting based on the historical operating data of the transformer area. The goal is to minimize the deviation between the measured and theoretical values ​​of line loss under the historical normal operating conditions of the transformer area, and to obtain the optimal value for the transformer area. Value. After fitting, the value of the station area in this embodiment is... The value is approximately between 2.3 and 2.8. When the real-time power factor is lower than the reference value, the correction factor is greater than 1, indicating an increase in line loss; conversely, the correction factor is less than 1, indicating a decrease in line loss.

[0147] Step 4.4: Three-phase imbalance correction.

[0148] Three-phase imbalance refers to the phenomenon where the amplitudes of the three-phase currents are inconsistent, which leads to an increase in the neutral line current and consequently, additional neutral line losses. This embodiment calculates the three-phase current imbalance degree for each section of the line based on the phase identification results of step S2.

[0149] For the The three-phase currents of the line segment (assuming it is a three-phase line) at time t are respectively , , The three-phase average current is:

[0150]

[0151] The three-phase current unbalance is calculated using the following formula:

[0152]

[0153] The neutral current is obtained by vector synthesis of the three-phase currents:

[0154]

[0155] The correction factor for the additional losses caused by three-phase imbalance is expressed as follows:

[0156]

[0157] in, This is a coefficient related to the line structure. In a three-phase four-wire system, The value of is related to the impedance ratio of the phase conductor and the neutral conductor. When the phase conductor and the neutral conductor have the same cross-section, The theoretical value range is 1.5-2.0. In this embodiment, based on the actual phase-to-neutral impedance ratio of the transformer substation, the value is taken as... When the three phases are perfectly balanced, the neutral current is zero and the correction factor is 1; the greater the three-phase imbalance, the greater the neutral current and the greater the correction factor.

[0158] Step 4.5: Dynamic correction of multi-factor coupling.

[0159] In this embodiment, a three-dimensional correction coefficient matrix is ​​constructed, which includes the basic value of loop impedance, power factor correction term, and three-phase imbalance correction term. The correction coefficients are updated online using the recursive least squares method.

[0160] The revised formula for calculating technical line loss is as follows:

[0161]

[0162] The recursive least squares update process for the three-dimensional correction coefficient matrix is ​​as follows:

[0163] Define observation vector parameter vector Then the observed line loss value ,in To observe noise.

[0164] The update formula for recursive least squares is:

[0165]

[0166]

[0167]

[0168] in, Here is the gain matrix. Let covariance matrix be the variance matrix. I is the forgetting factor (in this embodiment, it is set to 0.95-0.99, and is adaptively adjusted according to the load fluctuation of the transformer area), and I is the identity matrix.

[0169] The smaller the forgetting factor, the greater the weight the algorithm places on recent data, resulting in faster tracking; the larger the forgetting factor, the greater the weight the algorithm places on historical data, leading to more stable estimation results. In this embodiment, a smaller forgetting factor (0.95) is used during periods of drastic load fluctuations (such as morning and evening peak electricity consumption periods), while a larger forgetting factor (0.99) is used during periods of stable load.

[0170] Each time new measurement data arrives, only the correction coefficient needs to be incrementally updated, without recalculating all historical data. This ensures computational efficiency while enabling adaptive tracking of the correction coefficient to the operating status of the transformer area.

[0171] Step 4.6: Model accuracy verification.

[0172] In this embodiment, the root mean square error (RMSE) is used as the evaluation index for model accuracy. When the RMSE is less than 2% of the average load of the distribution area, the model accuracy is considered to meet the requirements. If the accuracy is insufficient, the sample size of high-loss distribution areas is increased and the model parameters are refitted.

[0173] Step 4.7: Accumulate the theoretical line loss for each segment of the line.

[0174] The theoretical line losses of all line segments in the transformer area are summed to obtain the total theoretical technical line loss of the transformer area:

[0175]

[0176] Integrating the theoretical line loss over time at each moment yields the theoretical technical line loss (unit: kWh) for the time period:

[0177]

[0178] In the transformer substation of this embodiment, the theoretical line loss on a certain day was calculated to be 186.7 kWh, the total power supply of the substation on that day was 10523.1 kWh, and the theoretical line loss rate was 1.77%.

[0179] V. Calculation of Line Loss Deviation Rate and Line Loss Sensitivity

[0180] After obtaining the theoretical line loss for each line segment, the anomaly criterion calculation step is initiated.

[0181] The core of this step lies in calculating two key indicators: line loss deviation rate and line loss sensitivity. These two indicators characterize the operating status of each line segment from two independent dimensions: the degree of loss deviation and the degree of impedance influence. Subsequently, the two are weighted and fused to construct a composite criterion, which serves as a comprehensive basis for judging abnormal line loss.

[0182] (a) Calculation of line loss deviation rate

[0183] Line loss deviation rate reflects the degree of deviation between the theoretical line loss and the actual line loss of each line segment, and is a basic indicator for judging abnormal line loss.

[0184] For the The actual line loss of this section of the line. The result is calculated from the difference in electricity meter readings at the beginning and end of this line segment:

[0185]

[0186] in, Let be the power of the upstream node of the i-th line segment. This represents the power of the downstream node.

[0187] For the Line loss deviation rate of the line segment Calculate using the following formula:

[0188]

[0189] in, For the first The actual line loss of the section of the line, For the first The theoretical line loss of a section of the line.

[0190] Line loss deviation rate The larger the value, the greater the deviation between the theoretical and actual line loss of that section of the line, and the higher the possibility of abnormal line loss.

[0191] (II) Calculation of line loss sensitivity

[0192] Line loss sensitivity indicates the degree to which changes in the resistance of a certain line section affect the bus loss of a transformer substation. It is a core indicator for identifying key nodes that have a significant impact on bus loss.

[0193] No. Line loss sensitivity of the line segment Defined as bus loss in the distribution area Resistance of this section of the line Considering the response of current to resistance changes in a real system, this embodiment uses the elasticity coefficient to express the sensitivity:

[0194]

[0195] in, For the bus loss in the distribution area, For the first The resistance value of the section of the line, For the first The set of all load nodes downstream of the line segment. For the flow through the first The effective value of the current at each load node, The elastic modulus of the resistance is the square of the current.

[0196] The elasticity coefficient eliminates the influence of dimensions, facilitating lateral comparisons between different line sections. In actual calculations, the elasticity coefficient is approximated through numerical difference.

[0197]

[0198] in, For a small resistance disturbance, in this embodiment Take 1%,

[0199] In this embodiment, the line loss sensitivity of each line segment is calculated within the transformer area. The sensitivity ranges from 0.1 to 15.6. Main lines closer to the transformer have higher sensitivity (usually greater than 5), while branch lines and service lines farther from the transformer have lower sensitivity (usually less than 1). This is consistent with theoretical expectations; the closer a line is to the power source, the greater the impact of its resistance changes on the bus loss.

[0200] VI. Joint Judgment Based on Dual Criteria and Anomaly Location

[0201] After obtaining the line loss deviation rate of each line segment and line loss sensitivity Then, as attached Figure 4 As shown, proceed to the dual-criteria joint determination step.

[0202] (a) Data standardization

[0203] Since line loss deviation rate and line loss sensitivity have different dimensions and numerical ranges, standardization is required before direct comparison or weighted combination. This embodiment uses the Z-score standardization method to convert the two indicators into dimensionless standardized values.

[0204] Standardized value of line loss sensitivity:

[0205]

[0206] Standardized value of line loss deviation rate:

[0207]

[0208] in, , These are the mean and standard deviation of the line loss sensitivity for all line segments in the current transformer area, respectively. , These are the mean and standard deviation of the deviation rate for all line segments in the current transformer substation area. These statistical values ​​are calculated based on historical data under normal operating conditions of the current substation area and are updated periodically (monthly in this example) to adapt to changes in the substation area's operating status.

[0209] Z-score standardization makes the values ​​of different indicators comparable. The standardized value represents the degree of deviation of the indicator from the mean of the whole sample (in standard deviation). A positive value indicates that it is above the average level, and a negative value indicates that it is below the average level.

[0210] (ii) Calculation of dual criterion values

[0211] Constructing dual criterion values The standardized values ​​of line loss sensitivity and line loss deviation rate are weighted and fused together:

[0212]

[0213] in, , The time-varying weighting coefficient is dynamically adjusted based on at least one of the following operating parameters: current load level, three-phase imbalance, and power factor, to meet the requirements of... ;when When the value is greater than the preset joint criterion threshold, the first criterion is determined. The line section has abnormal impedance.

[0214] The time-varying weighting coefficient is dynamically adjusted based on the current operating conditions of the transformer area. The specific adjustment strategy is as follows:

[0215] When the load level in the transformer area is high (load rate exceeds 70%), line loss is mainly affected by impedance, thus increasing the sensitivity weight. To 0.6-0.7;

[0216] When the three-phase imbalance in the transformer area is high (exceeding 15%), the deviation rate is more effective in reflecting anomalies, thus increasing the weight of the deviation rate. The weight of the deviation rate should be increased to 0.6-0.7. When the power factor of the transformer area is low (below 0.85), the weight of the deviation rate should be increased appropriately. Under normal circumstances, α(t)=β(t)=0.5.

[0217] In this embodiment, the specific values ​​of the weighting coefficients are determined based on the current load level, three-phase imbalance, and power factor of the transformer area. For example, during the evening peak electricity consumption period (19:00-22:00), the load rate of the transformer area exceeds 75%, and the three-phase imbalance is approximately 12%. In this case, α(t) = 0.65 and β(t) = 0.35 are taken. During the early morning off-peak period, the load rate is below 20%, and the three-phase imbalance is approximately 5%. In this case, α(t) = 0.4 and β(t) = 0.6 are taken.

[0218] (III) Anomaly Detection

[0219] When dual criterion values Greater than the preset joint criterion threshold At that time, the judgment of the first There are points on the line with abnormal line impedance.

[0220] Joint criterion threshold The threshold is determined based on the statistical distribution of dual criterion values ​​under historical normal operating conditions of the transformer substation. In this embodiment, dual criterion values ​​of all line segments under normal operating conditions of the substation over the past 90 days are collected, their statistical distribution is calculated, and the 90th percentile is taken as the joint criterion threshold. This threshold is periodically recalculated as the operating status of the substation changes to ensure the adaptability and accuracy of anomaly detection. When this occurs, the line segment is marked as a candidate segment for abnormal line loss.

[0221] (iv) Differentiation of abnormal types

[0222] Once a section of the line is identified as a point of abnormal line impedance, this embodiment further uses the standardized value of line loss sensitivity. Standardized value of deviation rate The relative size relationship distinguishes the anomaly type:

[0223] like This indicates that the abnormal line loss in this section is primarily caused by impedance factors, thus classifying it as an impedance anomaly. Possible causes include increased resistance due to line aging, increased contact resistance due to poor joint contact, and excessively thin wire diameter. For this impedance anomaly, it is recommended to replace the aging line, tighten the joints, and increase the wire diameter.

[0224] like This indicates that the abnormal line loss in this section is mainly caused by load factors, and is therefore classified as a load anomaly. Possible causes include electricity theft by users, metering device malfunction or wiring errors, and single-phase overload. To address the load anomaly, it is recommended to take measures such as power usage inspection, metering device calibration, and load adjustment.

[0225] If both are significantly higher (both exceeding twice the standard deviation of their respective mean): it is determined to be a composite anomaly, and it is necessary to investigate from both impedance and load directions simultaneously.

[0226] In this invention, line impedance anomaly refers to line loss anomaly characterized by abnormal changes in line impedance parameters. Its manifestations include, but are not limited to, impedance parameter anomalies caused by line aging, poor joint contact, or excessively thin wire diameter. Furthermore, impedance analysis can also identify load anomalies caused by load factors such as electricity theft, metering device malfunction, and single-phase overload. In the dual-criteria model, these anomalies typically exhibit a significantly high line loss deviation rate and relatively low line loss sensitivity. Through the combined determination of the above-mentioned composite criteria, it is possible to further distinguish between impedance anomalies and load anomalies based on the location of line impedance anomalies, providing direction for on-site troubleshooting.

[0227] In this embodiment, three line segments with abnormal line loss were identified in the transformer substation area after joint judgment based on dual criteria. One of these segments is the main line near the transformer (sensitivity). =12.3, deviation rate , The increased contact resistance was confirmed by on-site inspection to be due to oxidation of the joints in that section of the line; the other two sections were branch lines, which had lower sensitivity but higher deviation rates.

[0228] Example 2

[0229] This embodiment provides a transformer substation line impedance anomaly location system based on transient electrical quantity detection and composite criteria. The system includes the following modules:

[0230] The data acquisition module is used to monitor the electrical quantity data of each phase line in the transformer substation in real time. When a voltage transient disturbance event is detected, it extracts the electrical quantity data within a predetermined time window before and after the occurrence of the voltage transient disturbance event. The electrical quantity data includes transient waveform data for phase identification and steady-state measurement data for impedance calculation. The data acquisition module is connected to the transformer substation's main meter and all user electricity meters through an electricity consumption information acquisition system. The acquisition frequency is 96 points per day (once every 15 minutes). When a voltage transient disturbance event is detected, the acquisition frequency can be automatically increased to once per minute to obtain more detailed transient process data.

[0231] The phase recognition module is used to adaptively segment and match the voltage sequences of each phase of the transformer and each user's voltage sequence based on the transient waveform data using a derivative dynamic time curvature algorithm. It calculates the dynamic time curvature distance between the voltage sequences of each user and the voltage sequences of each phase of the transformer. Based on this dynamic time curvature distance, it performs preliminary phase segmentation of users using a hierarchical clustering algorithm, and then refines the preliminary segmentation results using a deep neural network, outputting the phase assignment of each user and the connection order between users in the same phase. The phase recognition module uses GPU-accelerated computation; for a transformer area with 288 users, the computation time for a single phase recognition operation does not exceed 5 minutes.

[0232] The impedance calculation module is used to recursively calculate the impedance of each line segment along the transformer substation topology from the end to the beginning, based on the phase assignment and series connection sequence. It constructs a redundant set of equations using the steady-state measurement data and solves for the resistance and reactance parameters of each line segment using constrained least squares, thus obtaining the loop impedance of each line segment in the transformer substation. The impedance calculation module has a built-in sequential quadratic programming solver, supporting parallel impedance calculation for up to 1000 line segments.

[0233] The line loss calculation module is used to construct a technical line loss calculation model, including power factor correction terms and three-phase imbalance correction terms, based on the circuit impedance and measured electrical quantity data, to calculate the theoretical line loss of each section of the line in the transformer area. The line loss calculation module has a built-in recursive least squares online update engine, which automatically updates the correction coefficients each time new measurement data arrives.

[0234] The anomaly location module calculates the line loss deviation rate for each line segment based on the theoretical line loss and the synchronously acquired actual line loss. It also calculates the line loss sensitivity for each segment, where the sensitivity represents the degree to which changes in the line resistance of that segment affect the total line loss of the transformer substation. Based on the line loss deviation rate and the line loss sensitivity, a dual criterion is constructed, and line segments whose dual criterion values ​​exceed a preset threshold are identified as points with abnormal line impedance. The anomaly location module also includes an anomaly type classifier that automatically distinguishes between impedance anomalies and load anomalies based on the relative magnitude of the sensitivity and deviation rate.

[0235] The modules are connected via a data bus. The output of the data acquisition module serves as the input to the phase identification module and the impedance calculation module. The output of the phase identification module serves as the input to the impedance calculation module. The output of the impedance calculation module serves as the input to the line loss calculation module. The output of the line loss calculation module serves as the input to the anomaly location module, forming a complete data processing chain.

[0236] It should be understood that the above preferred embodiments are not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A method for locating abnormal impedance of transformer substation lines based on transient electrical quantity detection and composite criteria, characterized in that, Includes the following steps: S1: Real-time monitoring of electrical quantity data of each phase line in the transformer area. When a voltage transient disturbance event is detected, electrical quantity data within a predetermined time window before and after the occurrence of the voltage transient disturbance event is extracted. The electrical quantity data includes transient waveform data for phase identification and steady-state measurement data for impedance calculation. S2: Based on the transient waveform data, the derivative dynamic time bending algorithm is used to adaptively segment and match the voltage sequences of each phase of the transformer and each user, and calculate the dynamic time bending distance between each user voltage sequence and each phase voltage sequence of the transformer; based on the dynamic time bending distance, the user is initially divided into phases using a hierarchical clustering algorithm, and then the initial division result is refined using a deep neural network, outputting the phase assignment of each user and the serial connection order relationship between users in the same phase; S3: Based on the phase assignment and series connection sequence, proceed segment by segment along the topology path of the transformer area from the end to the beginning. Construct a redundant set of equations using the steady-state measurement data, and use constrained least squares to solve for the resistance and reactance parameters of each segment of the line to obtain the loop impedance of each segment of the line in the transformer area. S4: Based on the circuit impedance and measured electrical quantity data, construct a technical line loss calculation model that includes power factor correction term and three-phase imbalance correction term, and calculate the theoretical line loss of each section of the line in the transformer area; S5: Based on the theoretical line loss and the actual line loss collected synchronously, calculate the line loss deviation rate of each line segment; at the same time, calculate the line loss sensitivity of each line segment, whereby the line loss sensitivity represents the degree of influence of the resistance change of the line segment on the total line loss of the transformer area. S6: Construct a dual criterion based on the line loss deviation rate and the line loss sensitivity, and determine the line segment whose dual criterion value exceeds the preset threshold as a line impedance abnormality point; In step S1, the voltage transient disturbance event is an event detected in the transformer area where the load switching or load fluctuation exceeds a preset threshold; the predetermined time window includes a first window before the voltage transient disturbance event occurs and a second window after the voltage transient disturbance event occurs, and the widths of the first window and the second window are dynamically adjusted according to the load fluctuation rate; the voltage transient disturbance event serves as a common trigger signal for phase identification and impedance calculation, so that steps S2 and S3 are both executed based on data triggered by the same voltage transient disturbance event; In step S5, the first Line loss sensitivity of the line segment Calculate using the following formula: ,in, For the bus loss in the distribution area, For the first The resistance value of the section of the line, For the first The set of all load nodes downstream of the line segment. For the flow through the first The effective value of the current at each load node, The elastic modulus of the resistance is the square of the current. The line loss deviation rate Calculate using the following formula: ,in, For the first The actual line loss of the section of the line, For the first Theoretical line loss of a section of the line; In step S6, the dual criterion value Calculate using the following formula: ,in, , These are the mean and standard deviation of the line loss sensitivity for all line segments in the current transformer area, respectively. , These are the mean and standard deviation of the deviation rate for all line segments in the current transformer area, respectively. , The time-varying weighting coefficient is dynamically adjusted based on at least one of the following operating parameters: current load level, three-phase imbalance, and power factor, to meet the requirements of... ;when When the value is greater than the preset joint criterion threshold, the first criterion is determined. The section of the line has abnormal line impedance; In step S6, the preset joint criterion threshold is determined based on the statistical distribution of the dual criterion values ​​under the historical normal operating conditions of the transformer area, and the 90th percentile of the historical dual criterion values ​​is taken as the preset joint criterion threshold; when the dual criterion value exceeds this threshold, the line loss sensitivity standardized value is used. Standardized value of deviation rate The relative magnitude of the values ​​distinguishes the types of anomalies: if the standardized value of line loss sensitivity is higher than the standardized value of deviation rate, it is determined to be an impedance anomaly; if the standardized value of deviation rate is higher than the standardized value of line loss sensitivity, it is determined to be a load anomaly.

2. The method according to claim 1, characterized in that, In step S2, when the derivative dynamic time bending algorithm performs adaptive segmentation matching on the voltage sequence, it first calculates the first derivative of the original voltage sequence to obtain the derivative sequence, then determines the optimal alignment path based on the dynamic time bending distance between the derivative sequences, and determines the boundary points of adaptive segmentation according to the optimal alignment path, dividing the voltage sequence into multiple subsequences with similar change characteristics.

3. The method according to claim 1, characterized in that, In step S2, the hierarchical clustering algorithm uses the derivative dynamic time curvature distance as a similarity measure, employs the Ward minimum variance method for clustering, and determines the number of clusters using the elbow rule; the deep neural network is a fully connected network containing an input layer, at least two hidden layers, and an output layer, uses the output of the hierarchical clustering as the initial label, performs supervised training using the cross-entropy loss function, and outputs the probability distribution of each user belonging to each phase.

4. The method according to claim 1, characterized in that, In step S3, the redundant equation set is: based on the steady-state measurement data at multiple times before and after the occurrence of the same voltage transient disturbance event, the voltage and current equations corresponding to each time time are established to form an overdetermined equation set; the constraint condition for the constrained least squares solution is that the resistance parameter and reactance parameter of each line segment are positive numbers.

5. The method according to claim 1, characterized in that, In step S4, the power factor correction term is calculated based on the offset of the real-time power factor of each line segment relative to the reference power factor; the three-phase imbalance correction term is calculated based on the three-phase current imbalance of each line segment; the power factor correction term and the three-phase imbalance correction term are updated online using the recursive least squares method, and only the correction coefficient is updated incrementally each time new measurement data arrives.

6. A transformer substation line impedance anomaly location system based on transient electrical quantity detection and composite criteria, used to implement the method described in any one of claims 1-5, characterized in that, include: The data acquisition module is used to monitor the electrical quantity data of each phase line in the transformer area in real time. When a voltage transient disturbance event is detected, the electrical quantity data within a predetermined time window before and after the occurrence of the voltage transient disturbance event is extracted. The electrical quantity data includes transient waveform data for phase identification and steady-state measurement data for impedance calculation. The phase recognition module is used to adaptively segment and match the voltage sequences of each phase of the transformer and each user's voltage sequence based on the transient waveform data using a derivative dynamic time bending algorithm, calculate the dynamic time bending distance between each user's voltage sequence and each phase of the transformer; and based on the dynamic time bending distance, perform preliminary phase division of users using a hierarchical clustering algorithm, and then use a deep neural network to refine the preliminary division results, outputting the phase assignment of each user and the serial connection order relationship between users in the same phase. The impedance calculation module is used to calculate the circuit impedance of each line segment along the topology path of the transformer substation from the end to the beginning, based on the phase assignment and series connection sequence relationship. It uses the steady-state measurement data to construct a redundant set of equations and uses constrained least squares to solve for the resistance and reactance parameters of each line segment to obtain the circuit impedance of each line segment in the transformer substation. The line loss calculation module is used to construct a technical line loss calculation model, which includes a power factor correction term and a three-phase imbalance correction term, based on the circuit impedance and measured electrical quantity data, and to calculate the theoretical line loss of each section of the line in the transformer area. The anomaly location module is used to calculate the line loss deviation rate of each line segment based on the theoretical line loss and the actual line loss collected synchronously, and at the same time calculate the line loss sensitivity of each line segment. The line loss sensitivity represents the degree of influence of the resistance change of the line segment on the total line loss of the transformer area. A dual criterion is constructed based on the line loss deviation rate and the line loss sensitivity, and line segments whose dual criterion values ​​exceed a preset threshold are identified as abnormal line impedance points.

Citation Information

Patent Citations

  • A method for correcting line loss in a substation area based on HPLC environment

    CN110880753B

  • Direct-current distribution dynamic optimization method, system and equipment for light-storage direct-current flexible building, and medium

    CN120879507A

  • Transformer area topological structure estimation method, system and equipment based on multi-dimensional power utilization characteristics and medium

    CN121705949A