A data-driven based voltage excursion influencing factor assessment method and system

By constructing a physical model of the distribution area and using the XGBoost model, the key factors of voltage overruns in low-voltage distribution areas are identified, which solves the problems of insufficient research and data adaptability in existing technologies, realizes accurate assessment and intelligent diagnosis of grid voltage overruns, and improves the safety and stability of the power grid.

CN123159933APending Publication Date: 2026-11-24STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER CO +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510670393.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing technologies have not conducted in-depth research on voltage overrun issues in low-voltage distribution areas. Data acquisition and quality are insufficient, making it difficult to accurately locate overrun nodes or areas. Traditional methods ignore valuable information and are difficult to adapt to differences in power grid structure and policies in different regions, thus threatening the safe and stable operation of the power grid.

Method used

A data-driven approach is adopted to acquire distribution transformer load data, construct a physical model, select key influencing factors as feature indicators, process them using the XGBoost model, output the importance score of the feature indicators on the degree of voltage over-limit impact, and construct a comprehensive dataset by combining multiple feature indicators for simulation analysis to identify key influencing factors.

Benefits of technology

It enables a more comprehensive and accurate assessment of voltage over-limit issues, improves the reliability and intelligence level of power grid operation characteristic analysis, and enhances the diagnostic efficiency and accuracy of power grid safe and stable operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123159933A_ABST
    Figure CN123159933A_ABST
Patent Text Reader

Abstract

This invention relates to a data-driven method and system for assessing voltage exceedance influencing factors. The method includes the following steps: acquiring transformer load data for a distribution area, preprocessing it, and further constructing a physical model of the distribution area; based on the physical model, selecting key influencing factors reflecting the electrical characteristics of the distribution area as feature indicators; inputting the feature indicators into a pre-trained XGBoost model for processing, and outputting an importance score for the influence of the feature indicators on voltage exceedance. Compared with existing technologies, this invention has advantages such as considering multiple variables and quantifying the contribution of each feature indicator to voltage exceedance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system technology, and in particular to a data-driven method and system for evaluating voltage over-limit influencing factors. Background Technology

[0002] Driven by policies such as the "Thousands of Households Bathing in Sunshine Action" and the "Blue Book on the Development of New Power Systems," distributed photovoltaic (PV) power generation technology is developing rapidly, with a large number of distributed PV systems connected to power distribution areas. However, the active power output of distributed PV is random and fluctuating, which, combined with the uneven distribution and diverse types of loads in distribution areas, leads to a mismatch between power supply and load in the time series. This results in reverse transmission of active power and bidirectional power flow, exacerbating voltage limit exceedance problems and posing a potential threat to the safe and stable operation of the power grid. Furthermore, existing research on distributed PV mostly focuses on 10kV and above distribution networks, while analysis and research on 380V / 220V low-voltage distribution networks with large-scale distributed PV connections are relatively lacking. Currently, the analysis of grid voltage limit exceedance mainly relies on manual analysis methods. This traditional diagnostic method is not only inefficient but also highly susceptible to interference from subjective human factors, making it difficult to ensure the accuracy and consistency of diagnostic results. With the advancement of the power Internet of Things (IoT), the widespread application of intelligent measurement equipment generates massive amounts of heterogeneous multi-source data from the power grid every day. Traditional manual diagnostic methods are no longer sufficient to meet the actual needs of current power grid operation. Despite some progress in existing research, traditional data-driven, rigid evaluation methods (such as principal component analysis) have significant limitations. These methods rely solely on the dispersion of characteristic variables as the sole criterion for assessing their impact, making it difficult to reveal the intrinsic causal relationship between characteristic variables and output results. Furthermore, they exhibit significant shortcomings in handling multivariate correlations, easily leading to overfitting, weak generalization performance, and low prediction accuracy. Against this backdrop, there is an urgent need to research and develop more efficient, intelligent, and data-driven novel voltage limit diagnostic technologies and methods to overcome the limitations of existing approaches.

[0003] In summary, the existing technology has the following problems:

[0004] First, the depth of technical research is insufficient. The microscopic mechanism of voltage over-limit problem in low-voltage distribution areas is not studied in depth enough, and there is still a lack of detailed research in different scenarios. For example, there is a lack of specific impact analysis on microscopic factors such as photovoltaic power output fluctuations and load characteristic changes, as well as insufficient research on more complex access scenarios.

[0005] Second, there are problems with data acquisition and quality. Actual data may contain errors, be missing or incomplete, and the dynamic updating of data is not adaptable enough to reflect changes in the power grid's operating status in a timely manner.

[0006] Third, the ability to accurately locate and govern is limited, making it difficult to accurately locate nodes or areas that exceed the limits, and the operability of governance measures formulated for different factors needs to be improved.

[0007] Fourth, it is not well integrated with traditional methods. Relying solely on data-driven methods may overlook valuable information, and the model's generalization ability may still be limited in the face of diverse data from different regions and types of power grids.

[0008] Fifth, there are problems with the adaptability of power grids in different regions. There is insufficient consideration of the differences in power grid structure and policy standards in different regions, making it difficult to adapt well to the power grid conditions in some special regions, such as complex topology power grids in rural or remote areas, as well as the restrictions and requirements of different regional policies on photovoltaic access. Summary of the Invention

[0009] The purpose of this invention is to provide a data-driven method and system for evaluating voltage limit influencing factors that accurately identify key factors leading to voltage limit exceedance.

[0010] The objective of this invention can be achieved through the following technical solutions:

[0011] A data-driven method for assessing voltage limit exceedance influencing factors includes the following steps:

[0012] Obtain the load data of the distribution transformers in the transformer area, perform preprocessing, and further construct the physical model of the transformer area;

[0013] Based on the physical model of the transformer area, key influencing factors reflecting the electrical characteristics of the transformer area are selected as characteristic indicators.

[0014] The feature indexes are input into a pre-trained XGBoost model for processing, and the importance score of the feature indexes on the degree of voltage limit exceedance is output.

[0015] Furthermore, the preprocessing operation includes mean correction for outliers and abnormal values ​​in the distribution transformer load data of the distribution area.

[0016] Furthermore, the step of constructing the physical model of the transformer area includes:

[0017] Based on the initial topology and actual operating parameters of the distribution area, a physical model of the distribution network is constructed, and the power flow distribution of the distribution area under different operating conditions is simulated by combining the pre-processed distribution transformer load data.

[0018] Based on the aforementioned distribution network physical model, node parameters, line impedance parameters, and the location and capacity of distributed photovoltaic access are set to form a transformer area physical model.

[0019] Furthermore, the selection process for the feature indicators includes:

[0020] setting the terminal voltage U0 in the station area physical model to be constant, the number of load points to be k, and the voltage difference ΔU between the i-th load point and the (i-1)-th load point i and the voltage U of the i-th load point on the line before the photovoltaic power generation system is connected i , wherein the expressions of the voltage difference ΔU i and the voltage U i are respectively as follows:

[0021]

[0022] In the formulas, U i-1 is the voltage of the (i-1)-th load point on the line before the photovoltaic power generation system is connected, P k and Q k are the active load and the reactive load respectively, P k > 0, Q k > 0, ΔU i < 0, U i < U i -1, X i is the reactance of the line, R i is the resistance of the line, l n is the length of the line, r and x are the unit resistance and the unit reactance of the line respectively, l i is the distance between the (i-1)-th load point and the i-th load point;

[0023] calculating the voltage U of the load points before the p point after the photovoltaic power generation system with the capacity of P PV is connected at the p point, and the expression is: i

[0024]

[0025] wherein the load points before the p point are load points between 0 < i < p, and

[0026] calculating the voltage U of the load points after the p point after the photovoltaic power generation system with the capacity of P PV is connected at the p point, and the expression is: i

[0027]

[0028] wherein the load points after the p point are load points between p < i < N;

[0029] determining key influence factors according to voltage changes of the photovoltaic power generation system before and after being connected at the p point, and taking the key influence factors as the characteristic indexes.

[0030] ​​Furthermore, the characteristic indicators include active power of each load, reactive power of each load, photovoltaic (PV) grid connection capacity, PV grid connection location, and load factor. The PV grid connection location includes first-end node grid connection, intermediate node grid connection, last-end node grid connection, and average grid connection location. The PV grid connection capacity is represented by PV penetration rate, which is calculated using the following expression:

[0031]

[0032] In the formula, P PV,installed and S transformer These represent the actual photovoltaic output and the rated capacity of the transformer, respectively.

[0033] Furthermore, the construction steps of the XGBoost model include:

[0034] Initialize the model: Construct an initial XGBoost model, wherein the prediction values ​​of the initial XGBoost model are constant;

[0035] Iteration:

[0036] (1) Calculate the gradient and Hessian matrix:

[0037] For each sample, the first and second derivatives of the loss function are calculated to obtain the corresponding gradient and Hessian matrix, wherein the sample includes each feature index and the corresponding maximum node voltage.

[0038] (2) Define the objective function:

[0039] Construct an objective function based on Taylor expansion, expressed as:

[0040]

[0041] In the formula, Obj (t) f is the target value in the t-th iteration. t (x i Let g be the new decision tree fitted in the t-th round. i For, h i For, Ω(f t ) represents the regularization term for the tree structure;

[0042] (3) Constructing a decision tree:

[0043] By traversing each feature index and its split point, the feature index with the largest gain contribution is selected to split the node, thus forming a decision tree. The expression for calculating the gain contribution is as follows:

[0044]

[0045] In the formula, Gain is the gain contribution, G LH L G is the gradient and Hessian matrix of the left child node sample. R H R is the gradient and Hessian matrix of the right child node sample, λ is the regularization term, and γ is the pruning penalty;

[0046] (4) Update the model:

[0047] Update the model predictions and further update the model;

[0048] Repeat: Repeat the above iterative steps until the termination condition is met, and obtain the constructed XGBoost model.

[0049] Furthermore, the training steps of the XGBoost model include:

[0050] The system acquires various feature indicators and voltage data including voltage limit exceedance values ​​under various feature indicator scenarios, and performs normalization processing. The normalized feature indicators are used as input data, and the normalized voltage data and voltage limit exceedance conditions are used as output data.

[0051] Configure the parameters of the XGBoost model, including the learning rate, number depth, and regularization parameters;

[0052] The XGBoost model is trained using the input data, and the mapping relationship between the input data and the output data is learned by using the gradient boosting decision tree method. At the same time, the importance score of each feature index is automatically calculated, and the importance score is represented by the gain contribution.

[0053] Furthermore, the steps for forming voltage data containing voltage exceedance values ​​under each characteristic index scenario include:

[0054] Initialization: Based on the topology and actual operating parameters of the transformer area, set the initial parameters of the power flow calculation model, including the initial voltage values ​​of each node, line impedance parameters, and transformer parameters;

[0055] Scenario setting: Define the scenario for each feature indicator;

[0056] Power flow calculation: For each set characteristic index scenario, power flow calculation is performed using the power flow calculation model to obtain voltage data under each characteristic index scenario, wherein the voltage data includes over-limit values;

[0057] Data verification: Verify the accuracy and completeness of the voltage data under each characteristic indicator scenario.

[0058] Furthermore, the power flow calculation steps include:

[0059] The number of nodes is set to n, and the nodes are divided into three types: PQ nodes, PV nodes, and balanced nodes.

[0060] For each node, the node voltage equation in polar coordinates is constructed as follows:

[0061]

[0062] The node voltages satisfy the node power equation, expressed as follows:

[0063]

[0064] Y ik =G ik +jB ik

[0065] Expanding to the real and imaginary parts, the equation is:

[0066]

[0067] θ ik =θ i -θ k

[0068] In the formula, V i Let be the voltage at the i-th node, and ∠θ i Let P be the voltage phase angle at node i, where j is the imaginary unit used to distinguish between active and reactive power components. i Q i These are active load and reactive load, respectively. ik V represents the element of the nodal admittance matrix. k Let G be the voltage magnitude at node k. ik Let B be the conductance between node i and node k. ik Let θ be the susceptance between node i and node k. ik θ is the phase angle difference of the node voltages. i Let θ be the voltage phase angle at node i. k Let be the voltage phase angle at node k;

[0069] The node voltages are solved iteratively using the Newton-Raphson method, and the specific steps include:

[0070] 1) Variable initialization

[0071] Balance node: Fixed |V1| and θ1=0, where V1 and θ1 are the voltage and voltage phase angle of the balance node, respectively;

[0072] PQ node: Let the initial voltage be |V i (0) |=1.0, initial phase angle |θ i(0) |=0;

[0073] PV node: Fixed voltage |V i |, Let the initial phase angle be θ i (0) =0;

[0074] 2) Calculate power deviation

[0075] For each PQ node and PV node, calculate the power deviation:

[0076] ΔP i =P i,sch -P i (k)

[0077] ΔQ i =Q i,sch -Q i (k)

[0078] In the formula, ΔP i Let ΔQ be the active power deviation at node i. i P represents the reactive power deviation at node i. i,sch Q i,sch For a given value, P i (k) Q i (k) This is the current iteration value;

[0079] 3) Construct the Jacobian matrix

[0080] Construct a Jacobian matrix J, which contains the partial derivatives of power with respect to voltage magnitude and phase angle. The Jacobian matrix J is expressed as:

[0081]

[0082] The expression for calculating the matrix elements in J is as follows:

[0083]

[0084] 4) Solve the power deviation equation

[0085] Transform the power deviation equation into a linear form:

[0086]

[0087] Solving the linear form of the power deviation equation yields the voltage amplitude Δ|V| and the phase angle correction Δθ.

[0088] 5) Update voltage

[0089] The voltage is updated based on the voltage amplitude Δ|V| and the phase angle correction Δθ, wherein the voltage update expression is:

[0090] |V| (k+1) =∣V∣ (k) +Δ∣V∣

[0091] θ (k+1) =θ (k) +Δθ

[0092] In the formula, θ (k+1) Let |V| be the phase angle at the (k+1)th iteration. (k+1) The voltage at the (k+1)th iteration is given. The voltage amplitude at the PV node remains fixed, and only the phase angle is corrected.

[0093] 6) Convergence judgment

[0094] Determine whether max(∣ΔP∣,∣ΔQ∣)<∈ is true. If it is true, it means convergence and the iterative calculation process ends. If not, return to step 2) to perform iterative calculation, where ∈ is a set value.

[0095] This invention also provides a data-driven system for evaluating voltage limit exceedance influencing factors, comprising:

[0096] Physical model building module: used to acquire distribution transformer load data in the transformer area, perform preprocessing, and further build the physical model of the transformer area;

[0097] Feature selection module: used to select key influencing factors reflecting the electrical characteristics of the transformer area as feature indicators based on the transformer area physical model;

[0098] Analysis and processing module: This module is used to input the feature indicators into the pre-trained XGBoost model for processing and output an importance score of the feature indicators on the degree of influence of voltage exceedance.

[0099] Compared with the prior art, the present invention has the following beneficial effects:

[0100] (1) This invention considers the electrical characteristics of the transformer area and selects key influencing factors as characteristic indicators. It also uses the regression analysis of the XGBoost model to obtain the importance score of each characteristic indicator for the degree of influence of voltage over-limit, thereby accurately identifying the key factors that lead to voltage over-limit.

[0101] (2) This invention constructs a comprehensive dataset by selecting multiple characteristic indicators, and makes up for the lack and deficiency in actual data collection by simulating and analyzing the maximum node voltage under different scenarios. It solves the limitations of single variable consideration in traditional research, realizes a more comprehensive and accurate assessment of the voltage over-limit problem affected by multiple factors, and provides more reliable data support for the analysis of power grid operation characteristics.

[0102] (3) The XGBoost model of this invention optimizes the objective function through second-order Taylor expansion and regularization, selects the optimal split point using a greedy algorithm, and evaluates the importance of features through gain. This method is particularly efficient when processing high-dimensional data with multiple features, and can automatically identify key influencing factors (such as photovoltaic penetration rate and load factor) to improve prediction accuracy.

[0103] (4) This invention improves the intelligence level of grid voltage over-limit diagnosis, overcomes the shortcomings of traditional manual analysis methods such as low efficiency and strong subjectivity, and utilizes the nonlinear mapping and feature importance assessment capabilities of the XGBoost model to achieve accurate assessment of grid operation characteristics in the scenario of distributed power source access, providing more efficient and intelligent diagnostic technology support for the safe and stable operation of the grid. Attached Figure Description

[0104] Figure 1 This is a schematic diagram of the method flow of the present invention;

[0105] Figure 2 This is a schematic diagram of the radiation network of the transformer substation of the present invention;

[0106] Figure 3 This is a flowchart of the XGboost analysis of voltage over-limit factors in this invention;

[0107] Figure 4 This is a schematic diagram illustrating the impact of various characteristic indicators of the present invention on voltage.

[0108] Figure 5 This is a thermodynamic diagram illustrating the influence of various characteristic indicators of the present invention on voltage. Detailed Implementation

[0109] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.

[0110] Example 1

[0111] This embodiment provides a data-driven method for assessing the influencing factors of voltage exceedance. The method collects load operation data of a transformer substation in a city and performs power flow calculations to obtain the corresponding node voltages under different influencing factors, forming a sample dataset. The sample dataset is trained using an XGBoost model to evaluate the contribution of each influencing factor to voltage exceedance, quantifying the impact of factors such as photovoltaic penetration rate, residential load factor, active power, reactive power, and photovoltaic grid connection location on voltage exceedance. Based on the assessment results, the main causes of voltage exceedance in low-voltage transformer substations are determined, providing theoretical support for voltage management in these substations and improving the security of the power grid. Specifically, for example... Figure 1As shown, the method includes the following steps:

[0112] S1: Obtain data from the transformer area and build a physical model.

[0113] A massive amount of historical load data from distribution transformers in various substations was acquired and preprocessed. This preprocessing included mean correction for outliers and abnormal values. Based on the substation topology and actual operating parameters, a physical model of the distribution network was built to simulate the power flow distribution under different operating conditions. The substation was modeled using the actual topology, including node parameter settings, line impedance parameter input, and the definition of distributed photovoltaic (PV) access locations and capacities. This resulted in a realistic topology model of the substation, providing a data foundation for subsequent XGBoost-based analysis.

[0114] S2: Select electrical characteristic indicators for the transformer substation.

[0115] Key indicators reflecting the electrical characteristics of the transformer substation were selected as feature indicators for subsequent analysis. The specific feature selection and analysis are as follows:

[0116] Figure 2 In the process, assuming the terminal voltage U0 is kept constant, and there are k load points in total, the voltage of the i-th load point on the line is represented by U. i (i = 1, 2, ..., k) represents that P i +jQ(i=1,2,…,k) represents the load power at the i-th load point, and the impedance between the (i-1)-th and i-th load points on the line is represented by R. i +jX i =l(ir+jx) represents the line, where the unit resistance and unit reactance are represented by r and x respectively, and the distance between the (i-1)th and ith load points is represented by l. i Let the direction of power flow be considered the positive direction of the load, and the opposite direction be considered the negative direction. Neglecting line losses, the voltage difference between the i-th and (i-1)-th load points should be:

[0117]

[0118] In the formula: P i Q i These are active load and reactive load, respectively; P i >0, Q i >0, final ΔU i <0, U i <U i -1. Before PV connection, the voltage and distance from the initial point are inversely related, that is, the greater the distance, the lower the voltage. The voltage situation at the i-th load point on the line is as follows:

[0119]

[0120] First, when the photovoltaic power generation system with a capacity of P PV is connected at point p, for the load points located before the access point (0<i<p), the voltage calculation formula for the i-th point is as follows:

[0121]

[0122] In the formula, the former is the voltage value of the i-th load point after PV access, and the latter is the voltage value of the i-th load point before PV access, which is obtained through the formula. Accessing PV increases the voltage, and the increase amount is affected by the photovoltaic output and the access position of the load point.

[0123] Second, when the photovoltaic power generation system with a capacity of P PV is connected at point p, for the load points located after the access point (p<i<N), the voltage calculation formula for the i-th load point is as follows:

[0124]

[0125] It can be known from the above formula that the voltage of the transformer area is affected by the active power of each load, the reactive power of each load, the photovoltaic access capacity, and the photovoltaic access position. The active power data of each load in the transformer area is provided by the ledger data, and the reactive power data of the load is changed by adjusting the power factor. The photovoltaic access positions are considered in four ways: head-end node access, middle node access, end node access, and average access. The photovoltaic access capacity is represented by the photovoltaic penetration rate. In this paper, the photovoltaic penetration rate is defined as the quotient of the actual photovoltaic output and the rated capacity of the transformer, as shown in the formula:

[0126]

[0127] Where, P PV,installed and S transformer represent the actual photovoltaic output and the rated capacity of the transformer respectively. The photovoltaic penetration rate is set to 11 cases: 0%, 10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, and 100%.

[0128] In addition, since the load rate will cause the current of the transformer to change, which will further cause the voltage drop to change, the load rate is also one of the influencing factor indicators.

[0129] S3: Generate voltage data under each characteristic scenario according to power flow calculation.

[0130] Initialize model parameters: According to the topology structure and actual operating parameters of the transformer area, set the initial parameters of the power flow calculation model, including the initial voltage value of each node, line impedance parameters, transformer parameters, etc.

[0131] Define characteristic scenarios: Based on actual operation data and research needs, define different characteristic scenarios, including but not limited to different photovoltaic penetration rates, different residential load rates, different active power, different reactive power, and different photovoltaic access locations.

[0132] Power flow calculation: For each defined characteristic scenario, power flow calculation is performed using professional power system analysis software or a self-developed program. The core of power flow calculation is solving the nodal voltage equations and obtaining the voltage values ​​of each node through iterative calculation.

[0133] The process of power flow calculation includes:

[0134] In power systems, nodes are classified into three types: PQ nodes (active power P and reactive power Q are known), PV nodes (P and voltage amplitude V are known), and slack nodes (reference nodes). Node voltage equations are established based on the admittance matrix.

[0135] Suppose the system has n nodes, and the node voltages are expressed in polar coordinates:

[0136]

[0137] Nodal power equations (for each node i):

[0138]

[0139] Expand into equations with real and imaginary parts:

[0140]

[0141] Where: Y ik =G ik +jB ik θ is an element of the nodal admittance matrix. ik =θ i -θ k This represents the phase angle difference of the node voltage.

[0142] This invention uses the Newton-Raphson method to solve power flow problems, and iteratively solves the problem by linearizing the nonlinear power equations. The steps are as follows:

[0143] (1) Variable initialization

[0144] Equilibrium nodes: Fixed |V1| and θ1=0

[0145] PQ node: Let the initial voltage be |V i (0) |=1.0, initial phase angle |θ i (0) |=0

[0146] PV node: Fixed |V i|, Let the initial phase angle be θ i (0) =0

[0147] (2) Calculate power deviation

[0148] Calculate the power deviation for each PQ and PV node.

[0149] ΔP i =P i,sch -P i (k)

[0150] ΔQ i =Q i,sch -Q i (k)

[0151] Among them, P i,sch Q i,sch For a given value, P i (k) Q i (k) This is the current iteration value.

[0152] (3) Construct the Jacobian matrix

[0153] The Jacobian matrix J contains the partial derivatives of power with respect to voltage magnitude and phase angle:

[0154]

[0155] Example of Jacobian matrix element calculation:

[0156]

[0157] (4) Solve the corrected equation

[0158] Write the deviation equation in linear form:

[0159]

[0160] Solving this equation yields the corrections Δ∣V∣ and Δθ for the voltage amplitude and phase angle.

[0161] (5) Update voltage

[0162] θ (k+1) =θ (k) +Δθ

[0163] |V| (k+1) =∣V∣ (k) +Δ∣V∣

[0164] The voltage amplitude of the PV node remains constant, and only the phase angle is corrected.

[0165] (6) Convergence judgment

[0166] If max(|ΔP|,|ΔQ|) < ∈ (e.g., ∈ = 10) -4 If the result is positive, then the process converges; otherwise, return to step (2).

[0167] Collect voltage data: Organize and store the node voltage data calculated under each characteristic index scenario to form a complete voltage dataset.

[0168] Data verification: Verify the collected voltage data to ensure its accuracy and completeness.

[0169] S4: Evaluation of the importance scores of each feature metric based on the XGBoost model.

[0170] XGBoost, a high-performance ensemble learning algorithm based on gradient boosting decision tree models, constructs a gradient boosting decision tree model to perform regression analysis on the input features and output results of the training set. It quantifies the contribution of feature variables to the objective function by using the marginal gain of feature variables during the regression process. This not only effectively captures the nonlinear interaction between features, but also improves the interpretability of impact assessment in numerical computation, providing a new approach to solving the problems existing in current technologies.

[0171] This embodiment evaluates the importance scores of each influencing factor based on the XGBoost model. Due to the heterogeneous nature of the above data structure (including continuous features such as penetration rate, and potentially discrete features such as access location coding), the collected feature data needs to be normalized to eliminate the influence of differences in units and numerical ranges, ensuring that the data is suitable for input into the XGBoost model for training. The preprocessed feature data is used as the input feature vector, and the corresponding voltage exceedance situation is used as the target output result to construct a complete dataset for training.

[0172] XGBoost belongs to the BoostingTree method, which optimizes overall prediction performance by iteratively building new decision trees and fitting the residuals of the previous prediction. Each new tree is added to better approximate the true label. The gradient-based tree construction process is as follows:

[0173] Initially, the model predicts a constant (such as the mean of the target values ​​of the training samples). Here, a sample refers to each independent data unit in the dataset, containing input feature indicators (active power of each load, reactive power of each load, photovoltaic access capacity, photovoltaic access location, and load rate) and corresponding output data (maximum node voltage).

[0174] Each iteration (round t):

[0175] • Calculate the first derivative (gradient) g of the loss function for each sample. i and the second derivative (Hessian matrix) h i .

[0176] The goal is to minimize the objective function based on Taylor expansion:

[0177]

[0178] Where f t (x) is the new tree fitted in the t-th round, Ω(f) t ) is a regularization term for tree structures (such as the number of leaves and the weight of leaf nodes).

[0179] When growing a decision tree, traverse each feature and its split point, and select the feature node with the largest gain to split the tree.

[0180]

[0181] Among them: G L H L G is the gradient and Hessian matrix of the left child node sample; R H R λ is the gradient and Hessian matrix of the right child node sample; λ is the regularization term, and γ is the pruning penalty.

[0182] Update the model predictions and further update the model.

[0183] Repeat the above iterative steps until the termination condition is met, thus completing the construction process.

[0184] The meanings of each feature index in the decision tree are as follows:

[0185] • Each input feature index (photovoltaic penetration rate, location, active load, reactive load, load factor) is used as a candidate variable for dividing nodes during the tree construction process;

[0186] The XGBoost model automatically selects the optimal feature based on the gain it brings at the split node.

[0187] • Features that appear at more split nodes and contribute greater gain are considered to have a more significant impact on node voltage over-limit conditions;

[0188] The embodiments of the present invention ultimately use the gain of each feature index as the default index to evaluate and quantify the importance of each feature factor.

[0189] The specific training process is as follows: Figure 3 As shown:

[0190] Configure parameters of the XGBoost model, such as learning rate, tree depth, and regularization parameters, to optimize model performance.

[0191] Model training: The XGBoost model is trained using the constructed training dataset. The gradient boosting decision tree method is used to enable the model to learn the mapping relationship between features and target output.

[0192] Feature Importance Evaluation: During model training, XGBoost automatically calculates the importance score for each feature. This is primarily measured using three metrics:

[0193] Split Count (Weight): This counts the number of times each feature is used to split nodes across all decision trees. The more times a feature is used to split nodes, the more important it is in distinguishing the data.

[0194] Coverage: Measures the number of samples covered when each feature splits a node. The larger the number of samples, the wider the influence of the feature on the data.

[0195] Gain contribution: Calculate the sum of the gain contributions of each feature to the objective function during splitting. The larger the gain, the more significant the improvement of the model's predictive ability by that feature.

[0196] In this embodiment of the invention, gain is used as the default primary reference indicator because gain directly measures the contribution of each feature to the reduction of the overall loss function (i.e., the improvement of model performance) when the node splits. Therefore, the influencing factors selected based on gain can more accurately reflect which features play a key role in reducing voltage limit error and improving prediction accuracy.

[0197] Importance scores are extracted for each feature from the trained XGBoost model. These scores reflect the degree of influence of each feature on the voltage limit exceedance problem. The impact of each feature index on voltage is assessed as follows: Figure 4 As shown, the importance scores of each feature are represented by a heatmap. Figure 5 This allows for a more intuitive observation and comparison of the importance of different features.

[0198] This invention aims to quantify the contribution of various influencing factors (characteristic indicators) to voltage exceedance using the XGBoost model, and to deeply analyze the impact of factors such as photovoltaic penetration rate, residential load factor, active power, reactive power, and photovoltaic grid connection location on transformer voltage. This allows for accurate identification of key factors leading to voltage exceedances, providing a theoretical basis for improving grid voltage stability. This invention also improves the intelligence level of grid voltage exceedance diagnosis, overcoming the shortcomings of traditional manual analysis methods such as low efficiency and high subjectivity. By utilizing the nonlinear mapping and feature importance assessment capabilities of the XGBoost model, it achieves accurate assessment of grid operating characteristics in distributed power generation scenarios, providing more efficient and intelligent diagnostic technology support for the safe and stable operation of the grid.

[0199] Example 2

[0200] This embodiment provides a data-driven system for evaluating voltage limit exceedance factors, including:

[0201] Physical model building module: used to acquire distribution transformer load data in the transformer area, perform preprocessing, and further build the physical model of the transformer area;

[0202] Feature selection module: used to select key influencing factors reflecting the electrical characteristics of the transformer area as feature indicators based on the transformer area physical model;

[0203] Analysis and processing module: This module is used to input the feature indicators into the pre-trained XGBoost model for processing and output an importance score of the feature indicators on the degree of influence of voltage exceedance.

[0204] The rest are as in Example 1.

[0205] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0206] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of the present invention can be implemented using various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.

[0207] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0208] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0209] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0210] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.

[0211] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.

Claims

1. A data-driven method for evaluating factors affecting voltage limits, characterized in that, comprises the following steps: obtaining load data of a distribution transformer in a transformer district, performing preprocessing, and further constructing a physical model of the transformer district; based on the physical model of the transformer district, selecting key influencing factors reflecting electrical characteristics of the transformer district as characteristic indicators; inputting the characteristic indicators into a pre-trained XGBoost model for processing, and outputting an importance score of an influence degree of the characteristic indicators on voltage out-of-limit.

2. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 1, characterized in that, the preprocessing operation comprises performing mean correction on abnormal values and outlier values in the load data of the distribution transformer in the transformer district.

3. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 1, characterized in that, the step of constructing the physical model of the transformer district comprises: according to an initial topology structure and actual operating parameters of the transformer district, constructing a physical model of a distribution network, and simulating power flow distribution of the transformer district under different operating conditions in combination with the preprocessed load data of the distribution transformer in the transformer district; based on the physical model of the distribution network, setting node parameters, line impedance parameter input, grid-connected location and capacity of a distributed photovoltaic, to form the physical model of the transformer district.

4. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 1, characterized in that, a selection process of the characteristic indicators comprises: In the physical model of the transformer substation, the terminal voltage U0 is kept constant, there are k load points, and the voltage difference ΔU between the i-th and (i-1)-th load points is... i The voltage U at the i-th load point on the line before the photovoltaic power generation system is connected. i The voltage difference ΔU i and voltage U i The expressions are as follows: In the formula, U i-1 Let P be the voltage at the (i-1)th load point on the line before photovoltaic grid connection. k Q k These are active load and reactive load, respectively, P k >0, Q k >0, ΔU i <0, U i <U i -1,X i R is the reactance of the line. i For the resistance of the line, l n Let r be the length of the line, and x be the unit resistance and unit reactance of the line, respectively. i This is the distance between the (i-1)th and the ith load point; The computational capacity is P PV After the photovoltaic power generation system is connected at point p, the voltage U at the load point before point p is... i The expression is: wherein the load points located before the point p are load points between 0 < i < p, and The computational capacity is P PV After the photovoltaic power generation system is connected at point p, the voltage U at the load point located after point p is... i The expression is: wherein a load point located before a point p is a load point between p<i<N; according to a change situation of a voltage before and after a photovoltaic power generation system is connected at the point p, determining the key influencing factors as the characteristic indicators.

5. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 1, characterized in that, the characteristic indicators comprise active power of each load, reactive power of each load, grid-connected capacity of a photovoltaic, a grid-connected location of the photovoltaic, and a load rate, wherein the grid-connected location of the photovoltaic comprises grid-connection at a head-end node, grid-connection at a middle node, grid-connection at a tail-end node, and an average grid-connection location, the grid-connected capacity of the photovoltaic is represented by a photovoltaic penetration rate, and a calculation expression of the photovoltaic penetration rate is: In the formula, P PV,installed and S transformer These represent the actual photovoltaic output and the rated capacity of the transformer, respectively.

6. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 1, characterized in that, a construction step of the XGBoost model comprises: initializing a model: constructing an initial XGBoost model, wherein a predicted value of the initial XGBoost model is a constant; iterating: (1) calculating a gradient and a Hessian matrix: for each sample, calculating a first derivative and a second derivative of a loss function to obtain a corresponding gradient and a corresponding Hessian matrix, wherein the sample comprises each characteristic indicator and a corresponding maximum node voltage; (2) defining an objective function: constructing an objective function based on a Taylor expansion, expressed as: In the formula, Obj (t) f is the target value in the t-th iteration. t (x i Let g be the new decision tree fitted in the t-th round. i For, h i For, Ω(f t ) represents the regularization term for the tree structure; (3) constructing a decision tree: traversing each characteristic indicator and a split point thereof, selecting a characteristic indicator with a maximum gain contribution to split a node, and finally forming a decision tree, wherein a calculation expression of the gain contribution is: In the formula, Gain is the gain contribution, G L H L G is the gradient and Hessian matrix of the left child node sample. R H R is the gradient and Hessian matrix of the right child node sample, λ is the regularization term, and γ is the pruning penalty; (4) updating a model: updating a model predicted value, and further updating the model; repeating: repeating the above iteration steps until an ending condition is reached, to obtain the constructed XGBoost model.

7. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 6, characterized in that, a training step of the XGBoost model comprises: obtaining each characteristic indicator and voltage data containing a voltage out-of-limit value under each characteristic indicator scenario, performing normalization processing, wherein the normalized characteristic indicators are used as input data, and the normalized voltage data and a voltage out-of-limit situation are used as output data; setting parameters of the XGBoost model, comprising a learning rate, a tree depth, and a regularization parameter. The XGBoost model is trained using the input data, and the mapping relationship between the input data and the output data is learned by using the gradient boosting decision tree method. At the same time, the importance score of each feature index is automatically calculated, and the importance score is represented by the gain contribution.

8. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 7, characterized in that, The steps for generating voltage data containing voltage exceedance values ​​under each characteristic index scenario include: Initialization: Based on the topology and actual operating parameters of the transformer area, set the initial parameters of the power flow calculation model, including the initial voltage values ​​of each node, line impedance parameters, and transformer parameters; Scenario setting: Define the scenario for each feature indicator; Power flow calculation: For each set characteristic index scenario, power flow calculation is performed using the power flow calculation model to obtain voltage data under each characteristic index scenario, wherein the voltage data includes over-limit values; Data verification: Verify the accuracy and completeness of the voltage data under each characteristic indicator scenario.

9. The data-driven method for evaluating voltage limit exceedance influencing factors according to claim 8, characterized in that, The steps for calculating the power flow include: The number of nodes is set to n, and the nodes are divided into three types: PQ nodes, PV nodes, and balanced nodes. For each node, the node voltage equation in polar coordinates is constructed as follows: The node voltages satisfy the node power equation, expressed as follows: Y ik =G ik +jB ik Expanding to the real and imaginary parts, the equation is: i ik =θ i -θ k In the formula, V i Let be the voltage at the i-th node, and ∠θ i Let P be the voltage phase angle at node i, where j is the imaginary unit used to distinguish between active and reactive power components. i Q i These are active load and reactive load, respectively. ik V represents the element of the nodal admittance matrix. k Let G be the voltage magnitude at node k. ik Let B be the conductance between node i and node k. ik Let θ be the susceptance between node i and node k. ik θ is the phase angle difference of the node voltages. i Let θ be the voltage phase angle at node i. k Let be the voltage phase angle at node k; The node voltages are solved iteratively using the Newton-Raphson method, and the specific steps include: 1) Variable initialization Balance node: |V1| and θ1 = 0 are fixed, where V1 and θ1 are the voltage and voltage phase angle of the balance node, respectively. PQ node: Let the initial voltage be |V i (0) |=1.0, initial phase angle|θ i (0) | = 0; PV node: Fixed voltage | V i | Let the initial phase angle be θ i (0) =0; 2) Calculate power deviation For each PQ node and PV node, calculate the power deviation: ΔP i =P i,sch -P i (k) ΔQ i =Q i,sch -Q i (k) In the formula, ΔP i Let ΔQ be the active power deviation at node i. i P represents the reactive power deviation at node i. i,sch Q i,sch For a given value, P i (k) Q i (k) This is the current iteration value; 3) Construct the Jacobian matrix Construct a Jacobian matrix J, which contains the partial derivatives of power with respect to voltage magnitude and phase angle. The Jacobian matrix J is expressed as: The expression for calculating the matrix elements in J is as follows: 4) Solve the power deviation equation Transform the power deviation equation into a linear form: Solving the linear form of the power deviation equation yields the voltage magnitude Δ|V| and the phase angle correction Δθ. 5) Update voltage The voltage is updated based on the voltage amplitude Δ|V| and the phase angle correction Δθ, wherein the voltage update expression is: |V| (k+1) =|V| (k) +Δ|V| i (k+1) =θ (k) +Δθ In the formula, θ (k+1) Let |V| be the phase angle at the (k+1)th iteration. (k+1) The voltage at the (k+1)th iteration is given. The voltage amplitude at the PV node remains fixed, and only the phase angle is corrected. 6) Convergence judgment Determine whether max(|ΔP|,|ΔQ|)<∈ is true. If it is true, it means convergence and the iterative calculation process ends. If not, return to step 2) to perform iterative calculation, where ∈ is a set value.

10. A data-driven system for evaluating factors affecting voltage limits, characterized in that, include: Physical model building module: used to acquire distribution transformer load data in the transformer area, perform preprocessing, and further build the physical model of the transformer area; Feature selection module: used to select key influencing factors reflecting the electrical characteristics of the transformer area as feature indicators based on the transformer area physical model; Analysis and processing module: This module is used to input the feature indicators into the pre-trained XGBoost model for processing and output an importance score of the feature indicators on the degree of influence of voltage exceedance.