A comprehensive evaluation method for power quality
Through the classification of power quality detection data and neural network calculations, combined with weight vectors, the problem of human subjective factors in power quality assessment is solved, and an objective, accurate and unified comprehensive assessment of power quality is achieved, which is suitable for the power market environment. Electric energy bidding and quality-based pricing.
Patent Information
- Application Number
- CN202111141692.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-09-28
AI Technical Summary
Existing power quality assessment methods are affected by human subjective factors, resulting in uncertainty and incomprehensibility in assessment results. Especially in the power market environment, it is difficult to provide comprehensive evaluation indicators to guide power bidding and quality-based pricing.
A comprehensive assessment method of power quality is adopted to classify the power detection data through preset grading standards, determine the probability value of each level, and use the pre-trained neural network to perform calculations to obtain the comprehensive assessment results of power quality, using weights The vector reflects the importance of each individual indicator and overcomes the influence of subjective factors.
It achieves the objectivity of the assessment process, provides more accurate and unified comprehensive assessment results of power quality, meets the personalized needs of electricity consumption, and avoids the adverse effects of human subjective factors.
Smart Images

Figure CN113780888B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power quality monitoring and evaluation, and in particular to a comprehensive power quality evaluation method. Background Art
[0002] Although there is no unified and complete consensus on the definition of power quality, there is a relatively consistent understanding of its main technical indicators. The State Administration of Technical Supervision has promulgated national standards involving five aspects of power quality, namely: allowable deviation of power supply voltage, allowable fluctuation and flicker of power supply voltage, allowable imbalance of three-phase power supply voltage, harmonics of public power grid, and allowable deviation of power supply frequency. Among them, voltage deviation refers to the percentage of the difference between the actual voltage of a node and the standard voltage of the system to the nominal voltage of the system under normal operation of the power supply system. Voltage fluctuation refers to the phenomenon of a series of relatively rapid or continuous changes in the root mean square voltage. Voltage flicker is usually judged by the working conditions of incandescent lamps, describing the frequency characteristics of the "lamp, brain, and eye" link. Frequency deviation refers to the difference between the actual value of the system frequency and the nominal value (50Hz or 6OHz, my country adopts the 5OHz standard) under normal operation of the power system. Three-phase voltage imbalance refers to the ratio of the root mean square value of the negative sequence component to the root mean square value of the positive sequence component of the power system under normal operation. Harmonics are sinusoidal components of a periodic electrical quantity whose frequency is an integer multiple of the fundamental frequency.
[0003] Generally speaking, power quality problems caused by various disturbances in the power system can be divided into two categories: steady-state events and transient events. Steady-state power quality problems are characterized by waveform distortion, mainly including harmonics, interharmonics, waveform sag and noise; transient events are usually characterized by spectrum and transient duration, and can be divided into two categories: pulse transient and oscillation transient. The main analysis methods for power quality include time domain simulation method, frequency domain analysis method and transformation-based method.
[0004] However, the scale of modern power grid is getting bigger and bigger, and there are more and more monitoring points. In the future, the monitoring of power quality will not only be limited to a certain point, but also realize the monitoring of power quality in the same power supply system and different locations, and even realize the centralized monitoring of multiple different power supply systems. In terms of function, more emphasis is placed on intelligence. In addition to the functions of calculation and display, it must also have certain functions such as judgment, analysis, and decision-making, such as event prediction, fault identification, interference source identification and real-time control, and initially have automatic practical and advanced computing intelligent evaluation functions. At the same time, since the evaluation of power quality involves many indicators, it is difficult to give a comprehensive evaluation index of power quality to guide the implementation of power bidding and pricing according to quality and high quality and high price in the environment where power is put into market competition as a special commodity. Therefore, it is of great significance to conduct a comprehensive evaluation of power quality in the power market environment. This requires weighted merging of multiple power quality evaluation indicators into a one-dimensional comprehensive evaluation indicator. This merging can adopt various different methods: such as the method combining probability statistics with vector algebra, fuzzy mathematics, the method combining probability statistics with fuzzy numbers, hierarchical analysis method and matter-element analysis method, etc. However, due to the objective irrelevance of each single indicator of power quality, it is difficult to determine the relative weight. The above mathematical models are all affected by human subjective factors to varying degrees, which makes the evaluation results uncertain and incomprehensible. Summary of the invention
[0005] The purpose of the present invention is to propose a comprehensive power quality evaluation method to solve the technical problems that the existing methods are affected to varying degrees by human subjective factors and the evaluation results have certain uncertainty and incomprehensibility.
[0006] On the one hand, a method for comprehensive evaluation of power quality is provided, comprising:
[0007] Periodically collecting electric energy detection data according to a preset sampling period, and classifying the electric energy detection data according to a preset class classification standard;
[0008] Determine the probability value corresponding to each indicator of each level in the electric energy detection data after level division;
[0009] The graded electric energy detection data and the corresponding probability values are input as input quantities into a pre-trained neural network for calculation, so as to obtain a comprehensive evaluation result of the electric energy quality corresponding to the electric energy detection data.
[0010] Preferably, the various indicators of the electric energy detection data at least include voltage deviation, voltage flicker, frequency deviation, three-phase imbalance and total harmonic distortion.
[0011] Preferably, the classifying the electric energy detection data according to a preset classifying standard includes:
[0012] Identify the data type and value of the electric energy detection data, match the data type with various indicators of the electric energy detection data, and classify the electric energy detection data according to the matching result;
[0013] Each type of electric energy detection data is divided into multiple levels according to the preset level classification standard, the level items that meet the preset qualified level standard are classified as qualified levels, and the level items that do not meet the preset qualified level standard are classified as unqualified levels.
[0014] Preferably, the probability values corresponding to the various indicators in each level of the electric energy detection data after the level division are determined include:
[0015] Obtaining the total number of sampling point values in the process of collecting electric energy detection data, and obtaining the number of sampling point values of each indicator of the electric energy detection data in each level;
[0016] The ratio of the number of sampling point values of each indicator of the electric energy detection data in each level to the total number of sampling point values in the collection process is output as the probability value of each indicator of the electric energy detection data being in each level.
[0017] Preferably, the pre-trained neural network comprises:
[0018] The first calculation weight intermediate layer includes a first weight vector, wherein the first weight vector includes the weight values corresponding to the electric energy detection data corresponding to the first matrix and all the index items and the corresponding number of index items, and is used to indicate the contribution of each index item to the comprehensive index evaluation, and initially treats the contribution of each index equally;
[0019] The second calculation weight intermediate layer includes a second weight vector, which includes weight values corresponding to all levels in the electric energy detection data corresponding to the second matrix and the number of level items of each indicator, used to represent the contribution of each level to the comprehensive indicator, and initially treats the contribution of each level equally.
[0020] Preferably, the pre-trained neural network is trained by the following steps:
[0021] The electric energy detection data is counted according to a preset training cycle to obtain a plurality of data pairs; wherein the data pairs include a probability distribution matrix and an output value of an actual sample, the probability distribution matrix represents five index items of electric energy quality; and each index item is a vector composed of a plurality of values, corresponding to a certain level number of the index item multiplied by a probability value corresponding to the level;
[0022] Input the plurality of data pairs as a plurality of training samples into a preset neural network for training to obtain training output values;
[0023] Calculating a first error value according to the training output value and the output value of the actual sample, when the absolute value of the first error value is not equal to 0, adjusting each value in the first weight vector according to a preset step size, and recalculating the error value according to the adjusted first weight vector to obtain a second error value;
[0024] When the absolute value of the second error value is equal to 0, the training is completed and the trained first weight vector is output; when the absolute value of the second error value is not equal to 0, the values of each item in the second weight vector are adjusted according to a preset step size, and the error value is recalculated according to the adjusted second weight vector to obtain a third error value;
[0025] When the absolute value of the third error value is equal to 0, the training is completed and the trained second weight vector is output; when the absolute value of the third error value is not equal to 0, the mean square error of all training samples is calculated;
[0026] The first weight vector and the second weight vector corresponding to the minimum mean square error among the mean square errors of all training samples are output as the trained first weight vector and the trained second weight vector.
[0027] Preferably, the training output value is calculated according to the following formula:
[0028] Y p =ω i *X p *ω j
[0029] Among them, Y p Represents the training output value under mode p, and the pth training sample is called mode p; ω i represents the first weight vector; ω j represents the second weight vector; X p is the input of the node, which is the probability matrix of the power quality in a certain training cycle.
[0030] Preferably, the first error value is calculated according to the following formula:
[0031] E p =sign(V p -Y p )
[0032]
[0033] Where E represents the total error of all training samples, that is, the first error value; n represents the number of samples; E p is the training output value Y under mode p p The network error function of Y p Represents the training output value under mode p; V p Represents the output value of the actual sample; if Vp Greater than Y p , then the sign function takes the value of 1; if V p Equal to Y p , then the sign function takes the value of -1; if V p Less than Y p , then the sign function takes the value of 0.
[0034] Preferably, the calculating the mean square error of all training samples comprises:
[0035] S p =(V p -Y p ) 2
[0036] Among them, S p represents the mean square error function; V p Represents the output value of the actual sample; Y p Represents the training output value under mode p.
[0037] Preferably, obtaining the evaluation result corresponding to the electric energy detection data includes:
[0038] Arrange the probability values corresponding to the indicators in each level of the electric energy detection data into a first matrix in order from low to high;
[0039] Multiplying the first matrix by the trained first weight vector to obtain a second matrix; wherein the second matrix includes evaluation results of various indicators in various levels of the electric energy detection data;
[0040] The second matrix is multiplied by the trained second weight vector to obtain a comprehensive power quality evaluation result corresponding to the power detection data.
[0041] In summary, the implementation of the embodiments of the present invention has the following beneficial effects:
[0042] The comprehensive evaluation method for power quality provided by the present invention first uses the index data of each sub-item of power quality as a sample for statistics and learning, gives a detailed grade classification, and scores these classes, which are used as the objective function of the next step of artificial neural network learning. After that, the artificial neural network is started, and learning is carried out in the cluster environment of Hadoop's distributed massive database. The MapReduce parallel architecture is used to search and optimize in the learning sample space, and the weights therein are continuously modified to approximate the objective function. After learning, the obtained weights are applied to the required comprehensive index evaluation. More practical and feasible comprehensive index evaluation data that conforms to the local power operation environment is given, and the evaluation results exclude the influence of subjective factors. The evaluation results are accurate, unified, and close to practical applications.
[0043] The objectivity of the evaluation process is guaranteed, the adverse effects of human subjective factors are avoided, and the main characteristics of each sub-indicator can be effectively reflected. In the data evaluation stage, the weight vector is introduced to reflect the importance of each single indicator and meet the personalized needs of electricity consumption. At the same time, the weight vector is determined through a neural network to overcome the influence of subjective factors. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.
[0045] Figure 1 The main flow chart of a method for comprehensive power quality assessment in an embodiment of the present invention is shown in FIG.
[0046] Figure 2 Schematic diagram of a neural network in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.
[0048] like Figure 1 FIG. 1 is a schematic diagram of an embodiment of a method for comprehensive evaluation of power quality provided by the present invention. In this embodiment, the method comprises the following steps:
[0049] The power detection data is collected periodically according to a preset sampling period, and the power detection data is graded according to a preset grade classification standard; considering that the collection frequency of power monitoring data is very high, generally two minutes is used as the sampling period, so the power quality monitoring data accumulates over time and is constantly increasing, and a massive storage mechanism is needed to store the power monitoring data. Hadoop is a distributed massive data processing mechanism designed specifically for massive data, and it is ideal to use it to store power quality data. After selecting this storage mechanism, the various indicators of power quality are graded according to national standards and actual needs.
[0050] In a specific embodiment, the data type and value of the electric energy detection data are identified, the data type is matched with various indicators of the electric energy detection data, and the electric energy detection data is classified according to the matching result;
[0051] Each type of power detection data is divided into multiple levels according to the preset level classification standard, and the level items that meet the preset qualified level standards are classified as qualified levels, and the level items that do not meet the preset qualified level standards are classified as unqualified levels. The various indicators of power quality are divided into levels according to national standards and actual needs, as shown in the following table:
[0052]
[0053] Among them, level 8 is the high-quality power quality level, level 7 is the good power quality level, level 6 is the medium power quality level, level 5 is the qualified power quality level, level 4 is the lightly polluted power quality level, level 3 is the moderately polluted power quality level, level 2 is the heavily polluted power quality level, and level 1 is the heavily polluted power quality level. The qualified power quality single indicators are divided into four levels, ranging from 8 to 5. At the same time, the unqualified power quality single indicators are also divided into four levels, ranging from 4 to 1.
[0054] Determine the probability value corresponding to each indicator of each level in the power detection data after level division; that is, the probability distribution of each power quality indicator corresponding to each level, in the total number of sampling points determined, the number of sampling points of each power quality indicator in each level is calculated in turn, then the probability distribution P of the indicator in the kth level k = the number of sampling points of the indicator at the kth level / the total number of sampling points in the entire time period, probability distribution P k It can describe the status of a certain indicator at all levels in the entire time period of the power grid.
[0055] In a specific embodiment, the total number of sampling point values in the process of collecting electric energy detection data is obtained, and the number of sampling point values of each indicator of the electric energy detection data in each level is obtained; the ratio of the number of sampling point values of each indicator of the electric energy detection data in each level to the total number of sampling point values in the collection process is output as the probability value of each indicator of the electric energy detection data being at each level.
[0056] The graded power detection data and the corresponding probability values are input as input quantities into the pre-trained neural network for calculation, and the comprehensive power quality evaluation results corresponding to the power detection data are obtained. In other words, the application of probability statistics methods in the initial data collection and processing process can ensure the objectivity of the evaluation process, avoid the adverse effects of human subjective factors, and effectively reflect the main characteristics of each sub-item index. In the data evaluation stage, the weight vector is introduced to reflect the importance of each single indicator and meet the personalized needs of electricity consumption. However, how to determine the weight vector to overcome the influence of subjective factors needs to be further improved by using the trained neural network. Since the comprehensive evaluation of power quality is a highly complex nonlinear evaluation process, the traditional statistical method will have the problem of how to select the model form and nonlinear optimization method, showing obvious limitations, and the updating of the statistical model will also be very heavy; while artificial neural networks such as BP neural network and RBF neural network can approximate any nonlinear function on a bounded subset through a simple combination of neuron action functions, and the model has adaptive ability, so the determination of weights by artificial neural networks in the comprehensive evaluation of power quality can simplify the processing process, while ensuring accuracy and uniformity and avoiding the influence of subjective factors.
[0057] In a specific embodiment, Figure 2 As shown, the pre-trained neural network includes:
[0058] The first calculation weight intermediate layer includes a first weight vector, wherein the first weight vector includes the weight values corresponding to the electric energy detection data corresponding to the first matrix and all the index items and the corresponding number of index items, which is used to indicate the contribution of each index item to the comprehensive index evaluation, and the contribution of each index is treated equally at the beginning; correspondingly, ω i is the first weight vector A 1×m The values of each item in , where m represents the number of indicators of power quality, is used to describe the contribution of each indicator item to the comprehensive indicator evaluation. Initially, the contribution of each indicator will be treated equally, that is, the initial value of each item is taken as 0.2.
[0059] The second calculation weight intermediate layer includes a second weight vector, wherein the second weight vector includes weight values corresponding to all levels in the electric energy detection data corresponding to the second matrix and the number of level items of each indicator, which is used to indicate the contribution of each level to the comprehensive indicator, and the contribution of each level is treated equally at the beginning; correspondingly, ω j is the second weight vector Q n×1 The values of each item in , where n means that each indicator is divided into n levels, which is used to describe the contribution of each level to the comprehensive indicator. Initially, the contribution of each level is treated equally, that is, the initial value of each item is taken as 0.2.
[0060] Furthermore, the training process of the neural network is as follows:
[0061] First, the power detection data is statistically analyzed according to the preset training cycle to obtain multiple data pairs; wherein the data pairs include a probability distribution matrix and the output value of the actual sample, and the probability distribution matrix represents five indicators of power quality; and each indicator item is a vector composed of multiple values, corresponding to a certain level of the indicator item multiplied by the probability value corresponding to the level; that is, the current training sample set is a series of value pairs obtained by weekly statistics.<X,V> , where X is the probability distribution matrix B m×n Another form of expression is<x1,x2,x3,x4,x5> To represent the five indicators of power quality; each x is a vector composed of eight values, which are equal to a certain level of a power quality indicator multiplied by the probability value corresponding to the level. For example, if the probability of the 8th level of the voltage deviation indicator is 10%, then the item value corresponding to the indicator in x is 80% (ie: 8*10%).
[0062] Secondly, the plurality of data pairs are used as a plurality of training samples to be input into a preset neural network for training to obtain a training output value; further, the training output value is calculated according to the following formula:
[0063] Y p =ω i *X p *ω j
[0064] Among them, Y p represents the training output value under mode p. The pth training sample is called mode p. The pth training sample is specifically<X,V> , X is the probability distribution matrix, V represents the output value; ω i represents the first weight vector; ω j represents the second weight vector; X p The input of the node is the probability matrix of the power quality in a certain training cycle; according to the previous division, the output value takes one of the levels of 8, 7, 6, 5, 4, 3, 2 and 1.
[0065] Again, a first error value is calculated according to the training output value and the output value of the actual sample. When the absolute value of the first error value is not equal to 0, the first weight vector A is adjusted according to a preset step size (in steps of 0.1). 1×mThe various values in (when the output error E of the network does not meet the requirement that the absolute value is equal to 0, it is necessary to adjust the connection weights of the neural network through the error back propagation algorithm), recalculate the error value according to the adjusted first weight vector, and obtain the second error value; that is, since the massive database adopts Hadoop's HBase, the calculation of the entire process can be processed in parallel on the cluster using Hadoop's MapReduce architecture, so the weight ratios of the five indicators' contributions to the comprehensive indicators can be adjusted in turn, and E (the first error value) can be recalculated.
[0066] Specifically, the first error value is calculated according to the following formula (the following error values are also calculated by this formula, such as the second error value and the third error value):
[0067] E p =sign(V p -Y p )
[0068]
[0069] Where E represents the total error of all training samples, that is, the first error value; n represents the number of samples; E p is the training output value Y under mode p p The network error function of Y p Represents the training output value under mode p; V p Represents the output value of the actual sample; if V p Greater than Y p , then the sign function takes the value of 1; if V p Equal to Y p , then the sign function takes the value of -1; if V p Less than Y p , then the sign function takes the value of 0.
[0070] When the absolute value of the second error value is equal to 0, the training is completed and the trained first weight vector is output; when the absolute value of the second error value is not equal to 0, the values in the second weight vector are adjusted according to the preset step size, and the error value is recalculated according to the adjusted second weight vector to obtain the third error value; that is, after the first weight vector A is adjusted 1×m After the values of each item in are calculated, if the output error meets the requirement that the absolute value is equal to 0, the learning ends; otherwise, the second weight vector Q is adjusted appropriately. n×1 For each value in , the adjustment step size is also set to 0.1 and the above process is repeated.
[0071] When the absolute value of the third error value is equal to 0, the training ends and the trained second weight vector is output; when the absolute value of the third error value is not equal to 0, the mean square error of all training samples is calculated; specifically, the mean square error of all training samples is calculated according to the following formula:
[0072] S p =(V p -Y p ) 2
[0073] Among them, S p represents the mean square error function; V p Represents the output value of the actual sample; Y p represents the training output value under representation mode p. Furthermore, the total mean square error of all training samples is Here, n represents the number of samples.
[0074] The first weight vector and the second weight vector corresponding to the minimum mean square error among the mean square errors of all training samples are output as the trained first weight vector and the trained second weight vector. That is, after adjusting the second weight vector Q n×1 After the values of each item in are calculated, if the output error meets the requirement that the absolute value is equal to 0, the learning ends; otherwise, the entire neural network learning ends at the minimum S min and related A 1×m and Q n×1 The values in .
[0075] Further, in an embodiment, obtaining an evaluation result corresponding to the electric energy detection data includes:
[0076] According to the probability values corresponding to the various indicators in each level of the electric energy detection data, the probability values are arranged in order from low to high to form a first matrix, wherein the arrangement order can also be changed according to the situation of the specific embodiment, such as high to low, etc.;
[0077] Multiplying the first matrix by the trained first weight vector to obtain a second matrix; wherein the second matrix includes evaluation results of various indicators in various levels of the electric energy detection data;
[0078] The second matrix is multiplied by the trained second weight vector to obtain a comprehensive power quality evaluation result corresponding to the power detection data.
[0079] That is to say, firstly, various indicators of power quality are graded, and then the above-mentioned probability statistics method is used to evaluate and analyze the various indicators in combination with the classification method, and the probability distribution P of each indicator at each level is obtained. The k-th level probability distribution P of each indicator is k Arrange in order into the first matrix B m×n(m represents the number of power quality indicators, n represents that each indicator is divided into n levels, B ij , which represents the probability distribution of the jth level of the i-th power quality indicator, i∈[1,m],j∈[1,n]. The first matrix B and the corresponding first weight vector A 1×m Multiply them together to get a matrix C containing n data. 1×n The first weight vector A 1×m The elements of are the weight values of a certain indicator of power quality corresponding to B, and the specific values are determined by actual needs. Several data in matrix C are the evaluation results of power quality at each level. Finally, the second matrix C is multiplied by the second weight vector Q n×1 , a unique comprehensive quantitative evaluation result can be obtained.
[0080] Taking voltage deviation as an example, the algorithm relationship of this probability statistics-based evaluation method is as follows:
[0081] (1) The absolute value of the voltage deviation allowable value ≤ 7% is evenly divided into n levels;
[0082] (2) According to the voltage deviation change curve, the time when the voltage deviation is at the kth level is t k , the total time is:
[0083]
[0084] The probabilities of each level are:
[0085] P k =t k / T (k=1,2,…,10)
[0086] (3) Arrange the obtained probabilities at each level into a matrix
[0087] B U =[P1,P2…,P n ]
[0088] (4) B U Multiply by a suitable weight vector A
[0089] C U =A*B U =[C1,C2,...,C n ]
[0090] (5) For C U By applying the weighted average method, we can obtain a unique quantitative indicator, which is the comprehensive evaluation result of power quality:
[0091]
[0092] This method applies probabilistic statistical methods in the initial data collection and processing process, which ensures the objectivity of the evaluation process, avoids the adverse effects of human subjective factors, and can effectively reflect the main characteristics of each sub-indicator. In the data evaluation stage, a weight vector is introduced to reflect the importance of each single indicator, which can meet the personalized needs of electricity consumption.
[0093] In summary, the implementation of the embodiments of the present invention has the following beneficial effects:
[0094] The comprehensive evaluation method for power quality provided by the present invention first uses the index data of each sub-item of power quality as a sample for statistics and learning, gives a detailed grade classification, and scores these classes, which are used as the objective function of the next step of artificial neural network learning. After that, the artificial neural network is started, and learning is carried out in the cluster environment of Hadoop's distributed massive database. The MapReduce parallel architecture is used to search and optimize in the learning sample space, and the weights therein are continuously modified to approximate the objective function. After learning, the obtained weights are applied to the required comprehensive index evaluation. More practical and feasible comprehensive index evaluation data that conforms to the local power operation environment is given, and the evaluation results exclude the influence of subjective factors. The evaluation results are accurate, unified, and close to practical applications.
[0095] The objectivity of the evaluation process is guaranteed, the adverse effects of human subjective factors are avoided, and the main characteristics of each sub-indicator can be effectively reflected. In the data evaluation stage, the weight vector is introduced to reflect the importance of each single indicator and meet the personalized needs of electricity consumption. At the same time, the weight vector is determined through a neural network to overcome the influence of subjective factors.
[0096] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. A comprehensive power quality assessment method, characterized in that: include: Periodically collecting electric energy detection data according to a preset sampling period, and classifying the electric energy detection data according to a preset class classification standard; Determine the probability value corresponding to each indicator of each level in the electric energy detection data after level division; The graded electric energy detection data and the corresponding probability values are input into a pre-trained neural network for calculation to obtain a comprehensive evaluation result of the electric energy quality corresponding to the electric energy detection data; Wherein, the pre-trained neural network includes: The first calculation weight intermediate layer includes a first weight vector, wherein the first weight vector includes the weight values corresponding to the electric energy detection data corresponding to the first matrix and all the index items and the corresponding number of index items, and is used to indicate the contribution of each index item to the comprehensive index evaluation, and initially treats the contribution of each index equally; The second calculation weight intermediate layer includes a second weight vector, wherein the second weight vector includes weight values corresponding to all levels in the electric energy detection data corresponding to the second matrix and the number of level items of each indicator, which is used to indicate the contribution of each level to the comprehensive indicator, and the contribution of each level is treated equally at the beginning; And, the pre-trained neural network is trained by the following steps: The electric energy detection data is counted according to a preset training cycle to obtain a plurality of data pairs; wherein the data pairs include a probability distribution matrix and an output value of an actual sample, the probability distribution matrix represents five index items of electric energy quality; and each index item is a vector composed of a plurality of values, corresponding to a certain level number of the index item multiplied by a probability value corresponding to the level; Input the plurality of data pairs as a plurality of training samples into a preset neural network for training to obtain training output values; Calculating a first error value according to the training output value and the output value of the actual sample, when the absolute value of the first error value is not equal to 0, adjusting each value in the first weight vector according to a preset step size, and recalculating the error value according to the adjusted first weight vector to obtain a second error value; When the absolute value of the second error value is equal to 0, the training is completed and the trained first weight vector is output; when the absolute value of the second error value is not equal to 0, the values of each item in the second weight vector are adjusted according to a preset step size, and the error value is recalculated according to the adjusted second weight vector to obtain a third error value; When the absolute value of the third error value is equal to 0, the training is completed and the trained second weight vector is output; when the absolute value of the third error value is not equal to 0, the mean square error of all training samples is calculated; Outputting the first weight vector and the second weight vector corresponding to the minimum mean square error among the mean square errors of all training samples as the trained first weight vector and the trained second weight vector; The training output value is calculated according to the following formula: in, Represents the training output value under mode p, and the pth training sample is called mode p; represents the first weight vector; represents a second weight vector; is the input of the node, which is the probability matrix of the power quality in a certain training cycle.
2. The method according to claim 1, characterized in that The various indicators of the electric energy detection data include at least voltage deviation, voltage flicker, frequency deviation, three-phase imbalance and total harmonic distortion rate.
3. The method according to claim 2, characterized in that The step of classifying the electric energy detection data according to a preset class classification standard includes: Identify the data type and value of the electric energy detection data, match the data type with various indicators of the electric energy detection data, and classify the electric energy detection data according to the matching result; Each type of electric energy detection data is divided into multiple levels according to the preset level classification standard, the level items that meet the preset qualified level standard are classified as qualified level, and the level items that do not meet the preset qualified level standard are classified as unqualified level.
4. The method according to claim 3, characterized in that The probability values corresponding to the various indicators in each level of the electric energy detection data after the level division are determined include: Obtaining the total number of sampling point values in the process of collecting electric energy detection data, and obtaining the number of sampling point values of each indicator of the electric energy detection data in each level; The ratio of the number of sampling point values of each indicator of the electric energy detection data in each level to the total number of sampling point values in the collection process is output as the probability value of each indicator of the electric energy detection data being in each level.
5. The method according to claim 4, characterized in that The first error value is calculated according to the following formula: in, represents the total error of all training samples, that is, the first error value; n represents the number of samples; is the training output value under mode p The network error function of represents the training output value under mode p; Represents the output value of the actual sample; if Greater than , then the sign function takes the value of 1; if equal , then the sign function takes the value of -1; if Less than , then the sign function takes the value of 0.
6. The method according to claim 5, characterized in that The calculation of the mean square error of all training samples includes: in, represents the mean square error function; Represents the output value of the actual sample; Represents the training output value under mode p.
7. The method according to claim 6, characterized in that The obtaining of the evaluation result corresponding to the electric energy detection data comprises: Arrange the probability values corresponding to the indicators in each level of the electric energy detection data into a first matrix in order from low to high; Multiplying the first matrix by the trained first weight vector to obtain a second matrix; wherein the second matrix includes evaluation results of various indicators in various levels of the electric energy detection data; The second matrix is multiplied by the trained second weight vector to obtain a comprehensive power quality evaluation result corresponding to the power detection data.
