A method and system for adaptively estimating frequency of a power system
Through feature extraction and network model training of power system data, a power frequency prediction model is formed, which solves the accuracy problem of power system frequency estimation under multiple uncertainties and improves the accuracy of frequency estimation and system security.
Patent Information
- Application Number
- CN202410951365.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-07-16
AI Technical Summary
When power system frequency estimation faces multiple uncertainties, it is difficult to meet the accuracy due to the explosion of data combinations, resulting in inaccurate frequency estimation.
Through feature extraction of the collected time domain simulation data or real historical data, the key data and disturbance data of power operation are determined, divided into the first and second training data sets, and the network model is used for layer-by-layer training and iterative optimization to form the power frequency Predictive models to improve estimation accuracy.
It improves the accuracy of power system frequency estimation, can handle complex power system frequency changes and disturbances more effectively, and enhances the system's frequency security assessment capability.
Smart Images

Figure CN118501541B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electric power technology, and in particular to a method and system for adaptively estimating the frequency of an electric power system. Background Art
[0002] The power system frequency reflects the balance between the active power and load of the power system, and is an important control parameter for the operation of the power system. The power system frequency is one of the important indicators for measuring the quality of electric energy. Ensuring that the power system frequency meets the standard is a basic task for the operation and adjustment of the power system. Under normal operating conditions of the power system, the difference between the actual value and the nominal value of the system frequency is called the system frequency deviation (the nominal frequency of the system in my country is 50HZ, and that in foreign countries is 60HZ).
[0003] The frequency estimation of the power system is to obtain the change curve of the power system frequency by solving the high-dimensional nonlinear algebraic differential equation after the active power disturbance, and then calculate the evaluation index that characterizes the system frequency security to judge the system frequency security. However, due to the influence of the strong nonlinearity of the power system (new energy output fluctuations, dynamic characteristics of flexible DC systems, multiple types of disturbances, etc.), it is difficult to meet the data combination explosion caused by multiple uncertainties, and the resulting power system frequency estimation is inaccurate. Summary of the invention
[0004] The embodiments of the present application provide a method and system for adaptively estimating the frequency of a power system, which are used to improve the accuracy of frequency estimation of a power system.
[0005] An embodiment of the present invention provides a method for adaptively estimating frequency of a power system, the method being applied to a system for adaptively estimating frequency of a power system, the method comprising:
[0006] Extract features from the collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data;
[0007] Determining data tags corresponding to the power operation key data and the power operation disturbance data, wherein the data tags include multiple power-related frequency data;
[0008] Determine a first training data set and a second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set respectively include a plurality of sample data;
[0009] Using a first algorithm to train the initial network model layer by layer according to the sample data in the first training data set, until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, the training of the initial network model is stopped;
[0010] The trained initial network model is further trained using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model;
[0011] The input power data is predicted by the power frequency prediction model to obtain multiple power-related frequency data.
[0012] In an optional embodiment provided by the present invention, the feature extraction of the collected time-domain simulation data or real historical data to obtain the key power operation data and the power operation disturbance data includes:
[0013] Calculate important values of power operation data according to preset algorithms;
[0014] Determining power operation key data from the power operation data according to the important value;
[0015] Obtaining power operation disturbance data corresponding to the power operation key data.
[0016] In an optional embodiment provided by the present invention, the key power operation data includes at least one or more of the following data: unit switch status, unit unit regulation power, unit inertia time constant, unit rotating standby, system equivalent damping, system equivalent inertia; the power operation disturbance data includes at least: active power disturbance amount, active power disturbance position.
[0017] In an optional embodiment provided by the present invention, the determining of the first training data set and the second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels includes:
[0018] Normalizing the key power operation data, the power operation disturbance data, and the corresponding data labels, and determining the normalized key power operation data, the power operation disturbance data, and the corresponding data labels as a first training data set;
[0019] The power operation key data, the power operation disturbance data and the corresponding data labels are subjected to abnormal data filtering processing, and the power operation key data, the power operation disturbance data and the corresponding data labels subjected to abnormal data filtering processing are determined as a second training data set.
[0020] In an optional embodiment provided by the present invention, the initial network model is trained layer by layer using a first algorithm according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and the training of the initial network model is stopped, including:
[0021] The n-th layer network structure in the initial network model is trained by the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure, where the initial value of n is 1;
[0022] When the number of iterations of the n-th layer network structure in the initial network model is greater than a preset value, the weight and threshold of the n-th layer network structure are used as parameters of the n-th layer network structure, and a feature vector corresponding to the sample data is obtained through the n-th layer network structure;
[0023] Determine whether n is less than N, where N is the total number of layers of the initial network model;
[0024] If n is less than N, the n+1th layer network structure in the initial network model is trained by the feature vector corresponding to the sample data to obtain the weight and threshold of the n+1th layer network structure;
[0025] If n is equal to N, stop training the initial network model.
[0026] In an optional embodiment provided by the present invention, the step of training the n-th layer network structure in the initial network model by using the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure includes:
[0027] Dividing the sample data in the first training data set into N groups of training data subsets, and adding noise data to the sample data in each group of training data subsets;
[0028] Input the j-th sample data in the i-th group of training data subsets into the n-th layer network structure in the initial network model, and obtain the weight and threshold corresponding to the j-th iteration of the n-th layer network structure, i=n, j=j+1; the initial value of j is 1;
[0029] When the number of iterations of the n-th layer network structure in the initial network model is greater than the number of sample data in the i-th group of training data subsets, the weight and threshold of the last iteration are used as parameters of the n-th layer network structure.
[0030] In an optional embodiment provided by the present invention, the step of continuing to train the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model includes:
[0031] Inputting the same sample data in the first training data set and the second training data set into the trained initial network model to obtain a first prediction value and a second prediction value respectively;
[0032] Calculate a first loss value according to the first prediction value and the data label corresponding to the sample data; calculate a second loss value according to the second prediction value and the data label corresponding to the sample data;
[0033] determining whether the second loss value is less than the first loss value;
[0034] If the second loss value is less than the first loss value, continue to train the trained initial network model using sample data of the second training data set;
[0035] If the second loss value is greater than or equal to the first loss value, the training of the trained initial network model using the second algorithm is stopped to obtain a power frequency prediction model.
[0036] In an optional embodiment provided by the present invention, the step of predicting the input power data by the power frequency prediction model to obtain a plurality of power-related frequency data includes:
[0037] Acquire the data to be detected, and normalize the data to be detected;
[0038] Inputting the normalized detection data into the power frequency prediction model to obtain prediction data;
[0039] The predicted data are denormalized to obtain a plurality of power-related frequency data.
[0040] In an optional embodiment provided by the present invention, the method further includes:
[0041] The power system is controlled based on the predicted multiple power-related frequency data.
[0042] An embodiment of the present invention provides a system for adaptively estimating frequency of a power system, the system comprising:
[0043] An extraction module is used to extract features from the collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data;
[0044] A determination module, used to determine data tags corresponding to the power operation key data and the power operation disturbance data, wherein the data tags include multiple power-related frequency data;
[0045] The determination module is further used to determine a first training data set and a second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set include a plurality of sample data;
[0046] A first training module is used to train the initial network model layer by layer using a first algorithm according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and the training of the initial network model is stopped;
[0047] A second training module, configured to continue training the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model;
[0048] The prediction module is used to predict the input power data through the power frequency prediction model to obtain multiple power-related frequency data.
[0049] The present invention provides a method and system for adaptive frequency estimation of a power system, which extracts features from collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data; determines data labels corresponding to the key power operation data and the power operation disturbance data, wherein the data labels include multiple power-related frequency data; determines a first training data set and a second training data set according to the key power operation data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set respectively include multiple sample data; uses a first algorithm to train an initial network model layer by layer according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and stops training the initial network model; uses a second algorithm to continue training the trained initial network model according to the sample data in the second training data set to obtain a power frequency prediction model; and predicts the input power data by using the power frequency prediction model to obtain multiple power-related frequency data. Compared with the prior art that obtains the power system frequency by solving high-dimensional nonlinear algebraic differential equations after active power disturbance, the present application obtains a power frequency prediction model through two different model trainings, so that the input power data can be predicted through the power frequency prediction model to obtain multiple power-related frequency data, thereby improving the accuracy of power system frequency estimation through the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flowchart of a method for adaptively estimating frequency of a power system provided in this application;
[0051] Figure 2 A schematic diagram of the structure of a power system frequency adaptive estimation system provided in this application.
[0052] Reference numerals: 21 - extraction module, 22 - determination module, 23 - first training module, 24 - second training module, 25 - prediction module. DETAILED DESCRIPTION
[0053] In order to better understand the above-mentioned technical scheme, the technical scheme of the embodiments of the present application is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present application and the specific features in the embodiments are detailed descriptions of the technical scheme of the embodiments of the present application, rather than limitations on the technical scheme of the present application. In the absence of conflict, the embodiments of the present application and the technical features in the embodiments may be combined with each other.
[0054] See also Figure 1 , is a method for adaptively estimating the frequency of a power system provided by an embodiment of the present invention, the method is applied to a system for adaptively estimating the frequency of a power system, and the method comprises the following steps:
[0055] Step S101, extracting features from the collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data.
[0056] Among them, the key power operation data includes at least one or more of the following data: unit switch status, unit unit regulation power, unit inertia time constant, unit rotating standby, system equivalent damping, system equivalent inertia; the power operation disturbance data includes at least: active power disturbance amount, active power disturbance position.
[0057] The magnitude of active power disturbance directly affects the change of the system inertia center frequency, and the speed of frequency change of each bus node is closely related to the location of the disturbance fault. Generally, the change of each bus node frequency decreases with the increase of the disturbance electrical distance, which in turn affects the system inertia center frequency. Therefore, the active power disturbance and the disturbance fault location are important variables for characterizing active disturbance faults. The size of the active power shortage can be set to change within a certain load ratio range, and the disturbance fault location is determined by the bus node number where the fault is located.
[0058] The size of system inertia reflects the ability of the system to suppress frequency changes after a disturbance occurs, and plays a decisive role in the speed of frequency changes. The unit output size and the node number where the unit is located, the load size and the node number where it is located reflect the spatial distribution characteristics of the system and are basic operating parameters that can be obtained; the extreme frequency of the system inertia center is related to the inertia time constant of the synchronous unit, the rotating reserve, the unit regulation power, the system damping coefficient, the size and location of the disturbance fault, the maximum frequency change rate is closely related to the size of the active disturbance and the system inertia, and the quasi-steady-state frequency is closely related to the disturbance fault location, the unit regulation power, the system damping coefficient, and the level of rotating reserve capacity.
[0059] In an optional embodiment provided in the present application, the feature extraction of the collected time-domain simulation data or real historical data to obtain the key power operation data and the power operation disturbance data includes: calculating the importance value of the power operation data according to a preset algorithm; determining the key power operation data from the power operation data according to the importance value; obtaining the power operation disturbance data corresponding to the key power operation data. Among them, the preset algorithm can be an algorithm for feature dimensionality reduction of data. In this embodiment, the feature dimensionality reduction of the time-domain simulation data or the real historical data is performed by a preset algorithm, so that the extracted key power operation data contains the power system operation information and frequency-related parameters, so as to more comprehensively reflect the dynamic characteristics of the frequency.
[0060] Step S102: determining data tags corresponding to the power operation key data and the power operation disturbance data, wherein the data tags include multiple power-related frequency data.
[0061] Among them, multiple power-related frequency data may include: maximum frequency change rate, extreme frequency, and quasi-steady-state frequency.
[0062] The maximum frequency change rate characterizes the speed of the change of the system inertia center frequency after the accident, and its value is closely related to the size of the active disturbance and the system inertia level; the extreme frequency is the lowest point (when the power shortage is positive) or the highest point (when the power shortage is negative) in the transient change process of the system inertia center frequency, and its size is related to the system inertia, rotating reserve, unit adjustment power, etc. Since the extreme frequency directly determines whether the low-frequency load reduction and high-frequency machine cutting device are started or not, it is the most concerned frequency indicator under active disturbance; the quasi-steady-state frequency is the frequency value of the inertia center frequency returning to the quasi-steady-state operation point after the system is disturbed, and it is an important basis for implementing secondary frequency adjustment. For large power systems, the quasi-steady-state frequency deviation generally needs to be controlled within 0.2Hz.
[0063] Step S103: determining a first training data set and a second training data set according to the power operation key data, the power operation disturbance data and corresponding data labels.
[0064] The first training data set and the second training data set each include a plurality of sample data. The sample data in the first training data set and the second training data set may be the same sample data or different sample data, but the data processing methods in the first training data set and the second training data set are different.
[0065] In an optional embodiment provided in the present application, the determining the first training data set and the second training data set based on the key power operation data, the power operation disturbance data and the corresponding data labels includes: normalizing the key power operation data, the power operation disturbance data and the corresponding data labels, and determining the normalized key power operation data, the power operation disturbance data and the corresponding data labels as the first training data set; performing abnormal data filtering on the key power operation data, the power operation disturbance data and the corresponding data labels, and determining the key power operation data, the power operation disturbance data and the corresponding data labels subjected to abnormal data filtering as the second training data set.
[0066] Step S104: training the initial network model layer by layer using the first algorithm according to the sample data in the first training data set until the loss value calculated based on the weight and threshold of the trained initial network model is less than a preset value, and then stopping the training of the initial network model.
[0067] In an optional embodiment provided in the present application, the training of the initial network model layer by layer using a first algorithm according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and the training of the initial network model is stopped, including:
[0068] S1041, training the n-th layer network structure in the initial network model using the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure, where the initial value of n is 1.
[0069] Among them, the weight is the weight matrix of the input layer and the hidden layer; the threshold is the threshold matrix of the input layer and the hidden layer.
[0070] Specifically, the method of training the n-th layer network structure in the initial network model through the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure includes: dividing the sample data in the first training data set into N groups of training data subsets, and adding noise data to the sample data in each group of training data subsets; inputting the j-th sample data in the ith group of training data subsets into the n-th layer network structure in the initial network model to obtain the weight and threshold corresponding to the j-th iteration of the n-th layer network structure, i=n, j=j+1; the initial value of j is 1; when the number of iterations of the n-th layer network structure in the initial network model is greater than the number of sample data in the ith group of training data subsets, using the weight and threshold of the last iteration as the parameters of the n-th layer network structure.
[0071] S1042, when the number of iterations of the n-th layer network structure in the initial network model is greater than a preset value, the weight and threshold of the n-th layer network structure are used as parameters of the n-th layer network structure, and the feature vector corresponding to the sample data is obtained through the n-th layer network structure.
[0072] S1043, determine whether n is less than N, where N is the total number of layers of the initial network model.
[0073] S1044, if n is less than N, the n+1th layer network structure in the initial network model is trained by the feature vector corresponding to the sample data to obtain the weight and threshold of the n+1th layer network structure.
[0074] S1045: If n is equal to N, stop training the initial network model.
[0075] Step S105: Continue training the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model.
[0076] In an optional embodiment provided in the present application, the step of continuing to train the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model includes:
[0077] S1051: Input the same sample data in the first training data set and the second training data set into the trained initial network model to obtain a first prediction value and a second prediction value respectively.
[0078] S1052, calculating a first loss value according to the first prediction value and the data label corresponding to the sample data; calculating a second loss value according to the second prediction value and the data label corresponding to the sample data;
[0079] The first loss value is calculated by the following formula of the first algorithm:
[0080]
[0081] in, is the first loss value, is the number of sample data in the first training data set, is the first training data set The data label corresponding to the sample data is the true value. is the first training data set The first prediction value corresponding to the sample data, W and B are the network initialization weights and thresholds obtained by layer-by-layer pre-training.
[0082] The second loss value is calculated by the following formula of the second algorithm:
[0083]
[0084] in, is the second loss value, is the first The data label (i.e., true value) corresponding to the sample data, is the first The second predicted value corresponding to the sample data, is the reference value of the frequency index. Among them, the reference values of extreme frequency, quasi-steady-state frequency, and maximum frequency change rate are 50Hz, 50Hz, and 0Hz / s respectively.
[0085] S1053, determine whether the second loss value is less than the first loss value.
[0086] S1054: If the second loss value is less than the first loss value, continue to train the trained initial network model using the sample data of the second training data set.
[0087] Specifically, training the trained initial network model using sample data of the second training data set includes:
[0088] 1) Set the attenuation coefficient , initialize the cumulative variable , .
[0089] 2) Select a small batch data set containing p samples from the training set, and calculate the gradient according to the error loss function:
[0090]
[0091] 3) Then, the gradient calculated according to formula (1) is introduced into the following formula (2) to update and , w is the weight, b is the threshold.
[0092]
[0093] 4) Update and Substitute into the following formula (3) and update W and B
[0094]
[0095] S1055: If the second loss value is greater than or equal to the first loss value, stop training the trained initial network model using the second algorithm to obtain a power frequency prediction model.
[0096] Step S106: predict the input power data using the power frequency prediction model to obtain multiple power-related frequency data.
[0097] Specifically, the method of predicting the input power data by the power frequency prediction model to obtain multiple power-related frequency data includes: obtaining the data to be detected, normalizing the data to be detected; inputting the normalized detection data into the power frequency prediction model to obtain predicted data; and denormalizing the predicted data to obtain multiple power-related frequency data. The power system is controlled according to the multiple power-related frequency data obtained by the prediction.
[0098] An embodiment of the present invention provides a method for adaptive frequency estimation of a power system, which extracts features from collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data; determines data labels corresponding to the key power operation data and the power operation disturbance data, wherein the data labels include multiple power-related frequency data; determines a first training data set and a second training data set based on the key power operation data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set respectively include multiple sample data; uses a first algorithm to train an initial network model layer by layer based on the sample data in the first training data set until the loss value calculated based on the weight and threshold of the trained initial network model is less than a preset value, and stops training the initial network model; uses a second algorithm to continue training the trained initial network model based on the sample data in the second training data set to obtain a power frequency prediction model; and predicts the input power data using the power frequency prediction model to obtain multiple power-related frequency data. Compared with the prior art that obtains the power system frequency by solving high-dimensional nonlinear algebraic differential equations after active power disturbance, the present application obtains a power frequency prediction model through two different model trainings, so that the input power data can be predicted through the power frequency prediction model to obtain multiple power-related frequency data, thereby improving the accuracy of power system frequency estimation through the present application.
[0099] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0100] In one embodiment, a power system frequency adaptive estimation system is provided, and the power system frequency adaptive estimation system corresponds one-to-one to the power system frequency adaptive estimation method in the above embodiment. Figure 2 As shown, the functional modules of the power system frequency adaptive estimation system are described in detail as follows:
[0101] An extraction module 21 is used to extract features from the collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data;
[0102] A determination module 22, configured to determine data tags corresponding to the power operation key data and the power operation disturbance data, wherein the data tags include multiple power-related frequency data;
[0103] The determination module 22 is further used to determine a first training data set and a second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set include a plurality of sample data;
[0104] A first training module 23 is used to train the initial network model layer by layer using a first algorithm according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and then stop training the initial network model;
[0105] A second training module 24 is used to continue training the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model;
[0106] The prediction module 25 is used to predict the input power data through the power frequency prediction model to obtain multiple power-related frequency data.
[0107] In an optional embodiment provided by the present invention, the extraction module 21 is specifically used for:
[0108] Calculate important values of power operation data according to preset algorithms;
[0109] Determining power operation key data from the power operation data according to the important value;
[0110] Obtaining power operation disturbance data corresponding to the power operation key data.
[0111] In an optional embodiment provided by the present invention, the key power operation data includes at least one or more of the following data: unit switch status, unit unit regulation power, unit inertia time constant, unit rotating standby, system equivalent damping, system equivalent inertia; the power operation disturbance data includes at least: active power disturbance amount, active power disturbance position.
[0112] In an optional embodiment provided by the present invention, the determination module 22 is specifically configured to:
[0113] Normalizing the key power operation data, the power operation disturbance data, and the corresponding data labels, and determining the normalized key power operation data, the power operation disturbance data, and the corresponding data labels as a first training data set;
[0114] The power operation key data, the power operation disturbance data and the corresponding data labels are subjected to abnormal data filtering processing, and the power operation key data, the power operation disturbance data and the corresponding data labels subjected to abnormal data filtering processing are determined as a second training data set.
[0115] In an optional embodiment provided by the present invention, the first training module 23 is specifically used for:
[0116] The n-th layer network structure in the initial network model is trained by the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure, where the initial value of n is 1;
[0117] When the number of iterations of the n-th layer network structure in the initial network model is greater than a preset value, the weight and threshold of the n-th layer network structure are used as parameters of the n-th layer network structure, and a feature vector corresponding to the sample data is obtained through the n-th layer network structure;
[0118] Determine whether n is less than N, where N is the total number of layers of the initial network model;
[0119] If n is less than N, the n+1th layer network structure in the initial network model is trained by the feature vector corresponding to the sample data to obtain the weight and threshold of the n+1th layer network structure;
[0120] If n is equal to N, stop training the initial network model.
[0121] In an optional embodiment provided by the present invention, the first training module 23 is specifically used for:
[0122] Dividing the sample data in the first training data set into N groups of training data subsets, and adding noise data to the sample data in each group of training data subsets;
[0123] Input the j-th sample data in the i-th group of training data subsets into the n-th layer network structure in the initial network model, and obtain the weight and threshold corresponding to the j-th iteration of the n-th layer network structure, i=n, j=j+1; the initial value of j is 1;
[0124] When the number of iterations of the n-th layer network structure in the initial network model is greater than the number of sample data in the i-th group of training data subsets, the weight and threshold of the last iteration are used as parameters of the n-th layer network structure.
[0125] In an optional embodiment provided by the present invention, the second training module 24 is specifically used for:
[0126] Inputting the same sample data in the first training data set and the second training data set into the trained initial network model to obtain a first prediction value and a second prediction value respectively;
[0127] Calculate a first loss value according to the first prediction value and the data label corresponding to the sample data; calculate a second loss value according to the second prediction value and the data label corresponding to the sample data;
[0128] determining whether the second loss value is less than the first loss value;
[0129] If the second loss value is less than the first loss value, continue to train the trained initial network model using sample data of the second training data set;
[0130] If the second loss value is greater than or equal to the first loss value, the training of the trained initial network model using the second algorithm is stopped to obtain a power frequency prediction model.
[0131] In an optional embodiment provided by the present invention, the prediction module 25 is specifically used for:
[0132] Acquire the data to be detected, and normalize the data to be detected;
[0133] Inputting the normalized detection data into the power frequency prediction model to obtain prediction data;
[0134] The predicted data are denormalized to obtain a plurality of power-related frequency data.
[0135] In an optional embodiment provided by the present invention, the power system is controlled according to the predicted multiple power-related frequency data.
[0136] For the specific limitations of the power system frequency adaptive estimation system, please refer to the limitations of the power system frequency adaptive estimation method above, which will not be repeated here. Each module in the above-mentioned device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0137] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0138] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for adaptively estimating frequency of a power system, characterized in that: The method is applied to a power system frequency adaptive estimation system, and the method comprises: Extract features from the collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data; Determining data tags corresponding to the power operation key data and the power operation disturbance data, wherein the data tags include multiple power-related frequency data; Determine a first training data set and a second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set respectively include a plurality of sample data; Using a first algorithm to train the initial network model layer by layer according to the sample data in the first training data set, until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, the training of the initial network model is stopped; The trained initial network model is further trained using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model; Predicting the input power data by the power frequency prediction model to obtain multiple power-related frequency data; The determining the first training data set and the second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels includes: Normalizing the key power operation data, the power operation disturbance data, and the corresponding data labels, and determining the normalized key power operation data, the power operation disturbance data, and the corresponding data labels as a first training data set; Performing abnormal data filtering processing on the key power operation data, the power operation disturbance data, and the corresponding data labels, and determining the key power operation data, the power operation disturbance data, and the corresponding data labels subjected to abnormal data filtering processing as a second training data set; The step of continuing to train the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model includes: Inputting the same sample data in the first training data set and the second training data set into the trained initial network model to obtain a first prediction value and a second prediction value respectively; Calculate a first loss value according to the first prediction value and the data label corresponding to the sample data; calculate a second loss value according to the second prediction value and the data label corresponding to the sample data; determining whether the second loss value is less than the first loss value; If the second loss value is less than the first loss value, continue to train the trained initial network model using sample data of the second training data set; If the second loss value is greater than or equal to the first loss value, the training of the trained initial network model using the second algorithm is stopped to obtain a power frequency prediction model.
2. The method according to claim 1, characterized in that The feature extraction of the collected time-domain simulation data or real historical data to obtain the key power operation data and the power operation disturbance data includes: Calculate important values of power operation data according to preset algorithms; determining power operation key data from the power operation data according to the importance value; Obtaining power operation disturbance data corresponding to the power operation key data.
3. The method according to claim 2, characterized in that The key data of power operation include one or more of the following data: unit switch status, unit unit regulation power, unit inertia time constant, unit spinning standby, system equivalent damping, system equivalent inertia; The power operation disturbance data includes: active power disturbance amount and active power disturbance position.
4. The method according to claim 1, characterized in that: The step of training the initial network model layer by layer using a first algorithm according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and then stopping the training of the initial network model comprises: The n-th layer network structure in the initial network model is trained by the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure, where the initial value of n is 1; When the number of iterations of the n-th layer network structure in the initial network model is greater than a preset value, the weight and threshold of the n-th layer network structure are used as parameters of the n-th layer network structure, and a feature vector corresponding to the sample data is obtained through the n-th layer network structure; Determine whether n is less than N, where N is the total number of layers of the initial network model; If n is less than N, the n+1th layer network structure in the initial network model is trained by the feature vector corresponding to the sample data to obtain the weight and threshold of the n+1th layer network structure; If n is equal to N, stop training the initial network model.
5. The method according to claim 4, characterized in that The step of training the n-th layer network structure in the initial network model by using the sample data in the first training data set to obtain the weight and threshold of the n-th layer network structure includes: Dividing the sample data in the first training data set into N groups of training data subsets, and adding noise data to the sample data in each group of training data subsets; Input the j-th sample data in the i-th group of training data subsets into the n-th layer network structure in the initial network model, and obtain the weight and threshold corresponding to the j-th iteration of the n-th layer network structure, i=n, j=j+1; the initial value of j is 1; When the number of iterations of the n-th layer network structure in the initial network model is greater than the number of sample data in the i-th group of training data subsets, the weight and threshold of the last iteration are used as parameters of the n-th layer network structure.
6. The method according to claim 1, characterized in that The power frequency prediction model is used to predict the input power data to obtain a plurality of power-related frequency data, including: Acquire the data to be detected, and normalize the data to be detected; Inputting the normalized detection data into the power frequency prediction model to obtain prediction data; The predicted data are denormalized to obtain a plurality of power-related frequency data.
7. The method according to claim 6, characterized in that The method further comprises: The power system is controlled based on the predicted multiple power-related frequency data.
8. A power system frequency adaptive estimation system, the system implementing the method according to claim 1, characterized in that: The system comprises: An extraction module is used to extract features from the collected time-domain simulation data or real historical data to obtain key power operation data and power operation disturbance data; A determination module, used to determine data tags corresponding to the power operation key data and the power operation disturbance data, wherein the data tags include multiple power-related frequency data; The determination module is further used to determine a first training data set and a second training data set according to the power operation key data, the power operation disturbance data and the corresponding data labels; the first training data set and the second training data set include a plurality of sample data; A first training module is used to train the initial network model layer by layer using a first algorithm according to the sample data in the first training data set until the loss value calculated according to the weight and threshold of the trained initial network model is less than a preset value, and the training of the initial network model is stopped; A second training module, configured to continue training the trained initial network model using a second algorithm according to the sample data in the second training data set to obtain a power frequency prediction model; The prediction module is used to predict the input power data through the power frequency prediction model to obtain multiple power-related frequency data.
Citation Information
Patent Citations
Method and device for training and predicting transient stability prediction model of power system
CN110837683A
XGBoost algorithm-based frequency characteristic prediction method after disturbance of power system
CN111639463A
Transient frequency stability evaluation method and system fusing estimation-correction deep learning
CN112183641A
Power system natural frequency characteristic coefficient interval prediction method based on deep learning
CN112821383A
Power load prediction method, device and terminal
CN113570105A
