Fan off-network cascading failure risk assessment method and system based on neural network

Through the neural network-based wind turbine off-grid cascading failure risk assessment method, using simulation models and DCS algorithm optimization, we solve the problem that traditional methods cannot assess the risk of new energy grid cascading failures, and achieve accurate assessment of wind turbine off-grid risks and grid stability. improvement.

CN118780591APending Publication Date: 2024-10-15CENT CHINA BRANCH OF STATE GRID CORP OF CHINA +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410686630.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional risk assessment methods cannot effectively assess the risk of cascading failure of power grids containing new energy sources, especially when wind turbines are off-grid, which threatens the security and stability of the power grid.

Method used

A neural network-based wind turbine off-grid cascading fault risk assessment method is adopted. By constructing a simulation model of the AC power grid, the stator side and rotor side current simulation data of the wind turbine are obtained, a BP neural network prediction model is constructed, and the DCS algorithm is used to optimize the hyperparameters and predict The current changes of the wind turbine are used to assess the risk of wind turbine off-grid.

Benefits of technology

It achieves an accurate assessment of the risk of wind turbine off-grid cascading faults, improves the dynamic response speed of the power grid and the accuracy of the current control strategy, reduces prediction errors, and enhances the safety and stability of the power grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780591A_ABST
    Figure CN118780591A_ABST
Patent Text Reader

Abstract

The invention discloses a fan off-network cascading failure risk assessment method based on a neural network. The method comprises the following steps: constructing a simulation model of an alternating current power grid containing a fan; obtaining stator side current simulation data and rotor side current simulation data of each fan in different states of the AC power grid through the simulation model, and obtaining training data according to the stator side current simulation data and the rotor side current simulation data of each fan; constructing a prediction model based on a BP neural network, and optimizing hyper-parameters of the prediction model based on a DCS algorithm; predicting the stator side current of each fan in a future period of time through the prediction model; and according to the prediction result, calculating an off-network risk index of each fan, and according to the off-network risk index of each fan, evaluating the cascading failure risk of the AC power grid. According to the design, the fan off-network cascading failure risk in the alternating-current power grid containing the fan can be effectively evaluated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power systems and automation thereof, and in particular to a method and system for assessing the risk of wind turbine off-grid cascading failures based on a neural network. Background Art

[0002] With the continuous improvement of new energy technology, the construction of the dual carbon goals in the power industry is accelerating, and the amount of new energy access to the power grid is constantly increasing. While large-scale new energy access to the power grid meets people's power supply needs, it also brings severe challenges to the safe and stable operation of the power grid. The random volatility of new energy output and the weak fault-bearing capacity of power electronic equipment make the chain reaction of local power grid failures increasingly likely to evolve into global safety risks. It is undoubtedly of great practical significance and theoretical value to study the evolution method of chain failures of power grids containing new energy and block the occurrence of accidents in a targeted manner.

[0003] As the proportion of renewable energy increases, the generation and propagation of cascading failures in power grids becomes more complicated. Compared with conventional units, renewable energy equipment has the characteristics of low inertia and weak support. In the case of local fault disturbances in the power grid, renewable energy is more likely to be disconnected from the grid due to insufficient fault ride-through capability, which in turn causes local faults to evolve into cascading failures. The risk of cascading failures in power grids has gradually shifted from being dominated by traditional synchronous units to being dominated by renewable energy units. Traditional risk assessment methods cannot effectively assess the risk of cascading failures in power grids containing renewable energy. Summary of the invention

[0004] The purpose of the present invention is to overcome the problem that traditional risk assessment methods in the prior art cannot effectively assess the risk of cascading failures in power grids containing new energy sources, and to provide a method that can effectively assess the risk of cascading failures of wind turbines in AC power grids containing wind turbines.

[0005] To achieve the above objectives, in a first aspect, an embodiment of the present invention provides a method for assessing the risk of wind turbine off-grid cascading failures based on a neural network, the method comprising:

[0006] S1. Construct a simulation model of an AC power grid including a wind turbine;

[0007] S2. Obtaining, through a simulation model, stator-side current simulation data and rotor-side current simulation data of each wind turbine in the AC power grid when the AC power grid is in steady-state operation and when a line fault occurs in the AC power grid, and obtaining training data based on the stator-side current simulation data and rotor-side current simulation data of each wind turbine;

[0008] The training data includes: a first current of each wind turbine and a second current of each wind turbine, wherein the first current is the stator side current simulation data and the rotor side current simulation data at a first moment, and the second current is the stator side current simulation data and the rotor side current simulation data within a time period T after the first moment;

[0009] S3, constructing a prediction model based on BP neural network, and optimizing the hyperparameters of the prediction model based on DCS algorithm;

[0010] S4, taking the first current of each wind turbine as the input of the prediction model, taking the second current of each wind turbine as the prediction output of the prediction model, performing regression training on the prediction model after hyperparameter optimization, and obtaining a trained prediction model;

[0011] S5, inputting the real-time data of the stator side current and the rotor side current of each wind turbine in the AC power grid into the trained prediction model to predict the stator side current and the rotor side current of each wind turbine in the future T time period;

[0012] S6. Obtain a grid-off risk index of each wind turbine according to the stator-side current and the rotor-side current of each wind turbine in the future T time period, and evaluate the cascading failure risk of the AC power grid according to the grid-off risk index of each wind turbine.

[0013] The length of the T time period is 14ms;

[0014] The hyperparameters of the prediction model include: the number of hidden layer nodes, the initial learning rate, and the L2 regularization coefficient.

[0015] In step S2, the simulation data of the stator side current and the rotor side current of each wind turbine in the AC power grid are obtained by the simulation model when a line fault occurs in the AC power grid, including:

[0016] S201, setting 20 fault injection points at equal intervals on each line of the simulation model of the AC power grid;

[0017] S202 , simulating different types of line faults at each fault injection point, and obtaining stator-side current simulation data and rotor-side current simulation data of each wind turbine when different types of line faults occur at each fault point.

[0018] In step S6, the off-grid risk index of each wind turbine is obtained according to the stator-side current and the rotor-side current of each wind turbine in the future T time period, including:

[0019] S601, obtaining a stator-side current threshold and a rotor-side current threshold of each wind turbine;

[0020] The stator side current threshold is 1.2 times the stator side rated current value, and the rotor side current threshold is 1.2 times the rotor side rated current value;

[0021] S602, according to the stator side current threshold value and the rotor side current threshold value of each wind turbine, and the stator side current and the rotor side current of each wind turbine in the future T time period, calculate the first duration and the second duration of each wind turbine in the future T time period, wherein the first duration is the duration that the stator side current exceeds the stator side current threshold value, and the second duration is the duration that the rotor side current exceeds the rotor side current threshold value;

[0022] S603, calculating the sum of the first duration and the second duration of each wind turbine to obtain the third duration of each wind turbine, and using the third duration of each wind turbine as the off-grid risk indicator of each wind turbine.

[0023] In step S3, optimizing the hyperparameters of the prediction model based on the DCS algorithm includes:

[0024] S301, obtaining a solution matrix X, where each solution in the solution matrix X represents a set of hyperparameters of a BP neural network model, and then proceeding to step S302 to start iteration;

[0025] S302, sorting the solutions in descending order of the objective function values ​​according to the objective function values ​​of the solutions in the solution matrix X, and then proceeding to step S303;

[0026] S303, calculating the differentiated knowledge acquisition index of each solution according to the ranking result of the solutions, and then proceeding to step S304;

[0027] S304, updating each solution according to the differentiated knowledge acquisition index of each solution, and then proceeding to step S305;

[0028] S305: Determine whether the iteration time reaches a preset time threshold. If so, stop the iteration and proceed to step S306. If not, return to step S302 and continue the iteration.

[0029] S306. Select a solution with the smallest corresponding objective function value from the results of all previous iterations.

[0030] In step S303, according to the ranking result of the solutions, calculating the differentiated knowledge acquisition index of the i-th solution includes:

[0031]

[0032] In formula (1)-(2), η i,tis the differential knowledge acquisition index of the ith solution; U(0,1) is a random number uniformly distributed in the range [0,1]; the symbol [·] indicates a rounding down operation; the symbol (f) indicates whether the formula f is established. If it is established, the value of (f) is 0, otherwise it is 1; is the knowledge incompleteness of the i-th solution; R i,t is the ranking of the i-th solution among all solutions; N is the total number of solutions in the solution matrix X;

[0033] In step S304, updating each solution according to the differentiated knowledge acquisition index of each solution includes:

[0034] According to the differentiated knowledge acquisition index of each solution, the solutions are ranked in order from low to high differentiated knowledge acquisition index;

[0035] For the solutions ranked in the bottom P%, the solutions are updated according to the following formula:

[0036] v i,d =ωx best,d +λ t (x r2,d -x i,d )+ω i,t (x r1,d -x i,d ) (3);

[0037] In formula (3), v i,d is the updated ith solution, which is the solution ranked in the last P%; ω is the cognitive weight of the optimal solution; x best,d is the optimal solution, and the optimal solution is the solution with the smallest objective function value in the solution matrix X; ω i,t is the cognitive weight of the ith solution; x r2,d is the random solution ranked in the top (1-P)% and x r1,d For the random solutions ranked in the last P%, x i,d is the i-th solution before updating, λ t To update the index;

[0038] For the top (1-P)% of the solutions, the solutions are updated according to the following formula:

[0039] v j,d =x r1,d +LK(α,σ) (4);

[0040] In formula (4), v j,dis the jth solution after update, the jth solution is the solution ranked in the last P% of the order, x r1,d is a random solution ranked in the last P%, and LK(α,σ) is a random number satisfying the Linnik distribution.

[0041] The objective function value minf(n) of the nth solution in the solution matrix X is calculated according to the following formula:

[0042] minf(n)=ω1RMSE+ω2MAE-ω3R-Square (5);

[0043]

[0044] In formulas (5)-(8), is the output value after inputting the jth training sample into the prediction model using the nth solution in the solution matrix X as the hyperparameter, y j is the actual value of the jth training sample, m is the total number of training samples, is the mean of the actual values ​​of m training samples, RMSE is the root mean square error, MAE is the mean absolute error, R-Square is the determination coefficient, ω1, ω2, ω3 are the error indicator weights.

[0045] In a second aspect, an embodiment of the present invention provides a wind turbine off-grid cascading failure risk assessment system based on a neural network, comprising:

[0046] The first building module is used to build a simulation model of an AC power grid including a wind turbine.

[0047] A data acquisition module is used to acquire the stator-side current simulation data and the rotor-side current simulation data of each wind turbine in the AC power grid under the state of steady-state operation of the AC power grid and the state of line fault of the AC power grid through a simulation model, and acquire training data according to the stator-side current simulation data and the rotor-side current simulation data of each wind turbine;

[0048] The training data includes: the first current of each fan and the second current of each fan, the first current is the stator side current simulation data and the rotor side current simulation data at the first moment, the second current is the stator side current simulation data and the rotor side current simulation data within a T time period after the first moment, and the length of the T time period is 14ms.

[0049] The stator side current simulation data and rotor side current simulation data of each wind turbine in the AC power grid obtained by the simulation model when a line fault occurs in the AC power grid include:

[0050] S201, setting 20 fault injection points at equal intervals on each line of the simulation model of the AC power grid;

[0051] S202 , simulating different types of line faults at each fault injection point, and obtaining stator-side current simulation data and rotor-side current simulation data of each wind turbine when different types of line faults occur at each fault point.

[0052] The second construction module is used to construct a prediction model based on a BP neural network and optimize the hyperparameters of the prediction model based on a DCS algorithm. The hyperparameters of the prediction model include: the number of hidden layer nodes, the initial learning rate, and the L2 regularization coefficient.

[0053] The optimization of the hyperparameters of the prediction model based on the DCS algorithm includes:

[0054] S301, obtaining a solution matrix X, where each solution in the solution matrix X represents a set of hyperparameters of a BP neural network model, and then proceeding to step S302 to start iteration;

[0055] S302, sorting the solutions in descending order of the objective function values ​​according to the objective function values ​​of the solutions in the solution matrix X, and then proceeding to step S303;

[0056] The objective function value minf(n) of the nth solution in the solution matrix X is calculated according to the following formula:

[0057] minf(n)=ω1RMSE+ω2MAE-ω3R-Square (5);

[0058]

[0059]

[0060] In formulas (5)-(8), is the output value after inputting the jth training sample into the prediction model using the nth solution in the solution matrix X as the hyperparameter; y j is the actual value of the jth training sample; m is the total number of training samples; is the mean of the actual values ​​of m training samples; RMSE is the root mean square error; MAE is the mean absolute error; R-Square is the determination coefficient; ω1, ω2, ω3 are the error indicator weights;

[0061] S303, calculating the differentiated knowledge acquisition index of each solution according to the ranking result of the solutions, and then proceeding to step S304;

[0062] Calculating the differentiated knowledge acquisition index of the nth solution according to the sorting results of the solutions includes:

[0063]

[0064] In formula (1)-(2), η n,t is the differential knowledge acquisition index of the nth solution; U(0,1) is a random number uniformly distributed in the range [0,1]; the symbol [·] indicates a rounding down operation; Representation judgment formula Is it established? If established, The value of is 0. If it is not true, The value of is 1; is the degree of imperfect knowledge of the nth solution; R i,t is the ranking of the i-th solution among all solutions; N is the total number of solutions in the solution matrix X.

[0065] S304, updating each solution according to the differentiated knowledge acquisition index of each solution, and then proceeding to step S305;

[0066] The updating of each solution according to the differentiated knowledge acquisition index of each solution includes:

[0067] According to the differentiated knowledge acquisition index of each solution, the solutions are ranked in order from low to high differentiated knowledge acquisition index;

[0068] For the solutions ranked in the bottom P%, the solutions are updated according to the following formula:

[0069] v i,d =ωx best,d +λ t (x r2,d -x i,d )+ω i,t (x r1,d -x i,d ) (3);

[0070] In formula (3), v i,d is the updated ith solution, which is the solution ranked in the last P% of the differential knowledge acquisition index; ω is the cognitive weight of the optimal solution; x best,d is the optimal solution, and the optimal solution is the solution with the smallest objective function value in the solution matrix X; ω i,t is the cognitive weight of the ith solution; x r2,d is the random solution ranked in the top (1-P)%; x r1,d is the random solution ranked in the last P%; x i,d is the i-th solution before updating; λ t To update the index;

[0071] For the top (1-P)% of the solutions, the solutions are updated according to the following formula:

[0072] v j,d =x r1,d +LK(α,σ) (4);

[0073] In formula (4), v j,d is the jth solution after update; the jth solution is the solution ranked in the top (1-P)%; x r1,d is a random solution ranked in the last P%; LK(α,σ) is a random number satisfying the linnik distribution;

[0074] S305: Determine whether the iteration time reaches a preset time threshold. If so, stop the iteration and proceed to step S306. If not, return to step S302 and continue the iteration.

[0075] S306: Perform a retrospective evaluation operation and select the solution with the minimum objective function value from the results of previous iterations.

[0076] A training module, used to use the first current of each wind turbine as the input of the prediction model and the second current of each wind turbine as the prediction output of the prediction model, to train the prediction model after hyperparameter optimization, and obtain a trained prediction model;

[0077] A prediction module, used for inputting the real-time data of the stator side current and the rotor side current of each wind turbine in the AC power grid into the trained prediction model to predict the stator side current and the rotor side current of each wind turbine in the future T time period;

[0078] The evaluation module is used to obtain the off-grid risk index of each wind turbine according to the stator side current and the rotor side current of each wind turbine in the future T time period, and evaluate the cascading failure risk of the AC power grid according to the off-grid risk index of each wind turbine.

[0079] According to the stator side current and rotor side current of each wind turbine in the future T time period, the off-grid risk index of each wind turbine is obtained, including:

[0080] S601, obtaining a stator-side current threshold and a rotor-side current threshold of each wind turbine;

[0081] The stator side current threshold is 1.2 times the stator side rated current value, and the rotor side current threshold is 1.2 times the rotor side rated current value;

[0082] S602, according to the stator side current threshold value and the rotor side current threshold value of each wind turbine, and the stator side current and the rotor side current of each wind turbine in the future T time period, calculate the first duration and the second duration of each wind turbine in the future T time period, wherein the first duration is the duration that the stator side current exceeds the stator side current threshold value, and the second duration is the duration that the rotor side current exceeds the rotor side current threshold value;

[0083] S603, calculating the sum of the first duration and the second duration of each wind turbine to obtain the third duration of each wind turbine, and using the third duration of each wind turbine as the off-grid risk indicator of each wind turbine.

[0084] In a third aspect, an embodiment of the present invention provides a neural network-based wind turbine off-grid cascading failure risk assessment device, comprising a memory and a processor, wherein the memory is used to store computer program code and transmit the computer program code to the processor;

[0085] The processor is used to execute the above-mentioned neural network-based wind turbine off-grid cascading failure risk assessment method according to the instructions in the computer program code.

[0086] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned neural network-based wind turbine off-grid cascading failure risk assessment method is implemented.

[0087] Compared with the prior art, the present invention has the following beneficial effects:

[0088] 1. In a method for assessing the risk of wind turbine off-grid cascading failures based on a neural network of the present invention, wind turbine current is one of the important parameters reflecting the operating status of the wind turbine. The wind turbine current includes the stator side current and the rotor side current. When the wind turbine current is abnormal, it may cause a series of problems, thereby increasing the risk of wind turbine off-grid. Therefore, in the present invention, after predicting the current of each wind turbine, the off-grid risk index of each wind turbine in the AC power grid is obtained according to the predicted wind turbine current value. Specifically, by setting the current threshold of each wind turbine, according to the predicted value of the current of each wind turbine in the AC power grid in the future T time period, the duration of the current of each wind turbine in the power grid exceeding the threshold in the future T time period is judged, and the duration of the current of each wind turbine exceeding the threshold is used as the off-grid risk index of each wind turbine. Since there is a close correlation between the wind turbine current and the risk of wind turbine off-grid, the present invention uses the duration of the current of each wind turbine in the power grid exceeding the threshold in the future T time period as the indicator of the risk of wind turbine off-grid cascading failure, which can accurately reflect the state of each wind turbine in the AC power grid and effectively assess the risk of wind turbine off-grid cascading failure. Therefore, due to the close correlation between wind turbine current and the risk of wind turbine off-grid failure, the present invention uses the duration that the current of each wind turbine in the power grid exceeds the threshold in the future T time period as an indicator of the risk of wind turbine off-grid cascading failure, which can effectively evaluate the risk of wind turbine off-grid cascading failure.

[0089] 2. In a neural network-based risk assessment method for wind turbine off-grid cascading failures of the present invention, a training data set includes a first current of each wind turbine and a second current of each wind turbine, wherein the first current is stator side current simulation data and rotor side current simulation data at a first moment, and the second current is stator side current simulation data and rotor side current simulation data within a time period T after the first moment. When training the prediction model, the first current of each wind turbine is used as the input of the prediction model, and the second current of each wind turbine is used as the prediction output of the prediction model, and regression training is performed on the prediction model to obtain a trained prediction model. Therefore, the trained prediction model can predict the current of each wind turbine within a subsequent time period T according to the current current of each wind turbine in the AC power grid, and then calculate the off-grid risk index of each wind turbine. By predicting the wind turbine current in a short time, the error caused by system delay can be compensated, the dynamic response speed of the current can be improved, and a basis can be provided for subsequently improving the accuracy of a reasonable control strategy for the current of the doubly fed wind turbine. Therefore, in this design, the trained prediction model can predict the current of each wind turbine in the next T time period according to the current current of each wind turbine in the AC power grid, compensate for the error caused by the system delay, improve the dynamic response speed of the current, and provide a basis for subsequently improving the accuracy of the reasonable control strategy of the doubly fed wind turbine current.

[0090] 3. In the risk assessment method of wind turbine off-grid cascading failure based on neural network of the present invention, by constructing a simulation model of AC power grid containing wind turbines, the current simulation data of each wind turbine under different operating conditions of AC power grid is obtained through the simulation model, a training data set is established through the simulation data, and the prediction model based on BP neural network is trained through the training data set, and the training data set is easier to obtain. Therefore, the present invention obtains the training data set by constructing the simulation model of AC power grid, which can conveniently obtain a richer training data set and reduce the cost of collecting training data sets.

[0091] 4. In a neural network-based risk assessment method for wind turbine off-grid cascading failures of the present invention, while performing regression training on the prediction model, the DCS algorithm is used to optimize the parameters of the prediction model. The DCS algorithm can balance the relationship between exploration and utilization, and avoid stagnation in the local optimal solution while searching for a better solution in the solution space. Therefore, the DCS algorithm can find a combination of prediction model parameters that is more suitable for the task requirements, thereby improving the performance of the prediction model, reducing the prediction error, and improving the prediction accuracy. Therefore, the present invention uses the DCS algorithm to optimize the parameters of the prediction model, improve the performance of the prediction model, reduce the prediction error, and improve the prediction accuracy.

[0092] 5. The present invention provides a neural network-based wind turbine off-grid cascading failure risk assessment system, comprising: a first construction module, used to construct a prediction model based on a BP neural network; a second construction module, used to establish a simulation model of an AC power grid containing wind turbines; a data acquisition module, used to obtain the current simulation data of each wind turbine in the AC power grid under the state of steady-state operation of the AC power grid and under the state of line failure of the AC power grid through the simulation model, and to obtain training data based on the current simulation data of each wind turbine; a training module, used to perform regression training on the prediction model through the training data, and use a DCS algorithm to optimize the parameters of the prediction model to obtain a trained prediction model; a prediction module, used to input the real-time current on the stator side of each wind turbine in the AC power grid into the trained prediction model, and predict the current of each wind turbine in the AC power grid within a future T time period; an assessment module, used to obtain the off-grid risk index of each wind turbine in the AC power grid based on the current of each wind turbine in the AC power grid within a future T time period, and assess the cascading failure risk of the AC power grid based on the off-grid risk index of each wind turbine in the AC power grid. The system is used to implement the steps of the neural network-based wind turbine grid-trip cascading failure risk assessment method provided in the above technical solution. Therefore, the system also includes all the beneficial effects of the neural network-based wind turbine grid-trip cascading failure risk assessment method provided in the above technical solution, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0093] Figure 1The present invention provides a flowchart of a method for assessing the risk of wind turbine off-grid cascading failures based on a neural network.

[0094] Figure 2 It is a flow chart of obtaining current simulation data of each wind turbine under a power grid fault state provided by an embodiment of the present invention.

[0095] Figure 3 It is a flow chart of a hyperparameter optimization method of a prediction model provided by an embodiment of the present invention.

[0096] Figure 4 It is a schematic diagram of a flow chart for obtaining the off-grid risk index of each wind turbine provided by an embodiment of the present invention.

[0097] Figure 5 It is a structural schematic diagram of a wind turbine off-grid cascading failure risk assessment system based on a neural network provided in an embodiment of the present invention.

[0098] Figure 6 It is a structural schematic diagram of a wind turbine off-grid cascading failure risk assessment device based on a neural network provided in an embodiment of the present invention.

[0099] Figure 7 It is a structural schematic diagram of a prediction model provided by an embodiment of the present invention.

[0100] Figure 8 It is a schematic diagram of the model structure of an AC power grid containing a wind turbine provided in an embodiment of the present invention.

[0101] Fig. 9 It is a comparison diagram of convergence curves of the DCS algorithm and the PSO algorithm provided in the embodiment of the present invention.

[0102] Fig.10 It is a schematic diagram of the prediction model training progress provided by an embodiment of the present invention.

[0103] Fig.11 It is a schematic diagram of the output result of the prediction model provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0104] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0105] The new energy base transmits the large amount of electricity generated to the load center through the line, forming a new power system with a high proportion of new energy and a high proportion of power electronics. New energy units such as wind turbines have a strong coupling relationship with other components of the power grid. As the proportion of new energy increases, the generation and propagation of cascading failures in the power grid becomes more complicated. Compared with conventional units, wind turbine equipment has the characteristics of low inertia and weak support. In the case of local fault disturbances in the power grid, the wind turbine is more likely to be disconnected from the grid due to insufficient fault ride-through capability, which in turn causes the local fault to evolve into a cascading failure. However, traditional risk assessment methods cannot effectively assess the cascading failure risk of power grids containing wind turbines.

[0106] Embodiment 1:

[0107] In order to solve the technical problem that it is difficult to assess the risk of cascading failures in a wind turbine power grid in the related art, an embodiment of the present invention provides a method for assessing the risk of cascading failures of wind turbines off-grid based on a neural network, such as Figure 1 As shown, Figure 1 1 is a flow chart of a method for assessing the risk of wind turbine off-grid cascading failures based on a neural network provided by an embodiment of the present invention. The method comprises steps S1 to S6:

[0108] S1. Construct a simulation model of an AC power grid containing wind turbines.

[0109] In this embodiment, the simulation model can accurately simulate the operation of the actual power grid, and the training data obtained through the simulation model can more accurately reflect the characteristics and laws of the actual power grid; at the same time, by constructing a simulation model of an AC power grid containing wind turbines, the steady-state operation and line fault status of the AC power grid can be simulated in a highly controllable environment, and a large amount of diverse data can be quickly obtained, including wind turbine current simulation data under steady-state operation and line fault conditions, thereby greatly improving the efficiency of data acquisition.

[0110] S2. Obtaining, through a simulation model, stator-side current simulation data and rotor-side current simulation data of each wind turbine in the AC power grid when the AC power grid is in steady-state operation and when a line fault occurs in the AC power grid, and obtaining training data based on the stator-side current simulation data and rotor-side current simulation data of each wind turbine;

[0111] The training data includes: the first current of each fan and the second current of each fan, the first current is the stator side current simulation data and the rotor side current simulation data at the first moment, and the second current is the stator side current simulation data and the rotor side current simulation data within a time period T after the first moment.

[0112] The length of the T time period may be 14 ms.

[0113] The stator side current simulation data and the rotor side current simulation data in the T time period after the first moment are a set of current value data obtained based on the sampling frequency. For example, when the sampling frequency is set to 1ms for one sampling, the stator side current simulation data within 14ms after the first moment is a set of 14 current data values ​​arranged in time order. According to the current data value sequence obtained by sampling or prediction, a waveform diagram of the current simulation data within a period of time can be obtained.

[0114] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of obtaining current simulation data of each wind turbine under a power grid fault state provided by an embodiment of the present invention, such as Figure 2 As shown, obtaining the simulation data of the current of each wind turbine in the AC power grid when a line fault occurs in the AC power grid through the simulation model includes steps S201 to S202:

[0115] S201, setting 20 fault injection points at equal intervals on each line of the simulation model of the AC power grid;

[0116] S202 , simulating different types of line faults at each fault injection point, and obtaining stator-side current simulation data and rotor-side current simulation data of each wind turbine when different types of line faults occur at each fault point.

[0117] In this embodiment, the line fault includes an open circuit fault and a short circuit fault. Specifically, the short circuit fault may be a single-phase to ground short circuit fault, a two-phase short circuit fault, a two-phase to ground short circuit fault, or a three-phase to ground short circuit fault.

[0118] In this embodiment, after obtaining a training data set including a plurality of sets of first currents and second currents, all current data in the training data set are standardized.

[0119] Specifically, the mean and standard deviation of all current data in the training data set are calculated according to the following formula:

[0120]

[0121] In formulas (20) and (21), μ * (k) is the average value, σ * (k) is the standard deviation, M is the total number of current data in the training data set, X * (M,K) The Kth current data in the training data set.

[0122] According to the average value μ * (k) and standard deviation σ *(k) All current data in the original training data set are standardized using the Z-Score standardization method, and all current data in the original training data set are converted into standardized data with a mean of 0 and a standard deviation of 1, thereby obtaining a standardized training data set. Through standardization, the influence of noise in the original data and the extreme maximum and minimum values ​​on the neural network training can be reduced, which facilitates the acceleration of the convergence speed during the neural network training and reduces the possibility of gradient explosion during the convergence process.

[0123] After obtaining the mean and standard deviation of all current data, all current data in the training data set are converted into standardized data with a mean of 0 and a standard deviation of 1 using the following formula:

[0124]

[0125] In formula (22), X'(k) is the standardized training data set, and X(k) is the original training data set.

[0126] By standardizing the original training data set, we can avoid the problems of gradient vanishing, gradient exploding, and overfitting during model training, and accelerate the convergence speed of model training.

[0127] S3. Construct a prediction model based on BP neural network, and optimize the hyperparameters of the prediction model based on DCS algorithm.

[0128] In this embodiment, the prediction model based on the BP neural network includes an input layer, a hidden layer, and an output layer. A forward propagation and a reverse propagation mechanism are set in the neural network model to establish a BP neural network model. Figure 7 , Figure 7 This is a schematic diagram of a prediction model provided by an embodiment of the present invention. In order to avoid the problem of slow convergence or oscillation due to unreasonable step size, which causes the BP neural network to have difficulty in converging and low accuracy, a structure such as Figure 7 The BP recurrent neural network shown in the figure introduces forward propagation mechanism and back propagation mechanism. Based on the forward and back propagation process of the three-layer structure of input layer, hidden layer and output layer, the gradients of all parameters involved in the operation are gradually solved in the process of solving the optimal loss function, which improves the ability of BP neural network to accurately describe the sequence rules, and then solves the problem of neural network convergence accuracy and speed.

[0129] Specifically, the linear transformation structure of the weight values ​​and bias terms between the input layer and the hidden layer, and between the hidden layer and the output layer is set according to the following method:

[0130] Set the propagation formula of data from the input layer to the hidden layer:

[0131] h=g1(wx+b1) (9);

[0132] In formula (9), x is the input layer data, w is the weight parameter from the input layer to the hidden layer, b1 is the bias parameter from the input layer to the hidden layer, and g1 is the activation function from the input layer to the hidden layer.

[0133] Set the propagation formula of data from the hidden layer to the output layer:

[0134]

[0135] In formula (10), is the input layer data, v is the weight parameter from the hidden layer to the output layer, b2 is the bias parameter from the hidden layer to the output layer, and g2 is the activation function from the hidden layer to the output layer.

[0136] From the propagation formula of data from the input layer to the hidden layer and the propagation formula of data from the hidden layer to the output layer, the propagation formula of the prediction model based on the BP neural network can be obtained as follows:

[0137]

[0138] In formula (11), is the output of the model, g2 is the activation function from the hidden layer to the output layer, v is the weight parameter from the hidden layer to the output layer, g1 is the activation function from the input layer to the hidden layer, w is the weight parameter from the input layer to the hidden layer, x is the input layer data, b1 is the bias parameter from the input layer to the hidden layer, and b2 is the bias parameter from the hidden layer to the output layer.

[0139] Set the loss function of the prediction model based on BP neural network, the loss function is:

[0140]

[0141] In formula (12), E is the error between the predicted output value and the true value, y is the second current in the training data, The predicted value output by the model.

[0142] The update of the weight and bias term of the prediction model based on BP neural network is as follows:

[0143]

[0144] In formulas (13)-(16), k is the number of updates of the prediction model, and η is the learning rate of the prediction model.

[0145] In response to the problems existing in existing neural network technologies in extracting data patterns and building prediction models, the present invention provides a BP recurrent neural network architecture comprising an input layer, a hidden layer, and an output layer. It can better handle the characterization of data sequence patterns through forward and backward propagation mechanisms, effectively alleviate the convergence speed and accuracy problems of neural networks, avoid oscillation and non-convergence, and help to better train deep networks and make them suitable for deep learning tasks.

[0146] At present, the commonly used prediction methods mainly include two categories: methods based on statistical theory and machine learning methods based on artificial intelligence technology. The former reflects the data rules by establishing mathematical models, and has high requirements on the comprehensiveness of data volume and related factors. With the complexity of the power grid structure, such methods have gradually failed to meet the needs of the power industry; the latter is based on the continuous development of computer technology and extracts data features by simulating biological neural structures. Structures such as recurrent neural networks (RNN) and representative methods of neural networks have been widely used in various data prediction work, but due to the structure of the neural network, this type of method has a certain randomness. Therefore, it is necessary to optimize the hyperparameters of the neural network model through optimization algorithms to obtain the optimal hyperparameters of the neural network model.

[0147] In view of the problem that it is difficult to achieve the optimal setting of hyperparameters in existing neural network models, which affects the final optimization accuracy, an embodiment of the present invention provides an optimization algorithm that simulates the different speeds of human knowledge acquisition, namely, the DCS (Differentiated creative search) algorithm. By imitating the divergent thinking of humans to search for the optimal solution, it avoids falling into the dilemma of local optimal solutions, and can better search the global solution space; by imitating the influence of high-knowledge perfection individuals in the group on other individuals to adjust the overall search direction of the group, reasonable iterative adjustment of exploration in the solution space is achieved, and premature convergence caused by local optimal solutions is avoided, providing a faster and more accurate method for searching for optimal hyperparameters of neural networks.

[0148] In this embodiment, the hyperparameters of the prediction model include: the number of hidden layer nodes, the initial learning rate and the L2 regularization coefficient. Figure 3 is a flow chart of a method for optimizing hyperparameters of a prediction model provided by an embodiment of the present invention. Figure 3 As shown, the optimization of the parameters of the prediction model using the DCS algorithm includes steps S301 to S306:

[0149] S301, obtaining a solution matrix X, where each solution in the solution matrix X represents a set of hyperparameters of a BP neural network model, and then proceeding to step S302 to start iteration.

[0150] First, it is necessary to determine the number of solutions N and the solution matrix X, select the dimension d of the optimized parameters of the BP neural network model, and randomly generate a batch of N rows and d columns of initial values ​​as the initial values ​​of the solution matrix X to initialize the DCS algorithm.

[0151] S302. According to the objective function value of each solution in the solution matrix X, all solutions are sorted in descending order of the objective function value, and then the process proceeds to step S303.

[0152] By analyzing the difference between the predicted value and the actual value of the BP neural network model in the test set, an evaluation system for the hyperparameters of the BP neural network model is established, and the objective function of the DCS algorithm is set. According to the performance of each solution in the solution matrix X on the objective function, the function value of the solution matrix is ​​rearranged from high to low.

[0153] Specifically, the objective function value minf(n) of the nth solution in the solution matrix X is calculated according to the following formula:

[0154] minf(n)=ω1RMSE+ω2MAE-ω3R-Square (5);

[0155]

[0156] In formulas (5)-(8), is the output value after inputting the jth training sample into the prediction model using the nth solution in the solution matrix X as the hyperparameter, y j is the actual value of the jth training sample, m is the total number of training samples, is the mean of the actual values ​​of the m training samples, RMSE is the root mean square error, MAE is the mean absolute error, R-Square is the determination coefficient, ω1, ω2, ω3 are the error indicator weights. Similarly, according to the above method, the objective function value of each solution in the solution matrix X can be calculated.

[0157] In this embodiment, the training samples come from the training data obtained in step S2, wherein each training sample includes a first current and a corresponding second current. When any training sample is used to calculate the objective function value of the solution, the first current is used as the input of the prediction model, and the corresponding second current is used as the actual value of the training sample.

[0158] S303: Update the differentiated knowledge acquisition index of each solution according to the ranking result of the solutions, and then proceed to step S304.

[0159] According to the ranking results of the solutions, the differential knowledge acquisition index corresponding to the i-th solution is updated including:

[0160]

[0161] In formula (1)-(2), η n,t is the differential knowledge acquisition index of the nth solution; U(0,1) is a random number uniformly distributed in the range [0,1]; the symbol [·] indicates a rounding down operation; Representation judgment formula Is it established? If established, The value of is 0. If it is not true, The value of is 1; is the degree of imperfect knowledge of the nth solution; R n,t is the ranking of the nth solution among all solutions; N is the total number of solutions in the solution matrix X. Similarly, according to the above method, the differentiated knowledge acquisition index of each solution in the solution matrix X can be calculated.

[0162] S304: Update each solution in the solution matrix X according to the differentiated knowledge acquisition index corresponding to each solution, and then proceed to step S305.

[0163] According to the differentiated knowledge acquisition index of each solution, the solution in the solution matrix X is updated including:

[0164] First, the solutions are ranked according to their differentiated knowledge acquisition index from low to high;

[0165] After sorting by the differential knowledge acquisition index, for the solutions ranked in the bottom P% of the differential knowledge acquisition index, the solutions are updated according to the following formula:

[0166] v i,d =ωx best,d +λ t (x r2,d -x i,d )+ω i,t (x r1,d -x i,d ) (3);

[0167] In the formula, v i,d is the updated ith solution, which is a solution ranked in the bottom P% of the differential knowledge acquisition index; ω is the cognitive weight of the optimal solution, and the initial value of ω is 1; x best,dis the optimal solution, and the optimal solution is the solution with the smallest objective function value in the solution matrix X; ω i,t is the cognitive weight of the ith solution; x r2,d The random solutions ranked in the top (1-P)% of the differential knowledge acquisition index; x r1,d Get the random solutions with the index ranking in the last P% for differential knowledge; x i,d is the i-th solution before updating; λ t is the update index, where λ t The calculation is performed according to the following formula:

[0168]

[0169] In the formula, t is the current iteration number, t max is the maximum number of iterations.

[0170] After sorting by the differential knowledge acquisition index, the solutions ranked in the top (1-P)% of the differential knowledge acquisition index are updated according to the following formula:

[0171] v j,d =x r1,d +LK(α,σ) (4);

[0172] In the formula, v j,d is the updated j-th solution, which is a solution ranked in the top (1-P)% of the differential knowledge acquisition index, x r1,d is a random solution with the last P% of index ranking for differential knowledge acquisition; LK(α,σ) is a random number satisfying the Linnik distribution.

[0173] The distribution curve satisfied by LK(α,σ) can be expressed as:

[0174]

[0175] In the formula, represents the distribution curve of the linnik distribution, σ represents the range parameter of the linnik distribution, which affects the diffusion range of the distribution, α represents the shape parameter of the linnik distribution, which affects the diffusion shape of the distribution, t represents the independent variable on the real number set, and R represents the real number set.

[0176] S305: Determine whether the iteration time reaches a preset time threshold. If so, stop the iteration and proceed to step S306. If not, return to step S302 and continue the iteration.

[0177] In this embodiment, a preset time threshold is set, and whether the iteration time reaches the preset time threshold is used as the condition for ending the iteration. Similarly, a maximum number of iterations can also be set, and whether the number of iterations reaches the preset maximum number of iterations is used as the condition for ending the iteration, which is not specifically limited here.

[0178] S306, selecting the solution with the minimum objective function value from the results of all previous iterations as the hyperparameter of the prediction model, and completing the optimization of the hyperparameter of the prediction model. Specifically, selecting the solution with the minimum objective function value from the results of all previous iterations according to the following formula:

[0179]

[0180] In formula (19), f is the objective function, v i,t represents the new solution to be adopted by the i-th solution at the t-th iteration; x i,t represents the i-th solution at the t-th iteration; x i,t+1 represents the i-th solution at the t+1-th iteration.

[0181] S4. Using the first current of each wind turbine as the input of the prediction model and the second current of each wind turbine as the prediction output of the prediction model, the prediction model after hyperparameter optimization is trained to obtain a trained prediction model.

[0182] S5. Input the real-time data of the stator side current and the rotor side current of each wind turbine in the AC power grid into the trained prediction model to predict the stator side current and the rotor side current of each wind turbine in the future T time period.

[0183] By accurately predicting the current, the error caused by system delay can be compensated, the dynamic response speed of the current can be improved, and a basis can be provided for subsequently improving the accuracy of the reasonable control strategy of the doubly fed wind turbine current, helping to improve the steady-state characteristics of the wind turbine, suppressing current pulsation under fault conditions, and improving the dynamic performance of the wind turbine.

[0184] S6. Obtain the off-grid risk index of each wind turbine in the AC power grid according to the stator-side current and the rotor-side current of each wind turbine in the future T time period, and evaluate the cascading failure risk of the AC power grid according to the off-grid risk index of each wind turbine in the AC power grid.

[0185] In this embodiment, see Figure 4 , Figure 4 is a schematic diagram of a flow chart for obtaining the off-grid risk index of each wind turbine provided by an embodiment of the present invention, such as Figure 4As shown, obtaining the off-grid risk index of each wind turbine in the AC power grid according to the current of each wind turbine in the future T time period includes steps S601 to S603:

[0186] S601, obtaining a stator-side current threshold and a rotor-side current threshold of each wind turbine;

[0187] The stator side current threshold is 1.2 times the stator side rated current value, and the rotor side current threshold is 1.2 times the rotor side rated current value.

[0188] S602. Calculate the first duration and the second duration of each wind turbine in the future T time period according to the stator side current threshold and the rotor side current threshold of each wind turbine, as well as the stator side current and the rotor side current of each wind turbine in the future T time period, wherein the first duration is the duration when the stator side current exceeds the stator side current threshold, and the second duration is the duration when the rotor side current exceeds the rotor side current threshold.

[0189] S603, calculating the sum of the first duration and the second duration of each wind turbine to obtain the third duration of each wind turbine, and using the third duration of each wind turbine as the off-grid risk indicator of each wind turbine.

[0190] Since there is a close correlation between wind turbine current and the risk of wind turbine off-grid failure, the present invention uses the duration that the current of each wind turbine in the power grid exceeds the threshold in the future T time period as an indicator of the risk of wind turbine off-grid cascading failure, which can effectively evaluate the risk of wind turbine off-grid cascading failure.

[0191] Specifically, the larger the off-grid risk index value of the wind turbine is, the higher the risk of the wind turbine being off-grid. When the off-grid risk index of each wind turbine in the AC power grid is equal to zero, there is no risk of wind turbine off-grid cascading failure in the AC power grid. When the off-grid risk index of a wind turbine in the AC power grid is greater than zero, there is a risk of wind turbine off-grid cascading failure in the AC power grid.

[0192] In this embodiment, if Figure 8As shown in the figure, an 11kV AC power grid model containing wind turbines is built in SIMULINK (simulation tool) of MATLAB software as an example. The AC power grid contains 13 nodes and a wind farm WF, and the wind farm contains multiple wind turbines. Different types of line faults are simulated at different locations of the example model. The fault time is set to 5s, and the fault line is cut off 100ms after the fault occurs. According to the fault simulation results, the training data set is obtained, the data in the training data set is standardized, the mean and standard deviation of the data in the training data set are calculated, and the data in the training data set is standardized by the Z-Score standardization method, and converted into data with a mean of 0 and a standard deviation of 1. Then a prediction model based on BP neural network is built, and the maximum number of training times of network parameters is set to 1000, the gradient threshold is 1, and the learning rate adjustment factor is 0.2. The number of hidden layer nodes, the initial learning rate, and the L2 regularization coefficient are set as hyperparameters to be optimized, and the above hyperparameters are iteratively optimized by the DCS algorithm.

[0193] In order to illustrate the effectiveness of the DCS algorithm used in the present invention, as a comparison with the present invention, the classic PSO algorithm is used to optimize the BP neural network parameters, and the algorithm parameters are set. The DCS and PSO algorithm parameter settings are shown in Table 1:

[0194] Table 1: Algorithm parameter setting table

[0195]

[0196]

[0197] During the training of the prediction model after hyperparameter optimization, the model training progress is as follows: Fig.10 As shown in the figure, the model error tends to be stable after about 60 iterations, and the optimal value appears.

[0198] Comparing the DCS algorithm and the PSO algorithm, the parameter optimization fitness convergence curves of the two algorithms are as follows: Fig. 9 As shown by Fig. 9 It can be seen that the DCS algorithm has a faster convergence speed than the PSO algorithm, and the final convergence effect is also better. According to the optimal solution after the DCS algorithm is optimized, a prediction model based on the BP neural network is built. The parameters of the prediction model are shown in Table 2:

[0199] Table 2: BP neural network structure parameter table

[0200] Neural network parameters Numeric Number of hidden layers 4 Number of hidden layer nodes 203 Initial learning rate 0.019 L2 regularization coefficient 0.00015 Activation function type Sigmoid Number of training sessions 1000

[0201] Based on the accuracy of the prediction results of the prediction model optimized by the DCS algorithm for the rapid prediction of the current on the stator and rotor sides of the wind turbine, the prediction error calculation formula of the current value on the stator and rotor sides of the wind turbine is shown in Formula 5. The average error of the predicted current value on the stator and rotor sides of the wind turbine under fault conditions is 2.73% as calculated by Formula 5. Specifically, Fig.11 is a schematic diagram of the output result of the prediction model provided by the embodiment of the present invention, such as Fig.11 As shown in the figure, in the simulation experiment, after using the prediction model to predict the wind turbine current, the predicted value is compared with the actual value, and the result output by the prediction model is basically consistent with the actual value.

[0202] From the calculation results of the above examples, it can be seen that the prediction model based on DCS algorithm optimization proposed in the present invention can accurately and quickly predict the stator and rotor currents of the wind turbine, and then obtain the off-grid risk index of each wind turbine, and evaluate the cascading failure risk of the AC power grid according to the off-grid risk index of each wind turbine. Compared with the traditional BP neural network optimized by PSO algorithm, the hyperparameters of the prediction model optimized by DCS algorithm in the present invention have faster convergence speed of parameters and smaller convergence result error.

[0203] In summary, the present invention constructs a BP neural network including a learning mechanism of forward propagation and back propagation as a prediction model, uses a loss function to update and adjust the weight parameters of each node in the network, and at the same time, by setting three types of structures including input layer, hidden layer, and output layer, the effect of gradient learning optimization is achieved. In the BP neural network architecture constructed by the present invention, the forward propagation mechanism can effectively ensure the regular characterization of the data sequence, and the back propagation mechanism can adjust the weight vector of the best fitting sample. At the same time, the present invention uses the DCS algorithm to optimize the parameters of the prediction model, and sets the hyperparameters such as the number of hidden layer nodes, the initial learning rate, and the L2 regularization coefficient in the process of building the BP neural network model as optimization variables, thereby avoiding the problem of unreasonable manual setting of parameters in the process of building the BP neural network model and improving the accuracy of the prediction model. In addition, the present invention comprehensively considers the root mean square error, the mean absolute error, and the determination coefficient as the evaluation system of the model prediction value, so as to better obtain the optimal combination of hyperparameters, and then obtain a prediction model that can stably and reliably predict the stator current of the wind turbine. The real-time current of each wind turbine in the AC power grid is input into the prediction model, and the prediction model outputs the stator and rotor currents of each wind turbine in the future time period T. The grid-off risk index of each wind turbine is calculated based on the stator and rotor currents of each wind turbine in the future time period T, and then the risk of wind turbine grid-off cascading failures in the current AC power grid is accurately assessed based on the grid-off risk index of each wind turbine.

[0204] Embodiment 2:

[0205] The embodiment of the present invention provides a neural network-based wind turbine off-grid cascading failure risk assessment system. Figure 5 is a structural schematic diagram of a wind turbine off-grid cascading failure risk assessment system based on a neural network provided by an embodiment of the present invention, such as Figure 5 As shown, the neural network-based wind turbine off-grid cascading failure risk assessment system provided by the embodiment of the present invention includes:

[0206] The first building module is used to build a prediction model based on a BP neural network. The first building module is used to execute step S1 in embodiment 1.

[0207] The data acquisition module is used to obtain the stator side current simulation data and the rotor side current simulation data of each wind turbine in the AC power grid under the state of steady-state operation of the AC power grid and the state of line fault in the AC power grid through the simulation model, and obtain training data based on the stator side current simulation data and the rotor side current simulation data of each wind turbine.

[0208] The training data includes: a first current of each wind turbine and a second current of each wind turbine, wherein the first current is the stator side current simulation data and the rotor side current simulation data at a first moment, and the second current is the stator side current simulation data and the rotor side current simulation data within a time period T after the first moment. The data acquisition module is used to execute step S2 in Example 1.

[0209] The second building module is used to build a prediction model based on a BP neural network and optimize the hyperparameters of the prediction model based on a DCS algorithm. The second building module is used to execute step S3 in Example 1.

[0210] The training module is used to train the prediction model using the first current of each wind turbine as the input of the prediction model and the second current of each wind turbine as the prediction output of the prediction model to obtain a trained prediction model. The training module is used to execute step S4 in Example 1.

[0211] The prediction module is used to input the real-time data of the stator side current and the rotor side current of each wind turbine in the AC power grid into the trained prediction model to predict the stator side current and the rotor side current of each wind turbine in the future T time period. The prediction module is used to execute step S5 in Example 1.

[0212] The evaluation module is used to obtain the off-grid risk index of each wind turbine according to the stator side current and the rotor side current of each wind turbine in the future T time period, and evaluate the cascading failure risk of the AC power grid according to the off-grid risk index of each wind turbine. The evaluation module is used to execute step S6 in Example 1.

[0213] Embodiment 3:

[0214] The embodiment of the present invention provides a device for assessing the risk of wind turbine off-grid cascading failures based on a neural network. The device can be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 6 ,like Figure 6 As shown, the neural network-based wind turbine off-grid cascading failure risk assessment device includes a memory and a processor, wherein the memory is used to store computer program code and transmit the computer program code to the processor;

[0215] The processor is used to execute the wind turbine off-grid cascading failure risk prediction method based on neural network as described in Example 1 according to the instructions in the computer program code.

[0216] Embodiment 4:

[0217] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the neural network-based wind turbine off-grid cascading failure risk assessment method is implemented.

[0218] Generally speaking, the computer instructions for implementing the method of the present invention may be carried in any combination of one or more computer-readable storage media. Non-transitory computer-readable storage media may include any computer-readable media, except for the signal itself that is temporarily propagating.

[0219] Computer-readable storage media, for example, may be, but are not limited to, electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more conductors, 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 thereof. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with a system, device or device for executing instructions.

[0220] One or more programming languages ​​or their combinations can be used to write computer program codes for performing the operation of the present invention. These programming languages ​​include object-oriented programming languages, such as Java, Smalltalk, C++, and also include conventional procedural programming languages, such as C language or similar programming languages. In particular, Python language suitable for neural network calculations and platform frameworks based on TensorFlow, PyTorch, etc. can be used. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through various types of networks, including a local area network (LAN) or a wide area network (WAN), or an Internet connection is performed through an Internet service provider.

[0221] Although the embodiments of the present invention have been shown and described above, it should be understood that the above embodiments are exemplary and should not be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A neural network-based wind turbine off-grid cascading failure risk assessment method, characterized by: The evaluation methods include: S1. Construct a simulation model of an AC power grid containing a wind turbine; S2. Obtaining, through a simulation model, stator-side current simulation data and rotor-side current simulation data of each wind turbine in the AC power grid when the AC power grid is in steady-state operation and when a line fault occurs in the AC power grid, and obtaining training data based on the stator-side current simulation data and rotor-side current simulation data of each wind turbine; The training data includes: a first current of each wind turbine and a second current of each wind turbine, wherein the first current is the stator side current simulation data and the rotor side current simulation data at a first moment, and the second current is the stator side current simulation data and the rotor side current simulation data within a time period T after the first moment; S3, constructing a prediction model based on BP neural network, and optimizing the hyperparameters of the prediction model based on DCS algorithm; S4, taking the first current of each wind turbine as the input of the prediction model, taking the second current of each wind turbine as the prediction output of the prediction model, training the prediction model after the hyperparameter optimization, and obtaining a trained prediction model; S5, inputting the real-time data of the stator side current and the rotor side current of each wind turbine in the AC power grid into the trained prediction model to predict the stator side current and the rotor side current of each wind turbine in the future T time period; S6. Obtain a grid-off risk index of each wind turbine according to the stator-side current and the rotor-side current of each wind turbine in the future T time period, and evaluate the cascading failure risk of the AC power grid according to the grid-off risk index of each wind turbine.

2. The neural network-based wind turbine off-grid cascading failure risk assessment method according to claim 1 is characterized by: The length of the T time period is 14ms; The hyperparameters of the prediction model include: the number of hidden layer nodes, the initial learning rate, and the L2 regularization coefficient.

3. The neural network-based wind turbine off-grid cascading failure risk assessment method according to claim 1 is characterized by: In step S2, the simulation data of the stator side current and the rotor side current of each wind turbine in the AC power grid are obtained by the simulation model when a line fault occurs in the AC power grid, including: S201, setting 20 fault injection points at equal intervals on each line of the simulation model of the AC power grid; S202 , simulating different types of line faults at each fault injection point, and obtaining stator-side current simulation data and rotor-side current simulation data of each wind turbine when different types of line faults occur at each fault point.

4. The neural network-based wind turbine off-grid cascading failure risk assessment method according to claim 1 is characterized by: In step S6, the off-grid risk index of each wind turbine is obtained according to the stator-side current and the rotor-side current of each wind turbine in the future T time period, including: S601, obtaining a stator-side current threshold and a rotor-side current threshold of each wind turbine; The stator side current threshold is 1.2 times the stator side rated current value, and the rotor side current threshold is 1.2 times the rotor side rated current value; S602, according to the stator side current threshold value and the rotor side current threshold value of each wind turbine, and the stator side current and the rotor side current of each wind turbine in the future T time period, calculate the first duration and the second duration of each wind turbine in the future T time period, wherein the first duration is the duration that the stator side current exceeds the stator side current threshold value, and the second duration is the duration that the rotor side current exceeds the rotor side current threshold value; S603, calculating the sum of the first duration and the second duration of each wind turbine to obtain the third duration of each wind turbine, and using the third duration of each wind turbine as the off-grid risk indicator of each wind turbine.

5. The neural network-based wind turbine off-grid cascading failure risk assessment method according to any one of claims 1 to 4, characterized in that: In step S3, optimizing the hyperparameters of the prediction model based on the DCS algorithm includes: S301, obtaining a solution matrix X, where each solution in the solution matrix X represents a set of hyperparameters of a BP neural network model, and then proceeding to step S302 to start iteration; S302, sorting the solutions in descending order of the objective function values ​​according to the objective function values ​​of the solutions in the solution matrix X, and then proceeding to step S303; S303, calculating the differentiated knowledge acquisition index of each solution according to the ranking result of the solutions, and then proceeding to step S304; S304, updating each solution according to the differentiated knowledge acquisition index of each solution, and then proceeding to step S305; S305: Determine whether the iteration time reaches a preset time threshold. If so, stop the iteration and proceed to step S306. If not, return to step S302 and continue the iteration. S306. Select the solution with the smallest objective function value from the results of all previous iterations.

6. The neural network-based wind turbine off-grid cascading failure risk assessment method according to claim 5 is characterized by: In step S303, according to the sorting result of the solutions, calculating the differentiated knowledge acquisition index of the nth solution includes: In formula (1)-(2), η n,t is the differential knowledge acquisition index of the nth solution; U(0,1) is a random number uniformly distributed in the range [0,1]; the symbol [·] indicates a rounding down operation; Representation judgment formula Is it established? If established, The value of is 0. If it is not true, The value of is the degree of imperfect knowledge of the nth solution; R n,t is the ranking of the nth solution among all solutions; N is the total number of solutions in the solution matrix X; In step S304, updating each solution according to the differentiated knowledge acquisition index of each solution includes: According to the differentiated knowledge acquisition index of each solution, the solutions are ranked in order from low to high differentiated knowledge acquisition index; For the solutions ranked in the bottom P%, the solutions are updated according to the following formula: v i,d =ωx best,d +λ t (x r2,d -x i,d )+ω i,t (x r1,d -x i,d ) (3); In formula (3), v i,d is the updated ith solution, which is the solution ranked in the last P%; ω is the cognitive weight of the optimal solution; x best,d is the optimal solution, and the optimal solution is the solution with the smallest objective function value in the solution matrix X; ω i,t is the cognitive weight of the ith solution; x r2,d is the random solution ranked in the top (1-P)%; x r1,d is the random solution ranked in the last P%; x i,d is the i-th solution before updating; λ t To update the index; For the top (1-P)% of the solutions, the solutions are updated according to the following formula: v j,d =x r1,d +LK(α,σ) (4); In formula (4), v j,d is the jth solution after update, and the jth solution is the solution ranked in the top (1-P)%; x r1,d is a random solution ranked in the last P%; LK(α,σ) is a random number that satisfies the Linnik distribution.

7. The neural network-based wind turbine off-grid cascading failure risk assessment method according to claim 5 is characterized by: The objective function value minf(n) of the nth solution in the solution matrix X is calculated according to the following formula: minf(n)=ω1RMSE+ω2MAE-ω3R-Square (5); In formulas (5)-(8), is the output value after inputting the jth training sample into the prediction model using the nth solution in the solution matrix X as the hyperparameter; y j is the actual value of the jth training sample; m is the total number of training samples; is the mean of the actual values ​​of m training samples; RMSE is the root mean square error; MAE is the mean absolute error; R-Square is the determination coefficient; ω1, ω2, ω3 are the error indicator weights.

8. Neural network-based wind turbine off-grid cascading failure risk assessment system, including: A first construction module is used to construct a simulation model of an AC power grid including a wind turbine; A data acquisition module is used to acquire the stator-side current simulation data and the rotor-side current simulation data of each wind turbine in the AC power grid under the state of steady-state operation of the AC power grid and the state of line fault of the AC power grid through a simulation model, and acquire training data according to the stator-side current simulation data and the rotor-side current simulation data of each wind turbine; The training data includes: a first current of each wind turbine and a second current of each wind turbine, wherein the first current is the stator side current simulation data and the rotor side current simulation data at a first moment, and the second current is the stator side current simulation data and the rotor side current simulation data within a time period T after the first moment; The second building module is used to build a prediction model based on a BP neural network and optimize the hyperparameters of the prediction model based on a DCS algorithm; A training module, used to train the prediction model by taking the first current of each wind turbine as the input of the prediction model and the second current of each wind turbine as the prediction output of the prediction model to obtain a trained prediction model; A prediction module, used for inputting the real-time data of the stator side current and the rotor side current of each wind turbine in the AC power grid into the trained prediction model to predict the stator side current and the rotor side current of each wind turbine in the future T time period; The evaluation module is used to obtain the off-grid risk index of each wind turbine according to the stator side current and the rotor side current of each wind turbine in the future T time period, and evaluate the cascading failure risk of the AC power grid according to the off-grid risk index of each wind turbine.

9. A neural network-based wind turbine off-grid cascading failure risk assessment device, comprising a memory and a processor, wherein the memory is used to store computer program code and transmit the computer program code to the processor; The processor is used to execute the wind turbine off-grid cascading failure risk prediction method based on neural network as described in any one of claims 1 to 7 according to the instructions in the computer program code.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the neural network-based method for predicting the risk of wind turbine off-grid cascading failures is implemented as described in any one of claims 1 to 7.

Citation Information

Cited By

  • Dynamic fault diagnosis method and system for numerical control machine tool

    CN120831933A

  • Dynamic fault diagnosis method and system for numerical control machine tool

    CN120831933B