Transformer area line loss abnormity evaluation method and device, terminal equipment and storage medium
By constructing the covariance matrix of the station area data and using pre-trained classification models, the problem of the inability to accurately locate the cause in the assessment of line loss abnormalities in the station area is solved, the accuracy and efficiency of evaluation are improved, and manual intervention is reduced.
Patent Information
- Application Number
- CN202410927431.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-05
AI Technical Summary
The reasons for the abnormality of line loss in the prior art are not accurately determined by the prior art. It mainly relies on manual analysis and the evaluation method is simple, so it is impossible to effectively identify the specific reasons for the abnormality of line loss.
By obtaining the archival data and measurement data in the station area, standardized transformations are carried out to build the data covariance matrix, determine the line loss characteristic index, and input it into the pre-trained platform line loss abnormality classification model to build a classification decision tree to obtain the line loss abnormality classification Score, and then determine the results of the line loss abnormality assessment.
It improves the accuracy of the linear loss abnormality classification model, reduces manual intervention, and realizes accurate positioning of the causes of linear loss abnormalities in the table area, reducing the redundant information in the evaluation process.
Smart Images

Figure CN118898033A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power systems, and in particular to a method, device, terminal equipment and storage medium for evaluating abnormal line loss in a transformer substation. Background Art
[0002] In the power grid system, the substation is the key link between the substation and the user. Its line loss management level directly affects the operating efficiency of the power system and the amount of power loss. Line loss refers to the power loss generated in the transmission, transformation, distribution and marketing of electricity during the transmission of electricity in the power grid. Many substations use radial overhead networks. Some of the lines have a large power supply radius and low power supply voltage due to problems such as small cross-sectional area and aging insulation, which leads to long-term high line loss levels in low-voltage substations.
[0003] At present, the analysis of abnormal line loss in substations mainly relies on manual analysis, which requires a lot of manpower and material resources to track the causes of abnormal line loss. In addition, preliminary assessments are mainly conducted on several simple types such as uncountable, high loss and negative loss based on the line loss rate, and the causes of abnormal line loss cannot be accurately located. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, terminal equipment and storage medium for evaluating abnormal line loss in a substation, which can effectively solve the problem that the prior art mainly performs preliminary evaluations on several simple types such as uncountable, high loss and negative loss based on the line loss rate, and cannot accurately locate the cause of the abnormal line loss.
[0005] An embodiment of the present invention provides a method for evaluating abnormal line loss in a transformer area, comprising:
[0006] Obtain the substation archival data and substation metering data of the substation to be evaluated;
[0007] Performing standardized transformation according to the substation archive data and the substation metering data to construct a substation data covariance matrix;
[0008] Determine the line loss characteristic index of the substation to be evaluated according to the covariance matrix of the substation data;
[0009] Input the line loss characteristic index into the pre-trained area line loss anomaly classification model to construct several classification decision trees, and obtain the line loss anomaly classification score of each classification decision tree;
[0010] According to the line loss anomaly classification score, a line loss anomaly assessment result of the substation to be assessed is determined.
[0011] Furthermore, the substation file data includes: the first substation number and the power supply station to which the first substation belongs;
[0012] The area metering data includes: the second area number and the power supply station to which the second area belongs;
[0013] The step of performing a standardized transformation based on the substation archive data and the substation metering data to construct a substation data covariance matrix includes:
[0014] Merge the first substation code and the second substation code, and the substation archive data and substation metering data corresponding to the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent, to obtain abnormal assessment data for the first substation after the merger;
[0015] Eliminate missing data from the first abnormal evaluation data of the first station area, and eliminate abnormal data from the first abnormal evaluation data of the first station area, to obtain abnormal evaluation data of the second station area after eliminating the data;
[0016] Constructing an initial area data matrix based on the abnormal evaluation data of the second area;
[0017] According to the initial station area data matrix, the station area data mean and the station area data standard deviation of the initial station area data matrix are calculated;
[0018] According to the initial station area data matrix, the station area data mean and the station area data standard deviation, the initial station area data matrix is standardized to obtain the station area data covariance matrix.
[0019] Furthermore, the substation archive data also includes load distribution;
[0020] Before merging the first substation code and the second substation code, and the substation archive data and substation metering data corresponding to the consistent power supply stations to which the first substation belongs and the second substation belongs, it also includes: performing dummy variable processing on the load distribution.
[0021] Furthermore, according to the covariance matrix of the substation data, the line loss characteristic index of the substation to be evaluated is determined, including:
[0022] According to the covariance matrix of the station area data, the eigenvalues and eigenvectors of the covariance matrix of the station area data are calculated; and the eigenvectors are used as the principal components of the station area data;
[0023] Calculate the principal component contribution rate according to the eigenvalue corresponding to the principal component of the station area data;
[0024] According to the principal component contribution rate, the cumulative contribution rate is calculated;
[0025] The principal component of the substation data whose cumulative contribution rate is greater than a preset contribution rate threshold is used as the line loss characteristic index of the substation to be evaluated.
[0026] Furthermore, the training of the abnormal line loss classification model in the substation area includes:
[0027] Acquire a number of substation data training samples; wherein the substation data training samples include substation archive data training samples and substation metering data training samples;
[0028] The substation data training samples are labeled with abnormal line loss types; and the labeled substation data training samples are subjected to principal component analysis to obtain substation characteristic index samples;
[0029] Inputting the substation characteristic index samples into the substation line loss anomaly classification model to be trained to perform feature splitting, and obtaining a number of prediction decision trees;
[0030] According to the line loss anomaly prediction results and line loss anomaly type labels output by the prediction decision tree, the preset loss function corresponding to the line loss anomaly classification model to be trained is calculated;
[0031] When the preset loss function corresponding to the area line loss anomaly classification model to be trained converges, a trained area line loss anomaly classification model is obtained.
[0032] Further, according to the line loss anomaly classification score, the line loss anomaly assessment result of the to-be-assessed transformer area is determined, including:
[0033] Classifying the line loss abnormality classification scores according to the line loss abnormality types corresponding to the line loss abnormality classification scores, and calculating the sum of the line loss abnormality classification scores of each line loss abnormality type;
[0034] The line loss anomaly type corresponding to the sum of the line loss anomaly classification scores being greater than the preset score threshold is taken as the line loss anomaly assessment result of the substation to be assessed.
[0035] As an improvement of the above solution, another embodiment of the present invention provides a device for evaluating abnormal line loss in a transformer area, comprising:
[0036] The substation data acquisition module is used to obtain the substation archive data and substation metering data of the substation to be evaluated;
[0037] A standardization transformation module, used for performing standardization transformation according to the substation archive data and the substation metering data to construct a substation data covariance matrix;
[0038] A characteristic index determination module, used to determine the line loss characteristic index of the substation to be evaluated according to the covariance matrix of the substation data;
[0039] A model abnormality classification module is used to input the line loss characteristic index into a pre-trained area line loss abnormality classification model to construct a plurality of classification decision trees, and obtain a line loss abnormality classification score for each classification decision tree;
[0040] The line loss anomaly assessment module is used to determine the line loss anomaly assessment result of the to-be-assessed transformer area according to the line loss anomaly classification score.
[0041] Furthermore, the substation file data includes: the first substation number and the power supply station to which the first substation belongs;
[0042] The area metering data includes: the second area number and the power supply station to which the second area belongs;
[0043] The standardized transformation module comprises:
[0044] The substation data merging unit is used to merge the substation archive data and substation metering data corresponding to the first substation code and the second substation code, and the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent, to obtain abnormal assessment data for the first substation after the merger;
[0045] A substation data elimination unit, used to eliminate missing data in the first substation abnormality assessment data, and eliminate abnormal data in the first substation abnormality assessment data, to obtain the second substation abnormality assessment data after eliminating the data;
[0046] A station area data matrix construction unit, used to construct an initial station area data matrix according to the second station area abnormality assessment data;
[0047] A data calculation unit, used for calculating the station area data mean and the station area data standard deviation of the initial station area data matrix according to the initial station area data matrix;
[0048] The covariance matrix construction unit is used to perform a standardized transformation on the initial station area data matrix according to the initial station area data matrix, the station area data mean and the station area data standard deviation to obtain the station area data covariance matrix.
[0049] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, a method for evaluating line loss abnormality in a substation area as described in the above embodiment is implemented.
[0050] Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for evaluating line loss anomalies in a substation area as described in the above embodiment.
[0051] By implementing the present invention, at least the following beneficial effects are achieved:
[0052] The present invention provides a method, device, terminal equipment and storage medium for evaluating line loss anomalies in a substation. The method can obtain the substation archive data and the substation metering data of the substation to be evaluated; construct a substation data covariance matrix after standardization transformation of the substation archive data and the substation metering data; determine the line loss characteristic index of the substation to be evaluated according to the substation data covariance matrix; input the line loss characteristic index into a pre-trained substation line loss anomaly classification model to construct a classification decision tree to obtain a line loss anomaly classification score; and determine the line loss anomaly evaluation result of the substation to be evaluated according to the line loss anomaly classification score. By combining the substation archival data and the substation metering data, the operating status of the substation can be analyzed in all aspects, and the substation archival data and the substation metering data can be ensured to be on the same scale through standardized transformation, which improves the accuracy of the line loss anomaly classification score output by the substation line loss anomaly classification model, and accurately locates the cause of the line loss anomaly through the line loss anomaly classification score; by constructing the substation data covariance matrix, the correlation between the substation archival data and the substation metering data can be effectively identified, so as to more specifically determine the line loss characteristic indicators that affect the line loss, reduce redundant information, and improve the accuracy of the substation line loss anomaly classification model in evaluating each line loss anomaly; through the line loss anomaly classification score of the substation line loss anomaly classification model, the line loss anomaly assessment result of the substation to be evaluated is determined, manual intervention is reduced, and the cause of the line loss anomaly is accurately located. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a flow chart of a method for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention;
[0054] Figure 2 It is a structural schematic diagram of a device for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention;
[0055] Figure 3 It is another flow chart of a method for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention;
[0056] Figure 4 It is a schematic diagram of a training of a substation line loss anomaly classification model of a substation line loss anomaly assessment method provided by an embodiment of the present invention;
[0057] Figure 5It is a schematic diagram of the monthly line loss rate of a transformer area according to a method for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention;
[0058] Figure 6 It is a schematic diagram of line loss characteristic indicators of a method for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention;
[0059] Figure 7 It is a schematic diagram of line loss anomaly classification scores of a method for evaluating line loss anomaly in a transformer area provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0060] 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.
[0061] See also Figure 1 , is a flow chart of a method for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention, comprising:
[0062] S1. Obtain the area archive data and area metering data of the area to be evaluated;
[0063] S2, performing standardized transformation according to the substation archival data and the substation metering data, and constructing a substation data covariance matrix;
[0064] S3. Determine the line loss characteristic index of the substation to be evaluated according to the covariance matrix of the substation data;
[0065] S4, inputting the line loss characteristic index into the pre-trained area line loss abnormality classification model to construct several classification decision trees, and obtaining the line loss abnormality classification score of each classification decision tree;
[0066] S5. Determine the line loss anomaly assessment result of the to-be-assessed transformer area according to the line loss anomaly classification score.
[0067] In a preferred embodiment of the present invention, the line loss of the substation is related to factors such as the power supply radius of the substation, the capacity of the substation, and the load distribution, so the substation archive data includes the power supply radius of the substation, the capacity of the substation, and the load distribution; the substation metering data includes data such as the substation number, power factor, daily line loss rate, and monthly line loss rate. First, the factors affecting the line loss of the substation should be considered, and the substation archive data and the substation metering data of the substation to be evaluated should be obtained. Then, the substation archive data and the substation metering data should be standardized and transformed to preliminarily construct the covariance matrix of the substation data; and according to the covariance matrix of the substation data, the indicators that have a more significant impact on the line loss of the substation are extracted, and determined as the line loss characteristic indicators of the substation to be evaluated; then the line loss characteristic indicators are input into the pre-trained substation line loss anomaly classification model to construct several classification decision trees, and the line loss anomaly classification score of each classification decision tree is obtained. Finally, according to the line loss anomaly classification score, the line loss anomaly evaluation result of the substation to be evaluated is determined.
[0068] Specifically, the substation file data includes: the first substation number and the power supply station to which the first substation belongs;
[0069] The area metering data includes: the second area number and the power supply station to which the second area belongs;
[0070] The step of performing a standardized transformation based on the substation archive data and the substation metering data to construct a substation data covariance matrix includes:
[0071] Merge the first substation code and the second substation code, and the substation archive data and substation metering data corresponding to the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent, to obtain abnormal assessment data for the first substation after the merger;
[0072] Eliminate missing data from the first abnormal evaluation data of the first station area, and eliminate abnormal data from the first abnormal evaluation data of the first station area, to obtain abnormal evaluation data of the second station area after eliminating the data;
[0073] Constructing an initial area data matrix based on the abnormal evaluation data of the second area;
[0074] According to the initial station area data matrix, the station area data mean and the station area data standard deviation of the initial station area data matrix are calculated;
[0075] According to the initial station area data matrix, the station area data mean and the station area data standard deviation, the initial station area data matrix is standardized to obtain the station area data covariance matrix.
[0076] In a preferred embodiment of the present invention, the station area file data is shown in Table 1:
[0077] Table 1
[0078] Key information name Data Types The first zone number Character District Name Character The first power supply station Character Main line model Character Number of single-phase users Numeric Number of three-phase users Numeric Power supply radius Numeric Load distribution Character Station capacity Numeric
[0079] The metering data of the substation area is shown in Table 2:
[0080] Table 2
[0081] Key information name Data Types Second zone number Character District Name Character The second power supply station Character Data time Date Type Daily loss rate Numeric Monthly Line Loss Rate Numeric Power Factor Numeric Maximum load factor Numeric Three-phase unbalance rate Numeric User voltage qualification rate Numeric Collection success rate Numeric Distributed online active power Numeric Distributed online reactive power Numeric 24-hour power data of the total meter of the substation Numeric
[0082] In a preferred embodiment of the present invention, the first substation number refers to the data representing the substation number in the substation archive data; the power supply station to which the first substation belongs refers to the data representing the power supply station to which the substation belongs in the substation archive data; the second substation number refers to the data representing the substation number in the substation metering data; the power supply station to which the second substation belongs refers to the data representing the power supply station to which the substation belongs in the substation metering data. The substation archive data and substation metering data corresponding to the first substation code and the second substation code, and the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent are merged to obtain the first substation abnormal assessment data after the merger. Because the substation archive data and the substation metering data may involve power systems from different sources and data tables from different sources, data merging is required to obtain the first substation abnormal assessment data. Then, an integrity check is performed. Based on the requirements for data integrity, the data with missing key information in the substation archive data and the substation metering data is screened and incomplete data is eliminated; then, an effectiveness check is performed to eliminate the abnormal data in the first substation abnormal assessment data to obtain the second substation abnormal assessment data after the data is eliminated. Abnormal data usually include: power factor. Data with power factor outside the interval of [0, 1] is abnormal data and should be removed; maximum load rate. Data with maximum load rate outside the interval of [0, 200] is abnormal data and should be removed; three-phase imbalance rate. Data with three-phase imbalance rate outside the interval of [0, 300] is abnormal data and should be removed; voltage qualification rate. Data with voltage qualification rate outside the interval of [0, 100] is abnormal data and should be removed; acquisition success rate. Data with acquisition success rate outside the interval of [0, 100] is abnormal data and should be removed.
[0083] In a preferred embodiment of the present invention, an initial area data matrix is constructed based on the abnormal evaluation data of the second area. Due to the different metrics between various types of data, such as the power supply radius, which is usually measured in km or m, and the daily line loss rate is a percentage, it cannot be judged that the former is more important because the former is much larger than the latter. Therefore, according to the initial area data matrix, the area data mean of the initial area data matrix is calculated. And the standard deviation of the area data x ijis the value in the initial area data matrix. According to the initial area data matrix, the area data mean and the area data standard deviation, the initial area data matrix is standardized to obtain the area data covariance matrix, that is, the standardization of the initial area data matrix is achieved.
[0084] Preferably, the station area archive data also includes load distribution;
[0085] Before merging the first substation code and the second substation code, and the substation archive data and substation metering data corresponding to the consistent power supply stations to which the first substation belongs and the second substation belongs, it also includes: performing dummy variable processing on the load distribution.
[0086] In a preferred embodiment of the present invention, "load distribution" in the substation archive data is a classification index, and the load distribution includes four categories: "evenly distributed throughout the line", "heavy at the head and light at the tail", "heavy at the tail and light at the head", and "heavy in the middle and light at the head and tail". For each substation, its classification index attribute should be unique. Therefore, the data with different classification indicators in the same substation are processed to make their types consistent. The load distribution indicators include four categories: "evenly distributed throughout the line", "heavy at the head and light at the tail", "heavy at the tail and light at the head", and "heavy in the middle and light at the head and tail", which are converted into three columns of 0 and 1 variables, thereby improving the accuracy of the substation line loss anomaly classification model. Because the classification indicators are all text information, for example: evenly distributed throughout the line, if this information is not processed, it cannot be used. Through dummy variable processing, indicators are added. For the model, the more key indicators and the more detailed they are, the higher the model accuracy. Through dummy variable processing, the text information is converted into digital information, for example: evenly distributed throughout the line, replaced by 100, heavy at the head and light at the tail, replaced by 010. After unifying the classification attribute index values, there may still be some missing attributes, which are filled with the majority. The load distribution dummy variable processing is shown in Table 3:
[0087] Table 3
[0088] X1 X2 X3 Evenly distributed across the board 1 0 0 Head heavy, tail light 0 1 0 Head-heavy 0 0 1 Heavy in the middle, light at the head and tail 0 0 0
[0089] Specifically, according to the covariance matrix of the substation data, the line loss characteristic index of the substation to be evaluated is determined, including:
[0090] According to the covariance matrix of the station area data, the eigenvalues and eigenvectors of the covariance matrix of the station area data are calculated; and the eigenvectors are used as the principal components of the station area data;
[0091] Calculate the principal component contribution rate according to the eigenvalue corresponding to the principal component of the station area data;
[0092] According to the principal component contribution rate, the cumulative contribution rate is calculated;
[0093] The principal component of the substation data whose cumulative contribution rate is greater than a preset contribution rate threshold is used as the line loss characteristic index of the substation to be evaluated.
[0094] In a preferred embodiment of the present invention, there are many factors affecting the line loss in the substation area, and the data in the substation area archive data and the substation area metering data may become the factors affecting the line loss in the substation area. The description of the factors affecting the line loss in the substation area is shown in Table 4:
[0095] Table 4
[0096]
[0097]
[0098]
[0099]
[0100] The abnormal line loss in the substation area is directly reflected in the daily line loss rate and monthly line loss rate of the substation data. Considering the monthly management mode of the substation area, further statistical analysis is conducted on the daily line loss rate on a monthly basis to calculate: the average daily line loss rate of the month, the maximum daily line loss rate of the month, the minimum daily line loss rate of the month, the standard deviation of the daily line loss rate of the month, the number of days with a daily line loss rate greater than 6, and the number of days with a daily line loss rate less than 0. At the same time, statistics are collected on the power factor, load rate, three-phase imbalance rate, voltage qualification rate, and acquisition success rate of the daily frequency:
[0101] Average daily line loss rate of the month = sum of daily line loss rates of the month ÷ number of days in the month;
[0102] The maximum daily line loss rate of the month = MAX (the daily line loss rate of the month);
[0103] The minimum daily line loss rate of the month = MIN (the daily line loss rate of the month);
[0104] Standard deviation of daily line loss rate for the month:
[0105] Among them, x i is the daily line loss rate, x is the average daily line loss rate of the month, and N is the number of days in the month;
[0106] Average daily power factor of the total meter of the platform area in the current month = the sum of the daily power factors of the total meter of the platform area in the current month ÷ the number of days in the current month;
[0107] Average daily load rate of the month = the sum of the average daily load rate of the total meter of the area in the month ÷ the number of days in the month. Among them, the average daily load rate = the total meter input power of the area / 24 / area capacity * 100;
[0108] Maximum daily load rate of the month = MAX (maximum daily load rate of the total meter of the platform area of the month);
[0109] The minimum daily load rate of the month = MIN (the minimum daily load rate of the total meter of the platform area of the month);
[0110] Average daily three-phase unbalance rate of the month = the sum of the daily three-phase unbalance rates of the total meter in the area of the month ÷ the number of days in the month;
[0111] Average daily voltage qualification rate of the total meter in the current month = the sum of the daily voltage qualification rates of the total meter in the current month ÷ the number of days in the current month;
[0112] Average daily collection success rate of the month = the sum of the daily collection success rates of the total number of tables in the month ÷ the number of days in the month;
[0113] In a preferred implementation of the present invention, before obtaining the covariance matrix of the station area data based on the above-mentioned influencing factors, the range method is used to standardize the data:
[0114]
[0115]
[0116] In the formula, x i is the index value; min(x i )、max(x i ) are the minimum and maximum values of the indicator respectively; then according to the covariance matrix of the area data Calculate the eigenvalues and eigenvectors of the covariance matrix of the station area data And the eigenvector is used as the principal component of the station area data. i,j=1,2,...,p, Then, according to the eigenvalue corresponding to the principal component of the station area data, the principal component contribution rate is calculated. According to the principal component contribution rate, the cumulative contribution rate is calculated The principal component of the substation data with a cumulative contribution rate greater than the preset contribution rate threshold is used as the line loss characteristic index of the substation to be evaluated. For example, the first, second, ..., mth principal components corresponding to the characteristic values with a cumulative contribution rate exceeding 80% are taken as the final substation characteristic index. That is, the principal component analysis method is used to extract the line loss characteristic index of the substation to be evaluated. Principal component analysis, also known as principal component analysis, aims to use the idea of dimensionality reduction to transform multiple indicators into a few comprehensive indicators (i.e., principal components), each of which can reflect most of the information of the original variable, and the information contained is non-repetitive. This method reduces complex factors to several principal components while introducing multiple variables, simplifies the problem, and at the same time obtains more scientific and effective data information. In the study of practical problems, in order to comprehensively and systematically analyze the problem, many influencing factors must be considered. These factors involved are generally called indicators, and are also called variables in multivariate statistical analysis. Because each variable reflects certain information about the problem being studied to varying degrees, and there is a certain correlation between the indicators, the information reflected by the statistical data obtained overlaps to a certain extent. Therefore, through the principal component analysis method, key indicators can be extracted as substation characteristic indicators for the construction of line loss anomaly classification model.
[0117] Schematically, the training of the abnormal line loss classification model in the substation area includes:
[0118] Acquire a number of substation data training samples; wherein the substation data training samples include substation archive data training samples and substation metering data training samples;
[0119] The substation data training samples are labeled with line loss anomaly types; and the labeled substation data training samples are subjected to principal component analysis to obtain substation characteristic index samples;
[0120] Inputting the substation characteristic index samples into the substation line loss anomaly classification model to be trained to perform feature splitting, and obtaining a number of prediction decision trees;
[0121] According to the line loss anomaly prediction results and line loss anomaly type labels output by the prediction decision tree, the preset loss function corresponding to the line loss anomaly classification model to be trained is calculated;
[0122] When the preset loss function corresponding to the area line loss anomaly classification model to be trained converges, a trained area line loss anomaly classification model is obtained.
[0123] In a preferred embodiment of the present invention, the substation line loss anomaly classification model is trained based on the XGBoost (eXtreme Gradient Boosting) algorithm. XGBoost (eXtreme Gradient Boosting) is a gradient boosting framework that expands on the gradient boosting tree and introduces technologies such as regularization, parallel computing, and missing value processing, which gives it significant advantages in performance and efficiency. Overall, XGBoost is a powerful and flexible classification algorithm with excellent performance and a wide range of applications. XGBoost uses a decision tree ensemble model, which includes a series of classification and regression tree models. This method mainly uses a classification tree model to classify the causes of substation anomalies. Usually, the prediction effect of a single tree is not ideal, so an integrated model is used to add up the prediction results of many trees to obtain the final prediction result. First, obtain several substation data training samples; wherein, the substation data training samples include substation archive data training samples and substation metering data training samples; then, label the substation data training samples with line loss anomaly types; and perform principal component analysis on the labeled substation data training samples to obtain substation feature index samples; then, input the substation feature index samples into the substation line loss anomaly classification model to be trained for feature splitting, and obtain several prediction decision trees; according to the line loss anomaly prediction results and line loss anomaly type labels output by the prediction decision tree, calculate the preset loss function corresponding to the substation line loss anomaly classification model to be trained; when using the XGBoost algorithm to classify and diagnose the causes of substation line loss anomalies, in order to ensure the accuracy of classification, use the loss function to achieve the optimal substation line loss anomaly classification model by minimizing the loss function. In addition, in order to control the complexity of the model, a regularization term is added on the basis of the loss function, which together constitutes the preset loss function:
[0124]
[0125] In the formula, the first part on the right side of the equation is the training error of the model, and the second part is the regularization term, which is the sum of the regularization terms of K trees.
[0126] According to the extracted area characteristic indicators, feature splitting is performed, the predicted value of each sample is initialized, and the residual between the predicted value and the true value is used to continuously build a new decision tree. When the number of iterations reaches the upper limit or the residual no longer decreases, the iteration is stopped. The classification decision tree constructed during the model training process is as follows: Figure 4 When the preset loss function corresponding to the abnormal line loss classification model of the transformer area to be trained converges, the trained abnormal line loss classification model of the transformer area is obtained.
[0127] Preferably, determining the line loss anomaly assessment result of the to-be-assessed transformer area according to the line loss anomaly classification score includes:
[0128] Classifying the line loss abnormality classification scores according to the line loss abnormality types corresponding to the line loss abnormality classification scores, and calculating the sum of the line loss abnormality classification scores of each line loss abnormality type;
[0129] The line loss anomaly type corresponding to the sum of the line loss anomaly classification scores being greater than the preset score threshold is taken as the line loss anomaly assessment result of the substation to be assessed.
[0130] In a preferred embodiment of the present invention, the line loss abnormality classification scores are classified according to the line loss abnormality types corresponding to the line loss abnormality classification scores, and the sum of the line loss abnormality classification scores of each line loss abnormality type is calculated; the line loss abnormality type corresponding to the sum of the line loss abnormality classification scores greater than the preset score threshold is taken as the line loss abnormality assessment result of the substation to be assessed. Figure 4 As shown in the figure, according to the decision tree classification results, the sum of the scores corresponding to each tree is the predicted value of the line loss in the substation area. Then the scores of various abnormalities of the line loss in the substation area are:
[0131] Information system = 2 + ... - 1;
[0132] Production operation = 0.5 + ... + 0.1;
[0133] Electricity inspection = -1 + ... + 1.5;
[0134] Therefore, the causes of abnormalities in the substation can be classified and evaluated based on the scores of various types of abnormalities.
[0135] In a preferred embodiment of the present invention, according to the data requirements of the substation line loss anomaly assessment model, the substation production data and measurement data are collected, and the archival data and metering data are integrated through the substation number and the power supply station to which it belongs, and a total of 2,362 substation abnormality diagnosis sample data are initially obtained. Figure 5 This is the monthly line loss rate curve of the substation. If the monthly line loss rate threshold requirement of the substation is used, only the abnormal substation can be preliminarily screened, but the cause of the abnormality of the substation cannot be determined. Even due to the rationality of the threshold setting, some substations with abnormal line losses may be ignored, affecting the lean management of line losses in the substation. Therefore, it is necessary to use the substation line loss anomaly assessment model to evaluate the abnormal data. First, based on the requirements for data integrity and validity of the substation line loss anomaly assessment model, the fused model data is processed to eliminate abnormal data. Secondly, the substation classification indicators are processed to improve the accuracy of the model. The principal component analysis method is used to extract the characteristic indicators of the substation, and the results are shown in Table 5:
[0136] Table 5
[0137]
[0138]
[0139] Then, based on the extracted 19 characteristic indicators, the substation line loss anomaly assessment model based on the XGBoost algorithm is used to perform substation anomaly assessment. Among them, the parameters of the substation line loss anomaly assessment model are set to a maximum depth of 5 for each tree and a step size of 0.5 for each iteration to obtain the optimal classification result. The top 11 characteristic indicators in the substation line loss anomaly assessment model are as follows: Figure 6 As shown, it includes the trunk line model, distribution capacity of the substation, power supply radius, load distribution, number of days with daily line loss rate less than 0, monthly line loss rate, number of users, average daily line loss rate, standard deviation of daily line loss rate, maximum daily load rate and average daily three-phase imbalance rate. Finally, the line loss anomaly score of each substation is obtained according to the substation line loss anomaly assessment model. Figure 7 Table 6 is the statistical results of abnormal line loss assessment in the substation area:
[0140] Table 6
[0141] Classification Prediction accuracy total Accuracy (%) Information Systems 138 153 90 Other causes 136 146 93 Basic data management 378 409 92 Copy and verification management 178 189 94 Production operation 276 297 93 Electricity inspection 137 144 95 Measurement management 462 476 97 normal 530 548 97 total 2235 2362 95
[0142] From the above substation line loss anomaly assessment results, it can be seen that the substation line loss anomaly assessment model based on the XGBoost algorithm has an accuracy rate of 95% for substation line loss anomaly assessment, which can provide good support for substation line loss management and reduce the workload of grassroots staff.
[0143] In a preferred embodiment of the present invention, Figure 3 As shown in the figure, data collection and fusion are first performed: considering the influencing factors of the line loss in the substation area, combined with the results of the abnormal analysis of the line loss in the substation area, the substation archive data, substation metering data, and abnormal analysis result data are collected, and the data is fused according to the substation number, data time, power supply station and other information to preliminarily construct the substation line loss abnormal evaluation sample set. Then the data preprocessing is performed: after completing the fusion of the multi-source data in the substation area, the abnormal data is first processed to remove the obviously missing and abnormal data to avoid affecting the accuracy of the model. Secondly, the classification indicators are processed separately to obtain the data required to meet the construction of the substation line loss abnormal evaluation model. Then feature extraction is performed: based on the influencing factors of the substation line loss and the results of the abnormal analysis, the principal component analysis method is used to extract the indicators that have a significant impact on the line loss in the substation area from the static and dynamic characteristics of the substation area as the substation feature indicators. Finally, the substation line loss abnormality evaluation is performed: based on the extracted feature indicators, the XGBoost algorithm is used to construct the line loss abnormality evaluation model, and the intelligent diagnosis of the line loss abnormality in the substation area is realized through continuous adjustment and improvement of the model.
[0144] By implementing this embodiment, combined with the substation archival data and the substation metering data, the operating status of the substation can be analyzed in all aspects, and the substation archival data and the substation metering data can be ensured to be on the same scale through standardized transformation, thereby improving the accuracy of the line loss anomaly classification score output by the substation line loss anomaly classification model, and accurately locating the cause of the line loss anomaly through the line loss anomaly classification score; by constructing the substation data covariance matrix, the correlation between the substation archival data and the substation metering data can be effectively identified, so as to more specifically determine the line loss characteristic indicators that affect the line loss, reduce redundant information, and improve the accuracy of the substation line loss anomaly classification model in evaluating each line loss anomaly; through the line loss anomaly classification score of the substation line loss anomaly classification model, the line loss anomaly evaluation result of the substation to be evaluated is determined, manual intervention is reduced, and the cause of the line loss anomaly is accurately located.
[0145] See also Figure 2 , is a schematic diagram of a structure of a device for evaluating abnormal line loss in a transformer area provided by an embodiment of the present invention, comprising:
[0146] The substation data acquisition module is used to obtain the substation archive data and substation metering data of the substation to be evaluated;
[0147] A standardization transformation module, used for performing standardization transformation according to the substation archive data and the substation metering data to construct a substation data covariance matrix;
[0148] A characteristic index determination module, used to determine the line loss characteristic index of the substation to be evaluated according to the covariance matrix of the substation data;
[0149] A model abnormality classification module is used to input the line loss characteristic index into a pre-trained area line loss abnormality classification model to construct a plurality of classification decision trees, and obtain a line loss abnormality classification score for each classification decision tree;
[0150] The line loss anomaly assessment module is used to determine the line loss anomaly assessment result of the to-be-assessed transformer area according to the line loss anomaly classification score.
[0151] Preferably, the substation archive data includes: the first substation number and the power supply station to which the first substation belongs;
[0152] The area metering data includes: the second area number and the power supply station to which the second area belongs;
[0153] The standardized transformation module comprises:
[0154] The substation data merging unit is used to merge the substation archive data and substation metering data corresponding to the first substation code and the second substation code, and the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent, to obtain abnormal assessment data for the first substation after the merger;
[0155] A substation data elimination unit, used to eliminate missing data in the first substation abnormality assessment data, and eliminate abnormal data in the first substation abnormality assessment data, to obtain the second substation abnormality assessment data after eliminating the data;
[0156] A station area data matrix construction unit, used to construct an initial station area data matrix according to the second station area abnormality assessment data;
[0157] A data calculation unit, used for calculating the station area data mean and the station area data standard deviation of the initial station area data matrix according to the initial station area data matrix;
[0158] The covariance matrix construction unit is used to perform a standardized transformation on the initial station area data matrix according to the initial station area data matrix, the station area data mean and the station area data standard deviation to obtain the station area data covariance matrix.
[0159] The present invention provides a substation line loss anomaly assessment device, which acquires substation archive data and substation metering data of a substation to be assessed according to a substation data acquisition module; performs standardized transformation according to the substation archive data and the substation metering data through a standardized transformation module to construct a substation data covariance matrix; in a characteristic index determination module, determines the line loss characteristic index of the substation to be assessed according to the substation data covariance matrix; according to a model anomaly classification module, inputs the line loss characteristic index into a pre-trained substation line loss anomaly classification model to construct a plurality of classification decision trees, and obtains a line loss anomaly classification score of each classification decision tree; finally, in a line loss anomaly assessment module, determines the line loss anomaly assessment result of the substation to be assessed according to the line loss anomaly classification score. Combining the substation archival data and the substation metering data, it is possible to comprehensively analyze the operating status of the substation, and through standardized transformation, ensure that the substation archival data and the substation metering data are on the same scale, thereby improving the accuracy of the line loss anomaly classification score output by the substation line loss anomaly classification model, and accurately locate the cause of the line loss anomaly through the line loss anomaly classification score; by constructing the substation data covariance matrix, the correlation between the substation archival data and the substation metering data is effectively identified, so as to more specifically determine the line loss characteristic indicators that affect the line loss, reduce redundant information, and improve the accuracy of the substation line loss anomaly classification model in evaluating each line loss anomaly; through the line loss anomaly classification score of the substation line loss anomaly classification model, the line loss anomaly assessment result of the substation to be evaluated is determined, manual intervention is reduced, and the cause of the line loss anomaly is accurately located.
[0160] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0161] Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0162] Another embodiment of the present invention further provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements a method for evaluating abnormal line loss in a substation area as described in the above embodiment when executing the computer program. The terminal device may be a computing device such as a desktop computer, a notebook, a handheld computer, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory.
[0163] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0164] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.
[0165] Another embodiment of the present invention provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a method for evaluating line loss anomalies in a substation area as described in the above embodiment.
[0166] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium.
[0167] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for evaluating abnormal line loss in a transformer area, characterized in that: include: Obtain the substation archival data and substation metering data of the substation to be evaluated; Performing standardized transformation according to the substation archive data and the substation metering data to construct a substation data covariance matrix; Determine the line loss characteristic index of the substation to be evaluated according to the covariance matrix of the substation data; Input the line loss characteristic index into the pre-trained area line loss anomaly classification model to construct several classification decision trees, and obtain the line loss anomaly classification score of each classification decision tree; According to the line loss anomaly classification score, a line loss anomaly assessment result of the substation to be assessed is determined.
2. A method for evaluating abnormal line loss in a transformer area according to claim 1, characterized in that: The substation file data includes: the first substation number and the power supply station to which the first substation belongs; The area metering data includes: the second area number and the power supply station to which the second area belongs; The step of performing a standardized transformation based on the substation archive data and the substation metering data to construct a substation data covariance matrix includes: Merge the first substation code and the second substation code, and the substation archive data and substation metering data corresponding to the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent, to obtain abnormal assessment data for the first substation after the merger; Eliminate missing data from the first abnormal evaluation data of the first station area, and eliminate abnormal data from the first abnormal evaluation data of the first station area, to obtain abnormal evaluation data of the second station area after eliminating the data; Constructing an initial area data matrix based on the abnormal evaluation data of the second area; According to the initial station area data matrix, the station area data mean and the station area data standard deviation of the initial station area data matrix are calculated; According to the initial station area data matrix, the station area data mean and the station area data standard deviation, the initial station area data matrix is standardized to obtain the station area data covariance matrix.
3. A method for evaluating abnormal line loss in a transformer area according to claim 2, characterized in that: The said area archive data also includes load distribution; Before merging the first substation code and the second substation code, and the substation archive data and substation metering data corresponding to the consistent power supply stations to which the first substation belongs and the second substation belongs, it also includes: performing dummy variable processing on the load distribution.
4. A method for evaluating abnormal line loss in a transformer area according to claim 1, characterized in that: According to the covariance matrix of the substation data, the line loss characteristic index of the substation to be evaluated is determined, including: According to the covariance matrix of the station area data, the eigenvalues and eigenvectors of the covariance matrix of the station area data are calculated; and the eigenvectors are used as the principal components of the station area data; Calculate the principal component contribution rate according to the eigenvalue corresponding to the principal component of the station area data; According to the principal component contribution rate, the cumulative contribution rate is calculated; The principal component of the substation data whose cumulative contribution rate is greater than a preset contribution rate threshold is used as the line loss characteristic index of the substation to be evaluated.
5. The method for evaluating abnormal line loss in a transformer area according to claim 1, characterized in that: The training of the abnormal line loss classification model in the substation area includes: Acquire a number of substation data training samples; wherein the substation data training samples include substation archive data training samples and substation metering data training samples; The substation data training samples are labeled with abnormal line loss types; and the labeled substation data training samples are subjected to principal component analysis to obtain substation characteristic index samples; Inputting the substation characteristic index samples into the substation line loss anomaly classification model to be trained to perform feature splitting, and obtaining a number of prediction decision trees; According to the line loss anomaly prediction results and line loss anomaly type labels output by the prediction decision tree, the preset loss function corresponding to the line loss anomaly classification model to be trained is calculated; When the preset loss function corresponding to the area line loss anomaly classification model to be trained converges, a trained area line loss anomaly classification model is obtained.
6. A method for evaluating abnormal line loss in a transformer area according to claim 1, characterized in that: According to the line loss anomaly classification score, the line loss anomaly assessment result of the to-be-assessed transformer area is determined, including: Classifying the line loss abnormality classification scores according to the line loss abnormality types corresponding to the line loss abnormality classification scores, and calculating the sum of the line loss abnormality classification scores of each line loss abnormality type; The line loss anomaly type corresponding to the sum of the line loss anomaly classification scores being greater than the preset score threshold is taken as the line loss anomaly assessment result of the substation to be assessed.
7. A device for evaluating abnormal line loss in a transformer area, characterized in that: include: The substation data acquisition module is used to obtain the substation archive data and substation metering data of the substation to be evaluated; A standardization transformation module, used for performing standardization transformation according to the substation archive data and the substation metering data to construct a substation data covariance matrix; A characteristic index determination module, used to determine the line loss characteristic index of the substation to be evaluated according to the covariance matrix of the substation data; A model abnormality classification module is used to input the line loss characteristic index into a pre-trained area line loss abnormality classification model to construct a plurality of classification decision trees, and obtain a line loss abnormality classification score for each classification decision tree; The line loss anomaly assessment module is used to determine the line loss anomaly assessment result of the to-be-assessed transformer area according to the line loss anomaly classification score.
8. The device for evaluating abnormal line loss in a transformer area according to claim 7, characterized in that: The substation file data includes: the first substation number and the power supply station to which the first substation belongs; The area metering data includes: the second area number and the power supply station to which the second area belongs; The standardized transformation module comprises: The substation data merging unit is used to merge the substation archive data and substation metering data corresponding to the first substation code and the second substation code, and the power supply station to which the first substation belongs and the power supply station to which the second substation belongs are consistent, to obtain abnormal assessment data for the first substation after the merger; A substation data elimination unit, used to eliminate missing data in the first substation abnormality assessment data, and eliminate abnormal data in the first substation abnormality assessment data, to obtain the second substation abnormality assessment data after eliminating the data; A station area data matrix construction unit, used to construct an initial station area data matrix according to the second station area abnormality assessment data; A data calculation unit, used for calculating the station area data mean and the station area data standard deviation of the initial station area data matrix according to the initial station area data matrix; The covariance matrix construction unit is used to perform a standardized transformation on the initial station area data matrix according to the initial station area data matrix, the station area data mean and the station area data standard deviation to obtain the station area data covariance matrix.
9. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a method for evaluating line loss abnormality in a substation area as claimed in any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute a method for evaluating line loss anomalies in a substation area as described in any one of claims 1 to 6.
