Voltage qualification rate improvement method based on distribution network voltage data analysis
By optimizing the voltage of distribution network through multiple linear regression model, factor analysis method, principal component analysis method and particle swarm algorithm, combined with long short-term memory network and KNN classifier to detect faults, the problem of low qualification rate of distribution network voltage is solved and achieved Timely detection and repair of voltage anomalies improves voltage stability and governance efficiency.
Patent Information
- Application Number
- CN202110828573.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing distribution network voltage data analysis system has problems such as late warning information and late management, resulting in a low voltage qualification rate and difficulty in achieving precise management and control. Especially during periods of low voltage and high frequency, when the amount of query data is large, untimely notifications can easily cause problems. Long-term low voltage increases the risk of complaints.
A multiple linear regression model combined with factor analysis and principal component analysis is used to study the influencing factors of the voltage qualification rate. The particle swarm algorithm is used to optimize the reactive power of the distribution network. The long short-term memory network and KNN classifier are used to detect voltage faults and extract the voltage. Fluctuation data characteristics, early detection and repair of faults, and improvement of voltage qualification rate.
Factor analysis and principal component analysis were used to identify factors affecting the voltage qualification rate. Particle swarm algorithm optimized distribution network voltage. Long-short-term memory network and KNN classifier detected faults, which significantly improved the voltage qualification rate, reduced the number of power outages, and improved Improve voltage stability and management efficiency.
Smart Images

Figure CN115693692B
Abstract
Description
Technical Field
[0001] The invention relates to a method for improving voltage qualification rate based on distribution network voltage data analysis, and belongs to the technical field of distribution network. Background Art
[0002] Zhou Gang, Yang Qiang, Chen Yang. Research on the application of big data technology in voltage monitoring [J]. Automation and Instrumentation, 2017 (4): 86-87. Foreign countries started research on voltage data analysis and processing earlier than China, and invested heavily in the development of voltage quality monitoring software. Some developed countries have achieved remarkable results in the research and application of power quality control. From the expansion of practical power theory to the establishment of a power quality evaluation index system, from a wide range of power quality surveys to the monitoring of user power quality, a regular mechanism has been established and formed. The voltage index management system developed by Australia's TransNet Company collects and displays information on voltage index exceeding the limit through analytical methods. The EMS system records data once a minute, and accident safety analysis uses graphics, in the form of graphics and tables, and is counted monthly, including low voltage operation time and high voltage operation time, and the number and duration of exceeding the limit are counted.
[0003] At present, the system used by the city and county companies conducts statistical analysis of the voltage qualification rate and issues low (over) voltage warning notifications to the subordinate city and county power supply companies. However, there is a big drawback in this system: 1. The warning information is not pushed in time. Because the voltage data volume is huge, it needs to go through a series of data cleaning and upload the results to the Shandong Power Grid Provincial Company before the low (over) voltage warning information can be pushed to the city and county power supply companies under the power grid, and this process basically takes 2 days. 2. Shandong Power Grid stipulates that if the cumulative duration of low (over) voltage customers exceeds 48 hours within a month, the subordinate power supply companies will be assessed. Then the person in charge of the subordinate city and county power supply company can only see the low (over) voltage warning information from 2 days ago on the same day. When the person in charge logs into the system and sees the low (over) voltage warning information, he will notify the power supply station for treatment, which will lead to untimely treatment, thus seriously affecting the voltage qualification rate index. 3. The work efficiency is low and it is difficult to achieve precise control. It mainly relies on the operation and inspection management personnel to manually check the voltage data and notify the manager by phone. The voltage control work efficiency is low and it is difficult to achieve precise control. 4. With the rapid increase in the scale of distribution networks, the amount of query data during peak low-voltage periods such as peak summer and peak winter is large. Failure to notify in a timely manner can easily cause long-term low voltage and increase the risk of complaints. Summary of the invention
[0004] In view of the above-mentioned defects in the prior art, the present invention proposes a method for improving the voltage qualification rate based on distribution network voltage data analysis.
[0005] The method for improving the voltage qualification rate based on distribution network voltage data analysis of the present invention comprises the following steps:
[0006] Step 1: Study on the factors affecting voltage qualification rate based on multiple linear regression, including the following steps:
[0007] Step 1: Analyze the factors that affect the voltage qualification rate, and analyze the comprehensive voltage qualification rate and the voltage qualification rates of the four monitoring points A, B, C, and D;
[0008] Step 2: According to the research model of factors affecting voltage qualified rate based on multiple linear regression, the factors affecting voltage qualified rate are analyzed by using factor analysis and principal component analysis;
[0009] Step 3: Then analyze the reasons why the voltage qualification rate exceeds the upper limit and the lower limit for the four types of monitoring points, use the principal component analysis method to find out the main and secondary reasons affecting the voltage qualification rate, and propose corresponding solutions;
[0010] Step 2: Reactive power optimization model of distribution network with voltage qualification rate as the main optimization target: In order to reduce the investment in reactive equipment and improve the voltage qualification rate of distribution network, it is necessary to optimize the distribution network by using reactive power regulation strategy, including the following steps:
[0011] Step 1: Propose a reactive power optimization model for distribution network with voltage qualification rate as the main optimization target, and use three artificial intelligence optimization algorithms, namely quantum genetic algorithm, quantum swarm search algorithm and particle swarm algorithm, to conduct research;
[0012] Step 2: Analyze the optimization trajectory characteristics, summarize the advantages and disadvantages of the three artificial intelligence algorithms and their applicable occasions, and use the particle swarm algorithm to optimize the voltage and reactive power of the distribution network to improve the problem of low voltage qualification rate;
[0013] Step 3: Voltage fault detection based on long short-term memory network and KNN: detect voltage anomalies early and quickly determine what kind of voltage fault it is, improve the efficiency of workers in repairing voltage, and thus improve the voltage qualification rate, including the following steps:
[0014] Step 1: Based on the voltage fault prediction model based on LSTM and KNN, the LSTM is used to extract the characteristics of voltage fluctuation data, capture the historical information of voltage, learn the voltage sequence data, and mine the internal implicit information;
[0015] Step 2: Input the feature vector extracted by the BLSTM network into the KNN classifier for fault classification to accurately guide the management of low voltage.
[0016] Preferably, the four types of monitoring points A, B, C, and D in the first step of step one record voltage fluctuation data, each piece of data records the voltage fluctuation within 24 hours, and the voltage data is collected every hour.
[0017] Preferably, in the second step of the step one, the voltage qualification rate influencing factor research model of multiple linear regression adopts the principal component regression method to eliminate the defects of classical regression analysis. The model of principal component regression is as follows:
[0018]
[0019] ε-N(0,σ 2 )
[0020] Where:
[0021] ——The i-th principal component;
[0022] ——The coefficient of the i-th principal component;
[0023] Through principal component analysis, regression analysis was performed on the various influencing factors of the voltage qualification rate in SPSS. According to the above results derived from SPSS, the calculation of the voltage qualification rate can be obtained as follows:
[0024] U(%)=44.436+0.959×SD+0.808×JB+1.021×ZB+0.98×WD+0.769×DR+0.847×SJ+1.257×DY
[0025] -1.082×ZD+0.955×DJ+1.295×XL+1.769×FH+2.292×MX(2)
[0026] Where:
[0027] SD——weight value of voltage grid-connected fluctuation factor of hydropower plant;
[0028] JB——weight value of unreasonable configuration factor of old transformer ratio;
[0029] ZB——weight value of non-load voltage regulation factor of main transformer;
[0030] WD——weight value of no voltage automatic regulation system factors;
[0031] DR——weight value of capacitor and reactor not installed factor;
[0032] SJ——weight value of unqualified factor of upper power supply voltage;
[0033] DY——weight value of the factor of poor real-time performance of voltage control;
[0034] ZD - Weight value of the factor with low efficiency of the automatic voltage regulation system;
[0035] DJ - Weight value of the factor with poor accuracy of the voltage monitoring instrument;
[0036] XL - Weight value of the line factor;
[0037] FH - Weight value of the factor of load overload;
[0038] MX - Weight value of the factor of bus voltage over - limit;
[0039] According to the multiple linear regression model of voltage qualification rate, by inputting the standardized weight values of each influencing factor, the voltage qualification rate can be predicted and evaluated, and risks can be excluded in a timely manner.
[0040] Preferably, in the second step of the first step, the principal component analysis method reduces the dimension of high - dimensional data through projection and simplifies complex data, including the following small steps:
[0041] (1) Let \(X=(x_{ij})\) be an \(n\times p\) - order matrix, denoted as \(X=(x_1,\cdots,x_p)=(x_{1j},\cdots,x_{nj})^T\), \(x_i\) is the \(i\) - th row of the \(X\) matrix, \(x_j\) is the \(j\) - th column of the \(X\) matrix. When considering the \(X\) matrix as a \(p\) - dimensional matrix, let \(R(q < p)\) be a low - dimensional space such that the projection value of the \(X\) matrix onto the \(R\) space is closest to the original value; ij ) be an \(n\times p\) - order matrix, denoted as \(X=(x_1,\cdots,x_p)\) n ) T =(x1,...,x p ), \(x_i\) i is the \(i\) - th row of the \(X\) matrix, \(x_j\) j is the \(j\) - th column of the \(X\) matrix. When regarding the \(X\) matrix as a \(p\) - dimensional matrix, let \(R\) q (q < p) be a low - dimensional space, so that the projection value of the \(X\) matrix onto the \(R\) q space is closest to the original value;
[0042] (2) Center - standardize the \(X\) matrix, that is \(X\rightarrow HXD\), where (n×p) \(I\) is the \(n\) - order identity matrix, \(D = diag[Hx_1,\cdots,Hx_p]\), and after the matrix transformation, it is still assigned to the matrix \(X\); -1 , where \(I\) is the \(n\) - order identity matrix, \(D = diag[Hx_1,\cdots,Hx_p]\), and after the matrix transformation, it is still assigned to the matrix \(X\); p
[0043] (3) Solve the eigenvalues \(\lambda_1\geq\cdots\geq\lambda_p\geq0\) of the matrix \(XX^T\), solve the corresponding standard orthogonal eigenvectors \(u_1,\cdots,u_p\), and let \(XX^T = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\); T of the matrix \(XX^T\) are \(\lambda_1\geq\cdots\geq\lambda_p\geq0\), solve the standard orthogonal eigenvectors \(u_1,\cdots,u_p\) corresponding to the eigenvalues, and let \(XX^T = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\); p \(\geq0\), solve the standard orthogonal eigenvectors \(u_1,\cdots,u_p\) corresponding to the eigenvalues, and let \(XX^T = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\); p , let \(XX^T = U\Lambda U^T\) T where \(U=(u_1,\cdots,u_p)\); T ), where \(U=(u_1,\cdots,u_p)\); p )
[0044] (4) Calculate the cumulative contribution rate of the main components \(1 < q\leq p\), for the specified contribution rate \(c_0\), determine the \(q\) that makes the cumulative contribution rate \(\alpha\)q The minimum q when ≥c0 is generally c0=85%;
[0045] (5) Calculate the principal component score y j =Xu j ,j=1,...,q,y j is the jth principal component score.
[0046] Preferably, in the third step of the step one, the monitoring point performs a cause analysis of the voltage qualification rate exceeding the upper limit and the lower limit, which is divided into: model fit goodness and residual test, F test, histogram and PP diagram test, wherein:
[0047] Model goodness of fit and residual test: Based on the goodness of fit, determine whether the model's goodness of fit meets the ideal requirements, and based on the residual value, determine whether there is positive autocorrelation;
[0048] F test: used to determine whether the linear regression equation is significant, indicating whether the model supports the original hypothesis, that is, whether the linear regression equation is significant;
[0049] Histogram and PP diagram test: Through the histogram and PP diagram, it is shown that the residual obeys the normal distribution, and it is judged whether the fitting effect of the linear regression model established about the voltage qualification rate is significant, whether the prediction model meets the statistical requirements, and whether the establishment of the model is credible.
[0050] Preferably, in the first step of step 2, the steps of establishing the reactive power optimization model of the distribution network are as follows:
[0051] (1) Objective function: The optimization objective function is shown in formula (3). The optimization objective of the system is to minimize power loss, that is, the optimization objective is economy.
[0052]
[0053] Where:
[0054] ΔP ij ——Active power loss of line i and line j, unit: W;
[0055] V i ——The potential value of network node i, in V;
[0056] V j ——The potential value of network node j, in V;
[0057] θ ij ——The voltage vector phase angle difference between network nodes i and j;
[0058] g ij ——conductance of line ij, unit S;
[0059] N L ——collection of distribution network lines;
[0060] In order to improve the voltage qualification rate and the overall voltage quality of the distribution network, the optimization target of the system is changed to the cumulative sum of the node voltage deviations from the expected value. The objective function is shown in formula (4):
[0061]
[0062] Where:
[0063] n——the number of distribution network nodes;
[0064] ΔV i ——The voltage value of node i deviates from the expected value;
[0065] V imax ——The maximum voltage allowed at node i;
[0066] V imin ——The minimum voltage allowed at node i;
[0067] In summary, the optimization objectives are set as voltage qualification rate and distribution network operation economy, and the objective function is changed to formula (5):
[0068]
[0069] In the formula: λ1, λ2——compensation coefficient;
[0070] ② Constraints: The constraints on the objective function mainly include three parts: operating status, power flow constraints, and control variables. The mathematical models of each constraint are as follows;
[0071] 1) State variable constraints:
[0072]
[0073] Where:
[0074] V——node voltage, unit V;
[0075] Q G ——Reactive power output by the generator, in Var;
[0076] P G ——The active power output by the generator, in W;
[0077] N B ——power system node collection;
[0078] N G ——Generator node set;
[0079] 2) Control variable constraints:
[0080]
[0081] Where:
[0082] ——Capacity of reactive equipment invested, unit: Var;
[0083] - distribution transformer ratio;
[0084] N K ——branch collection;
[0085] N c ——Reactive device node collection;
[0086] 3) Power flow constraints:
[0087]
[0088]
[0089] Where:
[0090] ——Input active power of node i, unit W;
[0091] Q Di ——Reactive power of input node i, unit is Var.
[0092] Preferably, in the first step of step three, the voltage fault prediction model is given each voltage fluctuation data x={x1, x2, ..., x n}, n = 24, because it is serialized data, the voltage data at each moment is extracted using BLSTM to extract features, and then concatenated v = [H1, H2, ..., H t ], where H t is the hidden field layer output of BLSTM at time t. The obtained feature vector v is used as the feature representation of the voltage sequence data and is input into the KNN classifier for fault classification.
[0093] Preferably, in the second step of step three, the feature vector extracted by the BLSTM network is input into the KNN classifier for fault classification, which specifically includes the following contents:
[0094] Input the voltage sequence data into BLSTM for training, and train the BLSTM model with minimizing the classification loss as the optimization goal, and save the model; input the training data into the model to obtain the feature vector, and input it into the KNN classifier for classification prediction; in the KNN algorithm, set K to 6 and use the Euclidean distance; use accuracy, recall and F1 value as evaluation indicators, and use the confusion matrix to calculate the recall and accuracy of each category in the data set;
[0095] Among them, TP is a true positive example, FN is a false negative example, FP is a false positive example, and TN is a true negative example. The calculation formulas for precision P, recall R, and F1 value are:
[0096]
[0097]
[0098]
[0099] To verify the performance impact of BLSTM extracted feature vectors on model classification, a variant experiment was set up to directly use KNN for classification prediction; neural networks and traditional machine learning methods were combined for fault detection, and recurrent neural networks were used to capture voltage fluctuation data features, mine potential patterns in the data, and finally use the KNN algorithm for classification.
[0100] Preferably, in the second step of step three, the fault classification includes meter failure, transformer tap position error, wire and connector failure, unbalanced low-voltage three-phase load, line break, power consumption violation and low outlet voltage.
[0101] Preferably, in the second step of step three, the classification performance of the model is improved by considering the following three aspects:
[0102] A. Analyze the impact of the number of BLSTM layers on the classification performance of the model: When the network is one layer, since the low-layer neural network only extracts common features and has a weak ability to extract features, it cannot capture the potential patterns of sequence data. When the BLSTM network has three, four, or five layers, the neural network is too deep, which will lead to overfitting, and thus the accuracy of the model decreases;
[0103] B. Analyze the impact of the K value in the KNN algorithm on the classification performance of the model: K is set from 1 to 10, and experiments are conducted respectively: When the K value is too small, the model is very sensitive to the adjacent sample points, and it is easy to overfit during the training process, increasing the learning error; when the K value is too large, the distant sample points will also affect the model's prediction, resulting in fuzzy model prediction results and easy classification errors;
[0104] C. Analyze the impact of the size of the data set on the performance of the algorithm: Divide the data set into different proportions of 20%, 40%, 60%, 80%, and 100% to conduct experiments and compare the accuracy of each algorithm. Regardless of the proportion of the data set, the use of a neural network to extract features from voltage fluctuation data and capture the potential patterns of the data is beneficial for the subsequent KNN model to classify the feature vectors output by the BLSTM.
[0105] The beneficial effects of the present invention are as follows: (1) The influencing factors of the voltage qualified rate are analyzed by using factor analysis and principal component analysis, and a study on the influencing factors of the voltage qualified rate based on a multivariate linear regression model is proposed, and the model is tested. The reasons why the voltage qualified rate of the four types of monitoring points exceeds the upper limit and the lower limit are analyzed, and the main and secondary reasons affecting the voltage qualified rate are found based on the principal component analysis method, and corresponding solutions are proposed.
[0106] (2) A reactive power optimization model for distribution network with voltage qualification rate as the main optimization target was proposed. Various artificial intelligence optimization algorithms were studied and their optimization trajectory characteristics were analyzed. The advantages and disadvantages of various artificial intelligence algorithms and their applicable occasions were summarized. The particle swarm optimization algorithm was used to optimize the voltage and reactive power of the distribution network, which significantly improved the problem of low voltage qualification rate.
[0107] (3) Detect voltage anomalies early, quickly determine what kind of voltage fault it is, and then repair the voltage fault, improve the efficiency of workers in repairing voltage, and thus improve the voltage qualification rate. At the same time, in order to prevent voltage anomalies, voltage fault detection should be done in advance, the number of power outages should be reduced, and voltage stability should be improved. A voltage fault prediction model based on long short-term memory network and KNN is proposed, which combines neural network and traditional machine learning methods. First, the long short-term memory network is used to extract the features of voltage fluctuation data, and then the extracted feature vector is input into the KNN classifier for fault classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0108] Figure 1 It is a principle flow chart of the present invention.
[0109] Figure 2 It is the histogram test result graph.
[0110] Figure 3 This is the PP chart test result graph.
[0111] Figure 4 It is a topological diagram of voltage and reactive power optimization.
[0112] Figure 5 It is the structural diagram of voltage fault detection model.
[0113] Figure 6This is a graph of classification accuracy of models with different numbers of layers in the BLSTM network.
[0114] Figure 7 It is the model classification accuracy graph for different K values.
[0115] Figure 8 This is a comparison chart of algorithm accuracy for data sets of different scales. DETAILED DESCRIPTION
[0116] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0117] Embodiment 1:
[0118] The principle of the present invention is that the factors affecting the voltage qualification rate mainly include power plant voltage grid-connected fluctuation, unreasonable configuration of old main transformer ratio, non-on-load voltage regulation of main transformer, no voltage automatic regulation system, uninstalled capacitor reactor, unqualified upper power supply voltage, poor real-time voltage control, low efficiency of automatic voltage regulation system, accuracy of voltage monitoring instrument, line factors, overload, bus voltage over-limit, unbalanced three-phase load, etc. According to the existing data, the statistical data is analyzed, the relationship between the above influencing factors is analyzed first, a mathematical model of comprehensive voltage qualification rate is established, and the comprehensive voltage qualification rate in the future is predicted.
[0119] In order to reduce the investment in reactive equipment and improve the qualified rate of distribution network voltage, it is necessary to optimize the distribution network using reactive control strategies. A reactive optimization model for distribution network with qualified rate of substation voltage as the main optimization target is proposed. Three artificial intelligence optimization algorithms, namely quantum genetic algorithm, quantum swarm search algorithm and particle swarm algorithm, are used to study and analyze their optimization trajectory characteristics. The advantages and disadvantages of the three artificial intelligence algorithms and their applicable occasions are summarized. The particle swarm algorithm is used to optimize the voltage and reactive power of the distribution network, which significantly improves the problem of low qualified rate of substation voltage.
[0120] In order to detect voltage anomalies early and quickly determine what kind of voltage fault it is, improve the efficiency of workers in repairing voltage, and thus improve the voltage qualification rate. A voltage fault prediction model based on long short-term memory network and KNN is proposed, combining neural network and traditional machine learning methods. First, the long short-term memory network is used to extract the features of voltage fluctuation data. The network can capture the historical information of voltage, can better learn the voltage sequence data, and mine the internal implicit information. Then the feature vector extracted by the BLSTM network is input into the KNN classifier for fault classification.
[0121] It should be noted that: SPSS principal component analysis of voltage qualification rate:
[0122] The principal component analysis method reduces the dimension of high-dimensional data through projection and simplifies complex data. The steps of the principal component analysis method are as follows:
[0123] (1) Let \(X=(x_{ij})\) be an \(n\times p\) matrix, denoted as \(X=(x_1,\cdots,x_p)=(x_{1j},\cdots,x_{nj})^T\), where \(x_{ij}\) is the \(i\)-th row and \(x_j\) is the \(j\)-th column of the \(X\) matrix. When considering the \(X\) matrix as a \(p\)-dimensional matrix, let \(R(q < p)\) be a low-dimensional space such that the projection value of the \(X\) matrix onto the \(R\) space is closest to the original value. ij ) be an \(n\times p\) matrix, denoted as \(X=(x_1,\cdots,x_p)\) n ) T =(x_1,\cdots,x_p) p ), \(x_i\) i is the \(i\)-th row of the \(X\) matrix, \(x_j\) j is the \(j\)-th column of the \(X\) matrix. When regarding the \(X\) matrix as a \(p\)-dimensional matrix, let \(R\) q (q < p) be a low-dimensional space such that the projection value of the \(X\) matrix onto the \(R\) q space is closest to the original value.
[0124] (2) Center-standardize the \(X\) (n×p) matrix, i.e., \(X\rightarrow HXD\) -1 , where \(I\) is the \(n\)-order identity matrix, \(D = diag[\sqrt{Hx_1},\cdots,\sqrt{Hx_p}]\), and the matrix after transformation is still assigned to the matrix \(X\). p
[0125] (3) Solve the eigenvalues \(\lambda_1\geq\cdots\geq\lambda_p\geq0\) of the matrix \(X\) and the corresponding orthonormal eigenvectors \(u_1,\cdots,u_p\), and let \(X = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\). T of matrix \(X\), the eigenvalues \(\lambda_1\geq\cdots\geq\lambda_p\geq0\), solve the corresponding orthonormal eigenvectors \(u_1,\cdots,u_p\), and let \(X = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\). p \(\geq0\), solve the orthonormal eigenvectors \(u_1,\cdots,u_p\) corresponding to the eigenvalues, and let \(X = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\). p , let \(X = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\). T \(X = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\). T \(X = U\Lambda U^T\), where \(U=(u_1,\cdots,u_p)\). p )
[0126] (4) Calculate the cumulative contribution rate of the main components \(1 < q\leq p\), for a specified contribution rate \(c_0\), determine the smallest \(q\) such that the cumulative contribution rate \(\alpha\) q \(\geq c_0\), generally take \(c_0 = 85\%\).
[0127] (5) Calculate the main component scores \(y_j = Xu_j\), \(j = 1,\cdots,q\), and \(y_j\) j \(= Xu_j\), \(j = 1,\cdots,q\), and \(y_j\) j is the score value of the \(j\)-th main component. j is the score value of the \(j\)-th main component.
[0128] Take \(X=(x_1,\cdots,x_p)\) n ) T =(x_1,\cdots,x_p) p ), is the factor variable that affects the voltage qualification rate, and its sample data is the daily data from January 2018 to December 2018. All variables in the data matrix X are weighted and standardized, and the following results are obtained using SPSS statistical analysis software:
[0129] Table 1: Correlation coefficient matrix between various influencing factors
[0130] Correlation Matrix a
[0131]
[0132] a .Determinant = .002
[0133] From Table 1, we can get the correlation coefficients between the influencing factors. The larger the correlation coefficient, the greater the degree of correlation. For example, the correlation coefficient between the unreasonable configuration of the main transformer ratio and the non-on-load voltage regulation of the main transformer is relatively large, indicating that there is a certain degree of correlation between the two. By analogy, the mutual relationship between the influencing factors can be obtained, laying a good foundation for the subsequent principal component analysis.
[0134] Table 2: Voltage pass rate main component statistics table
[0135]
[0136] From Figure 2, we can get the contribution rate and cumulative contribution rate of the 13 components of the comprehensive voltage qualified rate. The results show that the cumulative contribution rate of the first 6 influencing factors reached 80.133%. The contribution rate of the seventh main component is 6.842%. Therefore, the main factors include 6 of the 13 factors that affect the voltage qualified rate.
[0137] Table 3: Principal component classification table
[0138]
[0139] In Table 3, the higher the value, the greater the impact on the voltage qualification rate. Among the 13 influencing factors, the first principal component mainly includes poor real-time voltage control, inaccurate voltage monitoring instrument, non-installed capacitor reactor, overload, unreasonable configuration of main transformer, and voltage fluctuation of hydropower plant grid connection. The second principal component mainly includes unbalanced three-phase load, non-load voltage regulation of main transformer, bus voltage over-limit, and line factors. The third main component includes low efficiency of automatic voltage regulation system and unreasonable configuration of old transformer. By analogy, the first principal component has a greater impact on the voltage qualification rate than the second principal component.
[0140] Through the above principal component analysis, we can find the factors that affect the voltage qualification rate. According to the degree of influence, they are arranged from large to small: 1. Low efficiency of automatic voltage regulation system. 2. Poor real-time performance of voltage control. 3. Inaccurate voltage monitoring instrument. 4. Capacitor reactor is not installed. 5. Unbalanced three-phase load. Based on the content of principal component analysis, we continue to establish the voltage qualification rate mathematical model.
[0141] Step 1: Establish a multiple linear regression model
[0142] Since the voltage qualification rate and the main influencing factors are highly correlated and have multiple linearity, the estimation error will be large if the classical regression analysis method is used. The principal component regression method can eliminate the defects of the classical regression analysis. The model of the principal component regression is as follows:
[0143]
[0144] ε-N(0,σ 2 )
[0145] Where:
[0146] ——The i-th principal component;
[0147] ——The coefficient of the i-th principal component.
[0148] Through principal component analysis, the cumulative contribution rate of the first six principal components reached 80.133%. Regression analysis of various influencing factors of voltage qualification rate was performed in SPSS, and the results were as follows:
[0149] Table 4: SPSS regression analysis results
[0150]
[0151] a.Dependent Variable: Overall water or no water rate
[0152] According to the above results derived by SPSS in Table 4, the calculation of voltage qualification rate can be obtained as follows: U(%) = 44.436 + 0.959 × SD + 0.808 × JB + 1.021 × ZB + 0.98 × WD + 0.769 × DR + 0.847 × SJ + 1.257 × DY
[0153] -1.082×ZD+0.955×DJ+1.295×XL+1.769×FH+2.292×MX(2)
[0154] Where:
[0155] SD——weight value of voltage grid-connected fluctuation factor of hydropower plant;
[0156] JB——weight value of unreasonable configuration factor of old transformer ratio;
[0157] ZB——weight value of non-load voltage regulation factor of main transformer;
[0158] WD——weight value of no voltage automatic regulation system factors;
[0159] DR——weight value of capacitor and reactor not installed factor;
[0160] SJ——weight value of unqualified factor of upper power supply voltage;
[0161] DY——weight value of the factor of poor real-time performance of voltage control;
[0162] ZD——weight value of low efficiency factor of automatic voltage regulation system;
[0163] DJ——weight value of the factor of poor accuracy of voltage monitoring instrument;
[0164] XL——Line factor weight value;
[0165] FH——weight value of load overload factor;
[0166] MX——weight value of bus voltage over-limit factor.
[0167] According to the above voltage qualification rate multivariate linear regression model, by inputting the standardized weight value of each influencing factor, the voltage qualification rate can be predicted and evaluated, and risks can be eliminated in time.
[0168] Verification of voltage qualification rate model
[0169] (1) Model goodness of fit and residual test
[0170] Table 5: Goodness of fit and residual results
[0171]
[0172] a. Predictors: (Constant), bus voltage exceeds the limit, voltage control is poor in real time, the old main transformer ratio is not configured properly, line factors, hydropower plant voltage grid-connected fluctuations, automatic voltage regulation system is inefficient, voltage monitoring instrument accuracy, capacitors and reactors are not installed, main transformer is not on-load voltage regulation, upper power supply voltage is unqualified, no voltage automatic regulation system, load overload
[0173] b.Dependent Variable: Comprehensive voltage pass rate
[0174] From Table 5, we can see that the goodness of fit R 2=0.864, the goodness of fit of the model meets the ideal requirements. The residual value DW = 1.508, indicating the existence of positive autocorrelation.
[0175] (2) F test
[0176] Table 6: F test results
[0177]
[0178] a. Predictors: (Constant), bus voltage exceeds the limit, voltage control is poor in real time, the old main transformer ratio is not configured properly, line factors, hydropower plant voltage grid-connected fluctuations, automatic voltage regulation system is inefficient, voltage monitoring instrument accuracy, capacitors and reactors are not installed, main transformer is not on-load voltage regulation, upper power supply voltage is unqualified, no voltage automatic regulation system, load overload
[0179] b.Dependent Variable: Comprehensive voltage pass rate
[0180] The F test is used to determine whether the linear regression equation is significant. In Table 6, Sig = 0.001 < 0.05, indicating that the model supports the original hypothesis, that is, the linear regression equation is significant.
[0181] (3) Histogram and PP chart test
[0182] The output of the histogram is as follows: Figure 2 As shown, the PP diagram of the standardized residual is Figure 3 As shown. The following two figures show that the residuals are normally distributed. Therefore, it can be concluded that the fitting effect of the linear regression model for voltage qualification rate established above is significant, indicating that the prediction model meets the requirements of statistics and the establishment of the model is credible.
[0183] According to the above factor analysis method and principal component analysis method, based on the established voltage qualification rate mathematical model, the reasons for the voltage qualification rate not meeting the standard and the voltage exceeding the limit at the four types of monitoring points are studied, and solutions to related problems are proposed.
[0184] Step 2: Reactive Power Optimization Model of Distribution Network
[0185] The topology of voltage and reactive power optimization of distribution network is as follows: Figure 4 As shown, the reactive power compensator is installed on the medium-voltage bus, the medium-voltage line regulator is installed in the middle part of the feeder, and the low-voltage reactive compensator is installed at the head of the substation. Automatic voltage regulators are installed for the relatively long lines in the substation. The bus voltage is optimized based on the existing voltage regulation measures in the substation, and this area is equivalent to the medium-voltage load. Based on the schematic diagram of the distribution network optimization topology, the electric reactive power optimization model is studied.
[0186] The established model for voltage and reactive power optimization of distribution network is as follows.
[0187] (1) Objective function
[0188] The optimization objective function is shown in formula (1). The optimization objective of the system is to minimize power loss, that is, the optimization objective is economy.
[0189]
[0190] Where:
[0191] ΔP ij ——Active power loss of line i and line j, unit: W;
[0192] V i ——The potential value of network node i, in V;
[0193] V j ——The potential value of network node j, in V;
[0194] θ ij ——The voltage vector phase angle difference between network nodes i and j;
[0195] g ij ——conductance of line ij, unit S;
[0196] N L ——A collection of distribution network lines.
[0197] In order to improve the voltage qualification rate and the overall voltage quality of the distribution network, the optimization target of the system is changed to the cumulative sum of the node voltage deviations from the expected value. The objective function is shown in formula (2).
[0198]
[0199] Where:
[0200] n——the number of distribution network nodes;
[0201] ΔV i ——The voltage value of node i deviates from the expected value;
[0202] V imax ——The maximum voltage allowed at node i;
[0203] V imin ——The minimum allowed voltage value of node i.
[0204] In summary, the optimization objectives are set as voltage qualification rate and distribution network operation economy, and the objective function is changed to formula (3).
[0205]
[0206] In the formula: λ1, λ2——compensation coefficients.
[0207] ② Constraints: The constraints of the objective function mainly include three parts: operating state, power flow constraints, and control variables. The mathematical models of each constraint are as follows;
[0208] 1) State variable constraints:
[0209]
[0210] Where:
[0211] V——node voltage, unit V;
[0212] Q G ——Reactive power output by the generator, in Var;
[0213] P G ——The active power output by the generator, in W;
[0214] N B ——power system node collection;
[0215] N G ——A collection of generator nodes.
[0216] 2) Control variable constraints:
[0217]
[0218] Where:
[0219] ——Capacity of reactive equipment invested, unit: Var;
[0220] - distribution transformer ratio;
[0221] N K ——branch collection;
[0222] N c ——Reactive device node collection.
[0223] 3) Power flow constraints:
[0224]
[0225]
[0226] Where:
[0227] ——Input active power of node i, unit W;
[0228] ——Reactive power of input node i, unit is Var.
[0229] Traditional power flow control relies heavily on a large number of calculated values. Voltage reactive power optimization is essentially also a power flow optimization, but the research focus of reactive power optimization is control strategy adjustment, that is, using artificial intelligence optimization algorithms to optimize voltage reactive power. Artificial intelligence optimization algorithms essentially seek the optimal solution in a space through certain rules or laws, and the solution process is efficient and rapid. The present invention uses artificial intelligence algorithms to optimize voltage reactive power, and mainly studies three types of classical artificial intelligence algorithms, namely, quantum genetic algorithm (QGA), quantum group search optimization algorithm (QGSO), and particle swarm optimization algorithm (PSO), and simulates and analyzes the characteristics of each algorithm.
[0230] Step 3: Voltage Fault Detection Model
[0231] How to quickly and accurately predict voltage failures is particularly important for power supply tasks. The present invention uses voltage fluctuation data from four types of monitoring points, A, B, C, and D. Each piece of data records the voltage fluctuation within 24 hours, and the voltage data is collected every hour. Since voltage is a volatile data, whether the voltage at the current moment is faulty often requires observing the voltage state at the previous moment. Therefore, the present invention uses BLSTM to extract voltage data features. The network can capture the historical information of voltage, can better learn the voltage sequence data, and mine the internal implicit information. The model structure is as follows Figure 5 As shown, given each voltage fluctuation data x = {x1, x2, ..., x n}, n = 24, because it is serialized data, the voltage data at each moment is extracted using BLSTM to extract features, and then concatenated v = [H1, H2, ..., H t ](H t is the hidden layer output of BLSTM at time t), and the obtained feature vector v is used as the feature representation of the voltage sequence data and input into the KNN classifier for fault classification.
[0232] Embodiment 2:
[0233] The following is an explanation based on the data set and experimental settings:
[0234] The voltage fluctuation data of four types of monitoring points A, B, C, and D are used. Each data record the voltage fluctuation of the power supply station within 24 hours, and the voltage data is collected every hour. The data set has a total of 8013 records, which are divided into normal voltage and fault voltage. The types of fault voltage are divided into 7 categories, so the data set contains a total of 8 categories. The statistical information of the voltage fault type of the data set is shown in Table 7. During the experiment, the data set is divided into training set, validation set, and test set, which are 6100, 830, and 1083 data records respectively.
[0235] Table 7: Fault type statistics of the dataset
[0236]
[0237] During the training process, the voltage sequence data is first input into the BLSTM for training, and the BLSTM model is obtained by training with the classification loss minimization as the optimization target, and the model is saved. The training data is input into the model to obtain the feature vector, which is input into the KNN classifier for classification prediction. The parameter settings of the BLSTM algorithm are shown in Table 8. In the KNN algorithm, K is set to 6 and the Euclidean distance is used.
[0238] Table 8: BLSTM algorithm experimental parameter setting table
[0239]
[0240] Evaluation indicators
[0241] The present invention uses accuracy, recall and F1 value as evaluation indicators. The recall and accuracy of each category in the data set are calculated using a confusion matrix, which is shown in Table 9.
[0242] Table 9: Confusion matrix table
[0243]
[0244] Among them, TP is a true positive example, FN is a false negative example, FP is a false positive example, and TN is a true negative example. The calculation formulas for precision P, recall R and F1 value are:
[0245]
[0246]
[0247]
[0248] Experimental results and analysis
[0249] In order to verify the effectiveness of the model, the present invention also compares the classification performance of other models. The comparison models are SVM, naive Bayes, and decision tree. In order to verify the performance impact of BLSTM extracting feature vectors on the model classification effect, a variant experiment is set up, and KNN is directly used for classification prediction. The experimental results are shown in Table 10. Since the model of the present invention combines neural networks and traditional machine learning methods for fault detection, a recurrent neural network is used to capture the characteristics of voltage fluctuation data, explore the potential patterns in the data, and finally use the KNN algorithm for classification. The model proposed by the present invention has the best classification effect. Compared with the best classification performance of other models, the model of the present invention has improved the accuracy by 8.96%, the recall rate by 10.88%, and the F1 value by 9.65%. However, when machine learning methods such as SVM, naive Bayes, and decision tree algorithms are used for prediction and classification, these algorithms only use classification rules for prediction and cannot capture the internal information of the data like neural networks, so the classification performance is low. By comparing the classification performance of the KNN algorithm and the model of the present invention, the model of the present invention is higher than the KNN algorithm in accuracy, recall, and F1 value, which verifies that the BLSTM algorithm can effectively improve the classification performance. The classification accuracy of each fault type is shown in Table 11. Among them, the classification accuracy of meter failure and line power failure is the highest, and the classification accuracy of low-voltage three-phase load imbalance is the lowest.
[0250] Table 10: Comparison of classification accuracy of models (%)
[0251]
[0252] Table 11: Classification accuracy of each fault type (%)
[0253]
[0254] In order to better extract feature vectors and improve the classification performance of the model, the impact of the number of BLSTM layers on the classification performance of the model is analyzed. The experimental results are as follows: Figure 6 As shown in the figure. When BLSTM is 2 layers, the classification accuracy of the model is the highest. When the network is one layer, the accuracy is low because the low-layer neural network only extracts common features and has a weak ability to extract features and cannot capture the potential patterns of sequence data. Deep networks can extract abstract features and easily capture the relationship between high-dimensional features, which is conducive to improving the classification performance of the model. Figure 6 It can be seen that when the BLSTM network has three, four, and five layers, the model accuracy decreases because the number of neural network layers is too deep, which will lead to overfitting.
[0255] In order to analyze the impact of the K value in the KNN algorithm on the classification performance of the model, K is varied from 1 to 10 and experiments are conducted. The experimental results are shown in Figure 2. Figure 7 As shown in the figure, when K=6, the classification performance of the model is the best. When the value of K is too small, the model is very sensitive to the adjacent sample points, which is prone to overfitting during the training process and increases the learning error. When the value of K is too large, the distant sample points will also affect the model's prediction, resulting in fuzzy model prediction results and easy classification errors.
[0256] In order to analyze the impact of the size of the data set on the performance of the algorithm, the data set is divided into different proportions (20%, 40%, 60%, 80%, 100%) to conduct experiments and compare the accuracy of each algorithm. The experimental results are shown in the figure. Figure 8 Regardless of the proportion of the data set, the accuracy of the model of the present invention is higher than that of other algorithms. This is because the neural network is used to extract features from the voltage fluctuation data and capture the potential patterns of the data, which is beneficial for the subsequent KNN model to classify the feature vector output by the BLSTM.
[0257] In summary, the model of the present invention has advantages in prediction accuracy compared with the other four algorithms:
[0258] (1) The influencing factors of voltage qualification rate were analyzed by factor analysis and principal component analysis, and a study on the influencing factors of voltage qualification rate based on multivariate linear regression model was proposed, and the model was tested. The reasons for the voltage qualification rate exceeding the upper and lower limits of the four types of monitoring points were also analyzed. The main and secondary reasons affecting the voltage qualification rate were found based on principal component analysis, and corresponding solutions were proposed.
[0259] (2) A reactive power optimization model for distribution network with the qualified rate of substation voltage as the main optimization target was proposed. A variety of artificial intelligence optimization algorithms were studied and their optimization trajectory characteristics were analyzed. The advantages and disadvantages of various artificial intelligence algorithms and their applicable occasions were summarized. The particle swarm optimization algorithm was used to optimize the voltage and reactive power of the distribution network, which significantly improved the problem of low qualified rate of substation voltage.
[0260] (3) Detect voltage anomalies early, quickly determine what kind of voltage fault it is, and then repair the voltage fault, improve the efficiency of workers in repairing voltage, and thus improve the voltage qualification rate. At the same time, in order to prevent voltage anomalies, voltage fault detection should be done in advance, the number of power outages should be reduced, and voltage stability should be improved. A voltage fault prediction model based on long short-term memory network and KNN is proposed, which combines neural network and traditional machine learning methods. First, the long short-term memory network is used to extract the features of voltage fluctuation data, and then the extracted feature vector is input into the KNN classifier for fault classification.
[0261] Embodiment 3:
[0262] The present invention is provided with the following specific implementation modes:
[0263] 1) Research on factors affecting voltage qualification rate based on multivariate linear regression
[0264] The factors affecting the voltage qualification rate in Qihe County were analyzed, and the comprehensive voltage qualification rate in Qihe County and the voltage qualification rates of four types of monitoring points A, B, C, and D were analyzed. According to the research model of factors affecting the voltage qualification rate based on multiple linear regression, the factors affecting the voltage qualification rate were analyzed using factor analysis and principal component analysis. Then, the reasons for the voltage qualification rate exceeding the upper and lower limits of the four types of monitoring points were analyzed, and the principal component analysis method was used to find out the main and secondary reasons affecting the voltage qualification rate, and the corresponding solutions were proposed.
[0265] 2) Reactive power optimization model of distribution network with the qualified rate of substation voltage as the main optimization target
[0266] In order to reduce the investment in reactive equipment and improve the qualified rate of distribution network voltage, it is necessary to optimize the distribution network using reactive control strategies. A reactive optimization model for distribution network with qualified rate of substation voltage as the main optimization target is proposed. Three artificial intelligence optimization algorithms, namely quantum genetic algorithm, quantum swarm search algorithm and particle swarm algorithm, are used to study and analyze their optimization trajectory characteristics. The advantages and disadvantages of the three artificial intelligence algorithms and their applicable occasions are summarized. The particle swarm algorithm is used to optimize the voltage and reactive power of the distribution network to improve the problem of low qualified rate of substation voltage.
[0267] 3) Voltage fault detection based on long short-term memory network and KNN
[0268] Detect voltage anomalies early and quickly determine what kind of voltage fault it is, improve the efficiency of workers in repairing voltage, and thus improve the voltage qualification rate. According to the voltage fault prediction model based on long short-term memory network and KNN, the long short-term memory network is used to extract the characteristics of voltage fluctuation data, capture the historical information of voltage, learn the voltage sequence data, and mine the internal implicit information. Then the feature vector extracted by the BLSTM network is input into the KNN classifier for fault classification, accurately guiding the substation manager to manage low voltage.
[0269] Embodiment 4:
[0270] The method described in the present invention relies on the relevant hardware system, and the hardware system adopts the development mode combining C / S (Client / Server) and B / S (Browser / Server). The physical structure mainly includes two subsystems: the B / S subsystem is responsible for Web publishing, and the C / S subsystem is responsible for data collection. Each voltage monitoring point is equipped with a voltage qualification rate monitoring device, and the user of the substation terminal is equipped with a C / S data collection system. The technicians of the power company can access the B / S related programs through the browser.
[0271] RS-485 wired communication is used inside the substation, and GPRS network and other wireless communication technologies are mainly used for remote wireless communication of the substation. The power company's computer room needs to install Web publishing servers, SQL Server database servers, etc., which must have fixed IP addresses. Each substation is managed by itself, and the power company is managed uniformly.
[0272] The voltage qualification rate integrated management system is mainly divided into two sub-databases, namely the basic monitoring point database and the data analysis result database. The basic monitoring point database mainly stores the basic data of the voltage of various monitoring points A, B, C, and D uploaded to the server, and also stores the basic information of users to facilitate abnormal status troubleshooting. The main function of the data analysis result database is to save the analysis results of the basic data to facilitate future voltage qualification rate management work.
[0273] The software testing environment for the voltage qualification rate management system is shown in Table 12.
[0274] Table 12: System test configuration table
[0275]
[0276]
[0277] The functions and status of the high-level software function module functions are shown in Table 13.
[0278] Table 13: Function and status table of module functions
[0279]
[0280] The present invention can be widely used in power distribution network occasions.
[0281] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for improving voltage qualification rate based on distribution network voltage data analysis, characterized in that: The steps include: Step 1: Study the factors affecting voltage qualification rate based on multiple linear regression, including the following steps: Step 1: Analyze the factors that affect the voltage qualification rate, and analyze the comprehensive voltage qualification rate and the voltage qualification rates of the four monitoring points A, B, C, and D; Step 2: According to the research model of factors affecting voltage qualified rate based on multiple linear regression, the factors affecting voltage qualified rate are analyzed using factor analysis and principal component analysis; Step 3: Then analyze the reasons why the voltage qualification rate exceeds the upper limit and the lower limit for the four types of monitoring points, and use the principal component analysis method to find out the main and secondary reasons affecting the voltage qualification rate; Step 2: Distribution network reactive power optimization model with voltage qualification rate as the main optimization target: including the following steps: Step 1: Propose a reactive power optimization model for distribution networks with voltage qualification rate as the main optimization target, and use three artificial intelligence optimization algorithms: quantum genetic algorithm, quantum swarm search algorithm, and particle swarm optimization algorithm to conduct research; Step 2: Analyze the optimization trajectory characteristics, summarize the advantages and disadvantages of the three artificial intelligence algorithms and their applicable occasions, and use the particle swarm optimization algorithm to optimize the voltage and reactive power of the distribution network; Step 3: Voltage fault detection based on LSTM and KNN: This includes the following steps: Step 1: Based on the voltage fault prediction model based on LSTM and KNN, the LSTM is used to extract the characteristics of voltage fluctuation data, capture the voltage history information, learn the voltage sequence data, and mine the internal implicit information. Step 2: Input the feature vector extracted by the BLSTM network into the KNN classifier for fault classification.
2. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1 is characterized in that: In the first step of step 1, the four types of monitoring points A, B, C, and D record voltage fluctuation data. Each data record the voltage fluctuation within 24 hours, and the voltage data is collected every hour.
3. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the second step of the step 1, the voltage qualification rate influencing factor research model of the multivariate linear regression adopts the principal component regression method to eliminate the defects of the classical regression analysis. The model of the principal component regression is as follows: ε-N(0,σ 2 ) Where: ——i-th principal component; ——i-th principal component coefficient; Through principal component analysis, regression analysis was performed on the various factors affecting the voltage qualification rate in SPSS. According to the above results derived from SPSS, the calculation of the voltage qualification rate can be obtained as follows: U(%)=44.436+0.959×SD+0.808×JB+1.021×ZB+0.98×WD+0.769×DR+0.847×SJ+1.257×DY-1.082×ZD+0.955×DJ+1.295×XL+1.769×FH+2.292×MX (2) Where: SD——weight value of voltage grid-connected fluctuation factor of hydropower plant; JB——weight value of the unreasonable configuration factor of old transformer ratio; ZB——weight value of the main transformer off-load voltage regulation factor; WD——weight value of no voltage automatic regulation system factors; DR——weight value of capacitor and reactor not installed factor; SJ——weight value of unqualified factor of upper power supply voltage; DY——weight value of the factor of poor real-time performance of voltage control; ZD——weight value of low efficiency factor of automatic voltage regulation system; DJ——weight value of the factor of poor accuracy of voltage monitoring instrument; XL——Line factor weight value; FH——load overload factor weight value; MX——weight value of bus voltage over-limit factor.
4. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 3 is characterized in that: In the second step of the first step, the principal component analysis method is to reduce the dimensionality of high-dimensional data by projection, and perform complex data simplification operations, including the following steps: (1) Let \(X=(x ij )\) be an \(n\times p\) matrix, denoted as \(X=(x_1,\ldots,x n ) T =(x_1,\ldots,x p ), x i is the \(i -\)th row of the \(X\) matrix, \(x j is the \(j -\)th column of the \(X\) matrix. When the \(X\) matrix is regarded as a matrix in \(p\) dimensions, let \(R q (q < p)\) be a low - dimensional space such that the projection value of the \(X\) matrix onto the \(R q space is closest to the original value; (2) Put X (n×p) Matrix center normalization, i.e. X→HXD -1 ,in I is the n-order unit matrix, D=diag[Hx1,…,Hx p ], the matrix is still assigned to the matrix X after transformation; (3) Solve the matrix X T The eigenvalues of Xλ1≥...≥λ p ≥0, solve the standard orthogonal eigenvectors u1,...,u corresponding to the eigenvalue p , let X T X=UΛU T , where U=(u1,...,u p ); (4) Calculate the cumulative contribution rate of the main components For the specified contribution rate c0, determine the cumulative contribution rate α q The minimum q when ≥c0 is c0=85%; (5) Calculate the principal component score y j =Xu j ,j=1,...,q,y j is the score of the jth principal component.
5. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the third step of the step one, the reasons why the voltage qualification rate exceeds the upper limit and the lower limit are analyzed at the monitoring point, which are divided into: model fit goodness and residual test, F test, histogram and PP diagram test, among which: Model goodness of fit and residual test: Based on the goodness of fit, determine whether the model's goodness of fit meets the ideal requirements; based on the residual value, determine whether there is positive autocorrelation; F test: used to determine whether the linear regression equation is significant, indicating whether the model supports the original hypothesis, that is, whether the linear regression equation is significant; Histogram and PP diagram test: The histogram and PP diagram show that the residuals obey the normal distribution, and judge whether the fitting effect of the linear regression model established for the voltage qualification rate is significant, whether the prediction model meets the statistical requirements, and whether the establishment of the model is credible.
6. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the first step of the second step, the steps for establishing the reactive power optimization model of the distribution network are as follows: ①Objective function: The optimized objective function is shown in formula (3). The optimization goal of the system is to minimize power loss, that is, the optimization goal is economy; Where: ΔP ij ——active power loss of line i and line j, unit: W; V i ——The potential value of network node i, unit V; V j ——the potential value of network node j, in V; θ ij ——The phase angle difference of the voltage vector between network nodes i and j; g ij ——conductance of line ij, unit S; N L - distribution network line collection; In order to improve the voltage qualification rate and the overall voltage quality of the distribution network, the optimization target of the system is changed to the cumulative sum of the node voltage deviations from the expected value. The objective function is shown in formula (4): Where: n——number of distribution network nodes; ΔV i ——Deviation between the voltage value of node i and the expected value; V imax ——The maximum voltage allowed at node i; V imin ——The minimum voltage allowed at node i; In summary, the optimization objectives are set as voltage qualification rate and distribution network operation economy, and the objective function is changed to formula (5): Where: λ1, λ2——compensation coefficient; ② Constraints: The constraints on the objective function mainly include three parts: operating status, power flow constraints, and control variables. The mathematical models of each constraint are as follows; 1) State variable constraints: Where: V——node voltage, unit V; Q G ——Reactive power output by the generator, unit: Var; P G ——active power output by the generator, in W; N B — power system node set; N G ——generator node set; 2) Control variable constraints: Where: ——Capacity of reactive equipment invested, unit: Var; - distribution transformer ratio; N K ——branch collection; N c ——Reactive device node collection; 3) Power flow constraints: Where: ——active power of input node i, unit W; ——Reactive power of input node i, unit is Var.
7. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the first step of step three, the voltage fault prediction model is given each voltage fluctuation data x={x1,x2,…,x n }, n = 24, because it is serialized data, the voltage data at each moment is extracted using BLSTM to extract features, and then spliced v = [H1, H2, ..., H t ], where H t is the hidden layer output of BLSTM at time t. The obtained feature vector v is used as the feature representation of the voltage sequence data and is input into the KNN classifier for fault classification.
8. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the second step of step 3, the feature vector extracted by the BLSTM network is input into the KNN classifier for fault classification, which specifically includes the following: Input the voltage sequence data into the BLSTM for training, using minimization of classification loss as the optimization objective to obtain a BLSTM model, which is then saved. Input the training data into the model to obtain a feature vector, which is then input into the KNN classifier for classification prediction. In the KNN algorithm, set K to 6 and use the Euclidean distance. Use accuracy, recall, and F1 value as evaluation metrics, and use a confusion matrix to calculate the recall and accuracy of each category in the dataset. Among them, TP is a true positive example, FN is a false negative example, FP is a false positive example, and TN is a true negative example. The calculation formulas for precision P, recall R and F1 value are: To verify the performance impact of BLSTM feature vector extraction on model classification, a variant experiment was set up, directly using KNN for classification prediction; neural networks and traditional machine learning methods were combined for fault detection, using recurrent neural networks to capture voltage fluctuation data features, explore potential patterns in the data, and finally use the KNN algorithm for classification.
9. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the second step of step three, the fault classification includes meter failure, transformer tap position error, wire and connector failure, low-voltage three-phase load imbalance, line break, power consumption violation and low outlet voltage.
10. The method for improving voltage qualification rate based on distribution network voltage data analysis according to claim 1, characterized in that: In the second step of step 3, the following three aspects are considered to improve the classification performance of the model: A. Analyze the impact of the number of BLSTM layers on the model's classification performance: When the network is only one layer, the lower-layer neural network only extracts common features and has a weak feature extraction capability, failing to capture the underlying patterns of sequence data. When the BLSTM network has three, four, or five layers, the depth of the neural network leads to overfitting, resulting in a decrease in model accuracy. B. Analyze the impact of the K value in the KNN algorithm on the classification performance of the model: Experiments were conducted with values ranging from 1 to 10. When the K value is too small, the model is very sensitive to nearby sample points, which can easily lead to overfitting during training and increase learning errors. When the K value is too large, distant sample points will also affect the model's predictions, resulting in ambiguous predictions and prone to classification errors. C. Analyze the impact of dataset size on algorithm performance: Experiments were conducted by dividing the dataset into different proportions (20%, 40%, 60%, 80%, and 100%) to compare the accuracy of each algorithm. Regardless of the dataset proportion, the use of a neural network to extract features from voltage fluctuation data and capture the underlying patterns of the data facilitates the subsequent KNN model's classification of the feature vectors output by the BLSTM.
