Method and system for judging operation fault of power load control terminal, electronic equipment and medium
By constructing a collection of operation fault characteristics of negative control terminals in the power load management system, using particle swarm algorithm and neural network model, combined with cluster analysis, the problem of low efficiency in fault judgment of negative control terminals is solved, and faster and more accurate fault diagnosis is achieved. diagnosis.
Patent Information
- Application Number
- CN202410686195.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-08-30
AI Technical Summary
The fault judgment method of negative control terminals in the existing power load management system is complex and time-consuming, resulting in low diagnosis efficiency and failure to effectively eliminate redundant features among multiple features, affecting the accuracy and efficiency of fault judgment.
By counting the operating parameters, typical fault values and operating standard values of the negative control terminal, a joint characteristic index is constructed, combined with the particle swarm algorithm and BP neural network model, to optimally obtain the best feature set of operating faults, and use cluster analysis method to determine the fault. .
It effectively reduces the data feature scale and time required for fault judgment, improves the efficiency of negative control terminal operation fault judgment, and reduces the complexity and time-consuming of the judgment process.
Smart Images

Figure CN118569835A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of electric power engineering, and relates to an operation fault judgment method, system, electronic equipment and medium. Background Art
[0002] The power load management system is an important technology to promote the construction of new power systems. The load control terminal is an important component of the power load management system. The load control terminal can reduce the potential risks of electricity consumption by monitoring social electricity consumption. With the continuous increase in social electricity demand, the fault judgment of the load control terminal during operation is a difficult problem that needs to be solved urgently. In the current power load management system, there are a large number of load control terminals, and the amount of data is usually large. In the operation fault diagnosis method, multiple operating state quantities collected by the terminal are usually used to form fault diagnosis features, and then the pattern recognition threshold judgment, hierarchical clustering and intelligent training classification and other technical judgment model methods are used to realize fault judgment. However, the existing technical methods do not consider the elimination of redundant features in multiple features, which makes the subsequent judgment model training iteration process complicated and time-consuming, reduces the efficiency of diagnosis and classification, and leads to time-consuming and low efficiency of fault judgment during the operation of the load control terminal. Summary of the invention
[0003] In order to solve the problem of time-consuming and low efficiency in fault judgment during operation of the load control terminal of the power load management system described in the background technology, the present invention proposes a power load control terminal operation fault judgment method, system, electronic equipment and medium.
[0004] The method of the present invention comprises the following steps:
[0005] Based on the past operation data of the power load management system in a certain area, the operation parameters of the load control terminal, the typical fault values of the operation parameters and the standard operation values of the operation parameters are statistically obtained;
[0006] According to the operation parameters of the load control terminal, the typical fault values of the operation parameters and the operation standard values of the operation parameters, the joint characteristic index is calculated, and the initial fault characteristic set of the load control terminal operation is constructed by using the joint characteristic index;
[0007] Based on the particle swarm algorithm, a particle swarm set corresponding to the initial fault feature set is constructed. The fault evaluation index of each population in the particle swarm set is calculated based on the BP neural network model, and the population fitness and the population optimal fitness are updated. According to the updated population fitness and the population optimal fitness and the end condition of the particle swarm algorithm, the optimal feature set of the running fault is obtained;
[0008] According to the optimal feature set of operation faults, the cluster analysis method is used to judge the operation faults of the load control terminal to be analyzed.
[0009] Furthermore, the operating parameters of the load control terminal, the typical fault values of the operating parameters and the operating standard values of the operating parameters are as follows:
[0010] Assume that there are K load control terminals in a regional power load management system, a≤K≤b, the number of sampling times in a day is Q, c≤Q≤d, obtain the operation data sampled by load control terminal i in a day, 1≤i≤K, and count the N operation parameters of the load control terminal in represents the nth operating parameter of load control terminal i, Indicates the qth sampling value of the nth operating parameter of the load control terminal i; obtains the fault typical value of the load control terminal operating parameter in Indicates the typical fault values of N operating parameters of the load control terminal, Indicates the fault typical value of the nth operating parameter, n = 1, 2, ..., N; obtains the operating standard value of the load control terminal operating parameter in Indicates the standard operating values of N operating parameters of the load control terminal. Represents the operating standard value of the nth operating parameter, n=1,2,...,N.
[0011] Furthermore, the method for constructing the initial fault feature set of the load control terminal operation is:
[0012] For the N operating parameters of load control terminal i Calculate the distance between the nth operating parameter of load control terminal i and its fault typical value
[0013]
[0014] Calculate the distance between the nth operating parameter of load control terminal i and its operating standard value
[0015]
[0016] Then calculate the joint characteristic index of the nth operating parameter of load control terminal i
[0017]
[0018] Finally is an element of the initial fault feature set FSet, and the initial fault feature set FSet during the operation of the load control terminal is obtained, where the initial fault feature set FSet contains N feature elements.
[0019] Furthermore, the method for obtaining the optimal feature set of the running fault is:
[0020] First, construct the particle swarm set corresponding to the initial fault feature set. Suppose the number of populations of the particle swarm algorithm is G, the number of particles in each population is the number of characteristic elements M contained in the initial fault feature set FSet, the number of iterations is Z, and the maximum and minimum values of the initial weights are w respectively. max 、w min ; Define the mth particle of the gth population as The particle set of the g-th population in the z-th iteration is defined as Where g=1,2,…,G,m=1,2,…,M,z=1,2,…,Z;In the zth iteration, the mth particle of the gth population is randomly assigned a value. All particles of the g-th population constitute the particle set of population g in the z-th iteration Define the set of all populations in the zth iteration as the particle swarm set R z , then all the above populations constitute the particle swarm set of the zth iteration
[0021] Then, a BP neural network model based on the optimal fault fit is constructed, and the actual fault evaluation index of the load control terminal i is defined as c i , Define a certain type of fault evaluation index of load-controlled terminal i in the gth population as For the g-th population, the feature corresponding to the particle value of 1 is used as the input variable in the BP neural network model, and the fault evaluation index of a certain type of negative control terminal i is obtained according to the BP neural network model training. According to the formula Calculate the fault fit θ as the prediction error of the training, set δ as the iterative convergence threshold, and end the training when θ≤δ. Obtain the fault evaluation index of a certain type of negative control terminal corresponding to all populations in turn. Enter to update the population fitness and the population optimal fitness; if not satisfied, continue training;
[0022] Assume that the current number of iterations of the particle swarm algorithm is the zth time, and define the average fault evaluation index deviation of the mth population as ζ m , define the optimal fitness of the population in the zth iteration as ζ f ; According to the fault evaluation index, calculate the average fault evaluation index deviation ζ of the mth population m , the formula is:
[0023]
[0024] The average fault evaluation index deviation ζ of the mth population mAs the fitness of the mth population, the value with the smallest average fault evaluation index deviation is selected as the optimal fitness ζ of the population in the zth iteration f , update the population fitness and the optimal population fitness;
[0025] Assume that the current number of iterations of the particle swarm algorithm is the zth time. If the algorithm termination condition z>Z is not met, then update the number of iterations z=z+1 and calculate the inertia weight w of the particle swarm. z , and then according to the inertia weight w of the particle swarm z Update all particles in the population and integerize them, return to calculate again to obtain the average fault evaluation index of each particle population of the negative control terminal; the inertia weight w of the particle population z The calculation formula is:
[0026]
[0027] Among them, w max and w min are the maximum and minimum initial weights, respectively, f is the optimal fitness of the population in the zth iteration, ζ avg is the average value of the average fault evaluation index deviation of all populations in the zth iteration, ζ min is the minimum value of the average fault evaluation index deviation of all populations in the zth iteration;
[0028] If the algorithm end condition z>Z is met, the population corresponding to the best fitness of the population in the zth iteration is taken as the best population, and the features corresponding to the particle value of 1 in the population are selected as the best feature set FSet_best, and then go to the next step to judge the operation fault.
[0029] The present invention also proposes an electric load control terminal operation fault judgment system, which includes a parameter acquisition module, an initial fault feature set construction module, an operation fault optimal feature set acquisition module and an operation fault judgment module.
[0030] The parameter acquisition module is used to statistically acquire the operating parameters of the load control terminal, the typical fault values of the operating parameters, and the operating standard values of the operating parameters based on the past operating data of the power load management system in a certain area.
[0031] The initial fault feature set construction module is used to calculate the joint feature index based on the operating parameters of the load control terminal, the typical fault values of the operating parameters and the operating standard values of the operating parameters, and use the joint feature index to construct the initial fault feature set of the load control terminal operation.
[0032] The operating fault optimal feature set acquisition module is used to construct a particle swarm set corresponding to the initial fault feature set based on the particle swarm algorithm, calculate the fault evaluation index of each population in the particle swarm set based on the BP neural network model, and update the population fitness and the population optimal fitness, and obtain the operating fault optimal feature set based on the updated population fitness and the population optimal fitness and the end condition of the particle swarm algorithm.
[0033] The operation fault judgment module is used to judge the operation fault of the load control terminal to be analyzed by using a cluster analysis method according to the optimal feature set of the operation fault.
[0034] The present invention also proposes an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor implements the above-mentioned method for judging the operation fault of the electric power load control terminal by executing the computer instructions.
[0035] The present invention also proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for determining an operation fault of a power load control terminal is implemented.
[0036] Compared with the prior art, the present invention obtains the operating parameters of the load-controlled terminal, the typical fault values of the operating parameters, and the standard operating values of the operating parameters based on the past operating data of the power load management system, constructs the initial fault feature set of the load-controlled terminal operation based on the joint feature index, obtains the optimal feature set of the load-controlled terminal operation fault based on the hybrid optimization of the particle swarm algorithm and the BP neural network model, and uses the cluster analysis method to realize the operation fault judgment of the load-controlled terminal according to the optimal feature set of the operation fault. The present invention selects the optimal feature set through the particle swarm algorithm and the neural network model operation, effectively reduces the data feature scale required for fault judgment during the operation of the load-controlled terminal, effectively reduces the data and features required for fault judgment during the operation of the load-controlled terminal, reduces the time required for fault judgment during the operation of the load-controlled terminal, and improves the efficiency of fault judgment during the operation of the load-controlled terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The figure is a flow chart of the method of the present invention.
[0038] Figure 2 It is a system architecture diagram of the present invention. DETAILED DESCRIPTION
[0039] The implementation of the present invention is described in detail below in conjunction with the accompanying drawings, but they do not constitute a limitation of the present invention, but are only examples. At the same time, through the description, the advantages of the present invention will be more clearly understood. All variations that can be directly derived or associated with the content disclosed by ordinary technicians in the field should be considered as the protection scope of the present invention. Other parts not described in detail in the embodiments are all prior art.
[0040] Example 1
[0041] The present invention proposes a method for judging the operation fault of a power load control terminal, the process is as follows: Figure 1 As shown, the specific steps are described as follows.
[0042] Based on the past operation data of the power load management system in a certain area, the operation parameters of the load control terminal, the typical fault values of the operation parameters and the operation standard values of the operation parameters are statistically obtained.
[0043] Specifically, suppose there are K (a≤K≤b) load control terminals in a regional power load management system, the number of sampling times in a day is Q (c≤Q≤d), obtain the operating data of load control terminal i (1≤i≤K) sampling in a day, and count the N operating parameters of the load control terminal in represents the nth operating parameter of load control terminal i, Indicates the qth sampling value of the nth operating parameter of the load control terminal i; obtains the fault typical value of the load control terminal operating parameter in Indicates the typical fault values of N operating parameters of the load control terminal, Indicates the fault typical value of the nth operating parameter, n = 1, 2, ..., N; obtains the operating standard value of the load control terminal operating parameter in Indicates the standard operating values of N operating parameters of the load control terminal. Represents the operating standard value of the nth operating parameter, n=1,2,...,N.
[0044] Generally, it is assumed that a certain area contains K (50≤K≤500) load-controlled terminals and the number of sampling times is Q (2≤Q≤8).
[0045] Then, according to the operating parameters of the load control terminal, the typical fault values of the operating parameters and the operating standard values of the operating parameters, the joint characteristic index is calculated, and the initial fault characteristic set of the load control terminal operation is constructed using the joint characteristic index.
[0046] Specifically, for the N operating parameters of load control terminal i Calculate the distance between the nth operating parameter of load control terminal i and its fault typical value
[0047]
[0048] Calculate the distance between the nth operating parameter of load control terminal i and its operating standard value
[0049]
[0050] Then calculate the joint characteristic index of the nth operating parameter of load control terminal i
[0051]
[0052] Finally is an element of the initial fault feature set FSet, and the initial fault feature set FSet during the operation of the load control terminal is obtained, where the initial fault feature set FSet contains N feature elements.
[0053] Next, based on the particle swarm algorithm, a particle swarm set corresponding to the initial fault feature set is constructed, the fault evaluation index of each population in the particle swarm set is calculated based on the BP neural network model, and the population fitness and the population optimal fitness are updated. According to the updated population fitness and the population optimal fitness and the end condition of the particle swarm algorithm, the optimal feature set of the operating fault is obtained.
[0054] Specifically, we first construct a particle swarm set corresponding to the initial fault feature set. Let the number of populations of the particle swarm algorithm be G, the number of particles in each population be the number of characteristic elements M contained in the initial fault feature set FSet, the number of iterations be Z, and the maximum and minimum values of the initial weights be w respectively. max 、w min ; Define the mth (m=1,2,…,M) particle of the gth (g=1,2,…,G)th population as The particle set of the g(g=1,2,…,g)th population in the z(z=1,2,…,Z)th iteration is defined as In the zth iteration, the mth particle of the gth population is randomly assigned a value. All particles of the g-th population constitute the particle set of population g in the z-th iteration Define the set of all populations in the zth iteration as the particle swarm set R z , then all the above populations constitute the particle swarm set of the zth iteration
[0055] Then, a BP neural network model based on the optimal fault fit is constructed, and the actual fault evaluation index of the load control terminal i is defined as c i , Define a certain type of fault evaluation index of load-controlled terminal i in the gth population as For the g-th population, the feature corresponding to the particle value of 1 is used as the input variable in the BP neural network model, and the fault evaluation index of a certain type of negative control terminal i is obtained according to the BP neural network model training. According to the formula Calculate the fault fit degree θ as the prediction error of the training, set δ as the iterative convergence threshold, and the value range of δ is 0.01-0.001; when θ≤δ is satisfied, the training ends, and the fault evaluation index of a certain type of negative control terminal corresponding to all populations is obtained in turn Enter to update the population fitness and the population optimal fitness; if not satisfied, continue training;
[0056] Assume that the current number of iterations of the particle swarm algorithm is the zth time, and define the average fault evaluation index deviation of the mth population as ζ m , define the optimal fitness of the population in the zth iteration as ζ f ; According to the fault evaluation index, calculate the average fault evaluation index deviation ζ of the mth population m , the formula is:
[0057]
[0058] The average fault evaluation index deviation ζ of the mth population m As the fitness of the mth population, the value with the smallest average fault evaluation index deviation is selected as the optimal fitness ζ of the population in the zth iteration f , update the population fitness and the optimal population fitness;
[0059] Assume that the current number of iterations of the particle swarm algorithm is the zth time. If the algorithm termination condition z>Z is not met, then update the number of iterations z=z+1 and calculate the inertia weight w of the particle swarm. z , and then according to the inertia weight w of the particle swarm z Update all particles in the population and integerize them, return to calculate again to obtain the average fault evaluation index of each particle population of the negative control terminal; the inertia weight w of the particle population z The calculation formula is:
[0060]
[0061] Among them, w max and w min are the maximum and minimum initial weights, respectively, f is the optimal fitness of the population in the zth iteration, ζ avg is the average value of the average fault evaluation index deviation of all populations in the zth iteration, ζ min is the minimum value of the average fault evaluation index deviation of all populations in the zth iteration;
[0062] If the algorithm end condition z>Z is met, the population corresponding to the best fitness of the population in the zth iteration is taken as the best population, and the features corresponding to the particle value of 1 in the population are selected as the best feature set FSet_best, and then go to the next step to judge the operation fault.
[0063] Finally, according to the optimal feature set of operation faults, the cluster analysis method is used to judge the operation faults of the load control terminal to be analyzed.
[0064] Example 2
[0065] The present invention also proposes a power load control terminal operation fault judgment system, the architecture diagram of which is as follows: Figure 2 As shown, it consists of a parameter acquisition module, an initial fault feature set construction module, an operation fault optimal feature set acquisition module and an operation fault judgment module.
[0066] The parameter acquisition module is used to obtain the operating parameters of the load control terminal, the typical fault values of the operating parameters, and the operating standard values of the operating parameters based on the past operating data of the power load management system in a certain area.
[0067] Specifically, suppose there are K (a≤K≤b) load control terminals in a regional power load management system, the number of sampling times in a day is Q (c≤Q≤d), obtain the operating data of load control terminal i (1≤i≤K) sampling in a day, and count the N operating parameters of the load control terminal in represents the nth operating parameter of load control terminal i, Indicates the qth sampling value of the nth operating parameter of the load control terminal i; obtains the fault typical value of the load control terminal operating parameter in Indicates the typical fault values of N operating parameters of the load control terminal, Indicates the fault typical value of the nth operating parameter, n = 1, 2, ..., N; obtains the operating standard value of the load control terminal operating parameter in Indicates the standard operating values of N operating parameters of the load control terminal. Represents the operating standard value of the nth operating parameter, n=1,2,...,N.
[0068] Generally, it is assumed that a certain area contains K (50≤K≤500) load-controlled terminals and the number of sampling times is Q (2≤Q≤8).
[0069] The initial fault feature set construction module is used to calculate the joint feature index based on the operating parameters of the load control terminal, the typical fault values of the operating parameters and the operating standard values of the operating parameters, and use the joint feature index to construct the initial fault feature set of the load control terminal operation.
[0070] Specifically, for the N operating parameters of load control terminal i Calculate the distance between the nth operating parameter of load control terminal i and its fault typical value
[0071]
[0072] Calculate the distance between the nth operating parameter of load control terminal i and its operating standard value
[0073]
[0074] Then calculate the joint characteristic index of the nth operating parameter of load control terminal i
[0075]
[0076] Finally is an element of the initial fault feature set FSet, and the initial fault feature set FSet during the operation of the load control terminal is obtained, where the initial fault feature set FSet contains N feature elements.
[0077] The module for obtaining the best feature set for operation faults is used to construct a particle swarm set corresponding to the initial fault feature set based on the particle swarm algorithm, calculate the fault evaluation index of each population in the particle swarm set based on the BP neural network model, and update the population fitness and the population optimal fitness, and obtain the best feature set for operation faults based on the updated population fitness and the population optimal fitness and the end condition of the particle swarm algorithm.
[0078] Specifically, we first construct a particle swarm set corresponding to the initial fault feature set. Let the number of populations of the particle swarm algorithm be G, the number of particles in each population be the number of characteristic elements M contained in the initial fault feature set FSet, the number of iterations be Z, and the maximum and minimum values of the initial weights be w respectively. max 、w min ; Define the mth (m=1,2,…,M) particle of the gth (g=1,2,…,G)th population as The particle set of the g(g=1,2,…,g)th population in the z(z=1,2,…,Z)th iteration is defined as In the zth iteration, the mth particle of the gth population is randomly assigned a value. All particles of the g-th population constitute the particle set of population g in the z-th iteration Define the set of all populations in the zth iteration as the particle swarm set R z , then all the above populations constitute the particle swarm set of the zth iteration
[0079] Then, a BP neural network model based on the optimal fault fit is constructed, and the actual fault evaluation index of the load control terminal i is defined as c i , Define a certain type of fault evaluation index of load-controlled terminal i in the gth population as For the g-th population, the feature corresponding to the particle value of 1 is used as the input variable in the BP neural network model, and the fault evaluation index of a certain type of negative control terminal i is obtained according to the BP neural network model training. According to the formula Calculate the fault fit degree θ as the prediction error of the training, set δ as the iterative convergence threshold, and the value range of δ is 0.01-0.001; when θ≤δ is satisfied, the training ends, and the fault evaluation index of a certain type of negative control terminal corresponding to all populations is obtained in turn Enter to update the population fitness and the population optimal fitness; if not satisfied, continue training;
[0080] Assume that the current number of iterations of the particle swarm algorithm is the zth time, and define the average fault evaluation index deviation of the mth population as ζ m , define the optimal fitness of the population in the zth iteration as ζ f ; According to the fault evaluation index, calculate the average fault evaluation index deviation ζ of the mth population m , the formula is:
[0081]
[0082] The average fault evaluation index deviation ζ of the mth population m As the fitness of the mth population, the value with the smallest average fault evaluation index deviation is selected as the optimal fitness ζ of the population in the zth iteration f , update the population fitness and the optimal population fitness;
[0083] Assume that the current number of iterations of the particle swarm algorithm is the zth time. If the algorithm termination condition z>Z is not met, then update the number of iterations z=z+1 and calculate the inertia weight w of the particle swarm. z , and then according to the inertia weight w of the particle swarm z Update all particles in the population and integerize them, return to calculate again to obtain the average fault evaluation index of each particle population of the negative control terminal; the inertia weight w of the particle population z The calculation formula is:
[0084]
[0085] Among them, w max and w min are the maximum and minimum initial weights, respectively, fis the optimal fitness of the population in the zth iteration, ζ avg is the average value of the average fault evaluation index deviation of all populations in the zth iteration, ζ min is the minimum value of the average fault evaluation index deviation of all populations in the zth iteration;
[0086] If the algorithm termination condition z>Z is met, the population corresponding to the best fitness of the population in the zth iteration is taken as the best population, and the features corresponding to the particle value of 1 in the population are selected as the best feature set FSet_best, and then the next module is transferred to perform operation fault judgment.
[0087] The operation fault judgment module is used to judge the operation fault of the load control terminal to be analyzed by using a cluster analysis method based on the best feature set of the operation fault.
[0088] Example 3
[0089] The present invention also proposes an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor implements the above-mentioned method for judging the operation fault of the electric power load control terminal by executing the computer instructions.
[0090] Example 4
[0091] The present invention also proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned method for determining an operation fault of a power load control terminal is implemented.
[0092] Example 5
[0093] The present invention is used to judge the operation failure of the load control terminal of a power load management system in a certain area, and the specific operation is as follows.
[0094] Based on the past operation data of the power load management system in a certain area, the operation parameters of the load control terminal, the typical fault values of the operation parameters and the operation standard values of the operation parameters are statistically obtained.
[0095] Assume that a certain area contains 200 load control terminals, the sampling times are 4, obtain the data sampled by load control terminal i (1≤i≤200) within one day, and count the parameters of the load control terminal: data collection success rate Completeness rate of collected data Communication unit power spectrum density Communication unit command response time Energy metering combined error Remote fee control success rate Obtain typical fault values of load control terminal operating parameters Get the standard operating values of the load control terminal operating parameters
[0096] Then, according to the operating parameters of the load control terminal, the typical fault values of the operating parameters and the operating standard values of the operating parameters, the joint characteristic index is calculated to construct the initial fault characteristic set of the load control terminal operation.
[0097] Specifically, for the six parameters of load control terminal i According to the formula Calculate the distance between each parameter and its fault typical value, where It represents the distance between the nth parameter of load control terminal i and its typical fault value; according to the formula The distance between each parameter and its running standard value is calculated, where It represents the distance between the nth parameter of load control terminal i and its operating standard value; according to the formula Calculate the joint characteristic index of the parameters, where represents the joint characteristics of the nth parameter of negative control terminal i, and finally is an element of the initial fault feature set FSet, and the initial feature set FSet of the online faults collected during the operation of the load control terminal is obtained. The initial fault feature set FSet contains 6 feature elements.
[0098] Next, based on the particle swarm algorithm, a particle swarm set corresponding to the initial fault feature set is constructed. The fault evaluation index of each particle swarm population of the load-controlled terminal is calculated based on the BP neural network model, and the population fitness and the population optimal fitness are updated. According to the updated population fitness and the population optimal fitness and the end condition of the particle swarm algorithm, the optimal feature set of the operating fault is obtained.
[0099] Construct a particle swarm set corresponding to the initial fault feature set. Suppose the population size of the particle swarm algorithm is G = 50, the number of particles in each population is the number of elements in the initial power consumption feature set M = 6, the number of iterations is Z = 100, and the maximum and minimum values of the initial weights are w max =0.95, w min =0.45; define the mth (m=1,2,…,M) particle of the gth (g=1,2,…,G)th population as The particle set of the gth (g=1,2,…,G)th population in the zth (z=1,2,…,Q)th iteration is defined as In the zth iteration, the mth particle of the gth population is randomly assigned a value. All particles of the gth population constitute the particle set of population n in the zth iteration Define the set of all populations in the zth iteration as the particle swarm set R z, then all the above populations constitute the particle swarm set of the zth iteration
[0100] Construct a BP neural network model based on the optimal fault fit, and define the actual acquisition online fault evaluation index of load control terminal i as c i , Define the collection online fault evaluation index of load control terminal i in the gth population as For the g-th population, the feature corresponding to the particle value of 1 is used as the input variable in the BP neural network model, and the acquisition online fault evaluation index of the load control terminal i is obtained according to the BP neural network model training. According to the formula Calculate the fault fit degree θ as the prediction error of the training. When θ≤δ is satisfied, the training ends. The collection and online fault evaluation index of the corresponding negative control terminal of all populations is obtained in turn. Go to S3.3; if not satisfied, continue training.
[0101] Assume that the current number of iterations of the particle swarm algorithm is the zth time, and define the average fault evaluation index deviation of the mth population as ζ m , define the optimal fitness of the population in the zth iteration as ζ f According to the formula Calculate the average fault evaluation index deviation ζ of the mth population m As its fitness, the one with the smallest average fault evaluation index deviation is selected as the optimal fitness ζ of the population in the zth iteration f .
[0102] Assume that the current number of iterations of the particle swarm algorithm is the zth time. If the algorithm termination condition z>100 is met, the population corresponding to the best fitness of the population in the zth iteration is taken as the best population, and the feature corresponding to the particle value of 1 in the population is the selected best feature set FSet_best, and go to the next step to judge the operation fault; if the algorithm termination condition z>100 is not met, update the number of iterations z=z+1, according to the formula ζ f <ζ avg Calculate the inertia weight of the particle swarm for the zth iteration, then update the particles in all populations and integerize them, return and calculate again to obtain the average fault evaluation index of each particle swarm population of the negative control terminal.
[0103] Finally, for the load control terminal i to be analyzed, the cluster analysis method is used to judge the operation failure of the load control terminal according to the optimal feature set of the operation failure.
[0104] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code. The scheme in the embodiments of the present application can be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.
[0105] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0106] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0107] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0108] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0109] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for judging an operation fault of a power load control terminal, characterized in that: The following steps are involved: Based on the past operation data of the power load management system in a certain area, the operation parameters of the load control terminal, the typical fault values of the operation parameters and the standard operation values of the operation parameters are statistically obtained; According to the operation parameters of the load control terminal, the typical fault values of the operation parameters and the operation standard values of the operation parameters, the joint characteristic index is calculated, and the initial fault characteristic set of the load control terminal operation is constructed by using the joint characteristic index; Based on the particle swarm algorithm, a particle swarm set corresponding to the initial fault feature set is constructed. The fault evaluation index of each population in the particle swarm set is calculated based on the BP neural network model, and the population fitness and the population optimal fitness are updated. According to the updated population fitness and the population optimal fitness and the end condition of the particle swarm algorithm, the optimal feature set of the running fault is obtained; According to the optimal feature set of operation faults, the cluster analysis method is used to judge the operation faults of the load control terminal to be analyzed.
2. According to the method for judging the operation fault of the electric load control terminal according to claim 1, it is characterized in that: The operating parameters of the load control terminal, typical fault values of the operating parameters, and standard operating values of the operating parameters are as follows: Assume that there are K load control terminals in a regional power load management system, a≤K≤b, the number of sampling times in a day is Q, c≤Q≤d, obtain the operation data sampled by load control terminal i in a day, 1≤i≤K, and count the N operation parameters of the load control terminal in represents the nth operating parameter of load control terminal i, Indicates the qth sampling value of the nth operating parameter of the load control terminal i; obtains the fault typical value of the load control terminal operating parameter in Indicates the typical fault values of N operating parameters of the load control terminal, Indicates the fault typical value of the nth operating parameter, n = 1, 2, ..., N; obtains the operating standard value of the load control terminal operating parameter in Indicates the standard operating values of N operating parameters of the load control terminal. Represents the operating standard value of the nth operating parameter, n=1,2,...,N.
3. The method for judging the operation fault of the electric load control terminal according to claim 2 is characterized in that: The method for constructing the initial fault feature set of the load control terminal operation is: For the N operating parameters of load control terminal i Calculate the distance between the nth operating parameter of load control terminal i and its fault typical value Calculate the distance between the nth operating parameter of load control terminal i and its operating standard value Then calculate the joint characteristic index of the nth operating parameter of load control terminal i Finally is an element of the initial fault feature set FSet, and the initial fault feature set FSet during the operation of the load control terminal is obtained, where the initial fault feature set FSet contains N feature elements.
4. The method for judging the operation fault of the electric load control terminal according to claim 3 is characterized in that: The method for obtaining the optimal feature set of the running fault is: First, construct the particle swarm set corresponding to the initial fault feature set. Suppose the number of populations of the particle swarm algorithm is G, the number of particles in each population is the number of characteristic elements M contained in the initial fault feature set FSet, the number of iterations is Z, and the maximum and minimum values of the initial weights are w respectively. max 、w min ; Define the mth particle of the gth population as The particle set of the g-th population in the z-th iteration is defined as Where g=1,2,…,G,m=1,2,…,M,z=1,2,…,Z;In the zth iteration, the mth particle of the gth population is randomly assigned a value. All particles of the g-th population constitute the particle set of population g in the z-th iteration Define the set of all populations in the zth iteration as the particle swarm set R z , then all the above populations constitute the particle swarm set of the zth iteration Then, a BP neural network model based on the optimal fault fit is constructed, and the actual fault evaluation index of the load control terminal i is defined as c i , Define a certain type of fault evaluation index of load-controlled terminal i in the gth population as For the g-th population, the feature corresponding to the particle value of 1 is used as the input variable in the BP neural network model, and the fault evaluation index of a certain type of negative control terminal i is obtained according to the BP neural network model training. According to the formula Calculate the fault fit θ as the prediction error of the training, set δ as the iterative convergence threshold, and end the training when θ≤δ. Obtain the fault evaluation index of a certain type of negative control terminal corresponding to all populations in turn. Enter to update the population fitness and the population optimal fitness; if not satisfied, continue training; Assume that the current number of iterations of the particle swarm algorithm is the zth time, and define the average fault evaluation index deviation of the mth population as ζ m , define the optimal fitness of the population in the zth iteration as ζ f ; According to the fault evaluation index, calculate the average fault evaluation index deviation ζ of the mth population m , the formula is: The average fault evaluation index deviation ζ of the mth population m As the fitness of the mth population, the value with the smallest average fault evaluation index deviation is selected as the optimal fitness ζ of the population in the zth iteration f , update the population fitness and the optimal population fitness; Assume that the current number of iterations of the particle swarm algorithm is the zth time. If the algorithm termination condition z>Z is not met, then update the number of iterations z=z+1 and calculate the inertia weight w of the particle swarm. z , and then according to the inertia weight w of the particle swarm z Update all particles in the population and integerize them, return and calculate again to obtain the average fault evaluation index of each particle population of the negative control terminal; the inertia weight w of the particle population z The calculation formula is: Among them, w max and w min are the maximum and minimum initial weights, respectively, f is the optimal fitness of the population in the zth iteration, ζ avg is the average value of the average fault evaluation index deviation of all populations in the zth iteration, ζ min is the minimum value of the average fault evaluation index deviation of all populations in the zth iteration; If the algorithm end condition z>Z is met, the population corresponding to the best fitness of the population in the zth iteration is taken as the best population, and the features corresponding to the particle value of 1 in the population are selected as the best feature set FSet_best, and then go to the next step to judge the operation fault.
5. The power load control terminal operation fault judgment system is characterized by: It includes a parameter acquisition module, an initial fault feature set construction module, an operation fault optimal feature set acquisition module and an operation fault judgment module; The parameter acquisition module is used to obtain the operating parameters of the load control terminal, the typical fault values of the operating parameters, and the operating standard values of the operating parameters according to the past operating data of the power load management system in a certain area; The initial fault feature set construction module is used to calculate the joint feature index according to the operating parameters of the load control terminal, the typical fault values of the operating parameters and the operating standard values of the operating parameters, and use the joint feature index to construct the initial fault feature set of the load control terminal operation; The optimal feature set acquisition module for operation faults is used to construct a particle swarm set corresponding to the initial fault feature set based on the particle swarm algorithm, calculate the fault evaluation index of each population in the particle swarm set based on the BP neural network model, and update the population fitness and the optimal population fitness, and obtain the optimal feature set for operation faults according to the updated population fitness and the optimal population fitness and the end condition of the particle swarm algorithm; The operation fault judgment module is used to judge the operation fault of the load control terminal to be analyzed by using a cluster analysis method according to the optimal feature set of the operation fault.
6. The power load control terminal operation fault judgment system according to claim 5 is characterized in that: In the parameter acquisition module, the operating parameters of the load control terminal, the typical fault values of the operating parameters, and the operating standard values of the operating parameters are as follows: Assume that there are K load control terminals in a regional power load management system, a≤K≤b, the number of sampling times in a day is Q, c≤Q≤d, obtain the operation data sampled by load control terminal i in a day, 1≤i≤K, and count the N operation parameters of the load control terminal in represents the nth operating parameter of load control terminal i, Indicates the qth sampling value of the nth operating parameter of the load control terminal i; obtains the fault typical value of the load control terminal operating parameter in Indicates the typical fault values of N operating parameters of the load control terminal, Indicates the fault typical value of the nth operating parameter, n = 1, 2, ..., N; obtains the operating standard value of the load control terminal operating parameter in Indicates the standard operating values of N operating parameters of the load control terminal. Represents the operating standard value of the nth operating parameter, n=1,2,...,N.
7. The power load control terminal operation fault judgment system according to claim 6 is characterized in that: In the initial fault feature set construction module, for the N operating parameters of load control terminal i Calculate the distance between the nth operating parameter of load control terminal i and its fault typical value Calculate the distance between the nth operating parameter of load control terminal i and its operating standard value Then calculate the joint characteristic index of the nth operating parameter of load control terminal i Finally is an element of the initial fault feature set FSet, and the initial fault feature set FSet during the operation of the load control terminal is obtained, where the initial fault feature set FSet contains N feature elements.
8. The power load control terminal operation fault judgment system according to claim 7 is characterized in that: In the optimal feature set acquisition module for the running fault, the particle swarm set corresponding to the initial fault feature set is first constructed. The number of populations of the particle swarm algorithm is G, the number of particles in each population is the number of feature elements M contained in the initial fault feature set FSet, the number of iterations is Z, and the maximum and minimum values of the initial weights are w respectively. max 、w min ; Define the mth particle of the gth population as The particle set of the g-th population in the z-th iteration is defined as Where g=1,2,…,G,m=1,2,…,M,z=1,2,…,Z;In the zth iteration, the mth particle of the gth population is randomly assigned a value. All particles of the g-th population constitute the particle set of population g in the z-th iteration Define the set of all populations in the zth iteration as the particle swarm set R z , then all the above populations constitute the particle swarm set of the zth iteration Then, a BP neural network model based on the optimal fault fit is constructed, and the actual fault evaluation index of the load control terminal i is defined as c i , Define a certain type of fault evaluation index of load-controlled terminal i in the gth population as For the g-th population, the feature corresponding to the particle value of 1 is used as the input variable in the BP neural network model, and the fault evaluation index of a certain type of negative control terminal i is obtained according to the BP neural network model training. According to the formula Calculate the fault fit θ as the prediction error of the training, set δ as the iterative convergence threshold, and end the training when θ≤δ. Obtain the fault evaluation index of a certain type of negative control terminal corresponding to all populations in turn. Enter to update the population fitness and the population optimal fitness; if not satisfied, continue training; Assume that the current number of iterations of the particle swarm algorithm is the zth time, and define the average fault evaluation index deviation of the mth population as ζ m , define the optimal fitness of the population in the zth iteration as ζ f ; According to the fault evaluation index, calculate the average fault evaluation index deviation ζ of the mth population m , the formula is: The average fault evaluation index deviation ζ of the mth population m As the fitness of the mth population, the value with the smallest average fault evaluation index deviation is selected as the optimal fitness ζ of the population in the zth iteration f , update the population fitness and the optimal population fitness; Assume that the current number of iterations of the particle swarm algorithm is the zth time. If the algorithm termination condition z>Z is not met, then update the number of iterations z=z+1 and calculate the inertia weight w of the particle swarm. z , and then according to the inertia weight w of the particle swarm z Update all particles in the population and integerize them, return and calculate again to obtain the average fault evaluation index of each particle population of the negative control terminal; the inertia weight w of the particle population z The calculation formula is: Among them, w max and w min are the maximum and minimum initial weights, respectively, f is the optimal fitness of the population in the zth iteration, ζ avg is the average value of the average fault evaluation index deviation of all populations in the zth iteration, ζ min is the minimum value of the average fault evaluation index deviation of all populations in the zth iteration; If the algorithm termination condition z>Z is met, the population corresponding to the best fitness of the population in the zth iteration is taken as the best population, and the features corresponding to the particle value of 1 in the population are selected as the best feature set FSet_best, and then the next module is transferred to perform operation fault judgment.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor implements the method for determining an operation fault of an electric load control terminal as described in any one of claims 1 to 4 by executing the computer instructions.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by the processor, the method for judging the operation fault of the electric load control terminal as described in any one of claims 1 to 4 is implemented.
