Power system fault diagnosis method, device, equipment and medium

Through the intelligent diagnosis model and PSO-BP neural network optimization technology, the threshold range of power system parameters is dynamically predicted, which solves the problems of poor adaptability and low accuracy of traditional fault diagnosis methods in different scenarios, and achieves more efficient fault identification and early warning. .

CN118376869BActive Publication Date: 2024-10-11SHANXI YINGRUN NEW ENERGY CO LTD +1
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202410841255.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-11
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Traditional power system fault diagnosis methods have poor adaptability and low accuracy in different scenarios, and cannot detect abnormal data in time, resulting in a low voltage qualification rate and inability to effectively identify equipment faults.

Method used

It adopts an intelligent diagnosis model, combines the prediction model and the analysis model, optimizes the weights and thresholds through the PSO-BP neural network, dynamically predicts the threshold range of the specified parameters, identifies abnormal data, and performs display and early warning.

Benefits of technology

It improves the accuracy and adaptability of fault diagnosis, ensures the accuracy of data anomaly identification in different scenarios, reduces the false alarm rate, detects abnormal data in a timely manner, and reduces the risk of accidents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118376869B_ABST
    Figure CN118376869B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and medium for fault diagnosis of an electric power system, and relates to the technical field of fault diagnosis of an electric power system. The method comprises: obtaining the operating data of the electric power system in a target scenario; wherein the operating data comprises the actual value of a specified parameter; using a prediction model in an intelligent diagnosis model to predict the threshold range of the specified parameter in the target scenario according to the operating data; wherein the intelligent diagnosis model is a model composed of a prediction model and an analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios; using the analysis model, when the actual value of the specified parameter exceeds the threshold range of the specified parameter, the operating data is used as abnormal data, and the abnormal data is displayed and / or warned. The above method improves the accuracy of fault diagnosis of the electric power system in different scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power system fault diagnosis, and in particular to a power system fault diagnosis method, device, equipment and medium. Background Art

[0002] The power system is the infrastructure of modern industry and people's livelihood, and its safe, stable and efficient operation is crucial. However, during the operation of the power system, equipment failures and power system abnormalities are difficult to avoid.

[0003] In order to timely discover and solve the above problems, fault diagnosis of power systems has become an important research field. Traditional fault diagnosis methods usually rely more on manual experience and offline analysis, but traditional fault diagnosis methods have fixed thresholds when diagnosing faults in power systems, which has the problem of low accuracy. For example, the allowable range of 220kV bus voltage is ±5%, that is, between 207kV and 231kV. If the upper and lower limits are directly set as thresholds, the range fluctuates greatly, and there may be a low voltage qualification rate, and abnormal data cannot be discovered in time.

[0004] Therefore, there is an urgent need for a method that can accurately diagnose faults in power systems in different scenarios. Summary of the invention

[0005] The present application provides a power system fault diagnosis method, device, equipment and medium to solve the problems of poor adaptability and low accuracy of existing fault detection methods.

[0006] According to a first aspect of the present application, a method for diagnosing a fault in a power system is provided, comprising:

[0007] Acquire operation data of the power system in a target scenario; wherein the operation data includes actual values ​​of specified parameters;

[0008] Using the prediction model in the intelligent diagnosis model, predicting the threshold range of the specified parameter in the target scenario according to the operation data; wherein the intelligent diagnosis model is a model composed of the prediction model and the analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios;

[0009] By using the analysis model, when the actual value of the designated parameter exceeds the threshold range of the designated parameter, the operation data is regarded as abnormal data, and the abnormal data is displayed and / or warned.

[0010] Optionally, the prediction model is a pre-trained PSO-BP model;

[0011] Training the PSO-BP model includes:

[0012] Obtain historical operation data of the power system in various scenarios and build training sets and test sets;

[0013] Construct the topological structure of BP neural network and initialize the weights and thresholds of BP neural network;

[0014] Based on the training set and the test set, the weights and thresholds of the BP neural network are optimized using the PSO model to output the optimal weights and thresholds;

[0015] The optimal weight and threshold are assigned to the BP neural network to obtain the pre-trained PSO-BP model.

[0016] Optionally, constructing a topological structure of a BP neural network includes:

[0017] Determine the framework structure of the BP neural network, the framework structure includes: an input layer, a hidden layer and an output layer;

[0018] Determining the number of neurons in the input layer and the output layer, wherein the number of neurons in the input layer is determined according to the number of characteristic parameters of the sample, and the number of neurons in the output layer is determined according to the number of specified parameters to be predicted;

[0019] Determine the number of hidden layer neurons, take the minimum mean square error value as the goal, and determine the optimal number of hidden layer neurons through repeated training.

[0020] Optionally, the optimizing the weights and thresholds of the BP neural network using a PSO model based on the training set and the test set, and outputting the optimal weights and thresholds, comprises:

[0021] The initialized weights and thresholds are defined as particles in the particle swarm search space;

[0022] Determining the dimensions of the particle position and velocity vector according to the number of neurons in each layer of the BP neural network;

[0023] Setting basic parameters of the PSO model; wherein the basic parameters include termination conditions;

[0024] Calculate the fitness value of the particle, compare the fitness value of the particle with the individual optimal value of the particle, and if the fitness value of the particle is better than the individual optimal value of the particle, update the individual optimal value of the particle;

[0025] Compare the fitness value of the particle with the optimal value of the particle group, and if the fitness of the particle is better than the optimal value of the particle group, update the optimal value of the particle group;

[0026] Using the particle position and velocity update formula, the particle position and velocity are iteratively updated, and when the updated particle position and velocity are within the specified range, the particle fitness value is recalculated to update the individual particle optimal value and the particle group optimal value;

[0027] When the termination condition is met, the optimal particle is output, and the weight and threshold corresponding to the optimal particle are used as the optimal weight and threshold.

[0028] Optionally, the acquiring of historical operation data of the power system in various scenarios and constructing a training set and a test set includes:

[0029] Obtain the original operation data of the power system in various scenarios;

[0030] Classifying the original operation data according to types, and processing the original operation data according to data processing methods corresponding to the types to obtain the historical operation data;

[0031] The historical operation data is divided according to a preset ratio to obtain a training set and a test set.

[0032] Optionally, the analysis model is a PowerWorld model;

[0033] The display and / or warning of the abnormal data includes:

[0034] Using the PowerWorld model, and based on the operating data, construct a power system model corresponding to the power system;

[0035] Based on the power system model, the abnormal data is displayed in a target display manner, and / or, an early warning is issued for the abnormal data in a target early warning manner.

[0036] Optionally, the power system includes a first bus and a second bus; wherein the voltage of the first bus is lower than the voltage of the second bus;

[0037] The operation data of the first busbar includes at least one of the following: the voltage of the first busbar, the vector sum of all collector currents connected to the first busbar, the zero-sequence voltage and the zero-sequence current;

[0038] The operation data of the second bus includes at least one of the following: the voltage, bus current, zero-sequence current, frequency, active power and reactive power of the next-level bus connected to the second bus, the oil temperature, winding temperature and pressure on the high-voltage side of the main transformer connected to the second bus, and the automatic voltage control AVC command value and SVG reactive compensation signal telemetering value of the current bus; wherein the voltage of the next-level bus is lower than the voltage of the second bus;

[0039] For the operation data of the first bus, the specified parameters are the first bus frequency and the first bus voltage;

[0040] For the operating data of the second bus, the specified parameters are the second bus frequency and the second bus voltage.

[0041] According to a second aspect of the present application, there is provided a power system fault diagnosis device, comprising:

[0042] An acquisition module, used to acquire operation data of the power system in a target scenario; wherein the operation data includes actual values ​​of specified parameters;

[0043] A prediction module, used to predict the threshold range of the specified parameter in the target scenario according to the operating data using the prediction model in the intelligent diagnosis model; wherein the intelligent diagnosis model is a model composed of the prediction model and the analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios;

[0044] The display and warning module is used to use the analysis model to treat the operating data as abnormal data and display and / or warn the abnormal data when the actual value of the specified parameter exceeds the threshold range of the specified parameter.

[0045] According to a third aspect of the present application, there is provided an electronic device, comprising: at least one processor and a memory;

[0046] The memory stores computer-executable instructions;

[0047] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the power system fault diagnosis method as described in the first aspect above.

[0048] According to a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the power system fault diagnosis method as described in the first aspect above.

[0049] According to a fifth aspect of the present application, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the power system fault diagnosis method described in the first aspect.

[0050] The present application provides a method for diagnosing faults in an electric power system, comprising: obtaining operating data of the electric power system in a target scenario; wherein the operating data includes actual values ​​of specified parameters; using a prediction model in an intelligent diagnosis model to predict a threshold range of the specified parameter in the target scenario based on the operating data; wherein the intelligent diagnosis model is a model composed of a prediction model and an analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios; using the analysis model, when the actual value of the specified parameter exceeds the threshold range of the specified parameter, the operating data is treated as abnormal data, and the abnormal data is displayed and / or warned.

[0051] The application can dynamically predict the threshold range of specified parameters in the target scenario through the prediction model, thereby ensuring that abnormal data can be effectively identified. The application of this prediction model improves the accuracy of the intelligent diagnosis model and thus improves the accuracy of fault diagnosis.

[0052] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0054] Figure 1 A schematic diagram of a flow chart of a method for diagnosing a fault in a power system provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of the framework structure of the BP neural network provided in the embodiment of the present application;

[0056] Figure 3 A schematic diagram of the structure of the centralized control side and the substation side in the power system provided in the embodiment of the present application;

[0057] Figure 4 A flowchart of another method for diagnosing a fault in a power system provided in an embodiment of the present application;

[0058] Figure 5 is a schematic diagram of line load;

[0059] Figure 6 A schematic diagram of the structure of a power system fault diagnosis device provided in an embodiment of the present application;

[0060] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0061] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0062] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application.

[0063] The traditional fault diagnosis method sets the telemetry value as a threshold alarm in the monitoring panel. The threshold is a dead number and cannot be dynamically learned based on historical data, so there is a problem of low accuracy. For example, when the reactive power is sufficient, the voltage will fluctuate with the AVC command value, but when the AVC command is high or low, and the reactive generator SVG sends a signal to increase reactive power lock or reduce reactive power lock, the actual voltage value has a certain gap with the AVC command. If an equipment failure occurs at this time, the series reactor will work to stabilize the bus voltage by adjusting the proportion of reactive power to ensure that the power supply quality meets the standard requirements. At this time, it is more important to improve the accuracy of the normal voltage range and reduce the false alarm rate.

[0064] In order to solve the above technical problems, the overall inventive concept of the present application is to provide a method for improving the accuracy of fault diagnosis of power systems in different scenarios, which is applied to the field of power system fault diagnosis.

[0065] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0066] Embodiment 1:

[0067] Figure 1 A schematic diagram of a flow chart of a power system fault diagnosis method provided in an embodiment of the present application. Figure 1 As shown, the method of this embodiment includes:

[0068] S10. Obtaining operation data of the power system in a target scenario; wherein the operation data includes actual values ​​of specified parameters.

[0069] It should be understood that the power system includes at least one device in a power plant or a station. The target scenario can be a scenario of normal operation of the equipment in the power plant. The embodiment of the present application does not specifically limit the type and quantity of the operation data.

[0070] S20. Utilize the prediction model in the intelligent diagnosis model to predict the threshold range of the specified parameter in the target scenario based on the operating data; wherein the intelligent diagnosis model is a model composed of a prediction model and an analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios.

[0071] In an embodiment of the present application, the prediction model can adaptively adjust the threshold range of the specified parameters according to the operating data. This embodiment improves the accuracy of the basis for judging whether the data is abnormal in different scenarios by predicting the threshold range of the specified parameters in the target scenario, thereby improving the accuracy of abnormal data identification.

[0072] S30. Using the analysis model, when the actual value of the specified parameter exceeds the threshold range of the specified parameter, the operation data is regarded as abnormal data, and the abnormal data is displayed and / or warned.

[0073] The embodiment of the present application can dynamically predict the threshold range of specified parameters in the target scenario through the prediction model, thereby ensuring that abnormal data can be effectively identified. The application of the prediction model improves the accuracy of the intelligent diagnosis model and thus improves the accuracy of fault diagnosis.

[0074] In a possible implementation, the prediction model is a pre-trained PSO-BP model, wherein the PSO-BP model has the same meaning as the BP-based PSO iterative optimization model in Example 2.

[0075] Particle Swarm Optimization (PSO) algorithm is an optimization algorithm based on swarm intelligence. It finds the optimal solution to the problem by simulating the behavior of groups such as bird flocks and fish schools.

[0076] Furthermore, the PSO-BP model is trained, including:

[0077] S21. Obtain the historical operation data of the power system in various scenarios and build training sets and test sets.

[0078] S22, construct the topological structure of the BP neural network, and initialize the weights and thresholds of the BP neural network.

[0079] S23. Based on the training set and the test set, the PSO model is used to optimize the weights and thresholds of the BP neural network and output the optimal weights and thresholds.

[0080] In the BP neural network training process, the selection of weights and thresholds affects the performance of the neural network. If the threshold is too small, the output of the neuron may be too frequent, which will reduce the performance of the BP neural network; if the threshold is too large, the output of the neuron may be too sparse, which will also reduce the performance of the BP neural network.

[0081] In order to determine the optimal weights and thresholds, this embodiment uses the PSO algorithm to adjust the weights and thresholds.

[0082] This embodiment regards the weight and threshold of the BP neural network as a parameter to be optimized, and then uses the PSO algorithm to find the optimal weight and threshold. From the perspective of the execution process, this embodiment performs the following steps:

[0083] (1) Initialize the parameters of the PSO algorithm, including the number of particles, number of iterations, learning factor, etc. Initialize the position and speed of the particle swarm. The population position is the value of the independent variable corresponding to each particle swarm. One particle corresponds to a set of independent variables, which is equivalent to a solution. The population speed is the flight speed of the particle swarm at each iteration update and the step size of the particle swarm position update. The population dimension dim is the number of independent variables that need to be optimized.

[0084] (2) Update the weight of the BP neural network according to the position of each particle.

[0085] (3) Evaluate the performance of the BP neural network based on the fitness function.

[0086] (4) Update the individual optimal solution and the global optimal solution of each particle according to the fitness value. The fitness can be set as the sum of squared errors.

[0087] (5) Iterate steps (2) to (4) until the iteration stop condition is met (such as reaching the maximum number of iterations or reaching a predetermined error).

[0088] This embodiment uses the PSO algorithm to optimize the weights and thresholds, and can find the optimal threshold of the BP neural network, thereby improving the performance of the BP neural network.

[0089] S24, assigning the optimal weights and thresholds to the BP neural network to obtain a pre-trained PSO-BP model.

[0090] The embodiment of the present application uses the PSO algorithm to optimize the BP neural network, thereby improving the prediction accuracy and generalization ability of the PSO-BP model. Therefore, the present embodiment can output the threshold range of the specified parameter in the target scenario through the pre-trained PSO-BP model, thereby assisting the on-duty personnel in monitoring the disk, timely discovering abnormal data, and effectively reducing the occurrence of accidents.

[0091] In a possible implementation, step S21, obtaining historical operation data of the power system in various scenarios and constructing a training set and a test set, includes the following steps:

[0092] S211. Obtain original operation data of the power system in each scenario.

[0093] S212: Classify the original operation data according to the type, and process the original operation data according to the data processing method corresponding to the type to obtain historical operation data.

[0094] S213: Divide the historical operation data according to a preset ratio to obtain a training set and a test set.

[0095] It should be understood that the historical operation data in the training set can be referred to as the training set data, and the historical operation data in the test set can be referred to as the test set data. The preset ratio can be 7:3, 6:4, etc.

[0096] The embodiments of the present application process different data differently, thereby improving the validity and application reliability of training sample data.

[0097] In a possible implementation, step S22, constructing a topological structure of a BP neural network, includes:

[0098] The first item is to determine the framework structure of the BP neural network, such as Figure 2 As shown, the framework structure includes: an input layer, a hidden layer and an output layer. It should be understood that the framework structure is also called a topological structure.

[0099] The second item is to determine the number of neurons in the input layer and the output layer, where the number of neurons in the input layer n The number of neurons in the output layer is determined according to the number of characteristic parameters of the sample. q Determined by the number of specified parameters to be predicted.

[0100] Item 3: Determine the number of hidden layer neurons p , with the minimum mean square error as the goal, the optimal number of hidden layer neurons is determined through repeated training.

[0101] The embodiment of the present application provides technical support for obtaining a PSO-BP model by constructing a topological structure of a BP neural network.

[0102] In a possible implementation, step S23, based on the training set and the test set, the PSO model is used to optimize the weights and thresholds of the BP neural network, and the optimal weights and thresholds are output, including:

[0103] S231. Define the initialized weights and thresholds as particles in the particle swarm search space.

[0104] S232. Determine the dimensions of the particle position and velocity vector according to the number of neurons in each layer of the BP neural network.

[0105] S233, setting basic parameters of the PSO model; wherein the basic parameters include termination conditions.

[0106] It should be understood that the termination condition is also called the iteration stop condition.

[0107] S234, calculating the fitness value of the particle, comparing the fitness value of the particle with the individual optimal value of the particle, and if the fitness value of the particle is better than the individual optimal value of the particle, updating the individual optimal value of the particle.

[0108] S235, comparing the fitness value of the particle with the optimal value of the particle group, if the fitness of the particle is better than the optimal value of the particle group, then updating the optimal value of the particle group.

[0109] It should be understood that the optimal value of a particle group may also be called the optimal value of all particles.

[0110] S236. Using the particle position and velocity update formula, the particle position and velocity are iteratively updated, and when the updated particle position and velocity are within a limited range, the particle fitness value is recalculated to update the individual particle optimal value and the particle group optimal value.

[0111] S237. When the termination condition is met, the optimal particle is output, and the weight and threshold corresponding to the optimal particle are used as the optimal weight and threshold.

[0112] The embodiment of the present application provides a specific training process, through which the optimal weights and thresholds of the BP neural network can be determined, thereby improving the prediction accuracy of the model.

[0113] Exemplarily, this embodiment analyzes the training of the PSO-BP model from the perspective of code execution as follows:

[0114] (1) Set the parameters of the BP neural network, including but not limited to: training times of 1000, learning rate of 0.01, training target minimum error of 0.00001, display frequency of 25, momentum factor of 0.01, minimum performance gradient of 1e-6, maximum number of failures of 6, etc.

[0115] (2) Initialize PSO parameters, including but not limited to: population size of 10, maximum evolutionary generations of 50, number of independent variables, lower limit of independent variables, upper limit of independent variables, individual learning factor of each particle (also called individual acceleration constant) of 2, social learning factor of each particle (also called social acceleration constant) of 2, inertia weight w = 0.9, maximum speed of particles v max wait.

[0116] (3) Initialize the position and speed of the particle. Each particle represents a set of weights and thresholds. This embodiment generates a particle swarm in a loop. On the one hand, this embodiment randomly initializes the position of the particle within the definition domain. On the other hand, this embodiment randomly initializes the speed of the particle.

[0117] It should be understood that this embodiment randomly generates a set of weights and thresholds as the initial position of the particle, initializes the particle's velocity to 0, and the optimal position and optimal fitness value are the current position and positive infinity, respectively.

[0118] (4) Calculate fitness: Loop through the entire particle swarm and calculate the fitness of each particle. The calculation process can be implemented by calling a function. Initialize the best position found so far by the n particles; find the index of the particle with the smallest fitness; and determine the best position found so far by all particles.

[0119] This embodiment can perform cyclic iterative optimization, calculate the fitness value of each particle, and update the optimal position and optimal fitness value of the particle.

[0120] (5) Evolution process: Start the iteration, update the speed and position of the i-th particle in turn, then update the historical optimal particle position, and update the best fitness obtained in the d-th iteration.

[0121] This embodiment updates the speed and position of each particle according to the speed and position update formula of the particle. If the position of the particle exceeds the upper limit of the independent variable or the lower limit of the independent variable, it is set to the upper limit of the independent variable or the lower limit of the independent variable.

[0122] (6) Update weights and thresholds.

[0123] (7) Matrix reconstruction. After the iterative cycle ends, this embodiment returns the global optimal position as the optimal weight and threshold.

[0124] The embodiment of the present application implements training based on code. Through the above training process, the optimal weights and thresholds of the BP neural network can be determined, thereby improving the prediction accuracy of the model.

[0125] In a possible implementation, the analysis model is a PowerWorld model; then in step S30, displaying and / or warning the abnormal data includes:

[0126] S301. Using the PowerWorld model, and based on the operation data, construct a power system model corresponding to the power system.

[0127] S302: Based on the power system model, display the abnormal data in a target display manner, and / or issue an early warning for the abnormal data in a target early warning manner.

[0128] In the embodiments of the present application, the target display mode may include but is not limited to: scrolling display, bold flashing display, different color display, etc.; the target warning mode may include but is not limited to: voice warning, light warning, SMS warning, etc.

[0129] The embodiments of the present application can improve the prominence of the display through display methods such as scrolling display, bold strobe display, and different color display, and can improve the timeliness of the warning through warning methods such as voice warning, light warning, and text message warning.

[0130] Optionally, the PowerWorld model can also perform the following power flow calculation process:

[0131] S311. Input original data.

[0132] S312. Form a node admittance matrix based on the original data.

[0133] S313, set the initial voltage value , .

[0134] S314. Set the number of iterations k=0.

[0135] S315, calculate error vector , , .

[0136] S316, determine whether this iteration converges; if so, execute step S317; if not, execute step S320.

[0137] S317: Calculate the PU node reactive power and the balancing node power.

[0138] S318. Calculate branch power distribution and loss.

[0139] S319: Send a shutdown signal to shut down the controlled device.

[0140] S320. Calculate Jacobian matrix elements.

[0141] S321, based on the modified equation and Jacobian matrix elements, calculate and .

[0142] S322, correcting the node voltage, , .

[0143] S323. Update the number of iterations, k=k+1.

[0144] S324, determine whether the number of iterations exceeds the preset maximum number of iterations, if not, execute step S315; if yes, execute step S325.

[0145] S325: Determine whether to stop the process if convergence fails.

[0146] In a possible implementation, the power system includes a first bus and a second bus; wherein a voltage of the first bus is lower than a voltage of the second bus.

[0147] The operation data of the first bus includes at least one of the following: the first bus voltage, the vector sum of all collector currents connected to the first bus, the zero-sequence voltage and the zero-sequence current.

[0148] The operating data of the second bus includes at least one of the following: the voltage, bus current, zero-sequence current, frequency, active power and reactive power of the next-level bus connected to the second bus, the oil temperature, winding temperature and pressure on the high-voltage side of the main transformer connected to the second bus, and the automatic voltage control AVC command value and SVG reactive compensation signal telemetering value of this section of the bus; wherein the voltage of the next-level bus is lower than the voltage of the second bus.

[0149] For the operating data of the first bus, the specified parameters are the first bus frequency and the first bus voltage.

[0150] For the operating data of the second bus, the specified parameters are the second bus frequency and the second bus voltage.

[0151] The above-mentioned Automatic Voltage Control (AVC) is one of the two major automatic control systems of modern power grids. It has the functions of improving the quality of power grid voltage, reducing network losses, increasing stable reserves and reducing the labor intensity of dispatching staff on duty, and can ensure the safe, economical and high-quality operation of the power grid. Automatic voltage control refers to the centralized monitoring and analysis and calculation of the reactive voltage status of the entire network, and coordinated optimization control of the widely dispersed power grid reactive devices from a global perspective. It can not only realize the automatic adjustment of reactive voltage, but also has certain optimization functions. It is an important technical means to maintain system voltage stability, improve the quality of power grid voltage and the economic operation level of the entire system, and improve the reactive voltage management level.

[0152] For example, for a 35kV bus, the input layer of the BP neural network has four parameters, namely: bus voltage, vector sum of currents of each collector line, zero-sequence voltage, and zero-sequence current telemetry value; the output layer has two parameters, namely: bus frequency and three-phase voltage, and the output is the threshold range of each of these two parameters.

[0153] For another example, for a 220kV bus, the input layer of the BP neural network has 12 parameters, namely: the voltage, current, zero-sequence voltage, zero-sequence current, frequency, active power and reactive power of the next-level bus (for example, 110 / 35kV), the oil temperature, winding temperature and pressure on the high-voltage side of the main transformer, and the AVC command value of this section of the bus, and the SVG increase or decrease reactive power locking signal telesignal value; the output layer has 2 parameters, namely: the frequency of this section and the three-phase voltage, and the output is the threshold range of these two parameters.

[0154] The embodiment of the present application can input different input parameters to the BP neural network or output different parameters for different devices. The embodiment of the present application can improve the accuracy of the BP neural network in detecting abnormal data of different devices.

[0155] like Figure 3 As shown, the power system fault diagnosis method can be applied to the server on the centralized control center side. There are multiple security zones i on the substation side, such as security zone 1, security zone 2, etc. The equipment deployed in each security zone i can be the same or different. The acquisition device transmits the collected in-station data to the data gateway through the remote motor. The data gateway forwards the in-station data to the encryption device for encryption processing. The encrypted in-station data is transmitted to the centralized control center through the first router via the power dedicated line on the communication cabinet. It should be understood that Figure 3 The acquisition equipment here may refer to the Supervisory Control And Data Acquisition (SCADA) system.

[0156] The embodiment of the present application is applied to the centralized control center side, and can perform real-time monitoring of multiple substations. The prediction model can dynamically predict the threshold range of specified parameters in the target scenario, thereby ensuring that abnormal data can be effectively identified. The application of the prediction model improves the accuracy of the intelligent diagnosis model, thereby improving the accuracy of fault diagnosis.

[0157] Based on the above embodiments, the technical solution of the present application is described in more detail below in combination with several specific embodiments.

[0158] Embodiment 2:

[0159] In order to solve the problem that the on-duty personnel cannot directly determine the abnormal data that causes accidents (such as the bus PT primary fuse breaking down, etc.) during the monitoring process due to the large amount of data, this embodiment of the application can train an intelligent diagnosis model through the comparison of important telemetry and telesignaling data (such as frequency, zero-sequence voltage, zero-sequence current, voltage, current) of each interval of the booster station in the power system, the comparison of data of the same type of booster stations, and the comparison of data between booster stations with the same installed capacity, thereby improving the accuracy of the threshold range of each specified parameter, and taking measures such as color change and alarm reminder for data that is not within a reasonable range to remind the on-duty personnel. The above-mentioned intervals can refer to: some closely connected parts in the substation that have certain common functions, such as all the devices in a 35kV switch cabinet: circuit breakers, switches, etc.

[0160] Figure 4 A flowchart of another method for diagnosing a fault in a power system provided in an embodiment of the present application is shown below. Figure 4 As shown, the method of this embodiment includes:

[0161] S41. Data collection: The purpose of this step is to collect data of each device in the power plant during normal operation. Specifically, this embodiment uses the SCADA system to collect telemetry values ​​of the required equipment, including but not limited to: voltage, current, frequency, zero-sequence voltage, zero-sequence current, main transformer pressure, main transformer winding temperature, main transformer oil temperature and other telemetry data.

[0162] S42, data classification: Data type 1: voltage, current; Data type 2: frequency, zero-sequence voltage, zero-sequence current, AVC command value; Data type 3: main transformer pressure, main transformer winding temperature, main transformer oil temperature, active power, reactive power; Data type 4: SVG increase or decrease reactive power locking telesignal value.

[0163] S43, data processing: Due to the problems of telecontrol manufacturers, data ratios, data acquisition clock asynchronization, network delays, etc. of each plant station, it is necessary to ensure that the returned data has a time stamp, unify the data ratio and decimal places, perform per-unit processing on data type 1, use actual values ​​for data type 2, and normalize data for data type 3.

[0164] It should be understood that the per-unit value is a relative unit system, which is often used in power system analysis and engineering calculations to represent the relative values ​​of various physical quantities and parameters. In power system calculations, the per-unit value is widely used. In general circuit calculations, the units of current, voltage, power and impedance are represented by A, V, W, and Ω respectively. This method of using actual nominal units to represent physical quantities is called nominal value. If the nominal value needs to be converted to the per-unit value, the formula per-unit value = nominal value / reference value can be used for conversion.

[0165] Furthermore, after processing data of different data types, this embodiment can use the Pearson correlation coefficient to select data types with correlation coefficients greater than 0.9, and use the grey correlation method to verify the data to obtain model training sample data (i.e., the above-mentioned historical operation data).

[0166] The Pearson correlation coefficient is a statistic used to measure the degree of correlation between two variables. The value of the coefficient ranges from -1 to 1, where 1 indicates a perfect positive correlation, -1 indicates a perfect negative correlation, and 0 indicates no linear correlation.

[0167] The calculation method of Pearson correlation coefficient is as follows:

[0168] (1) Calculate the mathematical expectation E and covariance cov between two variables.

[0169] (2) Calculate the Pearson correlation coefficient r. The calculation formula for r is:

[0170] ;

[0171] Where X and Y are random variables of two variables, E[X] and E[Y] are the mathematical expectations of X and Y, and (XE[X])^2 and (YE[Y])^2 are the variances of X and Y.

[0172] The above grey correlation degree is a relational measure in grey system theory, which is used to describe the size of the relationship between different factors within the system. Its calculation method is to compare the various factors in the system to obtain their relative importance, thereby obtaining a grey correlation matrix.

[0173] In the calculation process of the grey correlation degree, the data of the two types of variables input in this embodiment are in vector form, and then the zeros function is called to initialize the grey correlation degree vector, and then the vectors corresponding to the two types of variables are subjected to minimum-maximum normalization processing, and then the grey correlation degree is calculated, and finally the average value of the grey correlation degree is returned to construct the grey correlation matrix.

[0174] S44. Model training:

[0175] Based on the description of step S21 to step S24 in the above embodiment 1, the embodiment of the present application provides a specific example of training a PSO-BP model:

[0176] S441: Randomly generate training set data and test set data based on the model training sample data, with the ratio of training set data to test set data being 7:3.

[0177] S442: Construct the topological structure of the BP neural network, determine the number of neurons in the input layer, hidden layer, and output layer, and select the activation function of the neural network.

[0178] S443: Initialize the weights and thresholds of the BP neural network, and encode the initialized weights and thresholds into individual particles in the population.

[0179] S444: Determine the dimensions of the PSO particle position and velocity vector, that is, the number of connection weights from the input layer to the hidden layer + the number of connection weights from the hidden layer to the output layer + the threshold number of the hidden layer + the threshold number of the output layer.

[0180] S445: Setting basic parameters of the PSO algorithm, including but not limited to: number of particles, particle length, particle range, maximum speed, learning factor, iteration stop condition, inertia weight, etc.

[0181] S446: Calculate the individual optimal value of the particle, randomly input a particle, calculate the initial fitness value, compare the obtained value with the individual optimal value and update it.

[0182] S447: Calculate the optimal value of the particle group, input all particles for calculation, until the algorithm is settled, and obtain the optimal value of all particles.

[0183] S448: According to the particle position and velocity update formula, the position and velocity of each particle are updated, and whether the updated velocity and position are within the specified range is considered, and then the individual optimal value and group optimal value of the particle are updated according to the recalculated particle fitness value.

[0184] S449: Determine whether the iteration stop condition is met; if not, reinitialize the BP weight and threshold, and iteratively calculate the fitness value of the particle until the condition is met.

[0185] S45, PSO iterative optimization model based on BP:

[0186] After executing step S44, this embodiment obtains a BP-based PSO iterative optimization model. This embodiment is trained through the historical operation data of each station, and uses the BP-based PSO improved algorithm provided by the model for iterative self-learning to generate the operating range of each important parameter corresponding to different situations when the station is operating normally, so as to improve the accuracy of abnormal data recognition and reduce the false alarm rate.

[0187] S46, generating an intelligent diagnosis model: This embodiment combines the BP-based PSO iterative optimization model with the PowerWorld model to generate an intelligent diagnosis model. In the model training phase, the output result of the BP-based PSO iterative optimization model is the operating range of each important parameter corresponding to the normal operation of the above-mentioned site in different scenarios.

[0188] Furthermore, this embodiment uses the PowerWorld model to establish a power system model based on the historical important telemetry and telesignaling data of each power station during normal operation.

[0189] For example, take each bus as a node and set the relevant parameters of the line, bus, generator, load, etc.:

[0190] Define the rated power: Select the "Generator" option in the "Setup" menu and enter the rated power of the generator in "Power" or "Synchronous Machine".

[0191] Define the rated voltage: Enter the rated voltage of the generator in the "Voltage" or "Line Voltage" option.

[0192] Define the rated frequency: Enter the rated frequency of the generator in the "Frequency" or "Line Frequency" option.

[0193] Define the rated current: Enter the rated current of the generator in the "Current" or "Line Current" option.

[0194] In this embodiment, corresponding PV nodes, PQ nodes and balancing nodes can be set, and the data of each bus can be updated in real time, and the model can be run, so that important data such as the voltage and frequency of each bus can be dynamically observed.

[0195] like Figure 5 As shown in the figure, the pie chart in the model shows the line load, expressed as a percentage of the line's rated capacity. Under default conditions: when the line percentage is less than 80%, the pie chart is blue; when the percentage is greater than 80%, it turns orange; when the percentage is greater than 99.5%, it turns red to attract the attention of the operation staff. Similarly, abnormal data can also be displayed in the form of color change.

[0196] S47. Model application: In this embodiment, the established intelligent diagnosis model is applied to the centralized control center in real time. The operating range of important parameters can be determined through the BP-based PSO iterative optimization model. Furthermore, the PowerWorld model can realize the color display of abnormal data (i.e., data that is not within the output result range) and / or alarm to remind the on-duty personnel.

[0197] That is to say, the intelligent diagnosis model can realize the combination of the output results of the PSO-BP model and the PowerWorld model. In the model training stage, this embodiment automatically associates the collected historical operation data with the normal operating status of the equipment in different scenarios; in the model application stage, this embodiment can automatically identify the true status of the equipment, change the color of the data that exceeds the output result range, and / or issue an alarm to remind the on-duty personnel.

[0198] In contrast to the traditional fault diagnosis method, which mainly relies on personnel to judge the data to discover abnormal information during monitoring, this embodiment constructs an intelligent diagnosis model based on the centralized control center to change the color of abnormal data and issue alarm reminders, so that the on-duty personnel can discover abnormal data as early as possible and handle it in time to prevent the accident from expanding.

[0199] Embodiment 3:

[0200] Figure 6 This is a schematic diagram of the structure of a power system fault diagnosis device provided in an embodiment of the present application. The device of this embodiment can be in the form of software and / or hardware. Figure 6 As shown, the power system fault diagnosis device provided in this embodiment includes: an acquisition module 61, a prediction module 62 and a display warning module 63. Among them:

[0201] The acquisition module 61 is used to acquire the operation data of the power system in the target scenario; wherein the operation data includes the actual value of the specified parameter.

[0202] The prediction module 62 is used to use the prediction model in the intelligent diagnosis model to predict the threshold range of the specified parameter in the target scenario based on the operating data; wherein the intelligent diagnosis model is a model composed of a prediction model and an analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios.

[0203] The display and warning module 63 is used to use the analysis model to treat the operating data as abnormal data and display and / or warn the abnormal data when the actual value of the specified parameter exceeds the threshold range of the specified parameter.

[0204] In a possible implementation, the prediction model is a pre-trained PSO-BP model; the power system fault diagnosis device is used to:

[0205] Obtain historical operation data of the power system in various scenarios and build training sets and test sets.

[0206] Construct the topological structure of the BP neural network and initialize the weights and thresholds of the BP neural network.

[0207] Based on the training set and the test set, the PSO model is used to optimize the weights and thresholds of the BP neural network and output the optimal weights and thresholds.

[0208] The optimal weights and thresholds are assigned to the BP neural network to obtain a pre-trained PSO-BP model.

[0209] In a possible implementation, the power system fault diagnosis device is further used for:

[0210] Determine the framework structure of the BP neural network, which includes: input layer, hidden layer and output layer.

[0211] The number of neurons in the input layer and the output layer is determined, wherein the number of neurons in the input layer is determined according to the number of characteristic parameters of the sample, and the number of neurons in the output layer is determined according to the number of specified parameters to be predicted.

[0212] Determine the number of hidden layer neurons, take the minimum mean square error value as the goal, and determine the optimal number of hidden layer neurons through repeated training.

[0213] In a possible implementation, the power system fault diagnosis device is further used for:

[0214] The initialized weights and thresholds are defined as particles in the particle swarm search space.

[0215] According to the number of neurons in each layer of the BP neural network, the dimensions of the particle position and velocity vector are determined.

[0216] Set the basic parameters of the PSO model, including the termination condition.

[0217] Calculate the fitness value of the particle, compare the fitness value of the particle with the individual optimal value of the particle, and if the fitness value of the particle is better than the individual optimal value of the particle, update the individual optimal value of the particle.

[0218] Compare the fitness value of the particle with the optimal value of the particle group. If the fitness of the particle is better than the optimal value of the particle group, update the optimal value of the particle group.

[0219] The particle position and velocity update formula is used to iteratively update the particle position and velocity. When the updated particle position and velocity are within the specified range, the particle fitness value is recalculated to update the individual particle optimal value and the particle group optimal value.

[0220] When the termination condition is met, the optimal particle is output, and the weight and threshold corresponding to the optimal particle are used as the optimal weight and threshold.

[0221] In a possible implementation, the power system fault diagnosis device is further used for:

[0222] Obtain the original operation data of the power system in various scenarios.

[0223] The original operation data is classified according to type, and the original operation data is processed accordingly according to the data processing method corresponding to the type to obtain historical operation data.

[0224] The historical operation data is divided into a training set and a test set according to a preset ratio.

[0225] In a possible implementation, the analysis model is a PowerWorld model; the power system fault diagnosis device is further used for:

[0226] Using the PowerWorld model, a power system model corresponding to the power system is constructed based on the operating data.

[0227] Based on the power system model, the abnormal data is displayed through a target display method, and / or, the abnormal data is warned through a target warning method.

[0228] In a possible implementation, the power system includes a first bus and a second bus; wherein a voltage of the first bus is lower than a voltage of the second bus.

[0229] The operation data of the first bus includes at least one of the following: the first bus voltage, the vector sum of all collector currents connected to the first bus, the zero-sequence voltage and the zero-sequence current.

[0230] The operating data of the second bus includes at least one of the following: the voltage, bus current, zero-sequence current, frequency, active power and reactive power of the next-level bus connected to the second bus, the oil temperature, winding temperature and pressure on the high-voltage side of the main transformer connected to the second bus, and the automatic voltage control AVC command value and SVG reactive compensation signal telemetering value of this section of the bus; wherein the voltage of the next-level bus is lower than the voltage of the second bus.

[0231] For the operating data of the first bus, the specified parameters are the first bus frequency and the first bus voltage.

[0232] For the operating data of the second bus, the specified parameters are the second bus frequency and the second bus voltage.

[0233] The power system fault diagnosis device provided in this embodiment can be used to execute the power system fault diagnosis method provided in any of the above method embodiments. Its implementation principles and technical effects are similar and will not be described in detail here.

[0234] It should be noted that the user information and data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0235] That is to say, in the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.

[0236] According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.

[0237] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device includes a receiver 70, a transmitter 71, at least one processor 72 and a memory 73. The electronic device composed of the above components can be used to implement the above-mentioned several specific embodiments of the present application, which will not be described in detail here.

[0238] The embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, each step of the method in the above embodiment is implemented.

[0239] An embodiment of the present application also provides a computer program product, including a computer program, which implements each step of the method in the above embodiment when executed by a processor.

[0240] Various embodiments of the systems and techniques described above in the present application can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs, which may be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general programmable processor, which may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0241] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or electronic device.

[0242] In the context of the present application, a computer-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may be a machine-readable signal medium or a machine-readable storage medium. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0243] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0244] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data electronic device), or a computing system that includes middleware components (e.g., an application electronic device), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0245] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps disclosed in this application can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document does not limit this.

[0246] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of this application should be included in the protection scope of this application.

Claims

1. A method for diagnosing faults in a power system, characterized in that: include: Acquire operation data of the power system in a target scenario; wherein the operation data includes actual values ​​of specified parameters; Using the prediction model in the intelligent diagnosis model, predicting the threshold range of the specified parameter in the target scenario according to the operation data; wherein the intelligent diagnosis model is a model composed of the prediction model and the analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios; By using the analysis model, when the actual value of the designated parameter exceeds the threshold range of the designated parameter, the operation data is regarded as abnormal data, and the abnormal data is displayed and / or warned; The analysis model is a PowerWorld model; The displaying and / or warning of the abnormal data includes: Using the PowerWorld model, and based on the operating data, construct a power system model corresponding to the power system; Based on the power system model, displaying the abnormal data in a target display manner, and / or issuing an early warning for the abnormal data in a target early warning manner; The prediction model is a pre-trained PSO-BP model; Training the PSO-BP model includes: Obtain historical operation data of the power system in various scenarios and build training sets and test sets; Construct the topological structure of BP neural network and initialize the weights and thresholds of BP neural network; Based on the training set and the test set, the weights and thresholds of the BP neural network are optimized using the PSO model to output the optimal weights and thresholds; Assigning the optimal weight and threshold to the BP neural network to obtain the pre-trained PSO-BP model; Construct the topological structure of BP neural network, including: Determine the framework structure of the BP neural network, the framework structure includes: an input layer, a hidden layer and an output layer; Determining the number of neurons in the input layer and the output layer, wherein the number of neurons in the input layer is determined according to the number of characteristic parameters of the sample, and the number of neurons in the output layer is determined according to the number of specified parameters to be predicted; Determine the number of neurons in the hidden layer, take the minimum mean square error value as the goal, and determine the optimal number of neurons in the hidden layer through repeated training; The power system comprises a first bus and a second bus; wherein the voltage of the first bus is lower than the voltage of the second bus; The operation data of the first busbar includes at least one of the following: the voltage of the first busbar, the vector sum of all collector currents connected to the first busbar, the zero-sequence voltage and the zero-sequence current; The operation data of the second bus includes at least one of the following: the voltage, bus current, zero-sequence current, frequency, active power and reactive power of the next-level bus connected to the second bus, the oil temperature, winding temperature and pressure on the high-voltage side of the main transformer connected to the second bus, and the automatic voltage control AVC command value and SVG reactive compensation signal telemetering value of the current bus; wherein the voltage of the next-level bus is lower than the voltage of the second bus; For the operation data of the first bus, the specified parameters are the first bus frequency and the first bus voltage; For the operating data of the second bus, the specified parameters are the second bus frequency and the second bus voltage.

2. The method according to claim 1, characterized in that The method of optimizing the weights and thresholds of the BP neural network using the PSO model based on the training set and the test set, and outputting the optimal weights and thresholds, includes: The initialized weights and thresholds are defined as particles in the particle swarm search space; Determining the dimensions of the particle position and velocity vector according to the number of neurons in each layer of the BP neural network; Setting basic parameters of the PSO model; wherein the basic parameters include termination conditions; Calculate the fitness value of the particle, compare the fitness value of the particle with the individual optimal value of the particle, and if the fitness value of the particle is better than the individual optimal value of the particle, update the individual optimal value of the particle; Compare the fitness value of the particle with the optimal value of the particle group, and if the fitness of the particle is better than the optimal value of the particle group, update the optimal value of the particle group; Using the particle position and velocity update formula, the particle position and velocity are iteratively updated, and when the updated particle position and velocity are within the specified range, the particle fitness value is recalculated to update the individual particle optimal value and the particle group optimal value; When the termination condition is met, the optimal particle is output, and the weight and threshold corresponding to the optimal particle are used as the optimal weight and threshold.

3. The method according to claim 1, characterized in that: The obtaining of historical operation data of the power system in various scenarios and the construction of training sets and test sets include: Obtain the original operation data of the power system in various scenarios; Classifying the original operation data according to types, and processing the original operation data according to data processing methods corresponding to the types to obtain the historical operation data; The historical operation data is divided according to a preset ratio to obtain a training set and a test set.

4. A power system fault diagnosis device, characterized in that: The method for diagnosing a fault in a power system as claimed in any one of claims 1 to 3 comprises: An acquisition module, used to acquire operation data of the power system in a target scenario; wherein the operation data includes actual values ​​of specified parameters; A prediction module, used to predict the threshold range of the specified parameter in the target scenario according to the operating data using the prediction model in the intelligent diagnosis model; wherein the intelligent diagnosis model is a model composed of the prediction model and the analysis model, and the specified parameter corresponds to different threshold ranges in different scenarios; a display and warning module, configured to utilize the analysis model to treat the operation data as abnormal data and display and / or issue an early warning for the abnormal data when the actual value of the specified parameter exceeds a threshold range of the specified parameter; The prediction model is a pre-trained PSO-BP model; The power system fault diagnosis device is used to obtain historical operation data of the power system in various scenarios and construct training sets and test sets; Construct the topological structure of BP neural network and initialize the weights and thresholds of BP neural network; Based on the training set and the test set, the weights and thresholds of the BP neural network are optimized using the PSO model to output the optimal weights and thresholds; Assigning the optimal weight and threshold to the BP neural network to obtain the pre-trained PSO-BP model; The power system fault diagnosis device is also used to determine the framework structure of the BP neural network, which includes: an input layer, a hidden layer and an output layer; Determining the number of neurons in the input layer and the output layer, wherein the number of neurons in the input layer is determined according to the number of characteristic parameters of the sample, and the number of neurons in the output layer is determined according to the number of specified parameters to be predicted; Determine the number of neurons in the hidden layer, take the minimum mean square error value as the goal, and determine the optimal number of neurons in the hidden layer through repeated training; The power system comprises a first bus and a second bus; wherein the voltage of the first bus is lower than the voltage of the second bus; The operation data of the first busbar includes at least one of the following: the voltage of the first busbar, the vector sum of all collector currents connected to the first busbar, the zero-sequence voltage and the zero-sequence current; The operation data of the second bus includes at least one of the following: the voltage, bus current, zero-sequence current, frequency, active power and reactive power of the next-level bus connected to the second bus, the oil temperature, winding temperature and pressure on the high-voltage side of the main transformer connected to the second bus, and the automatic voltage control AVC command value and SVG reactive compensation signal telemetering value of the current bus; wherein the voltage of the next-level bus is lower than the voltage of the second bus; For the operation data of the first bus, the specified parameters are the first bus frequency and the first bus voltage; For the operating data of the second bus, the specified parameters are the second bus frequency and the second bus voltage.

5. An electronic device, characterized in that: include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the power system fault diagnosis method according to any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the power system fault diagnosis method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Transformer fault diagnosis method for optimizing random forest model based on particle swarm algorithm

    CN110596492A

  • Distribution network fault early warning method and device, readable medium and electronic equipment

    CN111832827A

  • Underground carry-scraper fault diagnosis method based on PSO-BP neural network

    CN113157732A

  • Photovoltaic array fault diagnosis method based on statistical modeling

    CN114201483A

  • Power transformer fault prediction method and system driven by state holographic sensing data

    CN114397526A