Power network self-healing method and system based on large language model
By using large language models in the power system combined with natural language processing and machine learning technology, the automatic identification and resolution of power network faults is realized, which solves the problem that the existing system cannot comprehensively handle multiple faults, and improves the stability and stability of the power system. Efficiency, reducing manual intervention and adapting to different application scenarios.
Patent Information
- Application Number
- CN202410761349.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing power system automation systems cannot comprehensively identify and handle multiple types of faults and require manual intervention, which is inefficient and error-prone.
Adopting a power network self-healing method based on a large language model, combined with language model technology, natural language processing and machine learning technology, to achieve automatic identification, diagnosis and resolution of power network faults through data preprocessing, Transformer model training, decision-making evaluation and automation Execution to achieve automated fault handling.
It improves the stability and reliability of the power system, reduces the need for manual intervention, shortens fault recovery time, improves fault handling efficiency and accuracy, and adapts to the needs of different power systems.
Smart Images

Figure CN118710241A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power system automation and intelligent optimization algorithms, and specifically includes a power network self-healing method and system based on a large language model. Background Art
[0002] The power system plays a vital role in modern society. It provides indispensable energy for our daily life and industrial production. However, the power system often faces various faults and challenges, such as line aging, equipment failure, bad weather, etc. These factors may cause power outages and bring great inconvenience to people's production and life. At present, traditional fault diagnosis and repair methods mainly rely on manual inspection and repair, which is not only inefficient but also prone to errors. Therefore, it is of great practical significance and practical value to develop a power network self-healing mechanism based on a large language model to realize the automatic identification, diagnosis and resolution of power network faults.
[0003] Existing automation systems are mainly targeted at specific power system tasks, such as monitoring equipment operating conditions and detecting faults. Although these systems have improved the stability and efficiency of power systems to a certain extent, they still have some limitations and shortcomings. The systems often lack a comprehensive consideration of the complexity of power systems and cannot accurately identify and handle many types of faults. At the same time, human intervention is required to deal with emergencies or complex situations.
[0004] The main purpose of the power network self-healing mechanism based on the large language model is to provide a new power system automation solution that can automatically identify, diagnose and solve power network faults and improve the stability and reliability of the power system. The mechanism mainly includes language model technology, natural language processing technology, machine learning technology and other technologies. Through the comprehensive application of these technologies, the automatic identification, location and solution of power network faults can be realized. In addition, the mechanism can also be integrated with the existing power system automation system to improve the efficiency and reliability of the entire power system.
[0005] Compared with existing technologies, the advantages of the power network self-healing mechanism based on the large language model are its comprehensiveness and flexibility. The mechanism can handle various types of power system failures without human intervention. In addition, the mechanism can be transplanted and expanded between different power systems to adapt to different application scenarios and needs, and has high practical value and market prospects. Summary of the invention
[0006] Purpose of the invention: The present invention provides a method and system for self-healing of power networks based on a large language model, which aims to realize automatic identification, diagnosis and resolution of power network faults through the comprehensive application of multiple technologies, thereby improving the stability and reliability of the power system. The mechanism can automatically handle various types of power system faults without human intervention, and can be transplanted and expanded between different power systems to adapt to different application scenarios and needs. By realizing the automatic identification, diagnosis and resolution of power network faults, the present invention helps to improve the efficiency and reliability of the power system, reduce fault losses, and at the same time reduce the need for human intervention and reduce labor costs, and has high practical value and market prospects.
[0007] Technical solution: The present invention proposes a power network self-healing method based on a large language model, comprising the following steps:
[0008] Collect information on the power network including voltage, current, temperature, vibration, and description and location of fault reports, and pre-process the collected data;
[0009] Use natural language processing technology to analyze and process the description in the fault report, segment the fault report text into individual sentences or words, and extract features and information; integrate the data and text information collected in the power network to form a data set;
[0010] Build a training model and use the Transformer model to train the collected data;
[0011] The trained model is used to identify the fault type based on the collected voltage, current, temperature, vibration in the power network, as well as the description and location information in the fault report, and the machine learning algorithm is used to locate the fault.
[0012] Furthermore, it also includes:
[0013] Based on the evaluation of the power automation system, a decision-making evaluation index system is established, and based on the large language model, combined with the actual situation of the power automation system and expert knowledge, intelligent decision-making suggestions are generated;
[0014] Through machine learning algorithms, historical data of the power system automation system is learned, decision suggestions are optimized, and the generated decision suggestions are converted into automated execution commands.
[0015] Furthermore, during preprocessing, the collected data is cleaned and organized, invalid and erroneous data is removed, and the data is labeled using a semi-supervised learning approach; at the same time, data normalization, data conversion, and data compression operations are performed on the data.
[0016] Furthermore, when the Transformer model is used to train the data, the specific process is as follows:
[0017] 41) Establish a residual link, and the residual function formula is as follows:
[0018] y=H(x)=F(x)+x
[0019] Among them, y = H (x) is the model output, F (x) represents the residual, and x represents the residual block input;
[0020] 42) Standardization is performed, and the standardization formula is as follows:
[0021]
[0022] y i =αx i +β
[0023] in, and represents the standardized parameter, D represents the dimension, x ij Represents the input data, y i represents the output value, α and β represent trainable parameters;
[0024] 43) Establish a feedforward fully connected network, the corresponding formula is as follows:
[0025] N(x)=max(0,xW i +b i )W 2 +b 2
[0026] f(x)=max(0,x)
[0027] W i represents the weight matrix of the i-th hidden layer, b i represents the bias vector of the i-th hidden layer, and f(x) is the activation function;
[0028] 44) The IWSO algorithm is used to optimize the learning rate and number of attention heads of the Transformer model.
[0029] Furthermore, the IWSO algorithm is used to optimize the learning rate and the number of attention heads of the Transformer model. The specific process is as follows:
[0030] 44.1) Attack strategy: Soldiers update their positions according to the positions of the king and commander. The update formula is as follows:
[0031] X i (t+1)=X i(t)+2×rand×(C-King)+rand×(W i ×King-X i (t))
[0032] Among them, X i (t+1) is the new position of the soldier in the t+1th iteration, X i (t) is the soldier position at the tth iteration, C is the commander position, King is the king position, rand is a random number between [0,1], W i is the king's position weight; the updated learning rate of the soldier's position and the update of the number of attention heads;
[0033] 44.2) Sorting and weighting, if the attack power of the soldier in the new position is F n Less than the attack power F of the current generation position p , then the soldier occupies the previous position, and the update formula is as follows:
[0034] X i (t+1)=(X i (t+1))×(F n ≥F p )+(X i (t))×(F n <F p )
[0035] 44.3) If the soldier successfully updates his position, the soldier's level R i The upgrade and level update formula are as follows:
[0036] R i =(R i +1)×(F n ≥F p )+(R i )×(F n <F p )
[0037] 44.5) Sorting soldiers according to their attack power, the weight update formula is as follows:
[0038] W i =W i ×(1-R i / T)α
[0039] Among them, F n is the soldier's position attack power (fitness value), F p is the soldier's current position attack power (fitness value), the fitness value is the value of the weight and threshold, R i is the soldier’s level, α is the exponential change factor;
[0040] 44.6) Optimize the exponential change factor α to improve the global search capability and the convergence ability of the development. The optimization formula is as follows:
[0041]
[0042] 44.7) Defense strategy, soldiers change their positions according to the positions of nearby soldiers and the king. The position update formula is as follows:
[0043] X i (t+1)=X i (t)+2×rand×(King-X rand (t))+rand×W i ×(CX i (t))
[0044] Among them, X rand (t) is the random position of the soldier in the tth iteration;
[0045] 44.8) Exchange the position of a random soldier with a weak soldier or place the weak soldier close to the median of the entire battlefield. The position update formula is as follows:
[0046] X w (t+1)=Lb+rand×(Ub-Lb)
[0047] X w (t+1)=-(1-randn)×(X w (t)-median(X))+King
[0048] Among them, X w (t+1) is the replacement or placement of weak soldiers in the t+1th iteration; Ub and Lb are the upper and lower limits of the search space, X w (t) is the weak pawn position at the tth iteration, randn is a random number uniformly distributed between [0,1], and median(·) is the median function.
[0049] Furthermore, the specific process of optimizing decision suggestions is as follows:
[0050] Step 1: Collect input and output data of the power network system and perform data preprocessing; the input and output data include generator output power, load conditions, voltage, current measured data, and the status and operating parameters of each component of the system;
[0051] Step 2: Design a neural network model for the control task, including determining the number of nodes and connection methods of the input layer, hidden layer, and output layer;
[0052] Step 3: Use the back propagation algorithm to train the neural network model based on the historical data in step 1 to learn the characteristics and dynamic response of the system;
[0053] Step 4: Use the trained neural network model as a controller to dynamically adjust the output according to the current input data in real-time operation;
[0054] Step 5: Embed the controller into the system. According to the real-time data input, the neural network controller outputs the corresponding control signal to realize the automatic control of the system.
[0055] Step 6: According to the system feedback information, the neural network parameters are adjusted and optimized in real time to improve the control accuracy and robustness.
[0056] Furthermore, the mathematical modeling process of the controller is as follows:
[0057] 71) The ideal output and real output mean square deviation of the controlled object are regarded as the fitness equation of the neural network:
[0058]
[0059] Among them, N is the number of training times, M is the output dimension, and y m is the expected output, y is the controlled object;
[0060] Build a nonlinear neural network adaptive model:
[0061]
[0062] ω(k)=[y(k),…,y(k-n+1),u(k),…,u(k-n+1)] T
[0063] θ=[a 0 ,…,a n-1 ,b 0 ,b n-1 ] T
[0064] Among them, W m+1,n (k) is the network weight, is a continuous and bounded nonlinear function, and W m+1,n (k) is the parameter vector; u(k) is the output signal; y(k) is the input signal; x(k) is the N-dimensional state vector, A and B are nonlinear function factors;
[0065] 72) Establish a fixed model:
[0066]
[0067] in, is a continuous and bounded nonlinear equation, is a fixed vector, W(k) is the weight;
[0068] 73) Build controller model:
[0069]
[0070] The present invention also discloses a system based on the above-mentioned large language model-based power network self-healing method, including a data collection and preprocessing module, a model training module, a fault diagnosis and positioning module, an intelligent decision-making and execution module, and a monitoring and feedback module;
[0071] The data collection and preprocessing module is used to collect voltage, current, temperature, vibration, description and location information in the fault report of the power network, and preprocess the collected data; and use natural language processing technology to analyze and process the description in the fault report, segment the fault report text, divide it into individual sentences or words, and extract features and information; integrate the collected data and text information in the power network to form a data set;
[0072] Model training module, used to train the collected data using the Transformer model;
[0073] The fault diagnosis and location module uses the trained model to identify the fault type based on the collected voltage, current, temperature, vibration, and description and location information in the fault report in the power network, and uses machine learning algorithms to locate the fault;
[0074] The intelligent decision-making and execution module is used to establish a decision-making evaluation index system based on the evaluation of the power automation system, generate intelligent decision suggestions based on the large language model, and combine the actual situation of the power automation system and expert knowledge; learn the historical data of the power system automation system through machine learning algorithms, optimize decision suggestions, and convert the generated decision suggestions into automated execution commands;
[0075] The monitoring and feedback module is used to collect feedback information after executing automated decisions, and optimize the large language model and power automation system based on the feedback information to improve their performance and accuracy.
[0076] Beneficial effects:
[0077] 1. The power network self-healing system based on the large language model has the ability to quickly identify, diagnose and solve power network faults, and can quickly restore power supply when problems occur, effectively improving the stability and reliability of the system and reducing the losses caused by potential faults. Through the automated fault handling process, the fault recovery time is greatly shortened to ensure the normal operation of the power system;
[0078] 2. The integration of large language models, natural language processing and machine learning technologies can optimize the effect and performance of the power network self-healing mechanism, improve the efficiency and accuracy of fault handling, make the system more intelligent and adaptive, thereby better ensuring the stable operation of the power system and improving user experience.
[0079] 3. Real-time monitoring of the power network status, timely warning of potential faults, and providing key information and suggestions to decision makers. Through automated monitoring, abnormal conditions in the power network can be discovered in a timely manner, and measures can be taken in advance to prevent further expansion of faults, providing important support for the continuity and reliability of system operation.
[0080] 4. Continuously optimize system parameters and models, improve performance and accuracy, and ensure the adaptability of the system under different scenarios and demand changes. Continuous improvement and optimization make the power system more automated and responsive, thereby improving the operating efficiency and reliability of the entire power network and providing users with better power services. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Figure 1 It is a structural framework diagram of the present invention;
[0082] Figure 2 Optimize the flowchart for the Transformer model. DETAILED DESCRIPTION
[0083] By attaching Figure 1 As shown, the present invention proposes a power network self-healing system based on a large language model, including a data collection and preprocessing module, a model training module, a fault diagnosis and positioning module, an intelligent decision-making and execution module, and a monitoring and feedback module.
[0084] The data collection and preprocessing module collects various data from the power network through various sensors and devices, including voltage, current, temperature, vibration and other data, as well as descriptions and location information in fault reports. The collected data is cleaned and sorted to remove invalid and erroneous data to ensure the accuracy and completeness of the data. The data is labeled using semi-supervised learning so that the machine learning model can understand and identify the features and patterns in the data. The data is preprocessed, including data normalization, data conversion, data compression and other operations to improve the training effect and accuracy of the model.
[0085] Use natural language processing technology to analyze and process the description in the fault report, extract useful features and information, so as to better identify the fault type and locate the fault location. That is, segment the fault report text into sentences or words for further processing and analysis, and use language models and natural language processing technology to extract useful features and information from the text, such as keywords and grammatical structures, so as to better identify the fault type and locate the fault location. Integrate the various collected data and text information to form a complete data set for machine learning and model training.
[0086] Build a training model and use the Transformer model to train the collected data. When using the Transformer model to train the data, the specific process is as follows:
[0087] 11) Establish a residual link, and the residual function formula is as follows:
[0088] y=H(x)=F(x)+x
[0089] Among them, y = H (x) is the model output, F (x) represents the residual, and x represents the residual block input;
[0090] 12) Standardization is performed, and the standardization formula is as follows:
[0091]
[0092] y i =αx i +β
[0093] in, and represents the standardized parameter, D represents the dimension, x ij Represents input data, y i represents the output value, α and β represent trainable parameters;
[0094] 13) Establish a feedforward fully connected network. The corresponding formula is as follows:
[0095] N(x)=max(0,xW i +b i )W 2 +b 2
[0096] f(x)=max(0,x)
[0097] W i represents the weight matrix of the i-th hidden layer, b i represents the bias vector of the i-th hidden layer, and f(x) is the activation function;
[0098] 14) The IWSO algorithm is used to optimize the learning rate and number of attention heads of the Transformer model.
[0099] 14.1) Attack strategy, soldiers update their positions according to the positions of the king and commander. The update formula is as follows:
[0100] X i (t+1)=X i (t)+2×rand×(C-King)+rand×(W i ×King-X i (t))
[0101] Among them, X i (t+1) is the new position of the soldier in the t+1th iteration, X i (t) is the soldier position at the tth iteration, C is the commander position, King is the king position, rand is a random number between [0,1], W i is the king's position weight; the updated learning rate of the soldier's position and the update of the number of attention heads;
[0102] 14.2) Sorting and weighting, if the attack power of the soldier in the new position is F n Less than the attack power F of the current generation position p , then the soldier occupies the previous position, and the update formula is as follows:
[0103] X i (t+1)=(X i (t+1))×(F n ≥F p )+(X i (t))×(F n <F p )
[0104] 14.3) If the soldier successfully updates his position, the soldier's level R i The upgrade and level update formula are as follows:
[0105] R i =(R i +1)×(F n ≥F p )+(R i )×(F n <F p )
[0106] 14.5) Sorting soldiers according to their attack power, the weight update formula is as follows:
[0107] W i =W i ×(1-Ri / T)α
[0108] Among them, F n is the soldier's position attack power (fitness value), F p is the soldier's current position attack power (fitness value), the fitness value is the value of the weight and threshold, R i is the soldier’s level, α is the exponential change factor;
[0109] 14.6) Optimize the exponential change factor α to improve the global search capability and the convergence ability of the development. The optimization formula is as follows:
[0110]
[0111] 14.7) Defense strategy, the soldier changes its position according to the position of the nearby soldiers and the king. The position update formula is as follows:
[0112] X i (t+1)=X i (t)+2×rand×(King-X rand (t))+rand×W i ×(CX i (t))
[0113] Among them, X rand (t) is the random position of the soldier in the tth iteration;
[0114] 14.8) Exchange the position of the random soldier with the weak soldier or place the weak soldier at a position close to the median of the entire battlefield. The position update formula is as follows:
[0115] X w (t+1)=Lb+rand×(Ub-Lb)
[0116] X w (t+1)=-(1-randn)×(X w (t)-median(X))+King
[0117] Among them, X w (t+1) is the replacement or placement of weak soldiers in the t+1th iteration; Ub and Lb are the upper and lower limits of the search space, X w (t) is the weak pawn position at the tth iteration, randn is a random number uniformly distributed between [0,1], and median(·) is the median function.
[0118] The fault diagnosis and location module identifies abnormal signals and extracts characteristic information of faults by analyzing fault signals in the power network, such as voltage, current, temperature, vibration, etc. The large language model analyzes the characteristic information of fault signals and automatically identifies the type of fault. Natural language processing technology is used to analyze the description in the fault report to further locate the location and type of fault. Based on the identified fault type, combined with the structure and parameters of the power network, machine learning algorithms are used to locate the fault. Classification, clustering, regression and other machine learning algorithms can be used to analyze various parameters and indicators in the power network, predict the development trend of faults, and locate specific equipment or lines.
[0119] The intelligent decision-making and execution module establishes a decision-making evaluation index system based on the evaluation of the power system automation system, such as diagnosis accuracy, solution effectiveness, etc., to provide a basis for subsequent intelligent decision-making and execution.
[0120] Based on the large language model, combined with the actual situation of the power system automation system and expert knowledge, intelligent decision suggestions are generated. These suggestions may include fault repair solutions, preventive measures, equipment replacement plans, etc. On the basis of generating decision suggestions, the historical data of the power system automation system is learned through machine learning algorithms to optimize decision suggestions, improve the effectiveness and feasibility of decisions, and convert the generated decision suggestions into automated execution commands, such as remote operation of control circuit breakers, switches and other equipment to achieve fault repair and power network recovery. In this process, factors such as equipment compatibility and response time need to be considered to ensure the efficiency and reliability of automated execution. After executing the automated decision, feedback information such as repair time and repair effect is collected, and the large language model and power system automation system are optimized based on the feedback information to improve their performance and accuracy.
[0121] The key technology of the intelligent decision-making and execution module is the formulation of control algorithms and rules. The present invention selects a neural network control algorithm to specify control strategies, formulate control rules, and map the input parameters and output actions of the system to guide the system's automated decision-making in different situations. The basic steps of the neural network control strategy are as follows:
[0122] Step 1: Collect system input and output data, perform data preprocessing, and ensure data quality and accuracy.
[0123] Step 2: Design a neural network structure suitable for the control task, including determining the number of nodes and connection methods of the input layer, hidden layer, and output layer.
[0124] Step 3: Train the neural network model based on historical data through methods such as back propagation algorithm to learn the characteristics and dynamic response of the system.
[0125] Step 4: Use the trained neural network as a controller to dynamically adjust the output according to the current input data in real-time operation.
[0126] Step 5: Embed the controller into the system. According to the real-time data input, the neural network controller outputs the corresponding control signal to realize the automatic control of the system.
[0127] Step 6: According to the system feedback information, the neural network parameters are adjusted and optimized in real time to improve the control accuracy and robustness.
[0128] The mathematical modeling process is as follows:
[0129] 51) The ideal output and real output mean square deviation of the controlled object are regarded as the fitness equation of the neural network:
[0130]
[0131] Among them, N is the number of training times, M is the output dimension, and y m is the expected output, y is the controlled object;
[0132] Build a nonlinear neural network adaptive model:
[0133]
[0134] ω(k)=[y(k),…,y(k-n+1),u(k),…,u(k-n+1)] T
[0135] θ=[a 0 ,…,a n-1 ,b 0 ,b n-1 ] T
[0136] Among them, W m+1,n (k) is the network weight, is a continuous and bounded nonlinear function, and W m+1,n (k) is the parameter vector; u(k) is the output signal; y(k) is the input signal; x(k) is the N-dimensional state vector, and A and B are nonlinear function factors.
[0137] 52) Establish a fixed model:
[0138]
[0139] in, is a continuous and bounded nonlinear equation, is a fixed vector, W(k) is the weight;
[0140] 53) Build controller model:
[0141]
[0142] The real-time monitoring and feedback module realizes real-time monitoring of the power network status by collecting and analyzing various parameters and indicators in the power network, such as voltage, current, temperature, vibration, etc. in real time. Feedback information of abnormal events and faults in the power network, such as fault reports and circuit breaker actions, is collected in real time to provide support for subsequent fault diagnosis and solution generation. Based on real-time monitoring and feedback information, combined with large language models and machine learning algorithms, early warning and prediction of potential faults in the power network are realized, providing timely information and suggestions for decision makers. The performance and effect of the power automation system, such as diagnostic accuracy and solution effectiveness, are regularly evaluated to provide a basis for subsequent optimization and improvement. According to the performance evaluation results, combined with real-time monitoring and feedback information, the parameters and models of the power automation system are continuously optimized and adjusted to improve its performance and accuracy. On the basis of real-time monitoring and feedback, combined with large language models and machine learning algorithms, the intelligent decision-making and execution process are dynamically adjusted to ensure that the power automation system can adapt to changes in different scenarios and needs.
[0143] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A power network self-healing method based on a large language model, characterized in that: The steps include: Collect information on the power network including voltage, current, temperature, vibration, and description and location of fault reports, and pre-process the collected data; Use natural language processing technology to analyze and process the description in the fault report, segment the fault report text into individual sentences or words, and extract features and information; integrate the data and text information collected in the power network to form a data set; Build a training model and use the Transformer model to train the collected data; The trained model is used to identify the fault type based on the collected voltage, current, temperature, vibration in the power network, as well as the description and location information in the fault report, and the machine learning algorithm is used to locate the fault.
2. A power network self-healing method based on a large language model according to claim 1, characterized in that: Also includes: Based on the evaluation of the power automation system, a decision-making evaluation index system is established, and based on the large language model, combined with the actual situation of the power automation system and expert knowledge, intelligent decision-making suggestions are generated; Through machine learning algorithms, historical data of the power system automation system is learned, decision suggestions are optimized, and the generated decision suggestions are converted into automated execution commands.
3. The power network self-healing method based on a large language model according to claim 1, characterized in that: When preprocessing the data, the collected data is cleaned and organized, invalid and erroneous data is removed, and the data is labeled using a semi-supervised learning approach; at the same time, the data is normalized, converted, and compressed.
4. The power network self-healing method based on a large language model according to claim 1, characterized in that: When using the Transformer model to train data, the specific process is as follows: 41) Establish a residual link, and the residual function formula is as follows: y=H(x)=F(x)+x Among them, y = H (x) is the model output, F (x) represents the residual, and x represents the residual block input; 42) Standardization is performed, and the standardization formula is as follows: y i =αx i +b in, and represents the standardized parameter, D represents the dimension, x ij Represents the input data, y i represents the output value, α and β represent trainable parameters; 43) Establish a feedforward fully connected network, the corresponding formula is as follows: N(x)=max(0,xW i +b i )W2+b2 f(x)=max(0,x) W i represents the weight matrix of the i-th hidden layer, b i represents the bias vector of the i-th hidden layer, and f(x) is the activation function; 44) The IWSO algorithm is used to optimize the learning rate and number of attention heads of the Transformer model.
5. The power network self-healing method based on a large language model according to claim 4, characterized in that: The specific process of using the IWSO algorithm to optimize the learning rate and number of attention heads of the Transformer model is as follows: 44.1) Attack strategy: Soldiers update their positions according to the positions of the king and commander. The update formula is as follows: X i (t+1)=X i (t)+2×rand×(C-King)+rand×(W i ×King-X i (t)) Among them, X i (t+1) is the new position of the soldier in the t+1th iteration, X i (t) is the soldier position at the tth iteration, C is the commander position, King is the king position, rand is a random number between [0,1], W i is the king's position weight; the updated learning rate of the soldier's position and the update of the number of attention heads; 44.2) Sorting and weighting, if the attack power of the soldier in the new position is F n Less than the attack power F of the current generation position p , then the soldier occupies the previous position, and the update formula is as follows: X i (t+1)=(X i (t+1))×(F n ≥F p )+(X i (t))×(F n <F p ) 44.3) If the soldier successfully updates his position, the soldier's level R i The upgrade and level update formula are as follows: R i =(R i +1)×(F n ≥F p )+(R i )×(F n <F p ) 44.5) Sorting soldiers according to their attack power, the weight update formula is as follows: W i =W i ×(1-R i / T)α Among them, F n is the soldier's position attack power (fitness value), F p is the soldier's current position attack power (fitness value), the fitness value is the value of the weight and threshold, R i is the soldier’s level, α is the exponential change factor; 44.6) Optimize the exponential change factor α to improve the global search capability and the convergence ability of the development. The optimization formula is as follows: 44.7) Defense strategy, soldiers change their positions according to the positions of nearby soldiers and the king. The position update formula is as follows: X i (t+1)=X i (t)+2×rand×(King-X rand (t))+rand×W i ×(C-X i (t)) Among them, X rand (t) is the random position of the soldier in the tth iteration; 44.8) Exchange the position of a random soldier with a weak soldier or place the weak soldier close to the median of the entire battlefield. The position update formula is as follows: X w (t+1)=Lb+rand×(Ub-Lb) X w (t+1)=-(1-randn)×(X w (t)-median(X))+King Among them, X w (t+1) is the replacement or placement of weak soldiers in the t+1th iteration; Ub and Lb are the upper and lower limits of the search space, X w (t) is the weak pawn position at the tth iteration, randn is a random number uniformly distributed between [0,1], and median(·) is the median function.
6. The power network self-healing method based on a large language model according to claim 2, characterized in that: The specific process of optimizing decision recommendations is as follows: Step 1: Collect input and output data of the power network system and perform data preprocessing; the input and output data include generator output power, load conditions, voltage, current measured data, and the status and operating parameters of each component of the system; Step 2: Design a neural network model for the control task, including determining the number of nodes and connection methods of the input layer, hidden layer, and output layer; Step 3: Use the back propagation algorithm to train the neural network model based on the historical data in step 1 to learn the characteristics and dynamic response of the system; Step 4: Use the trained neural network model as a controller to dynamically adjust the output according to the current input data in real-time operation; Step 5: Embed the controller into the system. According to the real-time data input, the neural network controller outputs the corresponding control signal to realize the automatic control of the system. Step 6: According to the system feedback information, the neural network parameters are adjusted and optimized in real time to improve the control accuracy and robustness.
7. The method for self-healing a power network based on a large language model according to claim 6, characterized in that: The mathematical modeling process of the controller is as follows: 71) The ideal output and real output mean square deviation of the controlled object are regarded as the fitness equation of the neural network: Among them, N is the number of training times, M is the output dimension, and y m is the expected output, y is the controlled object; Build a nonlinear neural network adaptive model: ω(k)=[y(k),…,y(k-n+1),u(k),…,u(k-n+1)] T θ=[a0,…,a n-1 ,b0,b n-1 ] T Among them, W m+1,n (k) is the network weight, is a continuous and bounded nonlinear function, and W m+1,n (k) is the parameter vector; u(k) is the output signal; y(k) is the input signal; x(k) is the N-dimensional state vector, A and B are nonlinear function factors; 72) Establish a fixed model: in, is a continuous and bounded nonlinear equation, is a fixed vector, W(k) is the weight; 73) Build controller model:
8. A power network self-healing system based on a large language model according to any one of claims 1 to 7, characterized in that: It includes data collection and preprocessing module, model training module, fault diagnosis and location module, intelligent decision-making and execution module, and monitoring and feedback module; The data collection and preprocessing module is used to collect voltage, current, temperature, vibration, description and location information in the power network and fault report, and preprocess the collected data; And use natural language processing technology to analyze and process the description in the fault report, segment the fault report text into individual sentences or words, and extract features and information; integrate the data and text information collected in the power network to form a data set; Model training module, used to train the collected data using the Transformer model; The fault diagnosis and location module uses the trained model to identify the fault type based on the collected voltage, current, temperature, vibration, and description and location information in the fault report in the power network, and uses machine learning algorithms to locate the fault; Intelligent decision-making and execution module, which is used to establish a decision-making evaluation index system based on the evaluation of the power automation system, and generate intelligent decision-making suggestions based on the large language model, combined with the actual situation of the power automation system and expert knowledge; Through machine learning algorithms, historical data of the power system automation system is learned to optimize decision suggestions and convert the generated decision suggestions into automated execution commands; The monitoring and feedback module is used to realize real-time monitoring of the power network status by collecting and analyzing various parameters and indicators in the power network in real time. After executing automated decisions, it collects feedback information and optimizes the large language model and power automation system based on the feedback information.
Citation Information
Patent Citations
Multi-model adaptive control system and control method thereof
CN103324093A
Intelligent diagnosis model construction method for faults of potentiostat of cathode protection system
CN116258054A
Power transformer fault diagnosis method based on deep learning
CN116562169A
Motor voiceprint fault diagnosis method applied to new energy automobile
CN117786554A
A method of detection of a landmark in a volume of medical images
US20250173861A1
Cited By
Transfer scheme generation method, model training method, device, equipment and medium
CN119362452A
