Wiring error electric leakage positioning method based on complex multiple regression, medium and equipment
Through the wiring error leakage location method based on complex multiple regression, the problem of low efficiency of traditional leakage location detection is solved, efficient leakage location in multi-user fault scenarios is achieved, and detection accuracy and safety are improved.
Patent Information
- Application Number
- CN202410635646.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional leakage location detection methods are cumbersome and inefficient. They cannot accurately identify leakage sources in complex scenarios with multi-user faults. They also require repeated power outages for troubleshooting, making it impossible to achieve efficient leakage location.
A wiring error leakage locating method based on complex multiple regression is used to construct a complex multiple linear regression equation set by collecting user load current and residual current phasor data in the station area, determine the complex weight coefficient, establish a real-valued complex variable objective function, and pass The primitive dual interior point method calculates the optimal solution and realizes the location of abnormal users.
It improves the accuracy and efficiency of leakage location detection, can accurately distinguish abnormal users in single-user, same-phase, and out-of-phase fault scenarios, realizes leakage location identification in complex scenarios of multi-user faults, detects leakage hazards in a timely manner, and avoids electric shocks and fires. risks and ensure electrical safety.
Smart Images

Figure CN118534253A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of leakage detection and positioning, and in particular to a wiring error leakage positioning method, medium and equipment based on complex multivariate regression. Background Art
[0002] Leakage detection and location technology is an important means to ensure electrical safety and is widely used in power transmission and distribution systems, industrial electrical, building electrical and other fields. Leakage refers to the abnormal leakage of current from a charged body to the ground or other conductors, which may cause serious accidents such as electric shock and electrical fires. Therefore, it is very important to detect and eliminate leakage hazards in a timely manner.
[0003] The traditional leakage location detection method is that when troubleshooting leakage faults in low-voltage substations, operation and maintenance personnel often use auxiliary equipment such as clamp ammeters, link sticks, and electric pens to troubleshoot along the line section by section downstream to narrow the scope of fault investigation, and then use a cable fault tester to inject high-frequency pulse signals into the line to locate the line leakage point. This method is cumbersome and inefficient, and power must be cut off when injecting pulse signals. When intermittent leakage faults occur, it is often necessary to repeatedly perform power outages and troubleshooting / power-on tests to accurately locate the leakage source. In addition, this method cannot achieve leakage location identification in complex scenarios with multiple user faults. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the first object of the present invention is to provide a wiring error leakage location method based on complex multivariate regression, which can improve the leakage location detection efficiency and realize leakage location identification in complex scenarios of multi-user faults.
[0005] A second object of the present invention is to provide a computer-readable storage medium.
[0006] A third object of the present invention is to provide an electronic device.
[0007] To achieve the above object, the present invention is implemented through the following technical solutions:
[0008] A wiring error leakage location method based on complex multivariate regression, comprising:
[0009] During the measurement period, the load current and residual current phasor data of each user in the substation area are collected;
[0010] Construct a complex multivariate linear regression equation system based on the collected data;
[0011] Determine the complex weight coefficient inequality constraints of each user's load current, establish a real-valued complex variable objective function according to the complex multivariate linear regression equation group and the complex weight coefficient inequality constraints, and convert the real-valued complex variable objective function into a convex linear optimization model;
[0012] Constructing a Lagrangian function through the primal-dual interior point method, determining a first-order perturbation KKT condition according to the Lagrangian function, and calculating an optimal solution of the convex linear optimization model in a feasible domain according to the first-order perturbation KKT condition, wherein the optimal solution is a complex weight coefficient of each user's load current;
[0013] The abnormal user location of wiring error and leakage fault is realized according to the complex weight coefficient of each user's load current obtained by solving.
[0014] Preferably, the complex multivariate linear regression equation system is expressed as follows:
[0015]
[0016] in, It represents the residual current phasor of the substation at the mth measurement time, represents the complex weight coefficient phasor of the pth user load current with respect to the residual current, represents the load current phasor of the pth user at the mth measurement time, It represents the leakage current phasor of the power supply line at the mth measurement moment, m represents the measurement period, and p represents the total load current of the user.
[0017] Preferably, the real-valued complex variable objective function and the complex weight coefficient inequality constraint are respectively expressed as follows:
[0018] min Q=∑|Aα-b|
[0019]
[0020]
[0021]
[0022]
[0023] Where Q represents the real-valued complex variable objective function, A is the user load current matrix, b is the residual current vector of the substation, α is the complex weight coefficient vector, Represents the complex weight coefficient phasor of the jth user's load current with respect to the residual current.
[0024] Preferably, the convex linear optimization model is expressed as follows:
[0025]
[0026] Among them, f(α) represents the objective function of the convex linear optimization model, H represents the conjugate transpose, Re represents the real part function, Im represents the imaginary part function, α j Represents the complex weight coefficient of the j-th user load current with respect to the residual current.
[0027] Preferably, before constructing the Lagrangian function, the method further comprises: converting the inequality constraints in the convex linear optimization model into equality constraints by adding non-negative slack variables; the corresponding converted convex linear optimization model is expressed as follows:
[0028]
[0029] Among them, s j is the non-negative slack variable corresponding to the j-th user load current.
[0030] Preferably, the Lagrangian function is expressed as follows:
[0031] L(α,s,λ)=f(α)+∑[λ j (1-Re(α j ) 2 -Im(α j ) 2 -s j )]
[0032] Where L(α,s,λ) represents the Lagrangian function, s represents the non-negative slack variable parameter, λ represents the Lagrangian multiplier parameter, and λ j is the Lagrange multiplier corresponding to the load current of the jth user;
[0033] The first-order perturbation KKT conditions include the zero condition of the partial derivative of the Lagrangian function, the constraint conditions of the original problem, the complementary relaxation conditions of the dual problem, and the non-negativity conditions of the original problem and the dual problem.
[0034] Preferably, the method further comprises: preprocessing the collected data, the preprocessing step comprising outlier detection, outlier correction and data format matching.
[0035] Preferably, before constructing the complex multivariate linear regression equation group, the method further includes: calculating the variance expansion factor between the load currents of each user to verify the linear independence between the load currents of each user.
[0036] To achieve the above object, the second aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned wiring error leakage location method based on complex multivariate regression is implemented.
[0037] To achieve the above-mentioned purpose, the third aspect of the present invention provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned wiring error leakage locating method based on complex multivariate regression is implemented.
[0038] The present invention has at least the following technical effects:
[0039] The present invention provides a method for locating wiring error leakage based on complex multivariate regression. The method is to first collect the load current and residual current phasor data of each user in the substation during the measurement period, then construct a complex multivariate linear regression equation group based on the collected data, then determine the complex weight coefficient inequality constraints of the load current of each user, then establish a real-valued complex variable objective function based on the complex multivariate linear regression equation group and the complex weight coefficient inequality constraints, and then convert the real-valued complex variable objective function into a convex linear optimization model, that is, a convex linear optimization problem. After that, a Lagrangian function is constructed by the original dual interior point method, a first-order perturbation KKT condition is determined according to the Lagrangian function, and the optimal solution of the convex linear optimization model is calculated according to the first-order perturbation KKT condition to obtain the complex weight coefficient of each user's load current, and then the abnormal user location of the wiring error leakage fault can be realized according to the complex weight coefficient of each user's load current obtained by solving. This method can improve the accuracy and efficiency of leakage current location detection, and it takes into account the phase synthesis characteristics of the current and the physical constraints it is subject to, so that it can accurately distinguish abnormal users in fault scenarios of single user, two users in the same phase, and two users in different phases with incorrect wiring, and thus can realize leakage current location identification in complex scenarios of multi-user faults.
[0040] In addition, the leakage locating detection method can timely discover leakage hazards and take protective measures such as alarm and power cut-off, which can effectively avoid the risks of electric shock and fire and ensure the safety of people and equipment; the leakage locating detection method provides a basis for safety management, emergency response, accident investigation, etc., which helps enterprises to prevent legal risks and reduce compensation expenditures; the leakage locating detection method can also handle leakage faults in time, reduce line tripping, and ensure the smooth operation of the system. At the same time, the accumulation and analysis of leakage data also provide support for power supply reliability assessment and weak link management.
[0041] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 The figure is a flow chart of a wiring error leakage location method based on complex multivariate regression according to an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The present embodiment is described in detail below, and examples of the embodiment are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.
[0044] The following is a brief description of the wiring error leakage location method based on complex multivariate regression of this embodiment.
[0045] First, the leakage model is established. In the analysis period of measurement time m, the residual current of the i-station area and the load current of each user at the measurement time are recorded as and j∈[1,p], the leakage current of the power supply line at this moment is recorded as p represents the total number of user load currents. The complex multivariate linear regression equations of user load currents with respect to the residual current of the substation are listed as follows.
[0046]
[0047] in, It represents the residual current phasor of the substation at the mth measurement time, represents the complex weight coefficient phasor of the pth user load current with respect to the residual current, represents the load current phasor of the pth user at the mth measurement time, Represents the leakage current phasor of the power supply line at the mth measurement moment.
[0048] make:
[0049]
[0050]
[0051]
[0052]
[0053] Among them, A is the user load current matrix, b is the residual current vector of the substation, α is the complex weight coefficient vector, ε is the leakage current vector of the power supply line, and A m is the user load current vector at the mth measurement moment.
[0054] Then the complex multivariate linear regression equations of the residual current in the transformer area can be expressed in matrix form:
[0055] b=Aα+ε (6)
[0056] Based on the complex multivariate linear regression equations, the estimated value of the complex weight coefficient vector that satisfies the constraints is solved, and then the square sum of the residual current error in the substation area, that is, the real-valued complex variable objective function Q, is calculated and minimized, that is:
[0057] min Q = ∑|Aα-b| (7)
[0058]
[0059] Where Q represents the real-valued complex variable objective function, Represents the complex weight coefficient phasor of the jth user's load current with respect to the residual current.
[0060] From the residual sum of squares calculation formula, we can know that this objective function represents a real-valued complex variable function mapped from the complex domain to the real domain. According to the least squares theory, the objective problem is transformed from a multivariate regression problem to a convex linear optimization problem. For the convex function linear optimization problem with inequality constraints, the primal-dual interior point method is further used to solve the optimal solution of the objective function under the constraints.
[0061] For convex optimization problems with equality constraints or inequality constraints, the primal-dual interior point method is an optimization method that converts the inequality constraint problem into an equality constraint problem through a logarithmic barrier function within the feasible domain, and continuously iterates the linear system through Newton's method to update the primal variables and dual variables until the dual gap convergence condition is met. This method can obtain a convex linear optimization model within the feasible domain, that is, the optimal solution of the linear system, that is, the complex weight coefficient of each user's load current. Then, based on the complex weight coefficient of each user's load current obtained by solving the complex weight coefficient, the abnormal user of the wiring error and leakage fault can be located.
[0062] The following specifically describes the wiring error leakage location method, medium and device based on complex multivariate regression of this embodiment.
[0063] Figure 1 FIG. 1 is a flow chart of a wiring error leakage location method based on complex multivariate regression according to an embodiment of the present invention. Figure 1 As shown, the method includes:
[0064] Step S1: During the measurement period, the load current and residual current phasor data of each user in the substation are collected.
[0065] In this embodiment, the load current and total residual current phasor data of each user in the substation area can be collected within a measurement period to construct a sample set of explanatory variables and explained variables. The collected data can be preprocessed, including outlier detection, outlier correction, and data format matching, to provide a high-quality data basis for further calculation and analysis.
[0066] Furthermore, before constructing the complex multiple linear regression equation group, the variance inflation factor between the load currents of each user can also be calculated to verify the linear independence between the load currents of each user. The variance inflation factor is an indicator used to measure the severity of multicollinearity between independent variables in multiple linear regression, which reflects the degree to which a certain independent variable is explained by other independent variables.
[0067] Step S2: construct a complex multivariate linear regression equation system based on the collected data.
[0068] The complex multivariate linear regression equation group in this embodiment is shown in the above formula (1).
[0069] Step S3: Determine the complex weight coefficient inequality constraints of each user's load current, establish a real-valued complex variable objective function according to the complex multivariate linear regression equation group and the complex weight coefficient inequality constraints, and convert the real-valued complex variable objective function into a convex linear optimization model.
[0070] In this embodiment, based on the least squares theory and considering the inequality constraints of the complex weight coefficients of the load current of each user, a real-valued complex variable objective function is established and transformed into a convex linear optimization problem, i.e., a convex linear optimization model. The real-valued complex variable objective function is shown in formula (7), and the inequality constraints of the complex weight coefficients are shown in formula (8).
[0071] The convex linear optimization model is expressed as follows:
[0072]
[0073] Among them, f(α) represents the objective function of the convex linear optimization model, H represents the conjugate transpose, Re represents the real part function, Im represents the imaginary part function, α j Represents the complex weight coefficient of the j-th user load current with respect to the residual current.
[0074] In one embodiment of the present invention, before constructing the Lagrangian function, the method further includes: converting the inequality constraints in the convex linear optimization model into equality constraints by adding non-negative slack variables; the corresponding converted convex linear optimization model is expressed as follows:
[0075]
[0076] Among them, s j is the non-negative slack variable corresponding to the j-th user load current.
[0077] Step S4: construct a Lagrangian function through the primal-dual interior point method, determine the first-order perturbation KKT condition based on the Lagrangian function, and calculate the optimal solution of the convex linear optimization model in the feasible domain based on the first-order perturbation KKT condition. The optimal solution is the complex weight coefficient of the load current of each user.
[0078] In this embodiment, a Lagrangian multiplier parameter λ may be introduced to construct a Lagrangian function, which is expressed as follows:
[0079] L(α,s,λ)=f(α)+∑[λ j (1-Re(α j ) 2 -Im(α j ) 2 -s j )] (11)
[0080] Where L(α,s,λ) represents the Lagrangian function, s represents the non-negative slack variable parameter, and λ j is the Lagrange multiplier corresponding to the j-th user load current.
[0081] Furthermore, the partial derivatives of the Lagrangian function with respect to each optimization variable are calculated and made equal to zero, and the first-order perturbation KKT (first-order necessary condition for the optimal solution) condition is obtained. The first-order perturbation KKT condition includes the zero condition of the partial derivative of the Lagrangian function, the constraint condition of the original problem, the complementary relaxation condition of the dual problem, and the non-negativity conditions of the original problem and the dual problem, as follows:
[0082]
[0083] in, represents the partial derivative of α, It means partial derivative of s.
[0084] Furthermore, the optimal solution of the convex linear optimization model in the feasible domain is calculated according to the first-order perturbation KKT condition: Initialize the starting point (α0, s0, λ0) that satisfies the above first-order perturbation KKT condition, α0, s0, λ0 are the corresponding initial values of each variable, the convergence condition is ε, and the maximum number of iterations k is max , determine the iterative search direction, calculate the original step size and the dual step size, and calculate the residual r(x,λ,s) of the original problem and the dual problem by continuously updating the step size and search direction. If the norm of the residual r(x,λ,s) is small enough, or the preset number of iterations k is reached max or time limit, the iteration is stopped and the current solution is output as the optimal solution that satisfies the constraints and convergence conditions in the feasible domain. The optimal solution is the complex weight coefficient vector that minimizes the residual current residual square sum objective function.
[0085] Step S5: locating abnormal users with wiring error and leakage fault according to the solved complex weight coefficient of each user's load current.
[0086] In this embodiment, according to the complex weight coefficient vector of each user's load current obtained by solving, abnormal users can be accurately distinguished in the wiring error fault scenarios of a single user, two users in the same phase, and two users in different phases, thereby realizing leakage location and identification in complex scenarios of multi-user faults.
[0087] In summary, the present invention provides a method for locating wiring errors and leakage based on complex multivariate regression. The method is to first collect the load current and residual current phasor data of each user in the substation during the measurement period, then construct a complex multivariate linear regression equation group based on the collected data, and then determine the complex weight coefficient inequality constraints of the load current of each user, and then establish a real-valued complex variable objective function based on the complex multivariate linear regression equation group and the complex weight coefficient inequality constraints, and then convert the real-valued complex variable objective function into a convex linear optimization model, that is, a convex linear optimization problem. After that, the Lagrangian function is constructed by the original dual interior point method, the first-order perturbation KKT condition is determined according to the Lagrangian function, and the optimal solution of the convex linear optimization model is calculated according to the first-order perturbation KKT condition, and the complex weight coefficient of each user's load current is obtained. Then, according to the complex weight coefficient of each user's load current obtained by solving, the abnormal user location of the wiring error leakage fault can be realized. This method can improve the accuracy and efficiency of leakage current location detection, and it takes into account the phase synthesis characteristics of the current and the physical constraints it is subject to, so that it can accurately distinguish abnormal users in fault scenarios of single user, two users in the same phase, and two users in different phases with incorrect wiring, and thus can realize leakage current location identification in complex scenarios of multi-user faults.
[0088] Furthermore, the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned wiring error leakage location method based on complex multivariate regression can be implemented.
[0089] Furthermore, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned wiring error leakage locating method based on complex multivariate regression can be implemented.
[0090] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0091] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.
Claims
1. A wiring error leakage location method based on complex multivariate regression, It is characterized in that include: During the measurement period, the load current and residual current phasor data of each user in the substation area are collected; Construct a complex multivariate linear regression equation system based on the collected data; Determine the complex weight coefficient inequality constraints of each user's load current, establish a real-valued complex variable objective function according to the complex multivariate linear regression equation group and the complex weight coefficient inequality constraints, and convert the real-valued complex variable objective function into a convex linear optimization model; Constructing a Lagrangian function through the primal-dual interior point method, determining a first-order perturbation KKT condition according to the Lagrangian function, and calculating an optimal solution of the convex linear optimization model in a feasible domain according to the first-order perturbation KKT condition, wherein the optimal solution is a complex weight coefficient of each user's load current; The abnormal user location of wiring error and leakage fault is realized according to the complex weight coefficient of each user's load current obtained by solving.
2. The wiring error leakage location method based on complex multivariate regression as claimed in claim 1, It is characterized in that The complex multivariate linear regression equations are expressed as follows: in, It represents the residual current phasor of the substation at the mth measurement time, represents the complex weight coefficient phasor of the pth user load current with respect to the residual current, represents the load current phasor of the pth user at the mth measurement time, It represents the leakage current phasor of the power supply line at the mth measurement moment, m represents the measurement period, and p represents the total load current of the user.
3. The wiring error leakage location method based on complex multivariate regression as claimed in claim 2, It is characterized in that The real-valued complex variable objective function and the complex weight coefficient inequality constraints are expressed as follows: min Q=∑|Aα-b| Where Q represents the real-valued complex variable objective function, A is the user load current matrix, b is the residual current vector of the substation, α is the complex weight coefficient vector, Represents the complex weight coefficient phasor of the jth user's load current with respect to the residual current.
4. The wiring error leakage location method based on complex multivariate regression as claimed in claim 3, It is characterized in that The convex linear optimization model is expressed as follows: Among them, f(α) represents the objective function of the convex linear optimization model, H represents the conjugate transpose, Re represents the real part function, Im represents the imaginary part function, α j Represents the complex weight coefficient of the j-th user's load current with respect to the residual current.
5. The wiring error leakage location method based on complex multivariate regression as claimed in claim 4, It is characterized in that Before constructing the Lagrangian function, the method further includes: converting the inequality constraints in the convex linear optimization model into equality constraints by adding non-negative slack variables; the corresponding converted convex linear optimization model is expressed as follows: Among them, s j is the non-negative slack variable corresponding to the j-th user load current.
6. The wiring error leakage location method based on complex multivariate regression as claimed in claim 5, It is characterized in that The Lagrangian function is expressed as follows: L(α,s,λ)=f(α)+∑[λ j (1-Re(α j ) 2 -Im(a j ) 2 -s j )] Where L(α,s,λ) represents the Lagrangian function, s represents the non-negative slack variable parameter, λ represents the Lagrangian multiplier parameter, and λ j is the Lagrange multiplier corresponding to the j-th user load current; The first-order perturbation KKT conditions include the zero condition of the partial derivative of the Lagrangian function, the constraint conditions of the original problem, the complementary relaxation conditions of the dual problem, and the non-negativity conditions of the original problem and the dual problem.
7. The wiring error leakage location method based on complex multivariate regression according to any one of claims 1 to 6, It is characterized in that The method further comprises: preprocessing the collected data, wherein the preprocessing steps include outlier detection, abnormal value correction and data format matching.
8. The wiring error leakage location method based on complex multivariate regression according to any one of claims 1 to 6, It is characterized in that Before constructing the complex multivariate linear regression equation group, the method further includes: calculating the variance expansion factor between the load currents of each user to verify the linear independence between the load currents of each user.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the wiring error leakage location method based on complex multivariate regression as described in any one of claims 1 to 8 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the wiring error leakage location method based on complex multivariate regression as described in any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Wiring error electric leakage user robust positioning method and device and storage medium
CN121410452A
Method, device and storage medium for locating a user with wiring error and electric leakage
CN121410452B
Wiring error electric leakage user high-precision positioning method and device and storage medium
CN121432067A
