Hybrid enhanced intelligence-based power grid management and control method and equipment
Patent Information
- Application Number
- CN202410927687.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-15
AI Technical Summary
Existing model-based mechanism analysis methods are difficult to cope with the challenges of complex nonlinear power systems, especially in complex or uncertain power grid operation scenarios, and are difficult to improve the adaptability and security of the power grid.
Adopting a dynamic decision-making model based on hybrid augmented intelligence, combined with Soar cognitive architecture and deep Q network, through real-time data processing and feature extraction, a dynamic decision-making model is constructed and optimized to provide power grid performance evaluation results and operation suggestions to enhance the adaptability and adaptability of the power grid. Security.
It improves the adaptability of the power grid to complex environments, enhances the safety and stability of power grid operation, and ensures the safety and stability of the power grid through real-time processing and optimized decision-making strategies.
Smart Images

Figure CN118780609A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power system distribution, and in particular, relates to a power grid management and control method and equipment based on hybrid enhanced intelligence. Background Art
[0002] As the demand for green and low-carbon transformation continues to increase, the power system has gradually exposed its uncertainty, openness and fragility, increasing the difficulty of risk warning and safety management for power grid companies. On the one hand, the uncertainty of the output of new energy sources such as wind power and photovoltaics increases the complexity and difficulty of the planning and operation of the power system, which in turn increases the risk of system balance and stable operation. On the other hand, the introduction of new controllable devices and the upgrading of the power grid have led to constant changes in the scale and structure of the power grid, making the operation mode more complicated and the safety boundary constantly adjusted. In addition, the weak support of new energy and the low inertia characteristics brought about by power electronics will significantly increase the vulnerability of the power grid in extreme weather and fault conditions, which may further increase the risk of system instability.
[0003] The existing model-based mechanism analysis methods are difficult to cope with the challenges of complex nonlinear power systems. The development trend of future power grids is to realize the informatization, digitization and intelligence of power grids through digital empowerment. Chinese patent application CN202311681831.5 discloses a power grid security risk assessment and early warning system. The introduction of a deep learning module can more accurately identify abnormal patterns in power grid data, reduce false alarm rates and missed alarm rates, and at the same time, improve the real-time performance of data processing and analysis through the edge computing module, and shorten the detection response time. However, in the above scheme, although the intelligent decision support module can provide optimization control suggestions or deep learning support for risk assessment results, its decision-making ability is still limited by multiple factors such as algorithms, data quality, and scenario adaptability, especially in some complex or uncertain power grid operation scenarios. Therefore, it is necessary to design a power grid control method to further improve the adaptability of the power grid to complex environments and enhance the safety of power grid operation. Summary of the invention
[0004] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a power grid management and control method and equipment based on hybrid enhanced intelligence, further improve the adaptability of the power grid to complex environments, and enhance the safety of power grid operation.
[0005] The purpose of the present invention can be achieved by the following technical solutions:
[0006] The present invention provides a power grid management and control method based on hybrid enhanced intelligence, comprising the following steps:
[0007] Collect real-time data of the power grid, pre-process it and input it into the trained dynamic decision-making model based on hybrid enhanced intelligence to obtain power grid performance evaluation results and operation suggestions;
[0008] The construction and training process of the dynamic decision-making model based on hybrid enhanced intelligence is as follows:
[0009] S1. Obtain historical data of the power grid and perform preprocessing;
[0010] S2. Use the Soar cognitive architecture to extract features from the preprocessed data, obtain the current state of the power grid, build a dynamic decision model based on hybrid enhanced intelligence, and optimize it using the method of minimizing prediction errors;
[0011] S3. Further optimize the dynamic decision model constructed in step S2 through the deep Q network.
[0012] Furthermore, through the grid edge computing node, the stream data processing framework Apache Kafka is used to collect and preprocess the grid data. The grid data includes operation data and environmental data. The operation data includes voltage, current, frequency and load, and the environmental data includes ambient temperature, sunshine intensity and wind speed. The preprocessing includes data cleaning, missing value processing and normalization.
[0013] Furthermore, the data cleaning includes removing noise and outliers, using a moving average method to remove noise; using an interpolation method to process missing values, and filling missing values through linear interpolation or spline interpolation.
[0014] Furthermore, in step S2, the specific process of extracting features from the preprocessed data using the Soar cognitive architecture is as follows:
[0015] Extract key features from pre-processed data, including voltage fluctuations, load changes, and energy consumption, through the data analysis component of the Soar cognitive architecture;
[0016] The preprocessed data were smoothed by moving average, and the frequency characteristics were extracted by Fourier transform.
[0017] Furthermore, in step S2, the grid state parameters are determined based on the extracted features to obtain the current state of the grid, and then the rule system of the Soar cognitive architecture is used to construct the dynamic decision model based on hybrid enhanced intelligence. The rule system of the Soar cognitive architecture includes a series of conditions and corresponding operations based on the grid state, which are extracted based on historical data and expert experience.
[0018] Furthermore, the dynamic decision model based on hybrid enhanced intelligence is represented in the form of the following decision tree:
[0019]
[0020] Among them, Decision is a dynamic decision model based on the current state of the power grid, s represents the current state of the power grid, and Condition i Indicates the conditions based on the power grid status, Action i Indicates the corresponding operation, each pair of Condition i and Action i Represents a rule.
[0021] Furthermore, in step S2, the specific process of optimizing the dynamic decision model using the method of minimizing the prediction error is as follows:
[0022] Construct a loss function based on the mean square error between the predicted value and the actual value;
[0023] With the goal of minimizing the loss function, the gradient descent method is used to optimize the model parameters until the loss function converges or reaches the preset number of iterations.
[0024] Furthermore, the specific process of step S3 is as follows:
[0025] S301. Set the following reward function based on the current state of the power grid:
[0026]
[0027] Among them, R is the reward function, s t is the grid status at time t, a t is the action taken for the grid status at time t, r positive and r negative For immediate rewards;
[0028] S302, update the Q value of the deep Q network:
[0029]
[0030] Among them, θ and θ′ are network parameters, α is the learning rate, and γ is the discount factor;
[0031] S303, adopt the greedy strategy and update the strategy according to the updated Q value:
[0032]
[0033] Furthermore, the grid performance evaluation results output by the model are verified by the grid modal analysis results. The formula for grid modal analysis is as follows:
[0034]
[0035] Among them, S is the result of power grid modal analysis, λ i is the damping coefficient of mode i, ω i is the natural frequency of mode i, φ i is the phase angle of mode i, and n is the number of modes.
[0036] The present invention also provides an electronic device, comprising a memory, a processor, and a program stored in the memory, wherein the processor implements the above method when executing the program.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] 1. The present invention designs a dynamic decision-making model based on hybrid enhanced intelligence for power grid management and control. Specifically, the Soar cognitive architecture is used to extract features of power grid data, a dynamic decision-making model based on hybrid enhanced intelligence is constructed, and the model is optimized using a method that minimizes prediction errors. The dynamic decision-making model is then further optimized through a deep Q network. The above method combines the Soar cognitive architecture with the deep Q network, wherein the Soar cognitive architecture has strong advantages in intelligent decision-making and response speed, multi-resource integration and coordination, and the deep Q network has strong advantages in automatic optimization and adaptation to complex environments, improving model robustness and stability, and the combination of the two can improve the adaptive ability of the decision-making model and the ability to process complex power grids in real time when data is limited, efficiently and accurately output power grid performance evaluation results and operation suggestions, enhance the accuracy and robustness of decision-making, and ensure the stability and security of the power grid.
[0039] 2. The present invention collects and preprocesses power grid data through the power grid edge computing node and the stream data processing framework Apache Kafka, which can ensure the quality and availability of the collected power grid data and lay the foundation for subsequent analysis.
[0040] 3. The present invention performs power grid modal analysis based on the damping coefficient, natural frequency and phase angle of each mode, and verifies the power grid performance evaluation results output by the model according to the power grid modal analysis results, which can further ensure the stability and security of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 Schematic diagram of the construction and training process of a dynamic decision-making model based on hybrid augmented intelligence. DETAILED DESCRIPTION
[0042] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.
[0043] Example 1
[0044] This embodiment provides a power grid control method based on hybrid enhanced intelligence, which integrates the Soar cognitive architecture and the deep Q network (DQN), and uses advanced data analysis and real-time monitoring technology to achieve continuous stability and security evaluation of the power grid, thereby improving the efficiency and response speed of power grid management. The method of this embodiment is implemented by a dynamic decision-making model based on hybrid enhanced intelligence. The input of the model is power grid data, including operation data (including voltage, current, frequency and load, etc.) and environmental data (including ambient temperature, sunshine intensity and wind speed, etc.), and the output includes power grid performance evaluation results, operation suggestions, operation suggestions, early warning information and decision strategies, wherein the power grid performance evaluation results include voltage stability index, load balancing index, etc.; operation suggestions include adjusting transformer taps or starting standby generator sets; early warning information includes early warning notifications when abnormal load increases or equipment failure risks are detected; decision strategies include load scheduling strategies derived from optimization algorithms to reduce peak-to-valley differences and optimize energy distribution.
[0045] The construction and training process of the dynamic decision model based on hybrid augmented intelligence is as follows Figure 1 As shown, the following steps are included:
[0046] S1. Obtain power grid data and perform preprocessing.
[0047] Through the sensors and monitoring equipment installed at each node of the power grid, the stream data processing framework Apache Kafka is used to collect voltage, current, frequency and other data in real time to ensure the accuracy and real-time nature of the data. The collected data is stored in the database:
[0048] RawData={(t1,V1,I1,F1,L1),(t2,V2,I2,F2,L2),…,(t n ,V n ,I n ,F n ,L n )}, where t represents time, V represents voltage, I represents current, F represents frequency, and L represents load.
[0049] The collected power grid data is preprocessed, including data cleaning, missing value processing and data normalization. Data cleaning includes removing noise and outliers. The moving average method can be used to remove noise: Use interpolation methods (such as linear interpolation or spline interpolation) to handle missing values: Where x1 and x2 are known data points at time points t1 and t2, respectively, and x(t) is the interpolated data at time point t. Convert the data to a uniform scale and use Min-Max normalization: Where x is the original data and x′ is the normalized data.
[0050] The preprocessed data is:
[0051] ProcessedData={(t1,V1′,I1′,F1′,L1′),(t2′,V2′,I2′,F2′,L2′),…,(t n ′,V n ′,I n ′,F n ′,L n ′)}
[0052] S2. Use the Soar cognitive architecture to extract features from the preprocessed data, obtain the current state of the power grid, build a dynamic decision-making model based on hybrid enhanced intelligence, and optimize it using the method of minimizing prediction errors.
[0053] The specific process of using the Soar cognitive architecture to extract features from preprocessed data is as follows:
[0054] The data analysis component of the Soar cognitive architecture extracts key features from the preprocessed data, including voltage fluctuations, load changes, and energy consumption. The preprocessed data is smoothed by moving average, and the frequency characteristics are extracted using Fourier transform: X(f) = ∫SMA(x(t))*e -j2πft dt.
[0055] The data after feature extraction is:
[0056] DesionModel={(s1,Action1),(s2,Action2),…,(s n ,Action n )}
[0057] Based on the extracted features, the grid state parameters are determined to obtain the current state of the grid. Then, the rule system of the Soar cognitive architecture is used to build a dynamic decision model based on hybrid enhanced intelligence. The rule system of the Soar cognitive architecture includes a series of conditions (Condition) and corresponding operations (Action) based on the grid state, which are extracted based on historical data and expert experience and expressed in the form of the following decision tree:
[0058]
[0059] Among them, Decision is a dynamic decision model based on the current state of the power grid, s represents the current state of the power grid, and Condition i Indicates the conditions based on the power grid status, Action i Indicates the corresponding operation, each pair of Condition i and Action i Represents a rule. For example, if Condition1 is "when the voltage fluctuation exceeds a certain threshold and the load increases suddenly", and Condition2 is "when the load increase caused by continuous high temperature is detected", the corresponding Action1 and Action2 are "start the backup power supply and adjust the load distribution to stabilize the voltage" and "adjust the output power of photovoltaic power generation and optimize the grid operation to reduce the load pressure".
[0060] Optimize the dynamic decision model using the method of minimizing prediction error:
[0061] Based on the predicted value With the actual value y i The mean square error constructs the loss function:
[0062]
[0063] Where N is the number of samples and θ is the model parameter.
[0064] With the goal of minimizing the loss function, the gradient descent method is used to optimize the model parameters until the loss function converges or reaches the preset number of iterations:
[0065] Objective function:
[0066] Loss function:
[0067] Parameter update:
[0068] The optimized model parameters are:
[0069] ModelParameters={(θ1,α1),(θ2,α2),…,(θ n ,α n )}
[0070] S3: Further optimize the dynamic decision model constructed in step S2 through the deep Q network to adapt to the dynamic changes of the power grid. The specific process is as follows:
[0071] S301. Set the following reward function based on the current state of the power grid:
[0072]
[0073] Among them, R is the reward function, s t is the grid status at time t, a t is the action taken for the grid status at time t, r positive and r negative For immediate rewards;
[0074] S302, update the Q value of the deep Q network:
[0075]
[0076] Among them, θ and θ′ are network parameters, α is the learning rate, and γ is the discount factor;
[0077] S303, adopt the greedy strategy and update the strategy according to the updated Q value:
[0078]
[0079] The optimization algorithm is used to analyze the effects of different operation strategies and implement the best operation strategy to optimize the efficiency and safety of power grid operation. The optimization formula can be expressed as:
[0080]
[0081] subject tog(x)≤0,h(x)=0
[0082] The specific expression is:
[0083]
[0084] h(x)=P gen -P load =0
[0085] Where f(x) is the cost function to be minimized, including the power generation cost C i P i and transmission losses C represents the power generation cost and L represents the loss coefficient; g(x) is the operating constraint, which includes power balance constraint, voltage constraint and current constraint; h(x) is the power balance condition, which ensures the power balance in the power grid.
[0086] Set a reasonable evaluation cycle, continuously track the health status and performance changes of the power grid, and verify the power grid performance evaluation results output by the model through the power grid modal analysis results. The formula for power grid modal analysis is as follows:
[0087]
[0088] Among them, S is the result of power grid modal analysis, λ i is the damping coefficient of mode i, ωi is the natural frequency of mode i, φ i is the phase angle of mode i, and n is the number of modes. Repeat steps S2 to S3 according to the results of performance evaluation. Through this feedback loop, the Soar cognitive architecture and DQN decision strategy are continuously optimized in combination with real-time data to adapt to the dynamic changes and complex conditions in power grid operation and ensure the stability and security of the power grid.
[0089] The above method uses hybrid augmented intelligence technology, focuses on grid risk warning and safety management, and can not only identify potential risk points in the grid, but also predict and prevent possible safety problems in the future by integrating and analyzing a large amount of data and experience. This method enhances the operational safety of the grid and provides an innovative solution for risk management and intelligent safety management of the power system.
[0090] Example 2
[0091] This embodiment provides an electronic device, including a memory and a processor, wherein the processor is used to execute a program stored in the memory, wherein the program includes a number of instructions and can execute all or part of the steps of the method described in Example 1. The memory includes a computer-readable storage medium, which can be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0092] The above description of the embodiments is to facilitate the understanding and use of the invention by those skilled in the art. It is obvious that those skilled in the art can easily make various modifications to these embodiments and apply the general principles described herein to other embodiments without creative work. Therefore, the present invention is not limited to the above embodiments, and improvements and modifications made by those skilled in the art based on the disclosure of the present invention without departing from the scope of the present invention should be within the scope of protection of the present invention.
Claims
1. A power grid management and control method based on hybrid enhanced intelligence, characterized in that: The following steps are involved: Collect real-time data of the power grid, pre-process it and input it into the trained dynamic decision-making model based on hybrid enhanced intelligence to obtain power grid performance evaluation results and operation suggestions; The construction and training process of the dynamic decision-making model based on hybrid enhanced intelligence is as follows: S1. Obtain historical data of the power grid and perform preprocessing; S2. Use the Soar cognitive architecture to extract features from the preprocessed data, obtain the current state of the power grid, build a dynamic decision model based on hybrid enhanced intelligence, and optimize it using the method of minimizing prediction errors; S3. Further optimize the dynamic decision model constructed in step S2 through the deep Q network.
2. The power grid management and control method based on hybrid enhanced intelligence according to claim 1 is characterized in that: Through the grid edge computing node, the stream data processing framework Apache Kafka is used to collect and preprocess the grid data. The grid data includes operation data and environmental data. The operation data includes voltage, current, frequency and load, and the environmental data includes ambient temperature, sunshine intensity and wind speed. The preprocessing includes data cleaning, missing value processing and normalization.
3. The power grid management and control method based on hybrid enhanced intelligence according to claim 2 is characterized in that: The data cleaning includes removing noise and outliers, using the moving average method to remove noise; using the interpolation method to process missing values, and filling in missing values through linear interpolation or spline interpolation.
4. The power grid management and control method based on hybrid enhanced intelligence according to claim 1, characterized in that: In step S2, the specific process of using the Soar cognitive architecture to extract features from the preprocessed data is as follows: Extract key features from pre-processed data, including voltage fluctuations, load changes, and energy consumption, through the data analysis component of the Soar cognitive architecture; The preprocessed data were smoothed by moving average, and the frequency characteristics were extracted by Fourier transform.
5. The power grid management and control method based on hybrid enhanced intelligence according to claim 1, characterized in that: In step S2, the grid state parameters are determined based on the extracted features to obtain the current state of the grid, and then the rule system of the Soar cognitive architecture is used to construct the dynamic decision model based on hybrid enhanced intelligence. The rule system of the Soar cognitive architecture includes a series of conditions and corresponding operations based on the grid state, which are extracted based on historical data and expert experience.
6. A power grid management and control method based on hybrid enhanced intelligence according to claim 5, characterized in that: The dynamic decision model based on hybrid enhanced intelligence is expressed in the form of the following decision tree: Among them, Decision is a dynamic decision model based on the current state of the power grid, s represents the current state of the power grid, and Condition i Indicates the conditions based on the power grid status, Action i Indicates the corresponding operation, each pair of Condition i and Action i Represents a rule.
7. A hybrid enhanced intelligence-based power grid management and control method according to claim 1, characterized in that: In step S2, the specific process of optimizing the dynamic decision model using the method of minimizing the prediction error is as follows: Construct a loss function based on the mean square error between the predicted value and the actual value; With the goal of minimizing the loss function, the gradient descent method is used to optimize the model parameters until the loss function converges or reaches the preset number of iterations.
8. The power grid management and control method based on hybrid enhanced intelligence according to claim 1, characterized in that: The specific process of step S3 is as follows: S301. Set the following reward function based on the current state of the power grid: Among them, R is the reward function, s t is the grid status at time t, a t is the action taken for the grid status at time t, r positive and r negative For immediate rewards; S302, update the Q value of the deep Q network: Among them, θ and θ ′ are network parameters, α is the learning rate, and γ is the discount factor; S303, adopt the greedy strategy and update the strategy according to the updated Q value:
9. The power grid management and control method based on hybrid enhanced intelligence according to claim 1, characterized in that: The grid performance evaluation results output by the model are verified through the grid modal analysis results. The formula of grid modal analysis is as follows: Among them, S is the result of power grid modal analysis, λ i is the damping coefficient of mode i, ω i is the natural frequency of mode i, φ i is the phase angle of mode i, and n is the number of modes.
10. An electronic device comprising a memory, a processor, and a program stored in the memory, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 9 is implemented.
