Multi-level power alarm signal aggregation method and system based on power signal characteristics

By employing a multi-level aggregation method based on power signal characteristics, utilizing a three-level topology and a lightweight anchoring library, and dynamically adapting to topology changes and time delay fluctuations, the accuracy problem of signal aggregation and event correlation in power systems is solved, thereby improving the reliability of fault diagnosis.

CN123178993APending Publication Date: 2026-11-27SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing power system alarm signal collection and event correlation analysis suffer from problems such as missed judgments or incorrect correlations in dynamic topology reconstruction and non-stationary communication delay scenarios. The time scale alignment accuracy of multi-source heterogeneous signals is insufficient, leading to distortion of causal logic.

Method used

A multi-level aggregation method based on power signal characteristics is adopted. A device coordinate mapping table is generated through a three-level topology structure. The main protection alarm signal is identified as the reference zero point. A lightweight topology delay adaptive anchoring library is constructed. Phase fingerprint matching and encoding processing are performed to achieve deduplication of the same source and merging of the same type, and to generate standardized case objects.

Benefits of technology

Dynamically adapting to topological changes reduces the impact of non-stationary time delays, improves the reliability of event clustering and correlation analysis, suppresses causal logic distortion caused by accumulated time bias, and enhances the accuracy of fault diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178993A_ABST
    Figure CN123178993A_ABST
Patent Text Reader

Abstract

The application relates to a multi-level power alarm signal collection method and system based on power signal characteristics, and the technical scheme comprises the following steps: firstly, microsecond-level time stamp marking and topological structure mapping are performed on the whole network SCADA alarm data to form a device coordinate mapping table with electrical distance and link delay baseline; then, combined with the main protection signal and the topological neighborhood window, the neighborhood alarm flow is intercepted and aligned and corrected to generate a standardized phase fingerprint sequence; through three-dimensional phase coding fusion of relative time difference, consistency and harmonic characteristics, an independent event phase fingerprint is established and stored in an anchor library supporting online update of parameters; improved cyclic matching and multi-constraint decision are adopted to realize high-confidence event identification, same-source deduplication and feature collection; and finally, based on the deviation feedback of the standardized case, the collection parameters are dynamically and adaptively optimized. The method improves the space-time accuracy of multi-source alarm collaborative identification, realizes the intelligentization and standardization of power alarm data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent collection of power system alarms and correlation analysis of fault signal events, and in particular to a multi-level power alarm signal collection method and system based on power signal characteristics. Background Technology

[0002] Currently, alarm signal collection and event correlation analysis in power systems mainly rely on technical approaches such as fault characteristic rules, static topology models, or knowledge base modeling. The core idea typically involves using predefined rules, templates, or expert knowledge to collect and correlate alarm signals with specific equipment and fault events, given the large volume of SCADA (Supervisory and Data Acquisition) and protection and automation device signal flows generated during power system operation.

[0003] However, the aforementioned existing technologies still have the following significant shortcomings in practical engineering applications:

[0004] First, static templates and fixed rule bases have poor dynamic adaptability to changes in operating modes and communication delays. Existing solutions typically rely on offline-built fixed topology nodes or expert-based rules for signal anchoring and aggregation. Once the power grid experiences switching operations, changes in maintenance methods, or faults causing multiple switch repositionings leading to topology reconfiguration, the pre-set signal association paths and timing judgment logic cannot be adaptively corrected. Simultaneously, differences in the degree of congestion in communication links under different operating conditions can cause non-stationary fluctuations in message transmission delays. Static delay compensation parameters are insufficient to cover the dynamic range of actual operation, significantly increasing the likelihood of missed or incorrect aggregation.

[0005] Second, the alignment accuracy of multi-source heterogeneous signals on the time scale has inherent defects. SCADA systems have fundamental differences in data refresh rate, phasor calculation cycle, and internal clock timing mechanism. Existing technologies mostly rely on global absolute timestamps for hard alignment, failing to fully account for the misalignment caused by non-deterministic delays in the data transmission path (such as switch framing delay and protocol stack jitter). In severe scenarios such as transient disturbances or high-frequency oscillations in the power grid, the time series of signals from different sources are prone to cumulative offsets at the microsecond to millisecond level, directly causing distortion of the causal chain of fault event evolution and severely weakening the reliability of subsequent event clustering based on time-series logic. Summary of the Invention

[0006] This application provides a multi-level power alarm signal collection method and system based on power signal characteristics, aiming to solve the problem of causal logic distortion caused by accumulated time offset in harsh scenarios such as high-frequency oscillations mentioned in the background art.

[0007] The multi-level power alarm signal collection method based on power signal characteristics provided in this application specifically includes:

[0008] S1: Obtain SCADA alarm flow data from the power grid, process the alarm flow data, and generate an equipment coordinate mapping table by combining the three-level topology structure of substation-voltage level-electrical bay;

[0009] S2: Based on the device coordinate mapping table, identify the main protection alarm signal as the reference zero point, extract the alarm signal set of the same topology neighboring device within the time window, and input the alarm signal set into the phase fingerprint capture window to generate the neighborhood response sequence to be encoded;

[0010] S3: Perform three-dimensional phase encoding processing on the neighborhood response sequence to be encoded to construct an event phase fingerprint that includes phase offset encoding, consistency encoding and harmonic modulation encoding;

[0011] S4: Construct a lightweight topology delay adaptive anchoring library based on historical verification data. The lightweight topology delay adaptive anchoring library stores phase fingerprint templates.

[0012] S5: Match the event phase fingerprint with the phase fingerprint template. When the phase sequence similarity, consistency score and harmonic modulation feature KL divergence simultaneously meet the preset threshold conditions, output a high-confidence matching result.

[0013] S6: Based on the high-confidence matching results, perform source deduplication and similar-type merging processing on all alarm signals in the current window to generate standardized case objects containing event type labels, key alarm timing sequences, and confidence levels.

[0014] S7: Update the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library based on the standardized case object to complete the collection of power alarm signals.

[0015] This application also provides a multi-level power alarm signal collection system based on power signal characteristics, used to execute a multi-level power alarm signal collection method based on power signal characteristics, including:

[0016] The data preprocessing and coordinate mapping module is used to acquire power grid SCADA alarm flow data, preprocess the alarm flow data, and construct and generate an equipment coordinate mapping table based on the three-level topology structure of substation-voltage level-electrical bay.

[0017] The neighborhood signal interception and sequence generation module is communicatively connected to the data preprocessing and coordinate mapping module. It is used to identify the main protection type alarm signal based on the device coordinate mapping table and use it as the reference zero point. It intercepts the set of device alarm signals in the same topological neighborhood within a preset time window and inputs the alarm signal set into a preset phase fingerprint capture window to generate a neighborhood response sequence to be encoded.

[0018] The three-dimensional phase encoding and fingerprint construction module is communicatively connected to the neighborhood signal interception and sequence generation module. It is used to perform three-dimensional phase encoding processing on the response sequence of the neighborhood to be encoded, and respectively complete phase offset encoding, consistency encoding and harmonic modulation encoding to construct the event phase fingerprint of the corresponding alarm event.

[0019] The template library construction module is used to build a lightweight topology delay adaptive anchoring library based on historical power alarm verification data. The lightweight topology delay adaptive anchoring library stores phase fingerprint templates corresponding to various power alarm events.

[0020] The fingerprint matching and verification module is communicatively connected to the three-dimensional phase encoding and fingerprint construction module and the template library construction module, respectively. It is used to match and search the real-time generated event phase fingerprint with the phase fingerprint template in the lightweight topology delay adaptive anchoring library. When the three indicators of phase sequence similarity, consistency score and harmonic modulation feature KL divergence all meet the corresponding preset threshold conditions, a high-confidence matching result is output.

[0021] The alarm collection and processing module is communicatively connected to the fingerprint matching and verification module. It is used to perform source deduplication and type merging processing on all alarm signals in the current time window according to the high confidence matching result, and generate standardized case objects carrying event type labels, key alarm timing and confidence parameters.

[0022] The template library iteration update module is communicatively connected to the alarm collection and processing module and the template library construction module, respectively. It is used to iteratively update the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library based on the generated standardized case objects, so as to complete the intelligent collection of multi-level power alarm signals.

[0023] The multi-level power alarm signal collection method based on power signal characteristics provided in this application has the following beneficial effects:

[0024] This invention dynamically generates a device coordinate mapping table through a three-level topology structure of plant-voltage level-electrical bay, replacing the traditional static node binding method. This allows signal association paths to be automatically reconstructed following changes in operating mode and switch position changes caused by faults, fundamentally overcoming the rule failure problem of a fixed rule base in topology change scenarios. Simultaneously, by constructing a lightweight topology delay adaptive anchoring library and updating the phase fingerprint template in real time based on standardized event objects, the delay compensation parameters can be dynamically adjusted according to fluctuations in communication link conditions, without relying on a preset static delay threshold, effectively reducing the negative impact of non-stationary message transmission delay on collection accuracy. Furthermore, this invention uses the main protection alarm signal as a reference zero point to extract the time window, mapping the alarm signal set of neighboring devices in the same topology to the phase fingerprint capture window. A three-dimensional event phase fingerprint is constructed through phase offset coding, consistency coding, and harmonic modulation coding, achieving implicit alignment of multi-source heterogeneous data from the signal phase relationship dimension. This mechanism no longer relies on the absolute clock synchronization accuracy of SCADA, and can effectively suppress sequence misalignment caused by nondeterministic delays such as switch framing delay and protocol stack processing jitter. It avoids causal logic distortion caused by accumulated time offset in harsh scenarios such as high-frequency oscillation, and significantly improves the reliability of event clustering and correlation analysis. Attached Figure Description

[0025] Figure 1 This is the main flowchart of a multi-level power alarm signal collection method based on power signal characteristics.

[0026] Figure 2 This is a sub-flowchart of a multi-level power alarm signal collection method based on power signal characteristics.

[0027] Figure 3 This is another sub-flowchart of a multi-level power alarm signal collection method based on power signal characteristics. Detailed Implementation

[0028] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0029] The following disclosure provides many different embodiments or examples for implementing different structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. Of course, these are merely examples and are not intended to limit the invention. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.

[0030] like Figure 1 As shown, this application provides a multi-level power alarm signal collection method based on power signal characteristics, specifically including:

[0031] S1: Obtain SCADA alarm flow data from the power grid, process the alarm flow data, and generate an equipment coordinate mapping table by combining the three-level topology structure of substation-voltage level-electrical bay;

[0032] S2: Based on the device coordinate mapping table, identify the main protection alarm signal as the reference zero point, extract the alarm signal set of the same topology neighboring device within the time window, and input the alarm signal set into the phase fingerprint capture window to generate the neighborhood response sequence to be encoded;

[0033] S3: Perform three-dimensional phase encoding processing on the neighborhood response sequence to be encoded to construct an event phase fingerprint that includes phase offset encoding, consistency encoding and harmonic modulation encoding;

[0034] S4: Construct a lightweight topology delay adaptive anchoring library based on historical verification data. The lightweight topology delay adaptive anchoring library stores phase fingerprint templates.

[0035] S5: Match the event phase fingerprint with the phase fingerprint template. When the phase sequence similarity, consistency score and harmonic modulation feature KL divergence simultaneously meet the preset threshold conditions, output a high-confidence matching result.

[0036] S6: Based on the high-confidence matching results, perform source deduplication and similar-type merging processing on all alarm signals in the current window to generate standardized case objects containing event type labels, key alarm timing sequences, and confidence levels.

[0037] S7: Update the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library based on the standardized case object to complete the collection of power alarm signals.

[0038] Step S1: Obtain power grid SCADA alarm flow data, process the alarm flow data, and generate an equipment coordinate mapping table based on the three-level topology structure of substation-voltage level-electrical bay. Specifically, this includes:

[0039] S1.1: Perform microsecond-level hardware timestamp marking on the raw alarm stream data output by the entire SCADA system to eliminate clock asynchronous errors in the multi-source data acquisition process and generate standardized time-series alarm data packets with a unified absolute time base.

[0040] The system receives raw alarm data streams from the entire SCADA system. These streams contain heterogeneous signals from multiple sources, including circuit breaker changes, protection actions, and telemetry limit violations. For each received raw message frame, the communication protocol header is parsed to extract the device's unique identifier and initial software timestamp, establishing a queue of signals to be processed. A high-precision hardware clock synchronization module is invoked to obtain the current microsecond-level absolute time reference, derived from the BeiDou / GPS dual-mode timing signal and maintained by a local temperature-controlled crystal oscillator. The clock deviation between the raw software timestamp and the hardware absolute time reference is calculated, including network transmission jitter and processing delay within the acquisition terminal. A linear interpolation method is used to smooth and filter the clock deviation, eliminating transient pulse interference and generating a continuous and stable time correction factor. This time correction factor is superimposed on the raw software timestamp, and a microsecond-level re-marking operation is performed to generate a standardized timing alarm data packet with a unified absolute time reference. By using microsecond-level hardware timestamp marking, the multi-source asynchronous alarm data from the previous step is transformed into standardized time-series alarm data packets with a unified time base, thereby eliminating clock asynchronous errors during multi-source data acquisition and providing a precise time alignment basis for subsequent topology matching.

[0041] S1.2: Based on the standardized time-series alarm data packet parsing device identification information, and combined with the preset three-level topology model of plant-voltage level-electrical bay, perform hierarchical matching calculation to establish the precise spatial coordinate index of each alarm device in the power grid physical architecture.

[0042] Receive standardized timing alarm data packets marked with microsecond-level hardware timestamps, parse the device unique identifier field in the header of the data packet, and extract the structured topology index key containing the plant ID, voltage level code, and electrical bay number.

[0043] The system calls upon a pre-built three-level power grid topology model database, uses the extracted topology index key as the query condition, performs a hierarchical matching retrieval operation to locate the exact node position of the alarm device in the physical power grid architecture.

[0044] Based on the located node positions, the topology adjacency matrix is ​​traversed to identify the upper-level bus nodes, lower-level load nodes, and parallel nodes of the same level that have a direct electrical connection with the device, and a local topology connection map is constructed.

[0045] Calculate the electrical path length from the current alarm device to the reference zero potential point or the neutral point of the main transformer, and quantify the relative electrical distance weight of the device in the power grid by combining the line impedance parameters.

[0046] The calculated relative electrical distance weight values ​​are fused with the communication link delay baseline data to generate a precise spatial coordinate index vector that includes static topology attributes and dynamic delay characteristics.

[0047] Write the spatial coordinate index vector into the corresponding record field of the device coordinate mapping table to complete the spatiotemporal attribute registration of a single alarm device.

[0048] Through the above-mentioned hierarchical matching and coordinate mapping processing, the standardized time-series alarm data packets generated in the previous step are transformed into device spatial coordinate indexes with precise physical location identifiers, realizing the accurate mapping of alarm signals from logical data streams to physical power grid topology space, and providing a definite spatial constraint boundary for subsequent phase fingerprint capture based on topological neighborhood.

[0049] S1.3: Utilize the precise spatial coordinate index to call the power grid impedance parameter library to calculate the theoretical electrical distance weight between devices, and statistically analyze historical communication link transmission delay data to generate a measured communication link delay baseline, thereby forming an initial device attribute set containing static topology weights and dynamic delay characteristics.

[0050] Receive the precise spatial coordinate index generated by S1.2, and call the power grid impedance parameter library to obtain the positive sequence impedance matrix data between each node.

[0051] Based on the positive sequence impedance matrix, the electrical distance metric between any two device nodes is calculated, which reflects the propagation and attenuation characteristics of fault current in the power grid.

[0052] Traverse all network device pairs to generate a static topology weight matrix that includes the electrical coupling strength between all nodes.

[0053] Synchronously read the historical communication log database and extract the message transmission timestamp sequence of each SCADA channel over the past 30 days.

[0054] Perform sliding window statistical analysis on the timestamp sequence to calculate the average transmission delay and standard deviation of each communication link.

[0055] Abnormal jitter data exceeding three standard deviations were removed, and the latency statistics under stable conditions were retained as the baseline for measured communication link latency.

[0056] The calculated theoretical electrical distance weights are matched with the measured communication link delay baseline using key-value matching and associated with the corresponding spatial coordinate index.

[0057] Through the above processing method, the spatial index of the previous step is transformed into an initial device attribute set containing static electrical coupling strength and dynamic transmission delay characteristics, realizing a refined characterization of the spatiotemporal attributes of alarm signals, and providing accurate topology and delay compensation basis for subsequent phase fingerprint construction.

[0058] S1.4: Perform multi-dimensional feature fusion processing on the initial equipment attribute set, bind the theoretical electrical distance weight and the measured communication link delay baseline to the corresponding spatial coordinate index, so as to construct an equipment coordinate mapping table that can reflect the physical connection characteristics and signal transmission lag characteristics of the power grid.

[0059] Receive an initial set of device attributes containing static topology weights and dynamic delay characteristics. This set consists of theoretical electrical distance weights generated in the previous steps and measured communication link delay baselines.

[0060] Perform key-value alignment on each record in the initial device attribute set, using the spatial coordinate index as the unique primary key, and map the theoretical electrical distance weight to the corresponding device node object to establish a quantitative representation of the physical connection strength.

[0061] Based on the same spatial coordinate index, the measured communication link delay baseline is injected into the delay attribute field of the device node object, forming a two-dimensional attribute vector containing static impedance characteristics and dynamic transmission hysteresis characteristics.

[0062] A weighted fusion method is used to process the two-dimensional attribute vector and construct a comprehensive mapping factor that reflects the physical connection characteristics of the power grid and the signal transmission lag characteristics. The theoretical electrical distance weight is used to correct the topological proximity, and the measured delay baseline is used to calibrate the time synchronization deviation.

[0063] The calculated comprehensive mapping factor is written back to the extended field of the device coordinate mapping table to complete the conversion from discrete attributes to a structured mapping table, ensuring that each device node has a complete spatiotemporal context description capability.

[0064] By using a multi-dimensional feature fusion processing method, the initial device attribute set from the previous step is transformed into a device coordinate mapping table with spatiotemporal consistency. This enables alarm signals to utilize both physical topology constraints and time delay compensation mechanisms during subsequent collection, significantly improving the accuracy of event phase fingerprint extraction.

[0065] S1.5: Based on the device coordinate mapping table, perform association enhancement processing on the standardized time-series alarm data packets, attach the topology location information and delay compensation parameters of the device to which each alarm record belongs, and finally output enhanced alarm stream data with complete spatiotemporal context information for subsequent window interception.

[0066] like Figure 2 As shown, step S2 involves: identifying the main protection type alarm signal as a reference zero point based on the device coordinate mapping table, extracting the alarm signal set of devices in the same topology neighborhood within the time window, and inputting the alarm signal set into the phase fingerprint capture window to generate the neighborhood response sequence to be encoded. Specifically, this includes:

[0067] S2.1: Based on the device coordinate mapping table, perform real-time scanning and processing of alarm stream data across the entire network, and use the preset main protection action feature keyword matching method to extract main protection alarm signals in order to obtain a reference trigger event with reference zero point attributes.

[0068] Receive enhanced alarm stream data with complete spatiotemporal context information from the output of step S1. This data stream includes microsecond-level hardware timestamps, device unique identifiers, and topology location attributes.

[0069] The enhanced alarm stream data is processed in real time in parallel, and the protection action description field of each alarm record is traversed using a high-performance pattern matching engine.

[0070] A preset main protection action feature keyword library is provided, which includes a set of terms that characterize the core logic of fault clearing, such as "differential protection action", "distance protection stage I action", and "zero-sequence overcurrent stage I action".

[0071] A multi-mode string matching method is used to compare the action descriptions in the alarm records with the feature keyword database to identify the main protection alarm signals with high confidence.

[0072] The microsecond-level absolute timestamp of the identified main protection alarm signal is extracted and defined as the reference zero point of the current event evolution process.

[0073] Based on the equipment coordinate mapping table, query the electrical bay ID and voltage level information of the equipment to which the main protection signal belongs to confirm its reference position in the power grid topology.

[0074] Filter out accompanying signals that are not part of the main protection, such as telemetry over-limits or auxiliary contact changes, to ensure the uniqueness and authority of the reference zero point.

[0075] Through the above processing method, the original alarm stream of the previous step is transformed into a main protection trigger event with a clear time base and topological anchor point, so as to accurately lock the starting point of the fault evolution path and provide a unified time reference system for subsequent interception of neighboring signals.

[0076] S2.2: Based on the microsecond-level hardware timestamp of the reference trigger event and the three-level topology information in the device coordinate mapping table, perform a topology neighborhood diffusion retrieval operation to determine the set of devices in the same topology neighborhood that include electrically directly connected devices, devices under the same protection device, and devices coupled across voltage levels.

[0077] The system receives the microsecond-level hardware timestamp and the device identifier of the reference trigger event, retrieves the plant ID, voltage level code and electrical bay index of the device in the device coordinate mapping table, and establishes the starting node for topology diffusion.

[0078] Based on the electrical bay index of the starting node, query the power grid topology connection matrix, extract all adjacent device nodes that are directly physically connected by conductors, and construct the first layer of electrically directly connected neighborhood set, covering adjacent components such as switches and bus PTs on the opposite side of the line.

[0079] Traverse the device identifiers in the first-level neighborhood set, match them with the protection device configuration table, and filter out the subordinate devices that belong to the same set of protection logic units or share the same GOOSE subscription relationship as the reference trigger device to form the second-level logical association neighborhood set.

[0080] Based on the power plant-voltage level hierarchy, identify cross-voltage level equipment that has a main transformer coupling relationship with the starting node, calculate the impedance mapping path between transformer windings, and include the relevant monitoring points on the high-voltage side and the low-voltage side into the third-level cross-level coupling neighborhood set.

[0081] Merge the above three-layer neighborhood sets, perform deduplication, remove duplicate device nodes, and generate a complete set of same-topology neighborhood devices that includes direct electrical connections, logical dependencies, and cross-level coupling relationships.

[0082] By using a topological neighborhood diffusion retrieval method, isolated baseline trigger events are transformed into a set of devices in the same topological neighborhood with clear physical boundaries and logical connections, thereby achieving precise definition of the spatial range of alarm signals and providing accurate device selection criteria for subsequent time window interception.

[0083] S2.3: Based on the set of devices in the same topology neighborhood and the time base of the reference trigger event, a bidirectional sliding time window interception strategy is executed to filter out all associated alarm records in the original alarm stream within the time span of the first 200ms to the last 200ms, so as to generate a preliminary time-domain neighborhood alarm signal set.

[0084] Receive microsecond-level timestamps of the set of devices in the same topology neighborhood and the reference trigger event, and establish a time-domain reference coordinate system with the moment of the main protection action as the absolute zero point.

[0085] Based on this reference coordinate system, the boundary parameters of the bidirectional sliding time window are defined, the forward backtracking interval is set to 200ms, the backward extension interval is set to 200ms, and a candidate signal capture window with a total span of 400ms is constructed.

[0086] Traverse the enhanced alarm stream data, extract the hardware timestamp of each alarm record, and calculate its time difference with the reference zero point. .

[0087] The following inequality logic is used to filter time differences, retaining only records within a time window that meet the conditions:

[0088]

[0089] in, This represents the time offset of the alarm signal relative to the main protection action. A negative value indicates a signal that precedes the main protection action, while a positive value indicates a signal that lags behind the main protection action.

[0090] The selected alarm records are intersected with the set of devices in the same topology, and irrelevant alarm signals that are within the time window but are not from devices in the same neighborhood are removed.

[0091] The retained associated alarm records are sorted in ascending order by timestamp to form a preliminary time-domain neighborhood alarm signal set with clear temporal relationships.

[0092] By using bidirectional sliding time window truncation and topology filtering, the discrete alarm streams across the entire network are transformed into a local signal subset focused on the core period of fault evolution, achieving the expected technical effects of noise suppression and key information focusing.

[0093] S2.4: Based on the measured communication link delay baseline recorded in the preliminary time-domain neighborhood alarm signal set and device coordinate mapping table, perform timing alignment compensation calculation to eliminate the inherent propagation delay caused by the difference in physical transmission distance, so as to obtain the corrected synchronized neighborhood alarm signal set.

[0094] Obtain the preliminary time-domain neighborhood alarm signal set and the measured communication link delay baseline from the device coordinate mapping table. Traverse each alarm record in the preliminary time-domain neighborhood alarm signal set and parse its source device identifier. Based on the source device identifier, retrieve the device coordinate mapping table and extract the measured communication link delay baseline value corresponding to that device. Read the microsecond-level hardware timestamp carried in the alarm record as the original reception time. Using a linear compensation method, subtract the measured communication link delay baseline from the original reception time to calculate the theoretical transmission time of the signal. Repeat the above delay subtraction operation for all neighborhood alarm records within the same event window. Replace the original timestamp with the calculated theoretical transmission time to generate a time stamp with a unified physical reference system. Reorder the neighborhood alarm signals according to the time difference between the theoretical transmission time and the main protection reference zero point. Through timing alignment compensation processing, transform the original reception timing from the previous step into a synchronized neighborhood alarm signal set that eliminates the effects of transmission lag, achieving accurate restoration of the fault evolution phase relationship.

[0095] S2.5: Perform structured encapsulation processing based on the corrected synchronized neighborhood alarm signal set, sort it according to the relative time offset and bind the topological distance weight label, load it into the phase fingerprint capture window buffer, so as to finally generate a standardized neighborhood response sequence to be encoded.

[0096] like Figure 3As shown, step S3 involves performing three-dimensional phase encoding on the neighborhood response sequence to be encoded, constructing an event phase fingerprint that includes phase offset encoding, consistency encoding, and harmonic modulation encoding. Specifically, this includes:

[0097] S3.1: Obtain the time difference data of each alarm signal in the neighborhood response sequence to be encoded relative to the reference zero point, and perform normalization mapping processing on the time difference data based on the theoretical electrical distance weight in the device coordinate mapping table to generate a standardized phase angle sequence, thereby eliminating the absolute time delay difference caused by physical distance under different voltage levels.

[0098] Receive the neighborhood response sequence to be encoded and extract the microsecond-level absolute time difference data of each alarm signal relative to the main protection reference zero point.

[0099] Call the device coordinate mapping table to retrieve the theoretical electrical distance weight parameters of the device to which each alarm signal belongs in the current sequence.

[0100] A normalized mapping function is constructed to calculate the ratio between the absolute time difference and the theoretical electrical distance weight, thereby eliminating the reference delay deviation caused by the difference in physical transmission path length.

[0101] Calculate the standardized phase angle; perform interval constraint processing on the calculated phase angle in the range [0, 2π), and map the values ​​outside the interval to the standard circular phase space through modulo operation.

[0102] Arrange the standardized phase angles corresponding to each alarm signal in chronological order to generate a standardized phase angle sequence that reflects the relative rhythm of fault evolution.

[0103] By using the above-mentioned normalization mapping process, the original time-domain response data from the previous step is transformed into a standardized phase angle sequence that eliminates physical distance interference, thereby achieving comparability of alarm signals in the phase dimension between different voltage levels and equipment locations, and providing a unified benchmark for subsequent consistency coding.

[0104] S3.2: Based on the standardized phase angle sequence and the mean vector of similar historical events, perform cosine similarity calculation to quantify the degree of agreement between the current response mode and the typical fault evolution mode and generate a consistency coding score, thereby identifying abnormal alarm signals that deviate from the normal evolution path.

[0105] Receive the normalized phase angle sequence generated by S3.1, and retrieve the mean vector of historical similar events that match the current event type from the lightweight topology delay adaptive anchoring library.

[0106] The standardized phase angle sequence is dimension aligned. If the current sequence length is inconsistent with the dimension of the historical mean vector, linear interpolation is used to extend the short sequence to a uniform dimension to ensure the consistency of the vector space.

[0107] A high-dimensional feature space is constructed to calculate the angle, and the standardized phase angle sequence is defined as the current response vector, while the average vector of similar historical events is defined as the baseline evolution vector.

[0108] Perform cosine similarity calculation and calculate the consistency coding score using the following formula. :

[0109]

[0110] in, The vector formed by the current normalized phase angle sequence. This is a vector of the average values ​​of similar historical events. Describes the L2 norm of a vector. This indicates transpose.

[0111] A threshold judgment is performed on the calculated consistency coding score, and 0.75 is set as the minimum consistency threshold. Signal sequences below this threshold are marked as abnormal candidates that deviate from the normal evolution path.

[0112] For alarm signals marked as abnormal, extract their position index in the phase angle sequence, combine it with the device coordinate mapping table to trace their physical topology location, and generate an abnormal deviation report.

[0113] By using cosine similarity quantification, the standardized phase angle sequence from the previous step is transformed into a consistency coding score that characterizes the degree of agreement between fault evolution patterns, thereby enabling accurate identification of the uncertainty in the attribution of alarm signals in dynamic events and rapid location of abnormal paths.

[0114] For example, in a 110kV line instantaneous ground fault scenario, after the main protection operates, a standardized phase angle sequence containing five neighboring devices is extracted [0, 0.45, 0.82, 1.2, 1.6]. The historical mean vector for this type of fault is retrieved from the anchoring library [0, 0.42, 0.85, 1.18, 1.58]. Substituting these values ​​into the formula, the numerator dot product is 4.98, and the denominator modulus product is 5.02, resulting in a consistency coding score of 0.992. This score is higher than the 0.75 threshold and is considered a high-confidence match. If a circuit breaker fails to operate, causing the phase angle to change to [0, 0.45, 1.5, 1.2, 1.6], the recalculated score is 0.81. Although still higher than the threshold, it is significantly lower. Based on this, the system marks the third signal as a potential anomaly, prompting maintenance personnel to pay attention to the device's response lag, significantly improving the targeted nature of fault diagnosis.

[0115] S3.3: Construct a short-time Fourier transform matrix using the time axis data of the neighborhood response sequence to be encoded, and perform spectral energy extraction processing on the 2 to 10 Hz frequency band to obtain the amplitude and phase parameters of the dominant harmonic components and form a harmonic modulation feature vector to reflect the rhythm modulation characteristics in multi-level protection coordination.

[0116] The discrete alarm timestamp data in the neighborhood response sequence to be encoded is received, mapped to a pulse signal function in the continuous time domain, and a local time-series energy distribution matrix centered on the reference zero point is constructed.

[0117] Windowing is applied to the local time-series energy distribution matrix, and the Hanning window function is selected to suppress spectral leakage. The window length is set to cover a complete 400ms event evolution cycle to ensure that the time-frequency resolution meets the capture requirements of 2-10Hz low-frequency modulation features.

[0118] A short-time Fourier transform is performed on the windowed time-series signal to convert the time-domain pulse sequence into a complex time-frequency domain spectrum, and the instantaneous amplitude and phase information of each frequency component on the time axis are extracted.

[0119] For the 2 to 10 Hz frequency band, spectral energy integration is performed. This frequency band corresponds to the typical rhythm range of multi-level protection device operation coordination and circuit breaker mechanical response. The normalized energy value of the dominant harmonic component is calculated using the following formula:

[0120]

[0121] in, For the spectral energy within a specified frequency band, This is the complex spectrum after the short-time Fourier transform. The starting frequency is 2Hz. The termination frequency is 10Hz.

[0122] Extract the top three dominant harmonic components with the highest energy proportion in this frequency band, record their center frequency, peak amplitude and initial phase angle relative to the reference zero point, and form a three-dimensional harmonic feature vector.

[0123] The three-dimensional harmonic feature vector is normalized to eliminate the absolute energy differences caused by different fault levels, while retaining the relative phase relationship and amplitude ratio that reflect the consistency of the protection action rhythm.

[0124] By using the above processing method, the timing response sequence of the previous step is transformed into a harmonic modulation feature vector that represents the linkage rhythm of multi-level devices, thereby realizing a quantitative description of the implicit temporal coupling relationship in the fault evolution process and significantly improving the distinguishability of event fingerprints under complex topologies.

[0125] S3.4: Based on the standardized phase angle sequence, consistency coding score and harmonic modulation feature vector, perform three-dimensional feature fusion encapsulation processing to construct a unique event phase fingerprint containing phase offset coding, consistency coding and harmonic modulation coding, which serves as the direct input object for subsequent anchor library matching search.

[0126] Step S4: Construct a lightweight topology delay adaptive anchoring library based on historical verification data. This lightweight topology delay adaptive anchoring library stores phase fingerprint templates. Specifically, it includes:

[0127] S4.1: Obtain a dataset of historical power failure cases that has been manually verified. Clean and cluster the event type labels, key alarm timing sequences, and original signal fingerprints contained in the dataset to extract a set of typical event patterns with statistical significance. Define the set of typical event patterns as a standard phase fingerprint prototype library.

[0128] Extract historical fault records marked as "confirmed valid" from the local case database, filter out the full sample set containing complete main protection action sequences, neighboring device response timings, and three-dimensional phase fingerprint vectors, and remove abnormal data with missing timestamps or incorrect topology indexes.

[0129] The filtered sample set is grouped based on event type, and samples of the same fault category (such as instantaneous line grounding and bus differential operation) are grouped into independent subsets to ensure that subsequent cluster analysis is carried out under the same physical mechanism constraint.

[0130] For each subset of event types, its phase offset encoding sequence is extracted, and the standardized phase angle vector is spatially distributed using the K-Means clustering algorithm. The number of cluster centers is set to the preset number of typical evolution paths, and the calculation is iterative until the sum of squared errors within the cluster converges.

[0131] The mean cosine similarity between the center vector of each cluster and all sample vectors within that cluster is calculated and used as the consistency confidence index of the typical pattern. Outlier clusters with a confidence score below 0.75 are removed, and the core pattern clusters with high cohesion are retained.

[0132] For the retained core mode clusters, the mean and covariance matrices of their harmonic modulation feature vectors are statistically analyzed, and a multidimensional Gaussian distribution model reflecting the rhythmic characteristics of this type of fault is constructed to quantify the degree of dispersion of harmonic features.

[0133] The phase offset center vector, consistency confidence index, and harmonic Gaussian distribution parameters of each core pattern cluster are encapsulated into a standard phase fingerprint prototype, assigned a unique prototype ID, and a standard phase fingerprint prototype library is formed.

[0134] Through the above-mentioned cleaning and clustering processes, unstructured historical fault data is transformed into a statistically representative standard phase fingerprint prototype library, realizing the digital abstraction of typical fault evolution patterns and providing high-purity benchmark data for the subsequent generation of phase fingerprint templates that do not contain causal logic.

[0135] S4.2: Based on each typical event pattern in the standard phase fingerprint prototype library, the phase offset code, consistency code and harmonic modulation code are vector-recombined using the three-dimensional phase coding reconstruction method to generate a phase fingerprint template that does not contain causal logical derivation relationship, and the phase fingerprint template is used as the basic storage unit of the anchor library.

[0136] S4.3: For each generated phase fingerprint template, calculate and initialize the topology distance attenuation coefficient based on the substation voltage level and electrical bay topology distance of its associated equipment, so as to quantify the impact of equipment response dispersion on phase matching weight under different voltage levels, and bind the topology distance attenuation coefficient to the corresponding phase fingerprint template.

[0137] Obtain the substation voltage level identifier and electrical bay topology distance data of the associated equipment in the phase fingerprint template, and use them as the basic input parameters for calculating the topology distance attenuation coefficient.

[0138] The device coordinate mapping table is parsed, and the voltage level code of each alarm signal source device is extracted. Different voltage levels are mapped to standardized level weight factors to distinguish the physical inertia differences between high-voltage and low-voltage devices in fault response.

[0139] The shortest electrical path length between the source device and the reference zero point device in the topology model is read, and the theoretical electrical distance reflecting the degree of physical obstruction to signal propagation is calculated by combining the impedance value per unit length in the line impedance parameter library.

[0140] A decay function model based on voltage level discreteness and electrical distance nonlinearity is constructed. An exponential decay form is used to quantify the suppression effect of distance on phase matching weight, ensuring that the weak response of long-distance or cross-level equipment does not excessively interfere with the identification of core fault characteristics.

[0141] The topological distance attenuation coefficient is calculated using the following formula:

[0142]

[0143] in, This is the topological distance attenuation coefficient. This is the theoretical electrical distance value. As a distance penalty factor, For voltage level weighting factors, is a standardized constant.

[0144] The calculated topological distance attenuation coefficient is written into the attribute field of the phase fingerprint template to establish a dynamic binding relationship between fingerprint features and topological environment, so that the subsequent matching process can adaptively adjust the sensitivity of similarity calculation according to the actual power grid structure.

[0145] Through the above processing method, the static phase fingerprint template generated in the previous step is transformed into a dynamic matching unit with topology awareness, which realizes the accurate quantification of the discreteness of device response under different voltage levels and electrical distances, and significantly improves the robustness of hierarchical aggregation under complex power grid structures.

[0146] S4.4: Based on the measured delay baseline data of the historical communication link corresponding to the phase fingerprint template, statistically analyze the delay fluctuation range caused by communication channel aging, calculate and initialize the link delay drift tolerance band, set the maximum allowable time axis offset threshold during phase matching, and bind the link delay drift tolerance band to the phase fingerprint template with the associated topology distance attenuation coefficient.

[0147] S4.4 Based on the measured delay baseline data of the historical communication link corresponding to the phase fingerprint template, statistically analyze the delay fluctuation range caused by communication channel aging, calculate and initialize the link delay drift tolerance band, set the maximum allowable time axis offset threshold during phase matching, and bind the link delay drift tolerance band to the phase fingerprint template with the associated topology distance attenuation coefficient.

[0148] Extract the measured delay sequence of the communication link of the phase fingerprint template associated device within the historical verification period. This sequence contains microsecond-level timestamp difference records of the SCADA channel.

[0149] Outlier removal is performed on the measured delay sequence. The interquartile range method is used to identify and remove extreme outliers caused by network congestion or packet loss and retransmission, while retaining the effective delay sample set within the normal statistical distribution range.

[0150] The arithmetic mean of the effective delay sample set is calculated as the baseline communication delay, and its standard deviation is calculated to quantify the dispersion of the delay data and reflect the stability characteristics of the communication channel.

[0151] A calculation model for the link delay drift tolerance band is constructed by introducing confidence interval coefficients, and the tolerance band boundary is determined by the following formula:

[0152]

[0153] in, For the link delay drift tolerance bandwidth, As a confidence level adjustment factor, To effectively delay the standard deviation of the sample set, This is the minimum resolution compensation constant for the system.

[0154] Based on the real-time requirements of power system protection actions, the initial value of the confidence adjustment factor is set to 3 to cover 99.7% of normal communication fluctuations and ensure that the tolerance band has sufficient robustness.

[0155] The calculated link delay drift tolerance band value is bound to the topological distance attenuation coefficient generated in the previous steps in a data structured manner to form a complete phase fingerprint template object containing spatiotemporal dual constraint parameters.

[0156] By using the above processing method, the static topology parameters of the previous step are transformed into dynamic delay adaptation indicators, which realizes the quantitative tolerance of the impact of communication channel aging and network jitter, and significantly improves the anti-interference capability of phase matching in complex power grid environments.

[0157] S4.5: Integrate all phase fingerprint templates of bound topology distance attenuation coefficients and link delay drift tolerance bands, perform index structure optimization and memory mapping loading operations to build a lightweight topology delay adaptive anchoring library with online parameter update capabilities, and output the lightweight topology delay adaptive anchoring library for subsequent matching search steps.

[0158] The system receives a set of parameter-bound phase fingerprint templates as the basic data units for constructing a lightweight topology delay adaptive anchoring library. Hash index mapping is performed on the phase fingerprint templates to extract the energy centroids of the main frequency component and harmonic modulation feature vector of the phase offset encoding sequence, generating unique template identifiers. An inverted index structure is constructed based on these unique template identifiers, aggregating templates with similar topology distance attenuation coefficient ranges into the same index bucket to accelerate candidate set selection efficiency in subsequent matching searches. Memory alignment optimization is performed on the index structure, using a columnar storage format to store the phase fingerprint vector, topology distance attenuation coefficient, and link delay drift tolerance band separately, reducing CPU cache miss rate and improving data read throughput. A dynamic parameter update interface is established, binding atomic operation locks to each template to ensure thread safety when correcting the topology distance attenuation coefficient and link delay drift tolerance band online, preventing data races caused by concurrent writes. The optimized index structure and template data are loaded into a shared memory region, achieving zero-copy data access between kernel mode and user mode through a memory-mapped file mechanism, reducing I / O overhead. Through the above processing method, discrete phase fingerprint templates are transformed into a lightweight topology delay adaptive anchoring library with high-speed retrieval capabilities and online update characteristics, realizing low-latency response and dynamic parameter adaptation in the alarm collection and matching process.

[0159] Step S5: Match the event phase fingerprint with the phase fingerprint template. When the phase sequence similarity, consistency score, and harmonic modulation feature KL divergence simultaneously meet the preset threshold conditions, output a high-confidence matching result. Specifically, this includes:

[0160] S5.1: Based on the phase fingerprint of the event to be matched and the phase fingerprint template in the lightweight topology delay adaptive anchoring library, obtain the phase offset encoding sequence contained in both, and perform periodic traversal comparison processing on the phase offset encoding sequence using a cyclic shift alignment mechanism to eliminate the phase truncation error caused by the difference in the starting point of the time axis, and generate a set of reference phase difference values ​​optimized by time alignment.

[0161] The phase offset encoding sequence from the phase fingerprint of the event to be matched and the reference phase sequence of the candidate template in the anchoring library are obtained as the initial input data for time alignment processing. Periodic extension processing is performed on the phase offset encoding sequence to construct a circular buffer queue of length 2N, where N is the original sequence length, to eliminate the boundary discontinuity effect caused by linear truncation. A sliding window mechanism is used to traverse all possible starting phase points on the circular buffer queue, calculating the sum of the absolute values ​​of the point-by-point differences between the sequence within the current window and the reference template sequence, generating an initial phase deviation vector set. A dynamic time warping algorithm is introduced to perform a nonlinear path search on the initial phase deviation vector set to find the optimal alignment path with the minimum cumulative distance, compensating for local temporal distortion caused by communication jitter. Based on the optimal alignment path, the corresponding phase offset correction is extracted, and a reverse translation operation is performed on the original phase offset encoding sequence to generate a reference phase difference set optimized for time alignment. Through cyclic shift alignment and nonlinear path search processing, the original phase sequence from the previous step is transformed into a reference phase difference set that eliminates starting point differences and temporal distortion, achieving the expected technical effect of high-precision time matching.

[0162] S5.2: Based on the aforementioned benchmark phase difference set, the topological distance attenuation coefficient bound to the phase fingerprint template is introduced as a weighting factor, and weighted cosine similarity calculation is performed to quantify the consistency between the current event response pattern and the historical typical pattern in terms of relative phase relationship, and output the first-dimensional matching score that characterizes the phase sequence similarity.

[0163] The system receives a set of reference phase difference values ​​generated by S5.1. This set contains the relative phase offset sequence between the phase fingerprint of the event to be matched and the candidate templates in the anchoring library after cyclic shifting and alignment. It extracts the topological distance attenuation coefficient bound to the candidate phase fingerprint templates. This coefficient characterizes the influence of the device response discreteness under different voltage levels and electrical intervals on the phase matching weight. A cosine similarity calculation model based on topological distance weighting is constructed, mapping the reference phase difference sequence into a high-dimensional space vector, and introducing the topological distance attenuation coefficient as a weighting factor for each dimension component.

[0164] The process iterates through each phase point pair in the reference phase difference set, retrieves the corresponding topological distance attenuation coefficient based on the device's hierarchical position in the power grid topology, and performs a weighted summation operation on the phase offset product term. The weighted magnitudes of the sequence to be matched and the template sequence are calculated separately. Normalization is used to eliminate the interference of signal amplitude differences on the similarity measurement, outputting a first-dimensional matching score that quantifies the consistency between the current event response mode and historical typical modes in relative phase relationship. Through weighted cosine similarity calculation, the reference phase difference set from the previous step is transformed into a first-dimensional matching score representing the phase sequence similarity, achieving adaptive compensation for topological delay differences and accurate quantification of alarm signal attribution.

[0165] S5.3: Based on the consistency encoding vector in the phase fingerprint of the event to be matched and the historical mean vector stored in the phase fingerprint template, perform high-dimensional space cosine operation to evaluate the deviation of the current neighborhood device response sequence from the standard evolution path, and output the second-dimensional consistency score representing the degree of matching of the response pattern.

[0166] Extract the consistency encoding vector from the phase fingerprint of the event to be matched. This vector is generated by mapping the standardized phase angle sequence to the historical mean and represents the temporal distribution of the response of the current neighboring devices.

[0167] The historical mean vector corresponding to the current candidate template is retrieved from the lightweight topology delay adaptive anchoring library. This vector is derived based on the phase angle statistical average of historical cases of similar faults and represents the ideal response mode under the standard evolution path.

[0168] The L2 norm normalization process is performed on the consistency coding vector and the historical mean vector to eliminate the interference of vector magnitude difference on the angle calculation and ensure that the similarity measurement depends only on directional consistency rather than signal strength.

[0169] The cosine similarity method in high-dimensional space is used to calculate the cosine value of the angle between two normalized vectors.

[0170] The calculated cosine value is mapped to the [0,1] interval to generate a second-dimensional consistency score. This score directly reflects the degree to which the current alarm sequence deviates from the standard evolution path. The higher the score, the smaller the deviation.

[0171] By processing the high-dimensional space cosine angle, the vector data from the previous step is transformed into a second-dimensional consistency score that represents the degree of agreement between response patterns, thus realizing a quantitative assessment of the uncertainty of alarm signal attribution in the evolution of dynamic events.

[0172] S5.4: Based on the harmonic modulation coded spectrum in the phase fingerprint of the event to be matched and the reference harmonic distribution model in the phase fingerprint template, extract the amplitude and phase information of the dominant harmonic components in the 2 to 10 Hz frequency band, perform probability distribution difference measurement processing to reflect the statistical discreteness of the multi-level protection coordination rhythm characteristics, and output the third-dimensional KL divergence value characterizing the difference of harmonic modulation characteristics.

[0173] The system receives harmonic modulation coded spectral line data from the phase fingerprint of the event to be matched and the reference harmonic distribution model of the corresponding template in the anchoring library, extracting the amplitude and phase information of the dominant harmonic components in the 2 to 10 Hz frequency band. Probability density function fitting is performed on the extracted harmonic components to transform the discrete spectral energy distribution into a continuous probability distribution curve, eliminating statistical noise interference caused by sampling jitter. Based on the fitted current event probability distribution and the template reference probability distribution, a Kohlbek-Leibler divergence calculation model is constructed to quantify the statistical dispersion of the two in the multi-level protection coordination rhythm characteristics. The third-dimensional KL divergence value is calculated, and non-negativity constraint checks and smoothing are performed on the calculated KL divergence value to ensure that the output reflects the true rhythm characteristic differences rather than numerical calculation errors. Through probability distribution difference measurement, the harmonic spectrum data from the previous step is transformed into a third-dimensional KL divergence value characterizing the statistical dispersion of the multi-level protection coordination rhythm characteristics, realizing a quantitative assessment of the consistency of equipment response rhythm during fault evolution.

[0174] S5.5: Based on the first dimension matching score, the second dimension consistency score, and the third dimension KL divergence value, combined with the preset phase sequence similarity threshold, consistency score threshold, and harmonic modulation feature KL divergence upper limit condition, perform multi-constraint logic AND gate decision processing to filter out candidate records that simultaneously meet all dimension indicators, and output a unique high-confidence matching result and its corresponding event category label.

[0175] The system receives the first-dimensional matching score, second-dimensional consistency score, and third-dimensional KL divergence value output from steps S5.1 to S5.4 as input parameters for multi-constraint logic decision-making. A three-dimensional feature space vector is constructed, mapping phase sequence similarity, consistency score, and harmonic modulation difference to independent dimensional coordinates. A hard constraint boundary condition is formed by setting the phase sequence similarity threshold to 0.82, the consistency score threshold to 0.75, and the upper limit of the harmonic modulation feature KL divergence to 0.3. Parallel logic AND gates are executed on all candidate templates in the anchoring library, comparing each dimension indicator to see if it falls within the preset threshold range. Candidate records with any dimension indicator exceeding the boundary are eliminated, narrowing the high-confidence matching candidate set. If only one record remains in the candidate set, it is determined to be a successful high-confidence match, and the event category label corresponding to that record is extracted. If the candidate set is empty, it is determined to be no match, triggering the subsequent anchoring incubation process. If the candidate set contains multiple records, the comprehensive distance metric of each candidate record is calculated, and the record with the smallest distance is selected as the optimal matching result. By using multi-constraint logic AND gate decision processing, the multi-dimensional similarity index of the previous step is transformed into a unique high-confidence matching result and event category label, thereby achieving accurate positioning of alarm signal attribution in dynamic event evolution and solving the problem of aggregation uncertainty.

[0176] For example, in a scenario of a transient ground fault on a 110kV line, S5.2 outputs a phase sequence similarity of 0.89, S5.3 outputs a consistency score of 0.81, and S5.4 outputs a KL divergence of 0.12. The system reads preset thresholds: similarity ≥ 0.82, consistency ≥ 0.75, and KL divergence ≤ 0.3. A logical AND operation is performed: 0.89 ≥ 0.82 is true, 0.81 ≥ 0.75 is true, and 0.12 ≤ 0.3 is true. If all three conditions are met, the candidate template "110kV line single-phase ground fault" is determined to be a high-confidence match. If another candidate template has a similarity of 0.85 but a KL divergence of 0.35, it is directly rejected because 0.35 > 0.3, which does not meet the upper limit condition. Finally, a unique match result is output, the event category is marked as "110kV line single-phase ground fault", and the confidence level is high, ensuring the accuracy of alarm aggregation.

[0177] Step S6: Based on the high-confidence matching result, perform source deduplication and type merging processing on all alarm signals within the current window to generate standardized event objects containing event type labels, key alarm timing sequences, and confidence levels. Specifically, this includes:

[0178] S6.1: Obtain the original alarm signal sequence and corresponding high-confidence matching results within the current time window, construct a homogeneous signal index table based on the device's unique identifier and the type of protection element, perform microsecond-level timestamp clustering analysis on the original alarm signal sequence, identify multiple records that are repeatedly triggered by the same device under the same protection element within a 200-millisecond time threshold as redundant homogeneous signals, and output a preliminary deduplication signal set containing only a single first-trigger record.

[0179] Receive the original alarm signal sequence within the current time window and the high-confidence matching result output in step S5. The matching result includes event category labels and the associated set of topological neighboring devices.

[0180] Based on the device's unique identifier and the protection element type field, a homogeneous signal index table is constructed to map alarm records triggered by different protection logic units under the same physical device to a unified device node ID, thereby eliminating signal fragmentation caused by the actions of multiple elements within the protection device.

[0181] Microsecond-level hardware timestamps are extracted from each record in the original alarm sequence, and the records are grouped and clustered according to the device node ID to form local time series clusters based on the device.

[0182] For each local time series cluster, the time interval difference between two adjacent alarm records is calculated, and 200ms is set as the threshold for determining the same source redundancy. This threshold covers the maximum jitter time of the circuit breaker's mechanical action and the holding time of the protection relay re-closing coil.

[0183] Traverse the local time series cluster. If multiple consecutive records are detected with a time interval of less than 200ms and the same action type or logical subordinate relationship, they are determined to be redundant signals from the same source.

[0184] The earliest timestamp in the cluster is retained as the initial trigger baseline, and all subsequent redundant records are removed to ensure that each device contributes only one valid time point in a single failure event.

[0185] Through the above microsecond-level timestamp clustering and threshold filtering, the original messy signal set from the previous step is transformed into a deduplicated preliminary signal set, thereby simplifying the alarm source and unifying the time series benchmark, providing a clean data foundation for subsequent criticality classification.

[0186] S6.2: Receive the preliminary deduplication signal set, perform attribute discrimination processing on each signal in the set according to the preset power system fault criticality classification rules, determine non-core protection action signals such as telemetry over-limit and minor frequency fluctuations as non-critical signals, use event association mapping logic to modify the status bits of the non-critical signals to auxiliary event item markers, and retain core signals such as main protection actions and circuit breaker tripping as independent alarm items, and generate a classification marker signal set containing independent alarm items and auxiliary event items.

[0187] Receive the initial deduplication signal set output by S6.1. This dataset contains independent alarm records after removing redundant data from the same source, along with their microsecond-level timestamps and device topology attributes.

[0188] A fault severity classification rule base for power systems is constructed, and alarm signals are divided into three levels based on the impact weight of protection actions on grid stability: core protection actions, auxiliary status changes, and environmental disturbance auxiliary signals.

[0189] Iterate through each record in the initial deduplication signal set, extract its signal type identifier and action description fields, match the feature keywords in the rule base, and identify core signals with high causal determinism, such as main protection tripping and circuit breaker opening and closing.

[0190] For the remaining records that were not identified as core signals, their telemetry value change rate and frequency fluctuation amplitude were further analyzed, and their deviation from the baseline operating state was calculated.

[0191] By using event association mapping logic, a time proximity index is established between non-critical signals and the nearest core protection action. The status bits of such non-critical signals are modified to "subsidiary event item" tags and bound to the corresponding main protection event ID.

[0192] All signals identified as core protection actions and circuit breaker status changes are retained, and their status bits are marked as "independent alarm items" to ensure the integrity of the fault evolution backbone information.

[0193] The integrated and tagged signal set generates a categorized tagged signal set containing independent alarm items and associated event items, clearly distinguishing the fault trigger source from the accompanying phenomenon.

[0194] Through the above-mentioned hierarchical discrimination and labeling process, the deduplication result of the previous step is transformed into a set of classification label signals with a semantic hierarchical structure, realizing the separation of primary and secondary alarm information, significantly reducing data noise interference in subsequent time-series reconstruction, and improving the accuracy of fault core path identification.

[0195] S6.3: Based on the classification and labeling signal set, extract the timestamps and action types of all independent alarm items, perform time-series reorganization operation in chronological order, remove interference data that has been marked as auxiliary event items, construct a key alarm time-series sequence that only reflects the core path of fault evolution, and bind the key alarm time-series sequence with the event category information in the high-confidence matching result to form a core time-series data packet with event type labels.

[0196] S6.4: Read the core time-series data packet and the phase similarity score and consistency score in the matching process, use a weighted fusion method to calculate the comprehensive confidence value of the current aggregation result, encapsulate the comprehensive confidence value, event type label, key alarm time sequence and topology path information into a unified data structure, and generate a standard case object that meets the standardized format requirements and contains a complete fault feature description.

[0197] Read the key alarm action sequence from the core time-series data packet, and extract the phase sequence similarity score, consistency score, and harmonic modulation KL divergence value output from step S5 as the original input vector for confidence calculation.

[0198] A multidimensional weighted fusion model was constructed, and weight coefficients were assigned according to the differences in the discriminative power of each dimension feature in fault identification. The phase sequence similarity weight was set to 0.5, the consistency score weight was set to 0.3, and the harmonic modulation feature weight was set to 0.2.

[0199] The overall confidence level is calculated using the following formula:

[0200]

[0201] in, To assess the overall confidence level, , , These are the weights for each dimension. For phase sequence similarity, For consistency score, This is the KL divergence for harmonic modulation.

[0202] The calculated overall confidence score is normalized to the [0,1] interval. If the score is lower than the preset threshold of 0.85, the case is marked as a low confidence pending review state; otherwise, it is marked as a high confidence confirmed state.

[0203] Obtain the topology path information corresponding to the current event, including the starting fault point, the chain of protection action devices, and the affected load nodes, and serialize it into a JSON format topology description string.

[0204] Create a standardized event object data structure and instantiate a field container containing event ID, timestamp, event type label, key alarm time series array, topology path description, comprehensive confidence score, and original fingerprint hash value.

[0205] The normalized overall confidence score, event type label, sorted key alarm time sequence, and topology path description string are filled into the above field container to complete the data encapsulation.

[0206] Perform integrity checks on the encapsulated instance object to ensure that all required fields are not empty and that the data types conform to the schema definition, and generate the final standard instance object.

[0207] By using a weighted fusion method and structured encapsulation, the discrete matching indicators from the previous step are transformed into standard case objects with complete semantic descriptions, thereby achieving standardized output of alarm collection results and building the data foundation for subsequent parameter correction.

[0208] S6.5: Obtain the standard case object, serialize and encode the standard case object according to the unified case database writing format, write the encoded data stream into the case database to continuously accumulate and form a high-quality alarm case dataset, and start a periodic sampling mechanism to manually verify and evaluate the quality of the accumulated cases, and convert the verification results into labeled training samples for subsequent large model fine-tuning.

[0209] The system receives a standard case object generated by S6.4. This object contains event type labels, key alarm timing sequences, topology path information, and a comprehensive confidence score. JSON serialization encoding is performed on the standard case object to convert the structured data into a UTF-8 encoded byte stream, ensuring data integrity and platform independence during storage and transmission. A time-sharded case database write index is constructed, using a microsecond-level hardware timestamp as the primary key, combined with the plant ID and voltage level to generate a composite index key, optimizing subsequent retrieval efficiency. The serialized byte stream is asynchronously written to the distributed case database, using an append-only write mode to avoid lock contention and ensure continuous accumulation to form a high-quality alarm case dataset. A periodic sampling mechanism is initiated, randomly selecting collected case samples from the database at preset time window intervals. A manual verification interface is introduced, where domain experts evaluate the accuracy of the event category labels, the logical consistency of key alarm timing sequences, and the rationality of the topology path for each sampled case. Verification results are recorded, including correct, incorrect, and deviation type identifiers, and the verification feedback data is converted into labeled training samples. The above processing method transforms the results of the previous step into a structured training dataset with quality labels, thereby achieving closed-loop verification of the aggregation effect and providing data for fine-tuning of the large model.

[0210] Step S7: Update the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library based on the standardized case object to complete the collection of power alarm signals. Specifically, this includes:

[0211] S7.1: Obtain the key alarm timing data and actual time offset in the standardized case object, and extract the residual sequence between the actual time offset and the reference phase fingerprint template stored in the lightweight topology delay adaptive anchoring library to generate an initial error vector for parameter correction.

[0212] Parse the standardized case object, read the key alarm timing sequence contained therein, and extract the microsecond-level absolute timestamp of each independent alarm item and its corresponding device topology coordinate index.

[0213] Based on the equipment coordinate mapping table, the theoretical electrical distance weight of each alarm device relative to the main protection reference zero point is queried. Combined with the measured communication link delay baseline, the expected arrival time of each signal under the current physical architecture is calculated.

[0214] The actual microsecond-level timestamp is subtracted from the expected arrival time to obtain the measured time offset of each neighborhood response signal, forming the actual phase response vector of the current event.

[0215] Retrieve a baseline phase fingerprint template that matches the current event category label from the lightweight topology delay adaptive anchoring library, and read the standard phase angle sequence and the corresponding standard time offset mean stored in the template.

[0216] Perform element-wise subtraction between the actual phase response vector and the standard phase response vector, calculate the deviation between the two on the time axis, and construct the original residual sequence.

[0217] The initial error components of all neighboring devices are arranged in topological order and combined into a multidimensional initial error vector, which represents the spatiotemporal deviation of the current event response pattern from the historical typical pattern.

[0218] Through the above residual extraction and vectorization processing, the standardized case objects generated in the previous step are transformed into an initial error vector reflecting the dynamic time delay deviation, realizing the accurate quantization of the error signal required for the correction of the aggregation parameters, and providing high-fidelity input data for subsequent sliding window filtering and exponential decay correction.

[0219] S7.2: Calculate the statistical distribution characteristics of the neighborhood response deviation based on the initial error vector, and use the sliding window mean filtering method to smooth the neighborhood response deviation in order to eliminate instantaneous communication jitter interference and generate a stable deviation correction factor.

[0220] S7.3: Construct an exponential decay weighting function based on the deviation correction factor, and perform a weighted fusion operation on the deviation correction factor at the current moment and the historical cumulative correction amount to generate a dynamic update increment value for the topological distance decay coefficient.

[0221] S7.4: The dynamic update increment value is used to perform an iterative correction operation on the topology distance attenuation coefficient bound in the lightweight topology delay adaptive anchoring library. At the same time, the correction topology distance attenuation coefficient is subjected to amplitude limiting processing according to the preset boundary constraints of the link delay drift tolerance band to generate an updated topology distance attenuation coefficient.

[0222] The system receives the dynamically updated incremental value for the topology distance attenuation coefficient generated by S7.3 and loads it as an input parameter into the parameter correction engine of the lightweight topology delay adaptive anchoring library. It then calls the currently successfully matched phase fingerprint template in the anchoring library and reads the historical topology distance attenuation coefficient baseline value bound to it. An exponential iterative correction model is constructed, and the historical baseline value and the dynamically updated incremental value are weighted and fused to calculate the preliminary corrected median value of the topology distance attenuation coefficient.

[0223] Obtain the preset link delay drift tolerance band boundary constraints, which define the physically valid value range of the topology distance attenuation coefficient, including a minimum threshold of 0.5 and a maximum threshold of 0.95. Perform a limiting processing logic judgment on the median value of the initially corrected topology distance attenuation coefficient. If the median value is less than the minimum threshold, the updated topology distance attenuation coefficient is forcibly set to the minimum threshold. If the median value is greater than the maximum threshold, the updated topology distance attenuation coefficient is forcibly set to the maximum threshold. If the median value is between the minimum and maximum thresholds, the median value is directly adopted as the final result.

[0224] Through the above iterative correction and bidirectional amplitude limiting processing, the dynamic update increment of the previous step is transformed into an updated topology distance attenuation coefficient with physical constraint consistency, so as to achieve the expected technical effect of maintaining the stability of topology weight while adapting to changes in communication delay.

[0225] S7.5: Based on the updated topology distance attenuation coefficient, the adaptation range of the link delay drift tolerance band is derived in reverse. The adaptation range is written into the lightweight topology delay adaptive anchoring library to replace the original link delay drift tolerance band, thereby completing the dynamic adaptive optimization of the collection parameters and outputting a phase fingerprint template with the latest timeliness.

[0226] The updated topology distance attenuation coefficient output from step S7.4 is received and used as the baseline input variable for deriving the link delay drift tolerance band. Based on the physical characteristics of the power communication network, a nonlinear mapping relationship between the topology distance attenuation coefficient and the link delay fluctuation range is established to determine the dynamic adjustment boundary of the tolerance band. Proportional-integral-derivative (PID) control logic is used to calculate the weight of the impact of the current attenuation coefficient change on communication delay jitter, generating the initial tolerance band offset. The calculated tolerance band value is compared and verified with the system's preset safety upper and lower limits. If it exceeds the upper limit, it is truncated to the maximum allowable value; if it is below the lower limit, it is increased to the minimum protection value, ensuring that the parameters are within the physically feasible range. The verified adaptation range is written into the parameter storage area of ​​the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library, overwriting the original static tolerance band configuration. Closed-loop dynamic optimization of the collected parameters is completed, outputting a phase fingerprint template with the latest timeliness and adaptability to the current power grid operating state.

[0227] For those skilled in the art, various other corresponding changes and modifications can be made based on the technical solutions and concepts described above, and all such changes and modifications should fall within the protection scope of the claims of this invention.

[0228] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains. The terms “first,” “second,” “third,” and similar terms used in this patent application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the elements or objects preceding “comprising” or “including” encompass the elements or objects listed following “comprising” or “including” and their equivalents, and do not exclude other elements or objects. The “multiple” mentioned in the embodiments of this application refers to two or more. A and / or B indicate three possibilities: A; B; and A and B.

[0229] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A multi-level power alarm signal collection method based on power signal characteristics, characterized in that, Specifically, it includes: S1: Obtain SCADA alarm flow data from the power grid, process the alarm flow data, and generate an equipment coordinate mapping table by combining the three-level topology structure of substation-voltage level-electrical bay; S2: Based on the device coordinate mapping table, identify the main protection alarm signal as the reference zero point, extract the alarm signal set of the same topology neighboring device within the time window, and input the alarm signal set into the phase fingerprint capture window to generate the neighborhood response sequence to be encoded; S3: Perform three-dimensional phase encoding processing on the neighborhood response sequence to be encoded to construct an event phase fingerprint that includes phase offset encoding, consistency encoding and harmonic modulation encoding; S4: Construct a lightweight topology delay adaptive anchoring library based on historical verification data. The lightweight topology delay adaptive anchoring library stores phase fingerprint templates. S5: Match the event phase fingerprint with the phase fingerprint template. When the phase sequence similarity, consistency score and harmonic modulation feature KL divergence simultaneously meet the preset threshold conditions, output a high-confidence matching result. S6: Based on the high-confidence matching results, perform source deduplication and similar-type merging processing on all alarm signals in the current window to generate standardized case objects containing event type labels, key alarm timing sequences, and confidence levels. S7: Update the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library based on the standardized case object to complete the collection of power alarm signals.

2. The multi-level power alarm signal collection method based on power signal characteristics according to claim 1, characterized in that, The device coordinate mapping table includes theoretical electrical distance weights and measured communication link delay baselines.

3. The multi-level power alarm signal collection method based on power signal characteristics according to claim 1, characterized in that, The phase fingerprint template is bound to two online adjustable parameters: topology distance attenuation coefficient and link delay drift tolerance band.

4. The multi-level power alarm signal collection method based on power signal characteristics according to claim 3, characterized in that, S4 specifically includes: Obtain a dataset of historical power failure cases that has been manually verified, clean and cluster the dataset to extract a set of typical event patterns, and define the set of typical event patterns as a standard phase fingerprint prototype library. Based on each typical event pattern in the standard phase fingerprint prototype library, the phase offset code, consistency code, and harmonic modulation code are vector-recombined to generate a phase fingerprint template that does not contain causal logical derivation relationships. For each generated phase fingerprint template, the topology distance attenuation coefficient is calculated and initialized based on the substation voltage level and electrical interval topology distance of its associated equipment, and the topology distance attenuation coefficient is bound to the corresponding phase fingerprint template; Based on the measured delay baseline data of the historical communication link corresponding to the phase fingerprint template, the delay fluctuation range caused by communication channel aging is statistically analyzed, the link delay drift tolerance band is calculated and initialized, and the link delay drift tolerance band is bound to the phase fingerprint template. Integrate all phase fingerprint templates of bound topology distance attenuation coefficients and link delay drift tolerance bands, perform index structure optimization and memory mapping loading operations to build a lightweight topology delay adaptive anchoring library.

5. The multi-level power alarm signal collection method based on power signal characteristics according to claim 4, characterized in that, The process of cleaning and clustering the historical power failure event dataset to extract a set of typical event patterns includes: The event type labels, key alarm timing sequences, and original signal fingerprints contained in the historical power failure case dataset are cleaned and clustered to extract a set of statistically significant typical event patterns.

6. The multi-level power alarm signal collection method based on power signal characteristics according to claim 4, characterized in that, S5 specifically includes: Based on the event phase fingerprint and phase fingerprint template to be matched, the phase offset encoding sequence contained in the two is obtained, and the phase offset encoding sequence is subjected to periodic traversal comparison processing to generate a reference phase difference set. Based on the benchmark phase difference set, the topological distance attenuation coefficient bound to the phase fingerprint template is introduced as a weighting factor, and weighted cosine similarity calculation is performed to output the first-dimensional matching score that represents the phase sequence similarity. The consistency encoding vector in the phase fingerprint of the event to be matched is calculated with the historical mean vector stored in the phase fingerprint template, and the second-dimensional consistency score representing the degree of matching of the response pattern is output. The harmonic modulation encoded spectral lines in the phase fingerprint of the event to be matched are processed with the reference harmonic distribution model in the phase fingerprint template, and the third-dimensional KL divergence value representing the difference in harmonic modulation characteristics is output. Based on the first dimension matching score, the second dimension consistency score, and the third dimension KL divergence value, combined with the preset phase sequence similarity threshold, consistency score threshold, and harmonic modulation feature KL divergence upper limit condition, a multi-constraint logic AND gate decision process is performed to output a unique high-confidence matching result.

7. The multi-level power alarm signal collection method based on power signal characteristics according to claim 6, characterized in that, The periodic traversal comparison process performed on the phase-offset encoded sequence is carried out using a cyclic shift alignment method.

8. The multi-level power alarm signal collection method based on power signal characteristics according to claim 6, characterized in that, The consistency encoding vector in the phase fingerprint of the event to be matched is calculated with the historical mean vector stored in the phase fingerprint template, specifically by performing a high-dimensional space cosine angle operation.

9. The multi-level power alarm signal collection method based on power signal characteristics according to claim 6, characterized in that, The process of matching the harmonic modulation coded spectral lines in the phase fingerprint of the event to be matched with the reference harmonic distribution model in the phase fingerprint template includes: The amplitude and phase information of the dominant harmonic components are extracted from the harmonic modulation encoded spectral lines in the phase fingerprint of the event to be matched and the reference harmonic distribution model in the phase fingerprint template, and the probability distribution difference measurement processing is performed.

10. A multi-level power alarm signal collection system based on power signal characteristics, characterized in that, A method for performing multi-level power alarm signal collection based on power signal characteristics as described in any one of claims 1-9, comprising: The data preprocessing and coordinate mapping module is used to acquire power grid SCADA alarm flow data, preprocess the alarm flow data, and construct and generate an equipment coordinate mapping table based on the three-level topology structure of substation-voltage level-electrical bay. The neighborhood signal interception and sequence generation module is communicatively connected to the data preprocessing and coordinate mapping module. It is used to identify the main protection type alarm signal based on the device coordinate mapping table and use it as the reference zero point. It intercepts the set of device alarm signals in the same topological neighborhood within a preset time window and inputs the alarm signal set into a preset phase fingerprint capture window to generate a neighborhood response sequence to be encoded. The three-dimensional phase encoding and fingerprint construction module is communicatively connected to the neighborhood signal interception and sequence generation module. It is used to perform three-dimensional phase encoding processing on the response sequence of the neighborhood to be encoded, and respectively complete phase offset encoding, consistency encoding and harmonic modulation encoding to construct the event phase fingerprint of the corresponding alarm event. The template library construction module is used to build a lightweight topology delay adaptive anchoring library based on historical power alarm verification data. The lightweight topology delay adaptive anchoring library stores phase fingerprint templates corresponding to various power alarm events. The fingerprint matching and verification module is communicatively connected to the three-dimensional phase encoding and fingerprint construction module and the template library construction module, respectively. It is used to match and search the real-time generated event phase fingerprint with the phase fingerprint template in the lightweight topology delay adaptive anchoring library. When the three indicators of phase sequence similarity, consistency score and harmonic modulation feature KL divergence all meet the corresponding preset threshold conditions, a high-confidence matching result is output. The alarm collection and processing module is communicatively connected to the fingerprint matching and verification module. It is used to perform source deduplication and type merging processing on all alarm signals in the current time window according to the high confidence matching result, and generate standardized case objects carrying event type labels, key alarm timing and confidence parameters. The template library iteration update module is communicatively connected to the alarm collection and processing module and the template library construction module, respectively. It is used to iteratively update the corresponding phase fingerprint template in the lightweight topology delay adaptive anchoring library based on the generated standardized case objects, so as to complete the intelligent collection of multi-level power alarm signals.