A Power System Stability Control Method Based on Artificial Intelligence

By adopting the frequency control method based on artificial intelligence in the microgrid, combined with the LSTM prediction model and the multi-stage frequency regulation strategy of the energy storage system, the problem of incomplete analysis of the dynamic working state of the energy storage system is solved, and the stability and stability of the microgrid are improved. The response speed of the energy storage system enables efficient frequency control and cost optimization.

CN118487294BActive Publication Date: 2024-09-24广州鑫广源电力设计有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410931539.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-09-24
Estimated Expiration
2044-07-12

AI Technical Summary

Technical Problem

The existing technology's analysis of the dynamic working state and system response characteristics of the energy storage system in the microgrid is not comprehensive enough, resulting in unsatisfactory frequency control model adjustment accuracy and response speed.

Method used

Using artificial intelligence-based methods, by obtaining the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system, the LSTM prediction model is used to predict the frequency change trend and establish a multi-stage frequency The control model combines the frequency regulation strategy of energy storage batteries and supercapacitors to dynamically adjust the charge and discharge strategy of the energy storage system.

Benefits of technology

It improves the stability and response speed of the microgrid, reduces the cost of energy storage and release, extends the service life of the energy storage system, enhances frequency quality and automated management levels, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118487294B
    Figure CN118487294B
Patent Text Reader

Abstract

The present invention discloses a method for stable control of an electric power system based on artificial intelligence, including real-time acquisition of current deviation, frequency deviation, frequency deviation change rate and regional control error of a microgrid, as well as the working state of a hybrid energy storage system in the microgrid; inputting the frequency deviation and the frequency deviation change rate into an LSTM prediction model to predict the frequency change trend of the microgrid; generating multiple control stages according to the working state of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid; establishing a frequency control model of the hybrid energy storage system in multiple control stages according to the current deviation, regional control error and frequency deviation, and performing frequency modulation steady-state control on the microgrid according to multiple frequency control models. The present invention takes into account multiple fluctuation parameters and different working states of the hybrid energy storage system, thereby providing a refined multi-stage frequency control model, improving the frequency modulation control accuracy, and ensuring the stability and reliability of the microgrid operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid stability control, and in particular to an artificial intelligence-based power system stability control method. Background Art

[0002] Microgrid is a highly integrated small and medium-sized power supply system, which consists of distributed power sources, energy storage devices, energy conversion devices, loads and protection devices. Microgrid can be connected to the traditional large-scale power grid, or it can be separated from the main grid and operate independently when necessary, realizing the autonomous system functions of self-control, protection and management. As a key component of smart grid, it can improve energy utilization efficiency, increase the access to renewable energy, and ensure power supply security and power quality in local areas.

[0003] For the steady-state control of microgrids, the participation of energy storage systems in frequency regulation is an important link. Given that the current consideration of the factors affecting fluctuations in microgrids is not comprehensive, especially when analyzing the dynamic working state of the energy storage system itself and the system response characteristics, the frequency control model constructed in actual applications cannot achieve the ideal level of regulation accuracy and response speed. Summary of the invention

[0004] In order to solve at least one of the technical problems mentioned above, the present invention provides an artificial intelligence-based power system stability control method.

[0005] In a first aspect, the present invention provides a method for power system stability control based on artificial intelligence, the method comprising:

[0006] Obtain the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system in the microgrid;

[0007] Obtain the preset LSTM prediction model, input the frequency deviation and the frequency deviation change rate into the LSTM prediction model, and predict the frequency change trend of the microgrid;

[0008] According to the working status of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid, multiple control stages are generated; according to the current deviation, regional control error and frequency deviation, a frequency control model of the hybrid energy storage system in multiple control stages is established, so that the hybrid energy storage system can perform frequency regulation steady-state control on the microgrid according to multiple frequency control models.

[0009] Preferably, the frequency control model of the hybrid energy storage system in multiple control stages is established according to the current deviation, the regional control error and the frequency deviation, including:

[0010] When it is determined that the frequency change of the microgrid is in the first stage and the working state of the hybrid energy storage system is the energy storage state, the frequency control model is:

[0011] ;

[0012] In the formula, for The output power of the hybrid energy storage system participating in the frequency regulation of the microgrid at all times; , They are the regional control error gain and current regulation gain in the energy storage state respectively; , Respectively Regional control error and current deviation at each moment; , They represent the compensation factors of the regional control error and current deviation under the energy storage state respectively; , They represent the delayed response time of the regional control error and the current deviation respectively; Indicates energy storage state The power prediction value at the time, Indicates the power adjustment factor in the energy storage state;

[0013] When it is determined that the frequency change of the microgrid is in the first stage and the working state of the hybrid energy storage system is the energy release state, the frequency control model is:

[0014] ;

[0015] In the formula, , They are the regional control error gain and current regulation gain in the energy release state respectively; are the compensation factors of regional control error and current deviation under energy release state respectively; Indicates energy release state The power prediction value at the time, Indicates the power adjustment factor in the released energy state; Indicates energy release state The pressure control signal at all times, Indicates the pressure adjustment coefficient under the energy release state;

[0016] When it is determined that the frequency change of the microgrid is in the second stage and the working state of the hybrid energy storage system is the energy storage state, the frequency control model is:

[0017] ;

[0018] In the formula, Indicates the frequency deviation gain in the energy storage state, express The frequency deviation at the moment, Indicates the compensation factor of frequency deviation in energy storage state, Indicates the delayed response time of frequency deviation;

[0019] When it is determined that the frequency change of the microgrid is in the second stage and the working state of the hybrid energy storage system is the energy release state, the frequency control model is:

[0020] ;

[0021] In the formula, It represents the frequency deviation gain in the energy release state. Indicates the compensation factor of the frequency deviation in the released state.

[0022] Preferably, the hybrid energy storage system comprises energy storage batteries and supercapacitors;

[0023] When the microgrid is in the first stage of frequency change, the supercapacitors in the hybrid energy storage system participate in frequency regulation;

[0024] When the microgrid is in the second stage of frequency change, the energy storage battery in the hybrid energy storage system participates in frequency regulation.

[0025] Preferably, the LSTM prediction model is obtained by training a double-layer STT-LSTM network.

[0026] In a second aspect, the present invention further provides an artificial intelligence-based power system stability control system, the system comprising:

[0027] The data acquisition module is used to obtain the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system in the microgrid;

[0028] The trend prediction module is used to obtain the preset LSTM prediction model, input the frequency deviation and the frequency deviation change rate into the LSTM prediction model, and predict the frequency change trend of the microgrid;

[0029] The frequency control module is used to generate multiple control stages according to the working status of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid; according to the current deviation, regional control error and frequency deviation, a frequency control model of the hybrid energy storage system in multiple control stages is established, so that the hybrid energy storage system can perform frequency regulation steady-state control on the microgrid according to multiple frequency control models.

[0030] Preferably, the frequency control module further includes:

[0031] The first frequency modulation unit is used to determine that the frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy storage state, and the frequency control model is:

[0032] ;

[0033] In the formula, for The output power of the hybrid energy storage system participating in the frequency regulation of the microgrid at all times; , They are the regional control error gain and current regulation gain in the energy storage state respectively; , Respectively Regional control error and current deviation at each moment; , They represent the compensation factors of the regional control error and current deviation under the energy storage state respectively; , They represent the delayed response time of the regional control error and the current deviation respectively; Indicates energy storage state The power prediction value at the time, Indicates the power adjustment factor in the energy storage state;

[0034] The second frequency regulation unit is used to determine that the frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy release state, and the frequency control model is:

[0035] ;

[0036] In the formula, , They are the regional control error gain and current regulation gain in the energy release state respectively; are the compensation factors of regional control error and current deviation under energy release state respectively; Indicates energy release state The power prediction value at the time, Indicates the power adjustment factor in the released energy state; Indicates energy release state The pressure control signal at all times, Indicates the pressure adjustment coefficient under the energy release state;

[0037] The third frequency regulation unit is used for determining that the frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy storage state, and the frequency control model is:

[0038] ;

[0039] In the formula, Indicates the frequency deviation gain in the energy storage state, express The frequency deviation at the moment, Indicates the compensation factor of frequency deviation in energy storage state, Indicates the delayed response time of frequency deviation;

[0040] The fourth frequency modulation unit is used for determining that the frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy release state, and the frequency control model is:

[0041] ;

[0042] In the formula, It represents the frequency deviation gain in the energy release state. Indicates the compensation factor of the frequency deviation in the released state.

[0043] Preferably, the hybrid energy storage system comprises energy storage batteries and supercapacitors;

[0044] When the microgrid is in the first stage of frequency change, the supercapacitors in the hybrid energy storage system participate in frequency regulation;

[0045] When the microgrid is in the second stage of frequency change, the energy storage battery in the hybrid energy storage system participates in frequency regulation.

[0046] Preferably, the LSTM prediction model is obtained by training a double-layer STT-LSTM network.

[0047] In a third aspect, the present invention further provides an electronic device comprising: a processor and a memory, wherein the memory is used to store computer program code, wherein the computer program code comprises computer instructions, and when the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation thereof.

[0048] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a processor of an electronic device, the processor executes the method as described in the first aspect above and any possible implementation thereof.

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

[0050] 1) By real-time monitoring of current deviation, frequency deviation and its rate of change, as well as regional control error, the present invention can quickly identify and respond to disturbance events in the power grid, ensuring the stability and reliability of the microgrid under various operating conditions; by combining the LSTM prediction model to predict the frequency change trend, the regulation is forward-looking and more accurate, which helps to prevent potential frequency instability problems and enhance the stability of the microgrid.

[0051] 2) The present invention takes into account the working state of the hybrid energy storage system and formulates a multi-stage control strategy based on the predicted frequency change trend, which can more efficiently dispatch energy storage resources. By allocating the frequency modulation work of energy storage batteries and supercapacitors, it can not only improve the response speed and utilization rate of the energy storage system, but also minimize the cost of energy storage and release while ensuring the stability of the microgrid frequency, thereby extending the service life of the energy storage system.

[0052] 3) Based on current deviation, regional control error and frequency trend predicted by LSTM, the present invention constructs a multi-stage frequency control model for the hybrid energy storage system, which can dynamically adjust the charging and discharging strategy of the energy storage system to quickly and accurately track the frequency control target. By considering the influence of power prediction, pressure control and response delay in different control stages, the model is optimized to improve the frequency modulation accuracy. Through refined control methods, frequency deviations can be corrected more quickly, system oscillations can be reduced, and the overall frequency quality can be improved;

[0053] 4) The present invention comprehensively considers frequency control, energy storage utilization and system stability, can optimize the operation strategy of the microgrid, improve the automation and intelligent management level of the microgrid, improve the response speed and control accuracy, reduce the demand for external auxiliary services, reduce the overall operating cost, and improve economic benefits.

[0054] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.

[0056] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.

[0057] Figure 1 A schematic diagram of a flow chart of an artificial intelligence-based power system stability control method provided in an embodiment of the present invention;

[0058] Figure 2The embodiment of the present invention provides Figure 1 Schematic diagram of the principle of multiple control stage types;

[0059] Figure 3 A schematic diagram of the structure of an artificial intelligence-based power system stability control system provided by an embodiment of the present invention;

[0060] Figure 4 The embodiment of the present invention provides Figure 3 Schematic diagram of the structure of the subunits of the medium frequency control module. DETAILED DESCRIPTION

[0061] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0063] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0065] In addition, in order to better illustrate the present invention, numerous specific details are provided in the following specific embodiments. It should be understood by those skilled in the art that the present invention can be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.

[0066] At present, the consideration of the factors affecting fluctuations in microgrids is not comprehensive. Usually, only frequency deviation is used as a reference for frequency regulation control, ignoring other factors affecting fluctuations and the relationship between the dynamic working state of the energy storage system itself and the system response characteristics, which leads to unsatisfactory frequency regulation accuracy. To this end, the present invention provides a control method that takes into account multiple parameters affecting grid fluctuations, formulates different frequency control strategies for different working states of the energy storage system, greatly improves the frequency regulation accuracy, and is conducive to the stable operation of the microgrid.

[0067] See also Figure 1 , Figure 1 The present invention provides a flowchart of an artificial intelligence-based power system stability control method. Figure 1 As shown, the method includes:

[0068] S10, obtaining the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system in the microgrid.

[0069] High-precision measuring instruments, such as current transformers, voltage transformers, synchronous measurement units and other sensor devices, are usually installed in the key nodes of the microgrid to collect electrical parameters such as current, voltage, and frequency in real time. In order to monitor the operation process of the microgrid, sensor devices are usually used to collect real-time data of the microgrid operation from the field, including current, voltage, frequency, power, etc. These data are then transmitted to the data acquisition system (SCADA) and transmitted to the control center or local controller through communication networks such as optical fiber and wireless networks. Generally, it is necessary to ensure that there is a reliable communication link between the data acquisition equipment and the control center or local controller so that real-time data can be quickly transmitted and processed.

[0070] After the data acquisition system obtains the above parameters, it will use a simple algorithm to calculate parameters such as current deviation, frequency deviation, frequency deviation change rate, and area control error (ACE), as follows:

[0071] Current deviation: By comparing the actual current value with the set standard current value or reference current value, the difference between the two is calculated.

[0072] Frequency deviation: The grid frequency is measured in real time and compared with the system nominal frequency (such as 50Hz or 60Hz). The difference is the frequency deviation. PMU equipment can usually be used to directly obtain high-precision frequency measurement data.

[0073] Frequency deviation change rate: The frequency deviation change rate can be obtained by calculating the ratio of the frequency change to the corresponding time interval through the time series data of two or more consecutive frequency measurements. When obtaining this value, it is necessary to perform a differential operation on the data and consider the appropriate time resolution.

[0074] Area Control Error (ACE): It is used to measure the imbalance between actual power generation and actual load in a control area, as well as the deviation of power exchange between the area and adjacent areas. When calculating ACE, the difference between the actual total power generation and the planned total power generation is usually calculated first, and then multiplied by the frequency deviation and a proportionality factor in sequence. The proportionality factor reflects the relationship between the frequency deviation and the power imbalance, which is usually related to the system inertia.

[0075] The working state of the hybrid energy storage system in the microgrid can be mainly divided into the energy storage state and the energy release state. In the energy storage state, the hybrid energy storage system (such as batteries, supercapacitors or other energy storage devices) absorbs external energy and converts it into chemical energy, potential energy or electrical energy for storage. At this time, the system focuses on storing energy efficiently and safely, and may need to consider how to optimize the charging rate, extend the life of the energy storage device, and maintain the system's state of charge SOC within a reasonable range. When the microgrid needs additional power supply or needs to smooth power fluctuations, the hybrid energy storage system enters the energy release state. In this state, the stored energy is converted back to electrical energy and released to the grid to meet load demand or assist in frequency and voltage control. The key to the energy release process is to release energy quickly and stably, while ensuring that the energy release power meets the needs of the current grid and that the SOC of the energy storage device does not drop to a low level that affects its reliability.

[0076] S20. Obtain a preset LSTM prediction model, input the frequency deviation and the frequency deviation change rate into the LSTM prediction model, and predict the frequency change trend of the microgrid.

[0077] In this embodiment, the LSTM prediction model is obtained by training a double-layer STT-LSTM network.

[0078] First, the LSTM network is an STT-LSTM network model. The STT-LSTM network contains two layers of STT-LSTM networks. Each layer of STT-LSTM network contains two LSTM networks and one fully connected layer. When training the model, the extracted features are passed into the two LSTM networks in the first layer of the STT-LSTM network, and the two LSTM networks are trained respectively. The outputs of the two LSTM networks are respectively input into the corresponding fully connected layers for fusion to obtain preliminary fusion results. Finally, the preliminary fusion results are respectively passed into the two LSTM networks in the second layer of the STT-LSTM network, and the two LSTM networks are trained. The outputs of the two LSTM networks are respectively input into the corresponding fully connected layers for fusion, and continuous iterations are performed until the model converges to obtain the third prediction model.

[0079] In terms of sample data, a large amount of frequency deviation and frequency deviation change rate of the historical microgrid operation process can be collected as training data, and this data can be used as model input, and the frequency change trend can be used as model output. Since the frequency change trend is a continuous sequence value, it is preferred to use the root mean square error as the loss function, which is more accurate for measuring continuous value prediction. During training, you can first set the number of iterations and learning rate, select the Adam optimizer, and when the accuracy of the loss function reaches the preset conditions, the final LSTM prediction model can be generated.

[0080] S30. Generate multiple control stages according to the working status of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid; establish a frequency control model of the hybrid energy storage system in multiple control stages according to the current deviation, regional control error and frequency deviation, so that the hybrid energy storage system can perform frequency regulation steady-state control on the microgrid according to multiple frequency control models.

[0081] Preferably, the hybrid energy storage system comprises energy storage batteries and supercapacitors;

[0082] When the microgrid is in the first stage of frequency change, the supercapacitors in the hybrid energy storage system participate in frequency regulation;

[0083] When the microgrid is in the second stage of frequency change, the energy storage battery in the hybrid energy storage system participates in frequency regulation.

[0084] See also Figure 2 In this embodiment, four control stages are generated according to the working state of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid, including:

[0085] 1) The frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy storage state:

[0086] The first stage usually refers to the initial stage of frequency change, when the system may have just experienced a disturbance and the frequency begins to deviate from the nominal value. Supercapacitors are used for frequency control in this stage, and their working state is energy storage, which means that in this stage, supercapacitors are rapidly absorbing excess electrical energy in the system to help suppress the frequency increase or reduce the amplitude of the frequency decrease. The advantage of supercapacitors is their fast response capability and high power density, which are suitable for dealing with instantaneous frequency fluctuations.

[0087] 2) The frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy release state:

[0088] Assuming that the supercapacitor has been fully charged before and needs to release energy immediately to quickly correct the frequency deviation, the supercapacitor may be in an energy release state and quickly provide energy support.

[0089] 3) The frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy storage state:

[0090] The second stage usually refers to the process that takes a long time to return to the normal range after the frequency changes. At this time, the energy storage battery begins to play a role. If the battery is in the energy storage state, it means that it is absorbing the remaining unbalanced power in the system, helping to further adjust the frequency and store this energy for subsequent use. Energy storage batteries are suitable for handling frequency control needs on a longer time scale due to their large energy density.

[0091] 4) The frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy release state:

[0092] In the second stage, if the frequency is still below the target value or needs further fine-tuning, the energy storage battery will work from the energy release state, releasing the previously stored energy to continuously support the frequency to return to the nominal value. The battery's energy release operation can provide continuous power output, helping the microgrid maintain or restore to the desired frequency level for a longer period of time.

[0093] In a specific embodiment, the frequency control model of the hybrid energy storage system in multiple control stages is established according to the current deviation, the regional control error and the frequency deviation, including:

[0094] When it is determined that the frequency change of the microgrid is in the first stage and the working state of the hybrid energy storage system is the energy storage state, the frequency control model is:

[0095] ;

[0096] In the formula, for The output power of the hybrid energy storage system participating in the frequency regulation of the microgrid at all times; , They are the regional control error gain and current regulation gain in the energy storage state respectively; , Respectively Regional control error and current deviation at each moment; , They represent the compensation factors of the regional control error and current deviation under the energy storage state respectively; , They represent the delayed response time of the regional control error and the current deviation respectively; Indicates energy storage state The power prediction value at the time, Indicates the power adjustment factor in the energy storage state;

[0097] When it is determined that the frequency change of the microgrid is in the first stage and the working state of the hybrid energy storage system is the energy release state, the frequency control model is:

[0098] ;

[0099] In the formula, , They are the regional control error gain and current regulation gain in the energy release state respectively; are the compensation factors of regional control error and current deviation under energy release state respectively; Indicates energy release state The power prediction value at the time, Indicates the power adjustment factor in the released energy state; Indicates energy release state The pressure control signal at all times, Indicates the pressure adjustment coefficient under the energy release state;

[0100] When it is determined that the frequency change of the microgrid is in the second stage and the working state of the hybrid energy storage system is the energy storage state, the frequency control model is:

[0101] ;

[0102] In the formula, Indicates the frequency deviation gain in the energy storage state, express The frequency deviation at the moment, Indicates the compensation factor of frequency deviation in energy storage state, Indicates the delayed response time of frequency deviation;

[0103] When it is determined that the frequency change of the microgrid is in the second stage and the working state of the hybrid energy storage system is the energy release state, the frequency control model is:

[0104] ;

[0105] In the formula, It represents the frequency deviation gain in the energy release state. Indicates the compensation factor of the frequency deviation in the released state.

[0106] In this embodiment, the model assumes that the energy storage system can dynamically adjust its power output according to three main input signals, frequency deviation, ACE and current deviation, to achieve multiple control objectives. In addition, the model of this embodiment is mainly divided into energy storage and energy release stages. In the energy storage stage, the delayed response time is considered, because there is a time delay in the transmission and response of signals in the actual power system. These delays may come from communication delays, response time of the control loop, etc. Considering this value can improve the response speed of system regulation. The compensation factor is used to adjust the degree of influence of the deviation at a certain moment in the past on the current control decision, which can help the system respond smoothly, reduce overshoot and oscillation, and improve the robustness of control. The introduction of predicted values ​​for changes in power demand or supply in the future, as well as the corresponding adjustment coefficients, can help the energy storage system respond in advance and improve its adaptability to dynamic changes, such as predicting changes in renewable energy power generation through weather forecast adjustments.

[0107] When the energy storage system is converted from the energy storage stage to the energy release stage, the control target changes from energy storage to effectively releasing the stored energy to meet the needs of the grid or perform frequency regulation. When adjusting the above model, it is necessary to consider the specific needs of the energy release stage, such as fast response to power output, power smooth output control, and dynamic interaction with grid frequency deviation and regional control error. Therefore, the control coefficient in the energy release stage may need to be adjusted to adapt to different energy release characteristics, such as power output limitations, efficiency changes, and dynamic interaction characteristics with the grid. At the same time, the pressure control term is introduced here, that is, the dynamic feedback of the pressure control unit needs to be introduced to adjust the inlet pressure of the energy storage system expander to ensure smooth energy release and efficient conversion. Through the above multi-stage refined frequency control model, the parameter influence of different stages can be considered for different stages, and refined control can be achieved, thereby greatly improving the frequency regulation accuracy and response speed, and ensuring the stable operation of the microgrid.

[0108] In summary, the control method provided by the embodiment of the present invention can at least achieve the following beneficial effects:

[0109] 1) By real-time monitoring of current deviation, frequency deviation and its rate of change, as well as regional control error, the present invention can quickly identify and respond to disturbance events in the power grid, ensuring the stability and reliability of the microgrid under various operating conditions; by combining the LSTM prediction model to predict the frequency change trend, the regulation is forward-looking and more accurate, which helps to prevent potential frequency instability problems and enhance the stability of the microgrid.

[0110] 2) The present invention takes into account the working state of the hybrid energy storage system and formulates a multi-stage control strategy based on the predicted frequency change trend, which can more efficiently dispatch energy storage resources. By allocating the frequency modulation work of energy storage batteries and supercapacitors, it can not only improve the response speed and utilization rate of the energy storage system, but also minimize the cost of energy storage and release while ensuring the stability of the microgrid frequency, thereby extending the service life of the energy storage system.

[0111] 3) Based on current deviation, regional control error and frequency trend predicted by LSTM, the present invention constructs a multi-stage frequency control model for the hybrid energy storage system, which can dynamically adjust the charging and discharging strategy of the energy storage system to quickly and accurately track the frequency control target. By considering the influence of power prediction, pressure control and response delay in different control stages, the model is optimized to improve the frequency modulation accuracy. Through refined control methods, frequency deviations can be corrected more quickly, system oscillations can be reduced, and the overall frequency quality can be improved;

[0112] 4) The present invention comprehensively considers frequency control, energy storage utilization and system stability, can optimize the operation strategy of the microgrid, improve the automation and intelligent management level of the microgrid, improve the response speed and control accuracy, reduce the demand for external auxiliary services, reduce the overall operating cost, and improve economic benefits.

[0113] See also Figure 3 In one embodiment, the present invention further provides an artificial intelligence-based power system stability control system, the system comprising:

[0114] The data acquisition module 100 is used to obtain the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system in the microgrid;

[0115] The trend prediction module 200 is used to obtain a preset LSTM prediction model, input the frequency deviation and the frequency deviation change rate into the LSTM prediction model, and predict the frequency change trend of the microgrid;

[0116] The frequency control module 300 is used to generate multiple control stages according to the working state of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid; and to establish a frequency control model of the hybrid energy storage system in multiple control stages according to the current deviation, the regional control error and the frequency deviation, so that the hybrid energy storage system can perform frequency regulation steady-state control on the microgrid according to the multiple frequency control models.

[0117] See also Figure 4 In one embodiment, the frequency control module 300 further includes:

[0118] The first frequency modulation unit 301 is used for determining that the frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy storage state, and the frequency control model is:

[0119] ;

[0120] In the formula, for The output power of the hybrid energy storage system participating in the frequency regulation of the microgrid at all times; , They are the regional control error gain and current regulation gain in the energy storage state respectively; , Respectively Regional control error and current deviation at each moment; , They represent the compensation factors of the regional control error and current deviation under the energy storage state respectively; , They represent the delayed response time of the regional control error and the current deviation respectively; Indicates energy storage state The power prediction value at the time, Indicates the power adjustment factor in the energy storage state;

[0121] The second frequency modulation unit 302 is used for determining that the frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy release state, and the frequency control model is:

[0122] ;

[0123] In the formula, , They are the regional control error gain and current regulation gain in the energy release state respectively; are the compensation factors of regional control error and current deviation under energy release state respectively; Indicates energy release state The power prediction value at the time, Indicates the power adjustment factor in the released energy state; Indicates energy release state The pressure control signal at all times, Indicates the pressure adjustment coefficient under the energy release state;

[0124] The third frequency modulation unit 303 is used for determining that the frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy storage state, and the frequency control model is:

[0125] ;

[0126] In the formula, Indicates the frequency deviation gain in the energy storage state, express The frequency deviation at the moment, Indicates the compensation factor of frequency deviation in energy storage state, Indicates the delayed response time of frequency deviation;

[0127] The fourth frequency modulation unit 304 is used for determining that the frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy release state, and the frequency control model is:

[0128] ;

[0129] In the formula, It represents the frequency deviation gain in the energy release state. Indicates the compensation factor of the frequency deviation in the released state.

[0130] In one embodiment, the hybrid energy storage system includes an energy storage battery and a supercapacitor;

[0131] When the microgrid is in the first stage of frequency change, the supercapacitors in the hybrid energy storage system participate in frequency regulation;

[0132] When the microgrid is in the second stage of frequency change, the energy storage battery in the hybrid energy storage system participates in frequency regulation.

[0133] In one embodiment, the LSTM prediction model is obtained by training a double-layer STT-LSTM network.

[0134] It can be understood that the functions or modules included in the system provided in this embodiment can be used to execute the method described in the above method embodiment. Its specific implementation can refer to the description of the above method embodiment. For the sake of brevity, it will not be repeated here.

[0135] The present invention also provides an electronic device, comprising: a processor, a sending device, an input device, an output device and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes a method as described in any possible implementation manner.

[0136] The present invention also provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes a method as described in any possible implementation manner.

[0137] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

[0139] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0142] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0143] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. A power system stability control method based on artificial intelligence, characterized in that: The method comprises: Obtain the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system in the microgrid; Obtain the preset LSTM prediction model, input the frequency deviation and the frequency deviation change rate into the LSTM prediction model, and predict the frequency change trend of the microgrid; According to the working state of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid, multiple control stages are generated; according to the current deviation, regional control error and frequency deviation, a frequency control model of the hybrid energy storage system in multiple control stages is established, so that the hybrid energy storage system can perform frequency regulation steady-state control on the microgrid according to multiple frequency control models; The frequency control model of the hybrid energy storage system in multiple control stages is established according to the current deviation, regional control error and frequency deviation, including: When it is determined that the frequency change of the microgrid is in the first stage and the working state of the hybrid energy storage system is the energy storage state, the frequency control model is: ; In the formula, for The output power of the hybrid energy storage system participating in the frequency regulation of the microgrid at all times; , They are the regional control error gain and current regulation gain in the energy storage state respectively; , Respectively Regional control error and current deviation at each moment; , They represent the compensation factors of the regional control error and current deviation under the energy storage state respectively; , They represent the delayed response time of the regional control error and the current deviation respectively; Indicates energy storage state The power prediction value at the time, Indicates the power adjustment factor in the energy storage state; When it is determined that the frequency change of the microgrid is in the first stage and the working state of the hybrid energy storage system is the energy release state, the frequency control model is: ; In the formula, , They are the regional control error gain and current regulation gain in the energy release state respectively; are the compensation factors of regional control error and current deviation under energy release state respectively; Indicates energy release state The power prediction value at the time, Indicates the power adjustment factor in the released energy state; Indicates energy release state The pressure control signal at all times, Indicates the pressure adjustment coefficient under the energy release state; When it is determined that the frequency change of the microgrid is in the second stage and the working state of the hybrid energy storage system is the energy storage state, the frequency control model is: ; In the formula, Indicates the frequency deviation gain in the energy storage state, express The frequency deviation at the moment, Indicates the compensation factor of frequency deviation in energy storage state, Indicates the delayed response time of frequency deviation; When it is determined that the frequency change of the microgrid is in the second stage and the working state of the hybrid energy storage system is the energy release state, the frequency control model is: ; In the formula, It represents the frequency deviation gain in the energy release state. Indicates the compensation factor of the frequency deviation in the released state.

2. The power system stability control method based on artificial intelligence according to claim 1 is characterized in that: The hybrid energy storage system includes energy storage batteries and supercapacitors; When the microgrid is in the first stage of frequency change, the supercapacitors in the hybrid energy storage system participate in frequency regulation; When the microgrid is in the second stage of frequency change, the energy storage battery in the hybrid energy storage system participates in frequency regulation.

3. The power system stability control method based on artificial intelligence according to claim 1 is characterized in that: The LSTM prediction model is obtained by training a double-layer STT-LSTM network.

4. An artificial intelligence-based power system stability control system, characterized in that: The system comprises: The data acquisition module is used to obtain the current deviation, frequency deviation, frequency deviation change rate and regional control error of the microgrid in real time, as well as the working status of the hybrid energy storage system in the microgrid; The trend prediction module is used to obtain the preset LSTM prediction model, input the frequency deviation and the frequency deviation change rate into the LSTM prediction model, and predict the frequency change trend of the microgrid; The frequency control module is used to generate multiple control stages according to the working state of the hybrid energy storage system in the microgrid and the frequency change trend of the microgrid; according to the current deviation, regional control error and frequency deviation, a frequency control model of the hybrid energy storage system in multiple control stages is established, so that the hybrid energy storage system can perform frequency regulation steady-state control on the microgrid according to multiple frequency control models; The frequency control module further includes: The first frequency modulation unit is used to determine that the frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy storage state, and the frequency control model is: ; In the formula, for The output power of the hybrid energy storage system participating in the frequency regulation of the microgrid at all times; , They are the regional control error gain and current regulation gain in the energy storage state respectively; , Respectively Regional control error and current deviation at each moment; , They represent the compensation factors of the regional control error and current deviation under the energy storage state respectively; , They represent the delayed response time of the regional control error and the current deviation respectively; Indicates energy storage state The power prediction value at the time, Indicates the power adjustment factor in the energy storage state; The second frequency regulation unit is used to determine that the frequency change of the microgrid is in the first stage, and the working state of the hybrid energy storage system is the energy release state, and the frequency control model is: ; In the formula, , They are the regional control error gain and current regulation gain in the energy release state respectively; are the compensation factors of regional control error and current deviation under energy release state respectively; Indicates energy release state The power prediction value at the time, Indicates the power adjustment factor in the released energy state; Indicates energy release state The pressure control signal at all times, Indicates the pressure adjustment coefficient under the energy release state; The third frequency regulation unit is used for determining that the frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy storage state, and the frequency control model is: ; In the formula, Indicates the frequency deviation gain in the energy storage state, express The frequency deviation at the moment, Indicates the compensation factor of frequency deviation in energy storage state, Indicates the delayed response time of frequency deviation; The fourth frequency modulation unit is used to determine that the frequency change of the microgrid is in the second stage, and the working state of the hybrid energy storage system is the energy release state, and the frequency control model is: ; In the formula, It represents the frequency deviation gain in the energy release state. Indicates the compensation factor of the frequency deviation in the released state.

5. The power system stability control system based on artificial intelligence according to claim 4 is characterized in that: The hybrid energy storage system includes energy storage batteries and supercapacitors; When the microgrid is in the first stage of frequency change, the supercapacitors in the hybrid energy storage system participate in frequency regulation; When the microgrid is in the second stage of frequency change, the energy storage battery in the hybrid energy storage system participates in frequency regulation.

6. The power system stability control system based on artificial intelligence according to claim 4 is characterized in that: The LSTM prediction model is obtained by training a double-layer STT-LSTM network.

7. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program code, wherein the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the artificial intelligence-based power system stability control method as described in any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor of an electronic device, the processor executes the artificial intelligence-based power system stability control method as described in any one of claims 1 to 3.