Power system operation situation analysis method and device

By constructing input sequences for the power grid operation physical state layer, event semantic layer, and risk warning layer, and utilizing a hierarchical semantic temporal reasoning model for cross-layer information collaborative utilization, the problem of heterogeneous multi-source data and difficulty in expressing hierarchical transmission relationships in power system operation status analysis is solved, achieving higher analytical accuracy and robustness.

CN123176374APending Publication Date: 2026-11-27WUHAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611334849.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing power system operation status analysis, the heterogeneity of multi-source data and the lack of unified modeling between different semantic levels make it difficult to coordinating the expression of cross-time evolution relationships and hierarchical transmission relationships at the same time, resulting in insufficient accuracy, robustness and interpretability of the analysis.

Method used

A method based on multi-source data fusion and hierarchical semantic temporal reasoning is adopted to construct input sequences for the power grid operation physical state layer, event semantic layer, and risk warning layer. Reasoning is performed through a hierarchical semantic temporal reasoning model, and cross-layer information is collaboratively utilized by query projection matrix and fusion matrix, and intra-layer parameters are shared to enhance consistency.

Benefits of technology

It improves the accuracy, robustness, and interpretability of power system operation status analysis, and can model the hierarchical support relationship between different semantic layers at the same time, and model the cross-time evolution relationship of power system operation status at different times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123176374A_ABST
    Figure CN123176374A_ABST
Patent Text Reader

Abstract

The application relates to a power system operation situation analysis method and device. Input sequences of an operation physical state layer, an operation event semantic layer and a risk early warning layer of a power grid are constructed; the three types of input sequences are input into a layered semantic time sequence reasoning model, the model comprises a plurality of reasoning units, and a query, a key, a value and an output projection matrix are arranged in each layer; in any reasoning unit, after fusion of operation physical state layer query and risk early warning layer query through a state-early warning fusion matrix, attention calculation is performed by using the key value of the operation physical state layer; after fusion of the operation physical state layer query and the operation event semantic layer query through a state-event fusion matrix, attention calculation is performed by using the key value of the operation event semantic layer; after fusion of the three types of queries through a state-event-early warning fusion matrix, attention calculation is performed by using the key value of the risk early warning layer; the layer-in-layer parameters in the same reasoning unit are shared between different time steps. Through the above layered reasoning, a power system operation situation analysis result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power system operation monitoring, data fusion and time series analysis technology, and specifically relates to a method, device, computer equipment and storage medium for power system operation status analysis based on multi-source data fusion and hierarchical semantic time series reasoning. Background Technology

[0002] With the high proportion of new energy integration, increased load fluctuations, and increasingly complex grid operation modes, power system operation status analysis faces challenges such as heterogeneous multi-source data, complex time-series evolution relationships, long event propagation chains, and difficulty in identifying weak signals. Unlike general time-series data, power system operation status typically manifests as a hierarchical evolutionary process consisting of changes in the underlying physical operating state, the formation of operating events, and the generation of risk warnings.

[0003] Among them, SCADA, PMU, and data such as voltage, current, frequency, power flow, and phase angle are used to reflect the current physical operating state of the power grid; information such as voltage over-limit, frequency anomaly, line overload, protection action, and equipment fault symptoms are used to characterize operating events formed by changes in one or more physical states; information such as risk level, early warning type, alarm triggering result, and dispatch plan are used to reflect the operating risks that may further develop from the corresponding physical states and operating events. Therefore, power system operation status analysis simultaneously exhibits a hierarchical semantic transmission relationship of "physical state - operating event - risk early warning" and a temporal relationship of continuous evolution of various types of information along the time dimension.

[0004] Existing solutions typically handle status monitoring, event identification, and early warning analysis in a fragmented manner, resulting in a lack of a unified modeling framework between low-level status information, mid-level event semantics, and high-level early warning decision-making, and insufficient collaborative utilization of multi-source information.

[0005] While some existing deep learning methods can directly classify states, predict trends, or score risks from historical measurement data, they often lack an explicit semantic layer for power grid operation events. This makes it difficult to simultaneously characterize cross-time evolutionary relationships during state evolution and the transmission relationships between different semantic levels at the same time. Furthermore, if each task is modeled completely independently, parameter redundancy and repetitive learning of evidence relationships can easily occur. Conversely, if representations are completely shared, the semantic differences between different semantic levels, such as the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer, will be weakened, making it difficult to balance accuracy, robustness, and interpretability. Therefore, a technical solution is needed that can be oriented towards the power system operation status analysis process, simultaneously modeling cross-time sequence relationships and cross-layer representation relationships at the same time, and outputting operation status analysis, event identification, and target output results. Summary of the Invention

[0006] This invention provides a method and apparatus for power system operation status analysis based on multi-source data fusion and hierarchical semantic temporal reasoning, in order to solve the problems of heterogeneous multi-source data, lack of unified modeling between different semantic levels, and difficulty in coordinating the expression of cross-time evolution relationships and hierarchical transmission relationships at the same time in existing power system operation status analysis, thereby improving the accuracy, robustness and interpretability of power system operation status analysis.

[0007] In a first aspect, this invention proposes a method for analyzing the operational status of a power system, comprising: acquiring multi-source time-series data of the power system; performing data fusion processing on the multi-source time-series data of the power system to construct, respectively, a power grid operation physical state layer input sequence, a power grid operation event semantic layer input sequence, and a power grid risk warning layer input sequence; inputting the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk warning layer input sequence into a hierarchical semantic time-series inference model, and performing inference by the hierarchical semantic time-series inference model to obtain the power system operational status analysis result; wherein, the hierarchical semantic time-series inference model comprises several layers of inference units stacked sequentially; the input of the first layer inference unit is the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk warning layer input sequence, the second layer inference unit, the third layer inference unit, the third layer inference unit, the third layer inference unit, the third layer inference unit, the third layer inference unit, the third layer inference unit, and the third layer inference unit. l The input to the layer inference unit is the first... l The output of layer -1 includes the physical state representation of power grid operation, the semantic representation of power grid operation events, and the representation of power grid risk warning. l The output of the layer inference unit is the first lThe updated power grid operation physical state layer representation, power grid operation event semantic layer representation, and power grid risk warning layer representation are used. In any of the inference units, the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are each configured with independent query projection matrices, key projection matrices, value projection matrices, and output projection matrices. In any of the inference units, queries, keys, and values ​​are calculated based on the previous layer's power grid operation physical state layer representation, power grid operation event semantic layer representation, and power grid risk warning layer representation. The power grid operation physical state layer query representation and the power grid risk warning layer query representation are fused using a state-warning fusion matrix to form the query, which is then used to represent the power grid operation physical state layer, key, and value. Attention calculations are performed on the keys and values ​​of the physical state layer to update the physical state layer representation of power grid operation. The query representation of the physical state layer of power grid operation and the query representation of the semantic layer of power grid operation events are fused together using a state-event fusion matrix to form a query. Attention calculations are then performed on the keys and values ​​of the semantic layer of power grid operation events to update the semantic layer representation of power grid operation events. The query representation of the physical state layer of power grid operation, the query representation of the semantic layer of power grid operation events, and the query representation of the power grid risk warning layer are fused together using a state-event-warning fusion matrix to form a query. Attention calculations are then performed on the keys and values ​​of the power grid risk warning layer to update the representation of the power grid risk warning layer. Intra-layer parameters within the same inference unit are shared between different time steps.

[0008] In some examples, the hierarchical semantic temporal reasoning model is trained under supervised supervision using a total loss function during the training phase. The mathematical expression of the total loss function is:

[0009] in, , These are the losses and weights at the physical state layer of power grid operation. , These are the semantic layer losses and weights for power grid operation events. , These are the losses and weights of the power grid risk early warning layer, respectively.

[0010] The power grid operation physical state layer loss is based on the state output head at time... t The output representation and time t The difference between the +1 true state labels is calculated, and the semantic layer loss of the power grid operation event is based on the event output header at time... t The output representation and time t The difference between the +1 real event labels is calculated, and the loss of the power grid risk early warning layer is based on the early warning output head at time... t The output representation and time t The difference between the +1 true warning labels is calculated.

[0011] In some examples, the total loss function also includes a consistency loss term. :

[0012] in, Indicates the consistency loss weight. This is used to constrain the consistency between the output results of the power grid operation event semantic layer and the output evidence of the power grid operation physical state layer, as well as the consistency between the output results of the power grid risk warning layer and the output results of the power grid operation event semantic layer.

[0013] In some examples, a rolling inference approach is used in the inference phase: after obtaining the state analysis results, event identification results, and early warning inference results for the next moment, the state analysis results, event identification results, and early warning inference results are continued to be incorporated into the input window to update the input sequence, so as to perform continuous state analysis, event identification, and early warning inference for multiple future moments.

[0014] In some examples, the input data corresponding to the power grid operation physical state layer input sequence includes at least one of SCADA measurement data, PMU measurement data, voltage, current, frequency, power flow, phase angle, equipment health indicators, load information, meteorological information, and topology status information; the input data corresponding to the power grid operation event semantic layer input sequence includes at least one of voltage over-limit event records, frequency anomaly event records, line overload event records, protection action records, equipment fault symptom records, extreme weather event identifiers, event template vectors, and candidate event codes; the input data corresponding to the power grid risk warning layer input sequence includes at least one of historical warning records, risk level labels, risk score labels, warning type labels, alarm triggering results, dispatch plan types, and warning query vectors.

[0015] In some examples, data fusion processing is performed on the multi-source time-series data of the power system to construct input sequences for the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer, respectively. This includes: performing missing value processing, outlier processing, time alignment, sampling frequency unification, normalization, and sliding window segmentation on the original data of the power grid operation physical state layer to obtain the basic input of the power grid operation physical state layer; performing event merging, event encoding, time alignment, event template mapping, or candidate event filtering on the original data of the power grid operation event semantic layer to obtain the basic input of the power grid operation event semantic layer; and performing label alignment, warning level encoding, risk score normalization, alarm type mapping, or query vector initialization on the original data of the power grid risk warning layer to obtain the basic input of the power grid risk warning layer.

[0016] In some examples, the preprocessed basic inputs of the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are mapped to the same common feature space to obtain the initial representations of the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer, respectively. The initial representations at each time point are arranged in chronological order to obtain the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer.

[0017] Secondly, the present invention provides a power system operation status analysis device, comprising: a data acquisition module configured to acquire multi-source time-series data of a power system; a data fusion module configured to perform data fusion processing on the multi-source time-series data of the power system to construct, respectively, a power grid operation physical state layer input sequence, a power grid operation event semantic layer input sequence, and a power grid risk warning layer input sequence; and a hierarchical semantic time-series reasoning model configured to reason on the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk warning layer input sequence to obtain a power system operation status analysis result; wherein, the hierarchical semantic time-series reasoning model includes several layers of sequentially stacked reasoning units; the input of the first layer reasoning unit is the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk warning layer input sequence, the second layer reasoning unit, the third ... l The input to the layer inference unit is the first... l The output of layer -1 includes the physical state representation of power grid operation, the semantic representation of power grid operation events, and the representation of power grid risk warning. l The output of the layer inference unit is the first lThe updated power grid operation physical state layer representation, power grid operation event semantic layer representation, and power grid risk warning layer representation are generated. In any of the inference units, the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are each configured with independent query projection matrices, key projection matrices, value projection matrices, and output projection matrices. In any of the inference units, queries, keys, and values ​​are calculated based on the previous layer's power grid operation physical state layer representation, power grid operation event semantic layer representation, and power grid risk warning layer representation, respectively. The power grid operation physical state layer query representation and the power grid risk warning layer query representation are fused using a state-warning fusion matrix. Then, as a query, attention is calculated using the keys and values ​​of the power grid operation physical state layer to update the power grid operation physical state layer representation; the power grid operation physical state layer query representation and the power grid operation event semantic layer query representation are fused through a state-event fusion matrix and used as a query, and attention is calculated using the keys and values ​​of the power grid operation event semantic layer to update the power grid operation event semantic layer representation; the power grid operation physical state layer query representation, the power grid operation event semantic layer query representation, and the power grid risk warning layer query representation are fused through a state-event-warning fusion matrix and used as a query, and attention is calculated using the keys and values ​​of the power grid risk warning layer to update the power grid risk warning layer representation; Intra-layer parameters within the same inference unit are shared across different time steps.

[0018] Thirdly, the present invention provides a computer device, including a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the power system operation status analysis method.

[0019] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the power system operation status analysis method.

[0020] This invention constructs input sequences for the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk early warning layer by performing data fusion processing on multi-source time-series data of the power system.

[0021] The three layers mentioned above are not arbitrarily divided according to the model network depth, but rather correspond to three different types of technical information in the process of forming the power system's operational status. Specifically, the power grid operation physical state layer characterizes the underlying physical evidence formed by measurement data, equipment status, power flow status, and topology status; the power grid operation event semantic layer characterizes operational events such as limit violations, overloads, protection actions, and equipment failure symptoms caused by changes in one or more physical states; and the power grid risk warning layer characterizes the risk level, warning type, or alarm result further formed based on the aforementioned physical state evidence and operational events.

[0022] By setting up a state-event-early warning semantic transmission chain and a time-series inference chain in the hierarchical semantic temporal reasoning model, it is possible to model the hierarchical support relationship between different semantic layers at the same time, and to model the cross-time evolution relationship of the power system operation status at different times. By fusing the query representations of different semantic layers through a cross-semantic layer conditional query fusion matrix, and combining the key representation and value representation of the corresponding semantic layer for time-series updates, the model can achieve cross-layer information collaborative utilization while preserving the differences in the representations of different semantic layers. By sharing intra-layer parameters between different time steps within the same inference unit, the consistency of time-series modeling can be enhanced, parameter redundancy can be reduced, and the stability and interpretability of the power system operation status analysis results can be improved. Attached Figure Description

[0023] Figure 1 This is a flowchart of a power system operation status analysis method according to an embodiment of the present invention.

[0024] Figure 2 This is a schematic diagram illustrating the construction of input sequences for the power grid operation physical state layer, power grid operation event semantic layer, and power grid risk early warning layer according to an embodiment of the present invention.

[0025] Figure 3 This is a schematic diagram of a hierarchical semantic temporal reasoning model according to an embodiment of the present invention.

[0026] Figure 4 This is a schematic diagram of a reasoning unit in a hierarchical semantic temporal reasoning model according to an embodiment of the present invention. Detailed Implementation

[0027] Example 1: A method for power system operation status analysis based on multi-source data fusion and hierarchical semantic temporal reasoning. The hierarchical semantic temporal reasoning includes a power grid operation physical state layer, a power grid operation event semantic layer, and a power grid risk warning layer. For ease of description, this invention refers to a specific implementation of the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer as the operation physical state layer, the operation event semantic layer, and the risk warning layer, respectively, but this should not be construed as limiting the scope of protection of this invention. This method divides power system-related data into three different types of data from different sources: operation physical state layer input data, operation event semantic layer input data, and risk warning layer input data. It models historical sequences in the time dimension and performs joint reasoning on the three types of representations—state, event, and warning—in the hierarchical dimension, thereby achieving joint prediction of the state, event, and warning results for the next moment.

[0028] In step S1, a training set is obtained based on multi-source time-series data of the power system, and the multi-source time-series data is fused to construct input data for the physical state layer, input data for the semantic layer of the operation event, and input data for the risk warning layer.

[0029] It should be noted that in step S1, as Figure 1 The input data for the physical state layer, the semantic layer of operational events, and the risk warning layer are not the same. The input data for the physical state layer mainly comes from the underlying monitoring data reflecting the operating status of the power system; the input data for the semantic layer of operational events mainly comes from data related to operational events or abnormal events, event templates, or event candidate features; and the input data for the risk warning layer mainly comes from warning labels, status levels, risk levels, alarm types, dispatching rules, or warning query features. Therefore, the three layers can differ in data source, feature semantics, and dimensional composition.

[0030] The three types of data mentioned above play different technical roles in power system operation status analysis: operational physical state layer data provides physical evidence of the actual operating state of the power grid; operational event semantic layer data characterizes operational events formed by changes in physical state; and risk warning layer data describes judgment results or risk query conditions oriented towards operational risks. Therefore, this invention does not directly concatenate the three types of data into a single temporal feature for unified processing. Instead, it preserves the semantic representations of each type of data and establishes their correlation through cross-semantic layer conditional queries during subsequent reasoning. This approach reduces semantic interference caused by directly mixing information from different data sources, dimensions, and semantic levels.

[0031] Step S1 includes steps a through c.

[0032] Step a: Obtain the original datasets for the physical state layer, the event semantic layer, and the risk warning layer.

[0033] In the scenario of power grid operation status analysis, for example, the raw dataset of the physical state layer may include SCADA measurement data, PMU measurement data, voltage, current, frequency, power flow, phase angle, equipment health indicators, load information, meteorological information, and topology status information; the raw dataset of the semantic layer of operation events may include voltage over-limit event records, frequency anomaly event records, line overload event records, protection action records, equipment fault symptom records, extreme weather event identifiers, event template vectors, or candidate event codes; the raw dataset of the risk warning layer may include historical warning records, risk level labels, risk score labels, warning type labels, alarm trigger results, dispatch plan types, and warning query vectors.

[0034] Let the original inputs of the physical state layer, the event semantic layer, and the risk warning layer at time t be denoted as follows: , , :

[0035] in, , and These represent the original input dimensions of the physical state layer, the semantic layer of the operational events, and the risk warning layer, respectively, with T representing the length of the historical observation window. Since the three types of input data come from different sources, they generally have... , and They are not equal.

[0036] Step b involves preprocessing and fusion preparation of the raw data from the physical state layer, the semantic layer of the running events, and the risk warning layer, respectively.

[0037] The raw data from the physical state layer undergoes missing value processing, outlier processing, time alignment, sampling frequency unification, normalization, and sliding window segmentation to obtain the basic input for the physical state layer. The raw data from the event semantic layer undergoes event merging, event encoding, time alignment, event template mapping, or candidate event filtering to obtain the basic input for the event semantic layer. The raw data from the risk warning layer undergoes label alignment, warning level encoding, risk score normalization, alarm type mapping, or query vector initialization to obtain the basic input for the risk warning layer. These processes are used to complete the input-level data fusion.

[0038] Correspondingly, the preprocessing results of the physical state layer, the event semantic layer, and the risk warning layer at time t are respectively denoted as... , , :

[0039] in, , and These represent the preprocessing functions for the physical state layer, the event semantic layer, and the risk warning layer, respectively.

[0040] Step c involves constructing the initial representations for the physical state layer, the semantic layer of the running events, and the risk warning layer, respectively.

[0041] In one alternative implementation, the three types of basic inputs can be mapped to the same common feature space using different mapping matrices and encoding functions to achieve representation-level data fusion, resulting in:

[0042]

[0043]

[0044] in, , and These represent the initial representations of the physical state layer, the semantic layer of the running events, and the risk warning layer at time t, respectively. , and These represent the input mapping matrices for the physical state layer, the event semantic layer, and the risk warning layer, respectively. , and For bias terms; , and This can be an encoding function or an activation function.

[0045] Arranging the initial representations of the above moments in chronological order, we can obtain:

[0046]

[0047]

[0048] in, d This represents the common feature dimension. From this, we can obtain the input sequences for the physical state layer, the semantic layer of the running events, and the risk warning layer for subsequent models, and complete the fusion preparation of data from different sources in the common feature space.

[0049] Step S2: Establish a hierarchical semantic temporal reasoning model; in this embodiment, the model adopts a three-layer semantic structure of state-event-early warning.

[0050] The hierarchical temporal reasoning model is a stackable multi-layered structure. Let the model include... L Layer reasoning unit, number l The inputs to the layer inference unit are the physical state layer representations of the running system. Runtime event semantic layer representation and risk warning layer The outputs are the physical state layer representations of the running system. Runtime event semantic layer representation and risk warning layer ,in ,and That is, the input to the first inference unit is the raw data.

[0051] For any i l Layered inference unit, whose parameters include: the query projection matrix corresponding to the running physical state layer. Key projection matrix Value projection matrix and output projection matrix ; Run the query projection matrix corresponding to the event semantic layer Key projection matrix Value projection matrix and output projection matrix ; Query projection matrix corresponding to the risk warning layer Key projection matrix Value projection matrix and output projection matrix State-Event Fusion Matrix Status-early warning fusion matrix A matrix integrating status, events, and early warning systems. ; and the feedforward networks corresponding to the physical state layer, the event semantic layer, and the risk warning layer, respectively. , , The physical state layer, the event semantic layer, and the risk warning layer each correspond to different semantic levels, and their queries, keys, values, and output projection matrices are different from each other.

[0052] The system comprises three layers: a physical state layer, a semantic layer, and a risk warning layer. The physical state layer represents physical operating information such as voltage, current, frequency, power flow, and equipment status. The operational event semantic layer represents operational events such as limit violations, overloads, protection actions, and fault symptoms. The risk warning layer represents risk levels, warning types, and historical risk trends. Since the three types of information express different technical meanings, this implementation constructs key and value representations in the representation space of each semantic layer.

[0053] Information transfer between different semantic layers does not directly mix the key and value representations of each layer. Instead, it fuses the query representation across semantic layers through a state-event fusion matrix, a state-alert fusion matrix, and a three-way fusion matrix of state, event, and alert. Thus, information from different semantic layers is mainly used to jointly determine the retrieval conditions and focus of the target semantic layer for historical information, while the historical evidence used for matching and aggregation still originates from the target semantic layer itself.

[0054] By employing the aforementioned asymmetric reasoning approach of "cross-layer fusion query and target layer key preservation," the technical semantics of historical evidence at each target semantic layer can be maintained while utilizing the correlation between physical states, operational events, and risk warnings. This reduces semantic interference caused by physical measurement information, event information, and risk information directly entering the same value space. Information transfer between different semantic layers is achieved by fusing the query representation through a state-event fusion matrix, a state-warning fusion matrix, and a three-way fusion matrix of state-event-warning.

[0055] For example, the first l The parameters of a layer inference unit can be expressed as:

[0056]

[0057]

[0058]

[0059]

[0060] in, Represents the state-event fusion matrix. Represents the state-early warning fusion matrix. This represents a matrix that integrates status, events, and early warnings.

[0061] It should be noted that for any given layer number l The parameters within the same semantic layer remain unchanged across different time steps, meaning the model parameters used for inference are constant across time points. The model uses the same layer parameters to infer different time positions in the historical sequence, ensuring consistency in temporal modeling. This cross-time-step sharing does not alter the independent settings of the attention projection parameters between the running physical state layer, the running event semantic layer, and the risk warning layer.

[0062] Optionally, to ensure that the model uses only information from that moment and historical moments when predicting a given time, a causal mask matrix can be introduced. M Its definition is:

[0063] Thus, at any moment i During the inference process, the model does not access information from future moments. i Indicates the current time step to be updated. j Indicates the historical time step that is being observed; when j > i hour, Used to shield future moments, preventing this position from participating in attention weight calculation; when j≤i, this position can participate in the aggregation of historical information at the current moment.

[0064] It should be noted that, in this embodiment, the risk warning layer information participating in the cross-semantic layer conditional query fusion all comes from warning information, risk representations, or warning query representations already obtained at the current and historical times, excluding the actual risk warning labels corresponding to the future time to be predicted. Therefore, the role of the risk warning layer query in participating in the physical state layer query fusion is to use the current and historical risk semantics to constrain the historical retrieval direction of the operating state, rather than using future risk warning results to infer the current operating state in reverse.

[0065] Step S3: Train the hierarchical semantic temporal reasoning model.

[0066] In this embodiment, the model employs different query, key, and value combination methods for predicting operational state evolution, identifying and predicting operational events, and reasoning for operational risk warnings. In other words, although these three functions exist within the same model framework, their reasoning directions are formed by fusing information from different levels.

[0067] Step S3 includes steps d to g as follows.

[0068] Step d, calculate the first l The basic queries, keys, and values ​​that run in the layered reasoning unit include the physical state layer, the event semantic layer, and the risk warning layer.

[0069]

[0070]

[0071]

[0072] in, , and These represent the basic query representations for the physical state layer, the event semantic layer, and the risk warning layer, respectively. , and These represent the basic key representations of the physical state layer, the event semantic layer, and the risk warning layer, respectively. , and These represent the basic value representations of the physical state layer, the event semantic layer, and the risk warning layer, respectively. The queries, keys, and values ​​mentioned above are all sequential matrices composed of representations at each moment within the historical observation window, arranged in chronological order. i row or number jThe rows correspond to the query representation, key representation, and value representation of the corresponding semantic layer at the corresponding time step.

[0073] Step e involves fusing cross-semantic layer conditional queries between the physical state layer and the risk warning layer to complete the intra-layer update corresponding to the prediction of the operational state evolution.

[0074] In predicting operational state evolution, it is preferable to use the fusion result of the operational physical state layer query and the risk warning layer query as the query for operational state evolution prediction, where the key and value come from the operational physical state layer itself. Specifically, the concatenated representation of the operational physical state layer query and the risk warning layer query can be obtained first:

[0075] Then through the state-early warning fusion matrix Query the merged state:

[0076] Subsequently, using the keys and values ​​of the running physical state layer as the matching and aggregation objects, the current time step is first calculated. i Historical moments j The attention scores of the physical state layer are obtained, and the attention weights of the physical state layer are obtained after normalization:

[0077] And obtain the intermediate output of the running physical state layer:

[0078] Furthermore, by running the physical state layer feedforward network Get the first l The updated state of the layer is represented as follows:

[0079] Therefore, it can be seen that in predicting the evolution of the operating state, the fused [system / mechanism]... Q Part of it comes from the combined information of the physical state layer and the risk warning layer, while K and V Part of it comes from the historical representation of the physical state layer itself. This allows us to utilize historical state information while also introducing early warning semantics to constrain the direction of state reasoning.

[0080] Step f involves fusing cross-semantic layer conditional queries between the physical state layer and the semantic layer of the running events to complete the intra-layer update corresponding to the identification and evolution prediction of running events.

[0081] In runtime event identification and evolution prediction, the fusion result of the runtime physical state layer query and the runtime event semantic layer query is preferably used as the query for runtime event identification and evolution prediction, while the key and value come from the runtime event semantic layer itself. Specifically, the concatenated representation of the runtime physical state layer query and the runtime event semantic layer query can be obtained first:

[0082] Then through the state-event fusion matrix Obtain the merged event query:

[0083] Subsequently, using the keys and values ​​of the running event semantic layer as the matching and aggregation objects, and following the same time indexing method as the running physical state layer, the current moment is first calculated. i Historical moments j The runtime event semantic layer attention score is obtained, and the runtime event semantic layer attention weight is obtained after normalization:

[0084] And obtain the intermediate output of the runtime event semantic layer:

[0085] Furthermore, by running the event semantic layer feedforward network Get the first l The event representation after the layer update:

[0086] Therefore, when performing event identification and evolution prediction, the fused... Q Part of it is determined jointly by the physical state layer and the semantic layer of the running events, while K and V Part of it comes from the historical representation of the runtime event semantic layer itself, thereby enabling runtime event semantic layer temporal reasoning driven by state information.

[0087] Step g involves fusing cross-semantic layer conditional queries across the physical state layer, the event semantic layer, and the risk warning layer to complete the intra-layer update corresponding to the operational risk warning inference.

[0088] In the risk warning reasoning process, it is preferable to use the fusion result of the physical state layer query, the event semantic layer query, and the risk warning layer query as the query for risk warning reasoning, while the key and value come from the risk warning layer itself. Specifically, the concatenated representation of the three types of queries can be obtained first:

[0089] Then, through the fusion matrix of status, event, and early warning The merged early warning query is obtained as follows:

[0090] Subsequently, using the keys and values ​​of the risk warning layer as matching and aggregation objects, and following the same time indexing method as the physical state layer, the current moment is first calculated. i Historical moments j The attention score of the risk warning layer is obtained, and the attention weight of the risk warning layer is obtained by normalization:

[0091] And obtain the intermediate output of the risk warning layer:

[0092] Furthermore, through the risk warning layer feedforward network Get the first l The updated warning message indicates:

[0093] Therefore, when running risk warning reasoning, the fused Q Part of it is determined by three types of information: the physical state layer, the semantic layer of operational events, and the risk warning layer. It is obtained by applying a fusion matrix of state, event, and warning information to the query representation. K and V Part of it comes from the historical representation of the risk warning layer itself, which enables the risk warning layer to simultaneously refer to the underlying state evidence, the semantics of the middle-level events, and the historical trends of the warning.

[0094] It should be noted that the attention scores mentioned above are all calculated on the key and value sequences of the target semantic layer itself; information from different semantic layers only participates in the attention score calculation through fusion queries, without changing the source of the keys and values ​​of the running physical state layer, the running event semantic layer, and the risk warning layer.

[0095] It should be noted that, for l = 1, 2, ..., L After executing steps d through g sequentially across all layers, the final runtime physical state layer output can be obtained. Run event semantic layer output and risk warning layer output For any given time t Their final representations are denoted as follows: , and .

[0096] Step S4: Based on the trained model, perform operational status analysis, event identification, and early warning reasoning on the power system.

[0097] Based on the final output layer, set the status output header, event output header, and warning output header respectively:

[0098]

[0099]

[0100] in, This represents the model's prediction of the state outcome at the next time step. This represents the model's prediction of the outcome of the event at the next moment. This indicates the model's prediction of the warning result for the next moment. In other words, this scheme uses a training and inference method that uses known historical data to predict the next moment.

[0101] During the training phase, for the output representation at time t within the historical window, its supervision signal comes from the real label at time t+1. Let the real state label, real event label, and real warning label be respectively... , and Then, the loss function of the physical state layer, the loss function of the event semantic layer, and the loss function of the risk warning layer can be defined respectively.

[0102] For example, if all three tasks are classification tasks, then the cross-entropy loss function can be used. :

[0103]

[0104]

[0105] If one of the tasks is a regression task, such as state score prediction, risk score prediction, risk probability prediction, or early warning prediction, then the corresponding loss function can also be the mean squared error loss. This solution does not impose such a limitation.

[0106] Furthermore, the total loss function can be obtained by weighted summation of the three types of loss functions:

[0107] in, , and These represent the loss weights of the physical state layer, the semantic layer of the event layer, and the risk warning layer, respectively.

[0108] Optionally, to further enhance the hierarchical consistency among the state, event, and alert layers, a consistency loss can be added. Thus we get:

[0109] in, Indicates the consistency loss weight. It can be used to constrain the consistency between event identification results and status evidence, as well as the consistency between early warning output and event identification results.

[0110] During training, gradient descent, stochastic gradient descent, Adam, or other optimization algorithms can be used to update the independent projection matrices, fusion matrices, feedforward networks, and output head parameters corresponding to the physical state layer, operational event semantic layer, and risk warning layer. The intra-layer parameters of the corresponding semantic layer within the same inference unit are reused across time steps. After multiple rounds of iterative training, a hierarchical semantic temporal inference model suitable for power system operational status analysis tasks can be obtained.

[0111] During the inference phase, simply inputting the physical state layer input data, the semantic layer input data, and the risk warning layer input data within the historical time window into the trained model will yield the state analysis results, event identification results, and warning inference results for the next moment.

[0112] Optionally, after obtaining the prediction result for the next moment, the prediction result can be further incorporated into the input window to perform rolling inference, thereby realizing continuous operation status analysis, event identification, and situation warning for multiple future moments.

[0113] In summary, this invention constructs input data (including input data for the physical state layer, semantic layer, and risk warning layer) corresponding to the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer, respectively. Furthermore, it sets up a hierarchical reasoning mechanism in the model: "state query with risk semantic constraints + key value of the physical state layer," "event query with physical state conditions + key value of the semantic layer," and "risk query with joint constraints of state evidence and event semantics + key value of the risk warning layer." This enables simultaneous prediction of operation state evolution, identification and evolution prediction of operation events, and reasoning of operation risk warnings within a unified time-series modeling framework, thereby improving the accuracy, robustness, and interpretability of power system operation status analysis.

[0114] Through the above steps, this invention completes the hierarchical transfer from "basic representation to intermediate semantic representation and then to target output representation" through cross-semantic layer conditional query fusion matrix at the same time, and in specific implementation, this is manifested as the hierarchical transfer from "state representation to event representation and then to early warning representation". Simultaneously, it completes cross-time step extrapolation between different times through intra-layer parameters shared across time steps within the same inference unit, thereby realizing hierarchical modeling, time-series extrapolation, and interpretable analysis output of power system state evolution and event propagation processes. Compared to techniques that only perform single-layer time-series classification or state judgment based solely on a single path, this invention can more fully utilize multi-source time-series information, enhance the ability to identify weak signals, hysteresis effects, and cumulative anomalies, and improve inference robustness and interpretability.

[0115] Example 2: A power system operation status analysis device based on multi-source data fusion and hierarchical semantic temporal reasoning. The device includes: a data acquisition module, a data fusion module, and a hierarchical semantic temporal reasoning model.

[0116] The data acquisition module is configured to acquire multi-source time-series data of the power system.

[0117] The data fusion module is configured to perform data fusion processing on the multi-source time-series data of the power system to construct the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk early warning layer input sequence, respectively.

[0118] The hierarchical semantic temporal reasoning model is configured to reason about the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer to obtain the power system operation status analysis results.

[0119] The hierarchical semantic temporal reasoning model comprises several layers of stacked reasoning units; the inputs of the first-layer reasoning unit are the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer, and so on. l The input to the layer inference unit is the first... l The output of layer -1 includes the physical state representation of power grid operation, the semantic representation of power grid operation events, and the representation of power grid risk warning. l The output of the layer inference unit is the first l The updated representations of the physical state of power grid operation, the semantic representation of power grid operation events, and the early warning representation of power grid risks.

[0120] In any of the inference units, the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are each configured with independent query projection matrices, key projection matrices, value projection matrices, and output projection matrices.

[0121] In any of the aforementioned inference units, queries, keys, and values ​​are calculated based on the previous layer's physical state representation of power grid operation, semantic representation of power grid operation events, and representation of power grid risk warning. The query representation of the physical state of power grid operation and the query representation of the power grid risk warning layer are fused using a state-warning fusion matrix to form a query. Attention is calculated using the keys and values ​​of the physical state of power grid operation to update the physical state of power grid operation. The query representation of the physical state of power grid operation and the query representation of the semantic representation of power grid operation events are fused using a state-event fusion matrix to form a query. Attention is calculated using the keys and values ​​of the semantic representation of power grid operation events to update the semantic representation of power grid operation events. The query representation of the physical state of power grid operation, the query representation of the semantic representation of power grid operation events, and the query representation of the power grid risk warning layer are fused using a state-event-warning fusion matrix to form a query. Attention is calculated using the keys and values ​​of the semantic representation of power grid risk warning to update the semantic representation of power grid risk warning.

[0122] Intra-layer parameters within the same inference unit are shared across different time steps.

[0123] The specific implementation details, parameter settings, and training methods of each module in the device of this embodiment can be found in Embodiment 1, and will not be repeated here.

[0124] Example 3: A computer device. This computer system includes a processor and a memory. The memory and processor can be interconnected via a bus system and / or other forms of connection. The processor may include any one or more of a central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP), or digital signal processor (DSP). The memory may include volatile memory, such as random access memory (RAM). The memory may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD). The memory stores executable program code, which the processor executes to implement the power system operation status analysis method described in Example 1.

[0125] Example 4: A computer-readable storage medium. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), or a compact disc read-only memory (CD). ROM, magnetic tape, floppy disk, and optical data storage devices, etc. This computer-readable storage medium is used to store computer-readable instructions that, when executed by a computer, can achieve the above-mentioned functions. One or more steps in the method of power system operation status analysis.

Claims

1. A method for analyzing the operational status of a power system, characterized in that, include: Acquire multi-source time-series data of the power system; The multi-source time-series data of the power system are fused to construct the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk early warning layer input sequence, respectively. The input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer are input into the hierarchical semantic temporal reasoning model. The hierarchical semantic temporal reasoning model is used for reasoning to obtain the power system operation status analysis results. The hierarchical semantic temporal reasoning model comprises several layers of stacked reasoning units; the inputs of the first-layer reasoning unit are the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer, and so on. l The input to the layer inference unit is the first... l The output of layer -1 includes the physical state representation of power grid operation, the semantic representation of power grid operation events, and the representation of power grid risk warning. l The output of the layer inference unit is the first l The updated representations of the physical state of power grid operation, the semantics of power grid operation events, and the early warning layer of power grid risk are presented. In any of the inference units, the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are each configured with independent query projection matrices, key projection matrices, value projection matrices, and output projection matrices. In any of the aforementioned inference units, queries, keys, and values ​​are calculated based on the previous layer's physical state representation of power grid operation, semantic representation of power grid operation events, and representation of power grid risk warning, respectively. The query representation of the physical state of power grid operation and the query representation of the power grid risk warning layer are fused using a state-warning fusion matrix to form a query, and attention is calculated using the keys and values ​​of the physical state of power grid operation to update the physical state of power grid operation representation. The query representation of the physical state of power grid operation and the query representation of the semantic representation of power grid operation events are fused using a state-event fusion matrix to form a query, and attention is calculated using the keys and values ​​of the semantic representation of power grid operation events to update the semantic representation of power grid operation events. The query representation of the physical state of power grid operation, the query representation of the semantic representation of power grid operation events, and the query representation of the power grid risk warning layer are fused using a state-event-warning fusion matrix to form a query, and attention is calculated using the keys and values ​​of the power grid risk warning layer to update the power grid risk warning layer representation. Intra-layer parameters within the same inference unit are shared across different time steps.

2. The method according to claim 1, characterized in that, The hierarchical semantic temporal reasoning model employs a total loss function for supervised training during the training phase. The mathematical formula for the total loss function is: in, , These are the losses and weights at the physical state layer of power grid operation. , These are the semantic layer losses and weights for power grid operation events. , These are the losses and weights of the power grid risk early warning layer, respectively. The power grid operation physical state layer loss is based on the state output head at time... t The output representation and time t The difference between the +1 true state labels is calculated, and the semantic layer loss of the power grid operation event is based on the event output header at time... t The output representation and time t The difference between the +1 real event labels is calculated, and the loss of the power grid risk early warning layer is based on the early warning output head at time... t The output representation and time t The difference between the +1 true warning labels is calculated.

3. The method according to claim 2, characterized in that, The total loss function also includes a consistency loss term. : in, Indicates the consistency loss weight. This is used to constrain the consistency between the output results of the power grid operation event semantic layer and the output evidence of the power grid operation physical state layer, as well as the consistency between the output results of the power grid risk warning layer and the output results of the power grid operation event semantic layer.

4. The method according to claim 1, characterized in that, In the reasoning phase, a rolling reasoning approach is adopted: after obtaining the state analysis results, event identification results, and early warning reasoning results for the next moment, the state analysis results, event identification results, and early warning reasoning results are continuously incorporated into the input window to update the input sequence, so as to perform continuous state analysis, event identification, and early warning reasoning for multiple future moments.

5. The method according to claim 1, characterized in that, The input data corresponding to the power grid operation physical state layer input sequence includes at least one of SCADA measurement data, PMU measurement data, voltage, current, frequency, power flow, phase angle, equipment health indicators, load information, meteorological information, and topology state information. The input data corresponding to the semantic layer input sequence of the power grid operation event includes at least one of the following: voltage over-limit event records, frequency anomaly event records, line overload event records, protection action records, equipment fault symptom records, extreme weather event identifiers, event template vectors, and candidate event codes. The input data corresponding to the power grid risk early warning layer input sequence includes at least one of the following: historical early warning records, risk level labels, risk score labels, early warning type labels, alarm trigger results, dispatch plan types, and early warning query vectors.

6. The method according to claim 1, characterized in that, The multi-source time-series data of the power system are fused to construct input sequences for the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk early warning layer, respectively, including: The raw data of the power grid operation physical state layer are processed for missing values, outliers, time alignment, sampling frequency unification, normalization, and sliding window segmentation to obtain the basic input of the power grid operation physical state layer. Perform event merging, event encoding, time alignment, event template mapping, or candidate event filtering on the raw data of the power grid operation event semantic layer to obtain the basic input of the power grid operation event semantic layer; Perform label alignment, warning level encoding, risk score normalization, alarm type mapping, or query vector initialization on the raw data of the power grid risk warning layer to obtain the basic input of the power grid risk warning layer.

7. The method according to claim 6, characterized in that, The preprocessed basic inputs of the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are mapped to the same common feature space to obtain the initial representations of the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer, respectively. Arrange the initial representations at each moment in chronological order to obtain the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer.

8. A power system operation status analysis device, characterized in that, include: The data acquisition module is configured to acquire multi-source time-series data of the power system; The data fusion module is configured to perform data fusion processing on the multi-source time-series data of the power system to construct the power grid operation physical state layer input sequence, the power grid operation event semantic layer input sequence, and the power grid risk early warning layer input sequence, respectively. A hierarchical semantic temporal reasoning model is configured to reason about the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer to obtain the power system operation status analysis results. The hierarchical semantic temporal reasoning model comprises several layers of stacked reasoning units; the inputs of the first-layer reasoning unit are the input sequence of the power grid operation physical state layer, the input sequence of the power grid operation event semantic layer, and the input sequence of the power grid risk warning layer, and so on. l The input to the layer inference unit is the first... l The output of layer -1 includes the physical state representation of power grid operation, the semantic representation of power grid operation events, and the representation of power grid risk warning. l The output of the layer inference unit is the first l The updated representations of the physical state of power grid operation, the semantics of power grid operation events, and the early warning layer of power grid risk are presented. In any of the inference units, the power grid operation physical state layer, the power grid operation event semantic layer, and the power grid risk warning layer are each configured with independent query projection matrices, key projection matrices, value projection matrices, and output projection matrices. In any of the aforementioned inference units, queries, keys, and values ​​are calculated based on the previous layer's physical state representation of power grid operation, semantic representation of power grid operation events, and representation of power grid risk warning, respectively. The query representation of the physical state of power grid operation and the query representation of the power grid risk warning layer are fused using a state-warning fusion matrix to form a query, and attention is calculated using the keys and values ​​of the physical state of power grid operation to update the physical state of power grid operation representation. The query representation of the physical state of power grid operation and the query representation of the semantic representation of power grid operation events are fused using a state-event fusion matrix to form a query, and attention is calculated using the keys and values ​​of the semantic representation of power grid operation events to update the semantic representation of power grid operation events. The query representation of the physical state of power grid operation, the query representation of the semantic representation of power grid operation events, and the query representation of the power grid risk warning layer are fused using a state-event-warning fusion matrix to form a query, and attention is calculated using the keys and values ​​of the power grid risk warning layer to update the power grid risk warning layer representation. Intra-layer parameters within the same inference unit are shared across different time steps.

9. A computer device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the power system operation status analysis method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the power system operation status analysis method according to any one of claims 1 to 7.