Power line fault event analysis method and system based on natural language processing
The automatic analysis and judgment of power line fault events through natural language processing technology solves the problems of low efficiency and insufficient intelligence of traditional judgment, achieves efficient and accurate fault diagnosis and model optimization, and adapts to the diagnostic performance of complex environments.
Patent Information
- Application Number
- CN202410865742.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-07-01
AI Technical Summary
Traditional power line fault event analysis relies on manual monitoring, which is inefficient and cannot process complex data quickly. It lacks intelligent fault diagnosis methods and cannot dynamically adjust.
Using a method based on natural language processing, by acquiring and processing the switch remote signaling displacement data and protection device action information of the power line dispatching system, an event rule model is established to automatically generate fault types, and realize automated faults through real-time update and optimization of the model. diagnosis.
It improves the efficiency and accuracy of fault diagnosis, reduces labor costs, has intelligent learning capabilities, can optimize the diagnosis model based on historical data and real-time monitoring results, and adapts to complex and changing power system environments.
Smart Images

Figure CN118410360B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power system safety analysis, and in particular to a method and system for analyzing power line fault events based on natural language processing. Background Art
[0002] Traditional power line fault event analysis mainly relies on monitoring and manual diagnosis by on-duty personnel, which has the following problems:
[0003] First, manual analysis is inefficient and easily affected by subjective factors, resulting in inaccurate diagnostic results;
[0004] Second, it is impossible to quickly analyze and process large amounts of complex data;
[0005] Third, there is a lack of intelligent fault diagnosis methods, and it is impossible to make dynamic adjustments based on real-time monitoring results. In order to improve the effectiveness and automation level of power line faults, a power line fault event analysis method and system based on natural language processing is proposed. Summary of the invention
[0006] The present invention aims to at least improve one of the technical problems existing in the prior art. To this end, the present invention proposes a method and system for analyzing power line fault events based on natural language processing.
[0007] According to a first aspect of the present invention, a method for analyzing and judging a power line fault event based on natural language processing includes:
[0008] Step S100, obtaining switch remote signal displacement data and protection device action information data in the power line dispatching system, and converting them into data sets with a unified format respectively;
[0009] Step S200, analyzing and processing the data set according to natural language processing technology, extracting key information and establishing an event rule model;
[0010] Step S300, automatically generating a power line blackout event according to the established rules in the event rule model, and determining the fault type of the power line blackout event;
[0011] Step S400, comparing the event analysis based on the fault model with the results of on-site verification, updating and correcting the power line outage event in real time, and optimizing the event rule model.
[0012] In a possible implementation manner of the first aspect, step S100 specifically includes:
[0013] Set the switch remote signal change data collection as a set S switch , where the set Sswitch Each element represents a switch remote signal change information, each information contains time t i , Substation name i , switch number Switch i , the text description of the switch remote signal change information data Description i , a collection of switch remote signal change data S switch It is expressed as:
[0014] S switch ={(t1,Substation1,Switch1,Description1),(t2,Substation2,Switch2,Description2),…,(t n ,Substation n ,Switch n ,Description n )};
[0015] The protection device action information is collected as a set S protection , where the set S protection Each element represents a protection device action information, each information contains time t j , Substation name j , Line NameLine j , the text description of the protection device action information data Description j , a collection of protection device action information S protection It is expressed as:
[0016] S protection ={(t1,Substation1,Line1,Description1),(t2,Substation2,Line2,Description2),…,(t m ,Substation m ,Line m ,Description m )} ;
[0017] in, n Indicates the number of switch remote signal change information. m Indicates the number of protection device action information.
[0018] In a possible implementation manner of the first aspect, step S200 specifically includes the following steps:
[0019] Step S210, text description encoding, using the pre-trained language model BERT (Bidirectional Encoder Representations from Transformers) to encode the text description of the switch remote signal change data (Description i ) to generate a vector representation V of key events switch :
[0020] V switch =BERT(Description i ),
[0021] Among them, Description i It is a text description of the switch remote signal change information data. switch is its corresponding vector representation;
[0022] Step S220: introduce the attention mechanism to identify keywords. By applying the self-attention mechanism on the output of the pre-trained language model, the relevance weight between each word and related words is calculated. α i :
[0023] ,
[0024] in, e i It is i The attention score of each word, e k It is k The attention score of the word, the related words are the other words in the result set of the word segmentation model in the Description of the information except the i-th word, and the keyword representation vector V key for:
[0025] ,
[0026] Among them, v i Indicates i The implicit meaning of the word, α i Indicates i The attention weight of each word;
[0027] Step S230, syntactic analysis, performing syntactic analysis on the text description, determining the relationship between keywords, and identifying the logical structure of key events, wherein the logical structure includes a main event and an auxiliary description, such as determining that "opening the gate" is the main event and "no abnormality" is the auxiliary description;
[0028] Step S240: semantic understanding, combining the results of keyword extraction and syntactic analysis, to generate a vector representation V describing the key event switch , this vector represents V switch Contains key information of switch remote signal change event, such as time, substation name, switch number, etc. The final representation is as follows:
[0029] V switch =[time, substation A, switch 1, main event, auxiliary description].
[0030] In a possible implementation manner of the first aspect, in step S230, the main event of the logic structure includes tripping, and the auxiliary description includes no abnormality.
[0031] In a possible implementation manner of the first aspect, step S300 specifically includes the following steps:
[0032] Step S310: associate the substation switches and lines according to the association fields in the key information, and establish a switch-line association matrix M relation And the switch protection device association matrix M protection , where the switch-line association matrix M relation Elements in m ij Indicates i Is the first switch related to the j The lines are connected, if they are connected, it is 1, otherwise it is 0; the switch protection device association matrix M protection Elements in p ik Indicates i Is the first switch related to the k If a protection device is connected, it is 1, otherwise it is 0.
[0033] Step S320: define a vector S of switch opening events, wherein each element in the vector S represents a switch opening event, and is 1 if the opening event occurs, otherwise it is 0. Similarly, define a vector P of protection device action events, wherein each element in the vector P represents a protection device action event, and is 1 if the action event occurs, otherwise it is 0.
[0034] Step S330: define a time interval vector T, where each element in the vector T represents the time interval after the switch opening event. If there is an action signal within a few seconds (very short) time, it is 1, otherwise it is 0, expressed as:
[0035] ,
[0036] Step S340: define event rules according to the established rules, specifically,
[0037] Only when a switch is opened and there is no maintenance, remote control, or soft pressure plate information in the opening information, and the protection devices at both ends of the line to which the switch belongs have action signals within a few seconds, can it be judged as a fault. This rule can be expressed by the following formula:
[0038] ,
[0039] Among them, V switch1 represents the tripping information vector after being processed by the natural language processing algorithm, T represents the time interval vector, and E represents the fault event vector;
[0040] If a switch only has opening information, and the protection devices at both ends of the line to which the switch belongs have no protection information, it is judged to be under maintenance or testing. This rule can be expressed by the following formula:
[0041] ,
[0042] Where R is the maintenance or test event vector;
[0043] If a switch has no opening information, no switch opening, only the protection information of the protection devices at both ends of the line to which the switch belongs, the data is discarded. This rule can be expressed by the following formula:
[0044] ,
[0045] Where D is the discard event vector.
[0046] In a possible implementation manner of the first aspect, step S400 specifically includes:
[0047] Step S410, historical data analysis: collect past fault event data from the power line dispatching system and the fault recording system to form a historical data set, clean and pre-process the historical data set to remove noise data and abnormal data to ensure data quality;
[0048] Identify common patterns of fault events through clustering algorithms (such as K-means, DBSCAN), and use these common patterns to optimize the fault diagnosis model;
[0049] Cluster H )={ C 1, C 2,…, C k} represents the clustering result obtained after clustering analysis of the historical data set H. In this representation, each C1, C2, ..., C k represents a cluster, and k represents the number of clusters; the purpose of cluster analysis is to classify similar data points into one category, thereby revealing the inherent structure and pattern between the data. Each cluster contains data points with similar characteristics or behavior patterns.
[0050] Step S420, real-time data monitoring: real-time monitoring of switch remote signal change data and protection device action information to ensure timely response and processing of the latest fault events; continuous reception of the latest switch remote signal change data and protection device action information through the power line dispatching system to form a real-time data stream; using the trained natural language processing model and event rule model to analyze and process the real-time data to generate fault events; which can be expressed as:
[0051] V switch_real_time = BERT ( Description real_time ),
[0052] Step S430, model updating and optimization, based on the comparative analysis of real-time data and historical data, the fault diagnosis model is continuously updated and optimized to improve its adaptability and accuracy.
[0053] Step S440: Model update, using the back propagation algorithm to minimize the loss function L total , update the model parameters i , thereby optimizing the event rule model.
[0054] In a possible implementation manner of the first aspect, step S430 specifically includes the following contents:
[0055] (a) Real-time feedback mechanism: Through user feedback and fault handling results, the system continuously verifies and corrects the model's judgment results;
[0056] ,
[0057] in: Feedback represents the actual fault data collected by the feedback mechanism, where F represents the amount of collected feedback data, that is, the number of elements in the feedback set;
[0058] (b) Model adaptive adjustment: Adjust the parameters of keyword recognition, syntax analysis, and event rule models based on feedback data and the latest failure modes;
[0059] (c) Continuous Learning: Based on the continuous learning algorithm of Elastic Weight Consolidation (EWC), the model can gradually adapt to new failure modes and rules without forgetting the learned knowledge.
[0060] In a possible implementation manner of the first aspect, during the continuous learning process, the specific process is as follows:
[0061] The first step is task decomposition and modeling: decompose the fault event analysis task into multiple subtasks, each of which corresponds to a specific fault mode or rule, and establish an initial model for each subtask M 0, the model is trained based on currently known data and rules;
[0062] The second step is to calculate the importance matrix: calculate each parameter i Importance in Old Tasks :
[0063] ,
[0064] in, L old is the loss function of the old task, i i The model is i parameters;
[0065] The third step is to define the loss function for new data. D new , Define a new loss function L total
[0066] ,
[0067] in, l is a tuning parameter used to control the retention of old task knowledge. represents the loss of the model on new data, is the optimal parameter in the old task.
[0068] According to the power line fault event judgment method based on natural language processing according to the embodiment of the present invention, automatic fault event judgment can be realized, reducing the labor cost. The present invention uses natural language processing technology to improve the efficiency and accuracy of judgment. At the same time, the present invention has a certain intelligent learning ability and can continuously optimize the event rule model according to historical data and real-time monitoring results.
[0069] According to a second aspect of the present invention, a power line fault event analysis and judgment system based on natural language processing is applied to implement the above-mentioned analysis and judgment method, including:
[0070] An acquisition module is used to acquire switch telesignal position change data and protection device action information data in the power line dispatching system, and convert them into data sets with unified formats;
[0071] The processing module is used to analyze and process the data set according to the natural language processing technology, extract key information and establish an event rule model;
[0072] The judgment module is used to automatically generate power line blackout events according to the established rules in the event rule model, and judge the fault type of the power line blackout event;
[0073] The update module is used to analyze events based on the fault model and compare them with the results after on-site verification, to update and correct power line outage events in real time, and to optimize the event rule model.
[0074] The power line fault event analysis method and system based on natural language processing according to the embodiments of the present invention can realize real-time updating and correction of power line fault events, improve the accuracy and efficiency of fault diagnosis, and have the ability of self-adaptation and continuous learning, ensuring a high level of diagnostic performance in various complex and changing power system environments.
[0075] According to a storage medium of an embodiment of the third aspect of the present invention, a computer program is stored on the storage medium, wherein the computer program, when executed by a processor, implements the above-mentioned power line fault event analysis method based on natural language processing.
[0076] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0078] Figure 1 is a flow chart of a method for analyzing and judging a power line fault event based on natural language processing according to an embodiment of the present invention;
[0079] Figure 2 It is a schematic diagram of a power line fault event analysis system based on natural language processing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0080] The embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0081] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.
[0082] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0083] The terms "first", "second", "third", etc. in the specification and claims of the present application and the 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 series of steps or units are included, or optionally, steps or units not listed are included, or optionally, other steps or units inherent to these processes, methods, products or devices are included.
[0084] Only the part relevant to the present application is shown in the accompanying drawings, but not all of the content. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processing or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the process can be terminated, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0085] The terms "component", "module", "system", "unit", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a unit can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or distributed between two or more computers. In addition, these units can be executed from various computer-readable media having various data structures stored thereon. Units can communicate through local and / or remote processes, for example, based on signals having one or more data packets (e.g., data from a second unit interacting with another unit in a local system, a distributed system, and / or a network. For example, the Internet interacts with other systems via signals).
[0086] See also Figure 1 As shown, this embodiment provides a method for analyzing and judging power line fault events based on natural language processing, which includes:
[0087] Step S100, obtaining the switch remote signal displacement data and protection device action information data in the power line dispatching system, and converting them into data sets with a unified format. Specifically including:
[0088] Set the switch remote signal change data collection as a set S switch , where the set S switch Each element represents a switch remote signal change information, each information contains time t i , Substation name i , switch number Switch i , the text description of the switch remote signal change information data Description i , a collection of switch remote signal change data S switch It can be expressed as:
[0089] S switch ={(t1,Substation1,Switch1,Description1),(t2,Substation2,Switch2,Description2),…,(t n ,Substation n ,Switch n ,Description n )};
[0090] The protection device action information is collected as a set S protection, where the set S protection Each element represents a protection device action information, each information contains time t j , Substation name j , Line NameLine j , the text description of the protection device action information data Description j , a collection of protection device action information S protection It can be expressed as:
[0091] S protection ={(t1,Substation1,Line1,Description1),(t2,Substation2,Line2,Description2),…,(t m ,Substation m ,Line m ,Description m )} ;
[0092] in, n Indicates the number of switch remote signal change information. m Indicates the number of protection device action information.
[0093] Step S200: Analyze and process the data set according to natural language processing technology, extract key information and establish an event rule model. This includes steps such as identifying keywords, syntactic analysis, and semantic understanding to accurately describe the power line outage event. Specifically, it includes the following steps:
[0094] Step S210, text description encoding, using the pre-trained language model BERT (Bidirectional Encoder Representations from Transformers) to encode the text description of the switch remote signal change data (Description i ) to generate a vector representation V of key events switch :
[0095] V switch =BERT(Description i ),
[0096] Among them, Description i It is a text description of the switch remote signal change information data. switch is its corresponding vector representation;
[0097] Step S220: introduce the attention mechanism to identify keywords. By applying the self-attention mechanism on the output of the pre-trained language model, the relevance weight between each word and related words is calculated. α i :
[0098] ,
[0099] in, e i It is i The attention score of each word, e k It is k The attention score of the word, the related words are the other words in the result set of the word segmentation model in the Description of the information except the i-th word, and the keyword representation vector V key for:
[0100] ,
[0101] Among them, v i Indicates i The implicit meaning of the word, α i Indicates i The attention weight of each word;
[0102] Step S230, syntactic analysis, performing syntactic analysis on the text description, determining the relationship between keywords, and identifying the logical structure of key events, wherein the logical structure includes a main event and an auxiliary description, such as determining that "opening the gate" is the main event and "no abnormality" is the auxiliary description;
[0103] Step S240: semantic understanding, combining the results of keyword extraction and syntactic analysis, to generate a vector representation V describing the key event switch , this vector represents V switch Contains key information of switch remote signal change event, such as time, substation name, switch number, etc. The final representation is as follows:
[0104] V switch =[time, substation A, switch 1, main event, auxiliary description].
[0105] Step S300, automatically generating a power line outage event according to the established rules in the event rule model, and determining the fault type of the power line outage event. Specifically, the steps include:
[0106] Step S310: associate the substation switches and lines according to the association fields in the key information, and establish a switch-line association matrix M relationAnd the switch protection device association matrix M protection , where the switch-line association matrix M relation Elements in m ij Indicates i Is the first switch related to the j The lines are connected, if they are connected, it is 1, otherwise it is 0; the switch protection device association matrix M protection Elements in p ik Indicates i Is the first switch related to the k If a protection device is connected, it is 1, otherwise it is 0.
[0107] Step S320: define a vector S of switch opening events, wherein each element in the vector S represents a switch opening event, and is 1 if the opening event occurs, otherwise it is 0. Similarly, define a vector P of protection device action events, wherein each element in the vector P represents a protection device action event, and is 1 if the action event occurs, otherwise it is 0.
[0108] Step S330: define a time interval vector T, where each element in the vector T represents the time interval after the switch opening event. If there is an action signal within a few seconds (very short) time, it is 1, otherwise it is 0, expressed as:
[0109] ,
[0110] Step S340: define event rules according to the established rules, specifically,
[0111] Only when a switch is opened and there is no maintenance, remote control, or soft pressure plate information in the opening information, and the protection devices at both ends of the line to which the switch belongs have action signals within a few seconds, can it be judged as a fault. This rule can be expressed by the following formula:
[0112] ,
[0113] Among them, V switch1 represents the tripping information vector after being processed by the natural language processing algorithm, T represents the time interval vector, and E represents the fault event vector;
[0114] If a switch only has opening information, and the protection devices at both ends of the line to which the switch belongs have no protection information, it is judged to be under maintenance or testing. This rule can be expressed by the following formula:
[0115] ,
[0116] Where R is the maintenance or test event vector;
[0117] If a switch has no opening information, no switch opening, only the protection information of the protection devices at both ends of the line to which the switch belongs, the data is discarded. This rule can be expressed by the following formula:
[0118] ,
[0119] Where D is the discard event vector.
[0120] Step S400, based on the fault model, the event is compared with the on-site verification result, and the power line outage event is updated and corrected in real time to optimize the event rule model. Step S400 specifically includes:
[0121] Step S410, historical data analysis: the system collects past fault event data from the power line dispatching system and the fault recording system to form a historical data set, cleans and preprocesses the historical data set to remove noise data and abnormal data to ensure data quality;
[0122] Identify common patterns of fault events through clustering algorithms (such as K-means, DBSCAN), and use these common patterns to optimize the fault diagnosis model;
[0123] Cluster H )={ C 1, C 2,…, C k} represents the clustering result obtained after clustering analysis of the historical data set H. In this representation, each C1, C2, ..., C k represents a cluster, and k represents the number of clusters; the purpose of cluster analysis is to classify similar data points into one category, thereby revealing the inherent structure and pattern between the data. Each cluster contains data points with similar characteristics or behavior patterns.
[0124] Step S420, real-time data monitoring: the system monitors the switch remote signal change data and protection device action information in real time to ensure timely response and processing of the latest fault events; continuously receives the latest switch remote signal change data and protection device action information through the power line dispatching system to form a real-time data stream; uses the trained natural language processing model and event rule model to analyze and process the real-time data to generate fault events; which can be expressed as:
[0125] V switch_real_time = BERT ( Description real_time ),
[0126] Step S430, model update and optimization, based on the comparative analysis of real-time data and historical data, continuously update and optimize the fault diagnosis model to improve its adaptability and accuracy. This includes:
[0127] (a) Real-time feedback mechanism: Through user feedback and fault handling results, the system continuously verifies and corrects the model's judgment results;
[0128] ,
[0129] in: Feedback represents the actual fault data collected by the feedback mechanism, where F represents the amount of collected feedback data, that is, the number of elements in the feedback set;
[0130] (b) Model adaptive adjustment: Adjust the parameters of keyword recognition, syntax analysis, and event rule models based on feedback data and the latest failure modes;
[0131] (c) Continuous Learning: An improved continuous learning algorithm called Elastic Weight Consolidation (EWC) is proposed, which enables the model to gradually adapt to new failure modes and rules without forgetting the learned knowledge.
[0132] Specifically, the continuous learning process includes the following steps:
[0133] The first step is task decomposition and modeling: decompose the fault event analysis task into multiple subtasks, each of which corresponds to a specific fault mode or rule, and establish an initial model for each subtask M 0, the model is trained based on currently known data and rules;
[0134] The second step is to calculate the importance matrix: calculate each parameter i Importance in Old Tasks :
[0135] ,
[0136] in, L old is the loss function of the old task, i i The model is i parameters;
[0137] The third step is to define the loss function for new data. D new , Define a new loss function L total
[0138] ,
[0139] in, l is a tuning parameter used to control the retention of old task knowledge. represents the loss of the model on new data, is the optimal parameter in the old task.
[0140] Step S440: Model update, using the back propagation algorithm to minimize the loss function L total , update the model parameters i , thereby optimizing the event rule model.
[0141] According to the power line fault event judgment method based on natural language processing according to the embodiment of the present invention, automatic fault event judgment can be realized, reducing the labor cost. The present invention uses natural language processing technology to improve the efficiency and accuracy of judgment. At the same time, the present invention has a certain intelligent learning ability and can continuously optimize the event rule model according to historical data and real-time monitoring results.
[0142] Example 2
[0143] A power line fault event analysis and judgment system based on natural language processing in this embodiment is applied to implement the above-mentioned analysis and judgment method, including:
[0144] An acquisition module is used to acquire switch telesignal position change data and protection device action information data in the power line dispatching system, and convert them into data sets with unified formats;
[0145] The processing module is used to analyze and process the data set according to the natural language processing technology, extract key information and establish an event rule model;
[0146] The judgment module is used to automatically generate power line blackout events according to the established rules in the event rule model, and judge the fault type of the power line blackout event;
[0147] The update module is used to analyze events based on the fault model and compare them with the results after on-site verification, to update and correct power line outage events in real time, and to optimize the event rule model.
[0148] The power line fault event analysis method and system based on natural language processing according to the embodiments of the present invention can realize real-time updating and correction of power line fault events, improve the accuracy and efficiency of fault diagnosis, and have the ability of self-adaptation and continuous learning, ensuring a high level of diagnostic performance in various complex and changing power system environments.
[0149] Example 3
[0150] This embodiment provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the above-mentioned method for analyzing and determining power line fault events based on natural language processing.
[0151] In the description of the present invention, it is to be understood that the terms “center”, “longitudinal”, “lateral”, “length”, “width”, “thickness”, “up”, “down”, “front”, “back”, “left”, “right”, “vertical”, “horizontal”, “top”, “bottom”, “inside”, “outside”, “clockwise”, “counterclockwise”, “axial”, “radial”, “circumferential”, etc., indicating orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation to the invention.
[0152] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example.
[0153] Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present embodiment application. The appearance of this phrase in various positions in the specification is not necessarily the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0154] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for analyzing and judging power line fault events based on natural language processing, characterized in that: include: Step S100: acquiring switch telesignaling position change data and protection device action information data in the power line dispatching system, and converting them into data sets in a unified format; Step S200: Analyze and process the data set using natural language processing technology, extract key information, and establish an event rule model, specifically including: Step S210: Text description encoding. Use the pre-trained language model BERT to encode the text description of the switch telesignal change data and generate a vector representation V of the key event. switch ; Step S220: introduce the attention mechanism to identify keywords. By applying the self-attention mechanism on the output of the pre-trained language model, the correlation weight between each word and related words is calculated. α i : , in, e i It is i The attention score of each word, e k It is k The attention score of each word, the keyword representation vector V key for: , Among them, v i Indicates the i The implicit meaning of the word, α i Indicates the i The attention weight of each word; Step S230: Syntactic analysis: syntactic analysis is performed on the text description to determine the relationship between keywords and identify the logical structure of key events, which includes main events and auxiliary descriptions. Step S240: semantic understanding, combining the results of keyword extraction and syntactic analysis, to generate a vector representation V describing the key event switch , this vector represents V switch Contains key information of the switch telesignal change event, such as time, substation name, and switch number. The final representation is as follows: V switch =[time,substation A,switch 1,main event,auxiliary description]; Step S300, automatically generating a power line outage event according to the established rules in the event rule model, and determining the fault type of the power line outage event, specifically includes: Step S310: Associate the substation switches and lines according to the association fields in the key information to establish a switch-line association matrix M relation And the switch protection device correlation matrix M protection , where the switch-line correlation matrix M relation Elements in m ij Indicates the i Is the first switch connected to the j The lines are connected, if they are connected, it is 1, otherwise it is 0; the switch protection device association matrix M protection Elements in p ik Indicates the i Is the first switch connected to the k A protective device is connected; Step S320: Define a vector S of switch trip events, where each element in vector S represents a switch trip event and is 1 if the trip event occurs, otherwise 0; define a vector P of protection device action events, where each element in vector P represents a protection device action event and is 1 if the action event occurs, otherwise 0; Step S330: Define a time interval vector T, where each element in the vector T represents the time interval after the switch opening event. If there is an action signal within a few seconds, it is 1, otherwise it is 0, expressed as: , in, t i For collection S switch The time of each switch telesignal change information, t j For collection S protection The time of each protection device action information; Step S340: Define event rules according to established rules, specifically, A fault is considered only when the protective devices at both ends of the line to which the switch belongs have an action signal within a few seconds after a switch is opened and no maintenance, remote control, or soft pressure plate information appears in the opening information. This rule is expressed by the following formula: , Among them, V switch1 represents the tripping information vector after being processed by the natural language processing algorithm, T represents the time interval vector, and E represents the fault event vector; If a switch only has opening information, and the protection devices at both ends of the line to which the switch belongs do not have protection information, it is judged to be under maintenance or testing. This rule is expressed by the following formula: , Where R is the maintenance or test event vector; If a switch has no tripping information, and only has protection information of the protection devices at both ends of the line to which the switch belongs, the data is discarded. This rule is expressed by the following formula: , Where D is the discard event vector; Step S400 is to compare the event analysis based on the fault model with the on-site verification results, update and correct the power line outage event in real time, and optimize the event rule model, which specifically includes: Step S410, historical data analysis: collecting past fault event data from the power line dispatching system and the fault recording system to form a historical data set, and cleaning and preprocessing the historical data set to remove noise data and abnormal data; The common patterns of fault events are identified through clustering algorithms, and the common patterns are used to optimize the fault diagnosis model; Cluster ( H )={ C 1, C 2,…, C k } represents the clustering result obtained after cluster analysis of the historical data set H. In this representation, each C1, C2, ..., C k represents a cluster, and k represents the number of clusters. The purpose of cluster analysis is to group similar data points into one category, thereby revealing the inherent structure and pattern between the data. Each cluster contains data points with similar characteristics or behavior patterns. Step S420, real-time data monitoring: real-time monitoring of switch telesignal position change data and protection device action information to ensure timely response and processing of the latest fault events; continuous reception of the latest switch telesignal position change data and protection device action information through the power line dispatching system to form a real-time data stream; using the trained natural language processing model and event rule model to analyze and process the real-time data and generate fault events; Step S430, model update and optimization, continuously updates and optimizes the fault diagnosis model based on comparative analysis of real-time data and historical data to improve its adaptability and accuracy, specifically including the following: (a) Real-time feedback mechanism: The system continuously verifies and corrects the model's judgment results through user feedback and troubleshooting results; , in: Feedback represents the actual fault data collected by the feedback mechanism, where F represents the amount of collected feedback data, that is, the number of elements in the feedback set; (b) Model adaptive adjustment: Based on feedback data and the latest failure modes, the parameters of the keyword recognition, syntax analysis, and event rule models are adjusted; (c) Continuous Learning: A continuous learning algorithm based on elastic weight integration enables the model to gradually adapt to new failure modes and rules without forgetting the learned knowledge; Step S440: Update the model using the back propagation algorithm to minimize the loss function L total , update the model parameters θ , thereby optimizing the event rule model.
2. The method for analyzing and judging power line fault events based on natural language processing according to claim 1 is characterized in that: Step S100 specifically includes: Set the switch remote signal change data collection as a set S switch , where the set S switch Each element represents a switch remote signal change information, each information contains time t i , Substation name i , switch number Switch i , the text description of the information data Description i , a collection of switch telesignal position change data S switch Expressed as: S switch ={(time1,Substation1,Switch1,Description1),(time2,Substation2,Switch2,Description2),…,(time n ,Substation n ,Switch n ,Description n )}; The protection device action information is collected as a set S protection , where the set S protection Each element represents a piece of protection device action information, and each piece of information contains the time t j , Substation name j , Line Name j , the text description of the information data Description j , a collection of protection device action information S protection Expressed as: S protection ={(time1,Substation1,Line1,Description1),(time2,Substation2,Line2,Description2),…,(time m ,Substation m ,Line m ,Description m )} ; in, n Indicates the number of switch remote signal change information, m Indicates the number of protection device action information.
3. The method for analyzing and judging power line fault events based on natural language processing according to claim 1 is characterized in that: In step S230 , the main event of the logic structure includes tripping, and the auxiliary description includes no abnormality.
4. The method for analyzing and judging power line fault events based on natural language processing according to claim 1 is characterized in that: In the continuous learning process, the specific process is as follows: The first step is task decomposition and modeling: decompose the fault event analysis task into multiple subtasks, each of which corresponds to a specific fault mode or rule, and establish an initial model for each subtask. M 0, the model is trained based on currently known data and rules; The second step is to calculate the importance matrix: calculate each parameter θ Importance in Old Missions : , in, L old is the loss function of the old task, θ i The model's i parameters; The third step is to define the loss function for new data. D new , Define a new loss function L total , in, λ is a tuning parameter used to control the retention of old task knowledge. is the optimal parameter in the old task.
5. A power line fault event analysis and judgment system based on natural language processing, characterized in that: Applicable to implementing the analysis and judgment method according to any one of claims 1 to 4, comprising: An acquisition module is used to obtain switch telesignaling position change data and protection device action information data in the power line dispatching system and convert them into data sets with a unified format; The processing module is used to analyze and process data sets based on natural language processing technology, extract key information and establish event rule models; An analysis and judgment module is used to automatically generate power line outage events according to the established rules in the event rule model and to analyze the fault type of the power line outage event; The update module is used to analyze events based on the fault model and compare them with the results after on-site verification, to update and correct power line outage events in real time, and to optimize the event rule model.
6. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for analyzing and judging power line fault events based on natural language processing as described in any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Grid fault diagnosis method and device
CN109799425A
Fault diagnosis method and device, computer equipment and storage medium
CN116204768A
Distribution network fault studying and judging method based on artificial intelligence
CN116415925A
Fault studying and judging method and system based on multi-mode power grid operation characteristics
CN117648443A
Power equipment fault detecting and positioning method of artificial intelligence inference fusion
US20200387785A1
Cited By
Equipment diagnosis method and system based on power grid event feature matching and event traceability
CN119621872A
Equipment Diagnosis Method and System Based on Power Grid Event Feature Matching and Event Source Tracing
CN119621872B
