A deep learning-based power line impulse noise real-time prediction method and system
By using deep learning-based hierarchical causal discovery and spatiotemporal graph attention mechanisms, combined with neural ordinary differential equations and physically constrained neural operators, the problem of insufficient prediction accuracy of traditional power line impulse noise processing methods under complex operating conditions is solved, achieving efficient and accurate noise prediction.
Patent Information
- Application Number
- CN202611235737.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2026-04-13
- Filing Date
- 2026-08-14
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional power line impulse noise processing methods lack in-depth exploration of the complex spatiotemporal causal relationships and dynamic physical mechanisms of multi-load interaction inherent in noise generation and propagation, resulting in insufficient prediction accuracy under complex and ever-changing real-world operating conditions.
We employ a deep learning-based approach, using a hierarchical causal discovery mechanism for causal discovery, combined with a spatiotemporal graph attention mechanism for feature extraction and drift detection, to generate an optimized feature set of interference events. We then use neural ordinary differential equations and physically constrained neural operators for noise prediction, and combine a feedback optimization strategy for collaborative learning and optimization.
It achieves efficient and accurate prediction of power line impulse noise, improves the reliability and accuracy of real-time noise prediction, and conforms to the basic physical laws of electromagnetic propagation.
Smart Images

Figure CN123139072A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of power line communication technology, and more specifically, to a method and system for real-time prediction of power line impulse noise based on deep learning. Background Technology
[0002] Power line communication (PLC) technology utilizes existing power lines for data transmission, but its channel environment is harsh, especially with impulse noise, which is characterized by its suddenness, high amplitude, and non-stationarity. This is a major factor limiting its reliability and high-speed transmission. However, traditional impulse noise processing methods often have certain limitations.
[0003] Specifically, traditional methods mostly treat noise arrival as a simple random process or only utilize the local temporal characteristics of the noise waveform. They often lack in-depth exploration of the complex spatiotemporal causal relationships and dynamic physical mechanisms of multi-load interaction inherent in noise generation and propagation, resulting in insufficient prediction accuracy when dealing with complex and ever-changing real-world conditions. Summary of the Invention
[0004] To address the shortcomings of existing technologies, embodiments of the present invention provide a method and system for real-time prediction of power line impulse noise based on deep learning, in order to solve at least one of the aforementioned technical problems in the prior art.
[0005] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows:
[0006] In a first aspect, the present invention provides a method for real-time prediction of power line impulse noise based on deep learning, comprising:
[0007] Obtain the original power line dataset, perform causal discovery based on the hierarchical causal discovery mode mechanism, and simultaneously combine the original power line dataset to detect interference events, thereby generating the original interference event set.
[0008] Based on the spatiotemporal graph attention mechanism, feature extraction is performed on the original set of interference events to generate a set of interference event features, and drift detection is performed according to the working condition drift detection mechanism to obtain the drift detection results.
[0009] Based on the drift detection results, the interference event feature set is optimized to generate an optimized interference event feature set. Based on the optimized interference event feature set, noise prediction is performed to generate a noise prediction result.
[0010] The feedback data of the noise prediction results is obtained, and a feedback optimization strategy is generated in combination with a preset hierarchical optimization mechanism. Based on the feedback optimization strategy, collaborative learning and optimization are performed.
[0011] In one possible implementation of the first aspect, the original power line dataset is obtained, causal discovery is performed based on a hierarchical causal discovery mechanism, and interference event detection is performed simultaneously in conjunction with the original power line dataset to generate an original interference event set, including:
[0012] Obtain the original power line dataset, perform causal mining based on the hierarchical causal mining pattern mechanism, and obtain the causal pattern graph.
[0013] Based on the aforementioned causal pattern diagram, phase space reconstruction is performed simultaneously using the delayed coordinate embedding method to generate a reconstructed phase space.
[0014] Each detected complete transient process is encapsulated into an event to form a basic event data unit;
[0015] The basic event data unit includes at least the original signal segment, phase space trajectory, causal pattern diagram and corresponding timestamp within the event time window;
[0016] The original signal segments in the basic event data unit are subjected to short-time Fourier transform, and coarse classification is performed based on their frequency domain characteristics to generate coarse event classification labels.
[0017] The basic event data units are encapsulated with coarse event classification labels to generate the original set of interference events.
[0018] In one possible implementation of the first aspect, the original power line dataset is obtained, and causal discovery is performed based on a hierarchical causal discovery pattern mechanism to obtain a causal pattern graph, including:
[0019] The hierarchical causal discovery mechanism is represented by automatically selecting the causal discovery mode based on the number of observation points collected simultaneously.
[0020] If there are multiple synchronous observation points, then enter multi-node mode;
[0021] In the multi-node mode, a convergent cross-mapping algorithm is used to perform causal discovery on multi-channel time-series signals, calculate the causal delay time between signal pairs, and construct a real causal graph.
[0022] The real causal graph is used to characterize the causal topology and delay relationship of noise propagation in the network;
[0023] If only a single observation point exists, then enter single-node mode;
[0024] In single-node mode, by combining the preset load knowledge graph and the characteristics of transient signals, the number of virtual noise sources and their causal delays are inferred, and a virtual causal graph is generated.
[0025] The causal pattern diagram is represented as a real causal diagram or a virtual causal diagram under different causal discovery modes.
[0026] In one possible implementation of the first aspect, features are extracted from the original set of disturbance events based on a spatiotemporal graph attention mechanism to generate a set of disturbance event features, and drift detection is performed according to a working condition drift detection mechanism to obtain drift detection results, including:
[0027] Each state point in the phase space trajectory contained in the original set of disturbance events is defined as a graph node, and the connection edges between nodes are established according to their corresponding causal pattern graph to generate a dynamic spatiotemporal graph sequence.
[0028] A pre-trained spatiotemporal graph attention transformer is used to encode the spatiotemporal graph sequence to generate a feature vector of interference events;
[0029] By combining a multilayer perceptron regression head, the feature vector of the interference event is mapped in real time to generate a time-varying parameter set based on queuing theory;
[0030] The time-varying parameter set includes at least arrival rate, service rate, and Erlang order;
[0031] The interference event feature vector, time-varying parameter set, and attention weights of each node are encapsulated into an interference event feature set for output.
[0032] While performing feature extraction, drift detection is performed based on a historical interference event feature buffer to generate drift detection results.
[0033] In one possible implementation of the first aspect, while performing feature extraction, drift detection is performed based on a historical interference event feature buffer to generate drift detection results, including:
[0034] For each newly arrived interference event sample, obtain the Mahalanobis distance between its interference event feature vector and the corresponding historical distribution in the historical interference event feature buffer;
[0035] Statistical change analysis is performed on the coarse classification labels of the interference event samples to obtain the coarse classification change results;
[0036] If the Mahalanobis distance exceeds the preset threshold and the coarse classification change result reaches the preset working condition offset condition, then the corresponding working condition drift label is set to indicate that a working condition offset has occurred.
[0037] Otherwise, newly arrived interference event samples are judged as having no operating condition deviation, and the corresponding operating condition drift label is set to have no operating condition deviation.
[0038] The operating condition drift label and the corresponding interference event feature set are encapsulated into a drift detection result and output.
[0039] In one possible implementation of the first aspect, the interference event feature set is optimized based on the drift detection result to generate an optimized interference event feature set, and noise prediction is performed based on the optimized interference event feature set to generate a noise prediction result, including:
[0040] For interference events in the drift detection results where the working condition drift label indicates a shift in working condition, samples of similar interference events within the latest time window are used as the support set.
[0041] A meta-learning algorithm is used to quickly optimize and generate a set of parameter base values that are adapted to the working conditions of the interference events that cause the working condition deviation.
[0042] The interference event feature set is optimized based on the parameter base values to generate an optimized interference event feature set;
[0043] The noise prediction of the optimized interference event feature set is performed by using a fusion network of ordinary differential equations and gated network to obtain the initial noise prediction result.
[0044] The initial noise prediction result is corrected for physical consistency based on the physical constraint neural operator to generate a new noise prediction result.
[0045] In one possible implementation of the first aspect, feedback data of the noise prediction result is obtained, and a feedback optimization strategy is generated in conjunction with a preset hierarchical optimization mechanism. Collaborative learning and optimization are then performed based on the feedback optimization strategy, including:
[0046] The noise prediction results are compared and analyzed with the actual observation results to obtain the prediction accuracy dataset, which is then used as feedback data.
[0047] If the feedback data shows that the prediction of new types of interference events fails, meta-learning is initiated, and the first feedback optimization strategy is generated simultaneously by combining the latest samples with large prediction errors.
[0048] If the feedback data shows that the prediction performance for known interference patterns is gradually declining, federated learning is triggered to simultaneously aggregate the gradients of multiple terminals to generate a second feedback optimization strategy.
[0049] Collaborative learning and optimization are performed based on the first and second feedback optimization strategies.
[0050] Secondly, embodiments of the present invention also provide a real-time prediction system for power line impulse noise based on deep learning, comprising:
[0051] The event detection module is used to perform causal discovery and interference event detection on the original power line dataset to generate an original interference event set.
[0052] The feature extraction module is used to extract features from the original set of interference events to generate a set of interference event features;
[0053] A drift detection module is used to perform drift detection according to the working condition drift detection mechanism and obtain drift detection results;
[0054] A noise prediction module is used to optimize the interference event feature set based on the drift detection result, and to perform noise prediction based on the optimized interference event feature set to generate a noise prediction result.
[0055] The feedback optimization module is used to obtain feedback data of the noise prediction results, generate a feedback optimization strategy in combination with a preset hierarchical optimization mechanism, and perform collaborative learning and optimization based on the feedback optimization strategy.
[0056] An electronic device, characterized in that it comprises: a memory and a processor;
[0057] The memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory to implement the steps of the real-time prediction method for power line impulse noise based on deep learning provided in the embodiments of the present invention.
[0058] A computer-readable storage medium is characterized in that it is used to store a computer program, which, when executed by a processor, implements a real-time prediction method for power line impulse noise based on deep learning provided in the embodiments of the present invention.
[0059] Compared with the prior art, the present invention has the following beneficial effects:
[0060] The original power line dataset is obtained, and causal discovery is performed based on the hierarchical causal discovery model mechanism. Simultaneously, interference event detection is performed in combination with the original power line dataset to generate the original interference event set. This step provides a high-quality data foundation that balances physical meaning and statistical consistency for subsequent steps through the discovery of causal patterns.
[0061] Based on the spatiotemporal graph attention mechanism, features are extracted from the original set of interference events to generate a set of interference event features. Drift detection is performed according to the working condition drift detection mechanism to obtain the drift detection results. This step achieves accurate modeling of the spatiotemporal dependency of noise events through the spatiotemporal graph attention mechanism, and actively identifies changes in system state by performing working condition drift detection, thereby improving the reliability of real-time noise prediction.
[0062] The interference event feature set is optimized based on the drift detection results to generate an optimized interference event feature set. Noise prediction is then performed based on the optimized interference event feature set to generate a noise prediction result. This step uses a meta-learning mechanism to quickly adapt to new interference types and combines neural ordinary differential equations and physically constrained neural operators to correct the prediction results, so that the final generated noise prediction result is not only smooth and reliable, but also conforms to the basic physical laws of electromagnetic propagation.
[0063] The feedback data of the noise prediction results is obtained, and a feedback optimization strategy is generated by combining the preset hierarchical optimization mechanism. Based on the feedback optimization strategy, collaborative learning and optimization are carried out, and finally, efficient and accurate prediction of power line impulse noise is achieved. Attached Figure Description
[0064] Figure 1 This is a flowchart of the steps of a real-time prediction method for power line impulse noise based on deep learning according to the present invention.
[0065] Figure 2 This is a schematic diagram of a real-time prediction system for power line impulse noise based on deep learning, according to the present invention. Detailed Implementation
[0066] To make the technical solution of the present invention clearer and its technical advantages more apparent, the technical solution of the present invention will be clearly and completely described below in conjunction with specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of the present invention.
[0067] It should be noted that, in this document, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of the present invention. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will understand, explicitly and implicitly, that the embodiments described herein can be combined with other embodiments.
[0068] The present invention will now be described in detail with reference to the accompanying drawings. Figure 1 This is a flowchart of the steps of a real-time prediction method for power line impulse noise based on deep learning according to the present invention. The following is a detailed description of this real-time prediction method for power line impulse noise based on deep learning.
[0069] Step S1: Obtain the original power line dataset, perform causal discovery based on the hierarchical causal discovery mechanism, and simultaneously combine the original power line dataset to detect interference events, generating the original interference event set.
[0070] In this embodiment, step S1 includes:
[0071] Step S1-1: Conduct causal discovery based on the hierarchical causal discovery model mechanism.
[0072] Specifically, the hierarchical causal discovery mechanism is represented by automatically selecting the causal discovery mode based on the number of observation points collected simultaneously.
[0073] If multiple synchronous observation points exist, then enter multi-node mode:
[0074] In the multi-node mode, a convergent cross-mapping algorithm is used to perform causal discovery on multi-channel time-series signals, calculate the causal delay time between signal pairs, and construct a real causal graph. The real causal graph is used to characterize the causal topology and delay relationship of noise propagation in the network.
[0075] If only a single observation point exists, then enter single-node mode:
[0076] In single-node mode, by combining the preset load knowledge graph and the characteristics corresponding to transient signals, the number of virtual noise sources and their causal delays are inferred to generate a virtual causal graph. The causal pattern graph is represented as a real causal graph or a virtual causal graph under different causal discovery modes.
[0077] In one possible embodiment, discrete time series of raw voltage or current signals in the power line network are acquired at a constant sampling rate and used as the raw power line dataset. Deployment pattern recognition is performed based on the number P of available observation points in the system that support precise time synchronization. If P ≥ 2, it is determined that multi-view observation capability is currently available, and the system automatically enters multi-node mode. In multi-node mode, a convergent cross-mapping algorithm is used to perform causal discovery on the acquired multi-channel time series signals and calculate the causal delay time between signal pairs, thereby constructing a true causal graph that reveals the main propagation path of noise and the time delay topology of noise propagation along the power lines.
[0078] For example, suppose there are three observation points: observation point A located at the distribution box, observation point B located at the wall socket in the living room, and observation point C located on the dedicated air conditioning line. The signal sequences from these three points are collected simultaneously. , , The convergent cross-mapping algorithm is used to analyze the geometry of attractors in the reconstructed phase space of two time series, thereby inferring their causal direction and strength. For example, calculating... Can past states be better predicted? Given the current state, the causal direction is quantitatively determined by calculating the CCM convergence coefficients of all observation point pairs, specifically the CCM convergence coefficients of the three observation point pairs {AB, AC, BC}. Assuming the calculation results show... The state can be significantly predicted and The ability to predict the future state is weak, and there is a specific delay that allows predictive skills to peak, such as the delay from C to B. For 15 sampling points, the delay from C to A There are 40 sampling points; ultimately, all the information is aggregated to construct a directed weighted graph, in which nodes represent observation points {A, B, C}, and from the nodes... Pointing to node Directed edges are used to represent yes The causal source is defined by the edge weight, which is the corresponding causal delay. .
[0079] If only one available observation point is detected, i.e., P=1, the system automatically switches to single-node mode. This mode corresponds to more common application scenarios such as monitoring based solely on smart meters or a single PLC modem, where the input is only a single-point signal. In this mode, a lightweight statistical detector, such as a sliding window variance detector, monitors the signal energy in real time. When the signal variance within the window exceeds a preset multiple of the baseline variance during the silent period, it is determined that a transient period has begun, triggering subsequent processing. Then, a pre-trained virtual causal graph generator is invoked to receive the feature vector corresponding to the current transient signal segment. The feature vector includes at least the short-time spectral envelope, zero-crossing rate, rise time, and pulse width. For example, a feature vector is used to characterize a narrowband pulse train with obvious spectral lines at 2MHz, 10MHz, and 18MHz, and its rise time is approximately 50 nanoseconds. The virtual causal graph generator outputs an inferred virtual causal graph through forward computation. This virtual causal graph reconstructs a hypothetical multi-source interference scenario by modeling virtual nodes and the delay relationships between nodes, providing a corresponding causal structure for subsequent operations.
[0080] For example, a virtual cause-effect graph contains the following three virtual nodes, each representing an inferred noise source: Node V1 corresponds to a switching power supply with a delay of... Set to 0 as a reference; node V2, corresponding to its secondary reflection or coupling interference, delay There are 25 sampling points; background noise node V3 represents a potential cause that precedes the main event, such as the synchronous action of downstream devices.
[0081] It should be noted that the virtual causal graph generator is represented as a graph neural network model trained based on a preset noise knowledge graph. The noise knowledge graph is used to encode the typical characteristics of noise generated by various electrical appliances such as variable frequency air conditioners, switching power supplies, and inductive motors. For example, the noise of a variable frequency air conditioner is usually manifested as a high-frequency periodic pulse train with a steep rising edge; while the ignition noise of an old fluorescent lamp ballast is manifested as a broadband damped oscillating pulse with energy concentrated in the lower frequency band. Its pre-training process includes two stages: general load characterization training and supervised fine-tuning training.
[0082] In the general load representation training phase, positive sample pairs are constructed by performing data augmentation operations such as adding small time delays and noise on signal samples of the same category in the noise knowledge graph, and negative sample pairs are constructed on signals of different categories. The training aims to maximize the similarity of features of positive sample pairs and minimize the similarity of negative sample pairs.
[0083] In the supervised fine-tuning training phase, firstly, various loads and their theoretical causal interactions are randomly combined from the noise knowledge graph. For example, "air conditioner startup" is the "main cause," and its harmonics may "cause" secondary disturbances in the switching power supply on the same line, generating a theoretical virtual causal graph and corresponding multi-source noise mixing parameters. Then, combined with the power line channel simulation model, the above multi-source noise mixing parameters are synthesized into a single-point mixed noise signal, thereby constructing a training pair of {single-point mixed noise signal, theoretical virtual causal graph}. Training is performed using main loss functions including cross-entropy loss, binary cross-entropy loss, and smoothed L1 loss. The cross-entropy loss is used to ensure that the virtual causal graph generator correctly infers the number of virtual noise sources and their load type distribution; the binary cross-entropy loss is used to determine whether there is a causal edge between each pair of virtual nodes and compare it with the true value of the theoretical graph; the smoothing L1 loss is used to ensure that the predicted causal delay value corresponding to the existing causal edge is close to the theoretical value; and during the training process, domain knowledge is introduced to prevent the generation of physically impossible causal graphs. For example, based on electric field waveguide theory, a maximum reasonable propagation speed is set, and the minimum delay corresponding to the physical distance between virtual nodes is calculated. If the predicted delay is less than this value, a loss is generated.
[0084] Step S1-2: Detect interference events based on the original power line dataset.
[0085] Specifically, based on the causal pattern diagram, phase space reconstruction is performed simultaneously using the delayed coordinate embedding method to generate a reconstructed phase space. Each detected complete transient process is encapsulated as an event to form a basic event data unit. The basic event data unit includes at least the original signal segment within the event time window, the phase space trajectory, the causal pattern diagram, and the corresponding timestamp.
[0086] Furthermore, a short-time Fourier transform is performed on the original signal segments in the basic event data unit, and coarse classification is performed based on their frequency domain characteristics to generate coarse event classification labels. The basic event data unit and the coarse event classification labels are then encapsulated to generate the original interference event set.
[0087] In one possible implementation, firstly, phase space reconstruction is performed; specifically, for the actual observation points in multi-node mode... Its optimal delay The optimal delay is calculated based on the causal delays corresponding to all causal edges pointing to it. For example, by taking the average of the causal delays corresponding to the causal edges pointing to it, the optimal delay for B in the above three observation pairs {AB, AC, BC} is... For virtual nodes in single-node mode, their latency values are directly given by the virtual cause-effect graph, such as... =0, =25; The pseudo-nearest neighbor method is used to gradually increase the dimension and observe whether the pseudo-nearest neighbors of each point disappear, thereby finding the minimum dimension that can fully unfold the attractor; Subsequently, the phase space vector is constructed using the coordinate delay method. Taking the single-node mode as an example, based on the delay of virtual nodes V1 and V2, the original signal is... Perform multi-scale reconstruction to generate a fused phase space trajectory. This vector sequence constitutes a complete trajectory in the state space.
[0088] Next, using an event as the basic analysis unit, the event is represented as a complete transient process highlighted from background noise. The start and end timestamps of the event are marked by a transient detector, and all data within the corresponding time window of the event are acquired and encapsulated into a basic event data unit. This basic event data unit includes at least: the original signal segment, i.e., an array of original voltage sample values within the time window corresponding to the start and end timestamps; the phase space trajectory, i.e., a reconstructed sequence of state vectors corresponding to the same time period; the causal pattern diagram used in this event analysis; and the corresponding timestamps, i.e., the absolute start time, end time, and duration of the event.
[0089] Then, for the original signal segments in the basic event data unit, its short-time Fourier transform is calculated to obtain a time-frequency matrix. A set of frequency domain features is extracted from this time-frequency matrix, and a classification feature vector is generated based on the frequency domain features. For example, a classification feature vector includes features such as the spectral centroid, spectral bandwidth, energy proportion within the pulse band, and the number and spacing of harmonic components. A lightweight classifier based on support vector machine or random forest is used to process the classification feature vector and output a probability distribution of the current event type. For example, the classifier may output a probability distribution: [motor type: 0.75, switch type: 0.20, arc type: 0.05, unknown: 0.00]. The category corresponding to the highest probability and the corresponding probability value are used as the coarse classification label and its confidence level of the event and attached to the basic event data unit to generate the original interference event set.
[0090] It should be noted that the lightweight classifier based on support vector machines or random forests is trained on a pre-built and labeled power line noise event dataset. This dataset includes motor-related noise event samples such as transient and steady-state noise from air conditioner compressors and washing machine motors starting and stopping; switch-related noise event samples such as phase-cutting noise caused by relay closing / opening and SCR dimming; arc-related noise event samples such as intermittent spark discharge noise from loose connections; and other noise events such as lightning-induced surges and strong coupling interference from adjacent lines, used to represent events not included in the training dataset. Unknown noise event samples of interference patterns that have been seen or are difficult to classify; wherein the feature vector corresponding to each noise event sample contains at least three types of features, such as pulse rise time, fall time, pulse width, peak factor, and waveform factor, as well as frequency domain features and time-frequency domain features. The frequency domain features are represented by extracting features such as spectral centroid, spectral roll-off point, harmonic distortion, and energy proportion of a specific frequency band by performing STFT and power spectral density estimation on the event segment. The time-frequency domain features are represented by extracting features such as spectral flux and subband energy correlation from the time-spectrum graph of the event.
[0091] The lightweight classifier is trained using a strategy that combines ensemble learning and adversarial training. Specifically, it uses a gradient boosting decision tree as the base classifier. During training, it applies small perturbations to the input feature vector using methods such as the fast gradient sign method to generate adversarial samples. The classifier is progressively trained based on the original samples and corresponding adversarial samples in the training data using a course learning strategy.
[0092] The loss function used in the training process can be expressed as: ,in, The weighted cross-entropy loss term can be expressed as: The For category The true label, For the predicted category The probability, For the weights of each category, for example, Set to the reciprocal of the proportion of samples in this category to the total number of samples; This is represented as the confidence calibration loss term, which replaces the original hard labels such as [1,0,0,0] with soft labels such as [0.9,0.033,0.033,0.034] by introducing label smoothing technology, and calculates the KL divergence by combining it with the output of the lightweight classifier; This is represented as an open-set recognition loss term, which uses OpenMax loss and simultaneously incorporates a pre-defined uncertainty regularization term to encourage the output probability distribution of unknown class noise event samples to be as uniform as possible. , , Then these are the hyperparameters of the corresponding loss term.
[0093] Step S2: Based on the spatiotemporal graph attention mechanism, feature extraction is performed on the original set of interference events to generate a set of interference event features, and drift detection is performed according to the working condition drift detection mechanism to obtain the drift detection results.
[0094] In this embodiment, step S2 includes:
[0095] Step S2-1: Extract features from the original set of interference events.
[0096] Specifically, each state point in the phase space trajectory contained in the original set of interference events is defined as a graph node, and the connection edges between nodes are established according to their corresponding causal pattern graph to generate a dynamic spatiotemporal graph sequence. A pre-trained spatiotemporal graph attention transformer is used to encode the spatiotemporal graph sequence to generate interference event feature vectors.
[0097] Furthermore, by combining a multilayer perceptron regression head, the feature vector of the interference event is mapped in real time to generate a time-varying parameter set based on queuing theory. The time-varying parameter set includes at least arrival rate, service rate, and Erlang order.
[0098] The interference event feature vector, time-varying parameter set, and attention weights of each node are encapsulated into an interference event feature set for output.
[0099] In one possible embodiment, each state vector in the phase space trajectory is defined as a graph node. That is, assuming that the phase space trajectory corresponding to an original interference event sample contains T time steps, and the state vector of each time step is composed of D dimensions, then the graph structure of the event will contain T nodes, and the feature of each node is its corresponding D-dimensional phase space coordinates. For example, for an event with 100 sampling points, 3 virtual sources inferred in single-node mode, and an embedding dimension of 5, its phase space trajectory is composed of 100 time steps × (3 virtual sources × 5 dimensions). Then the spatiotemporal graph constructed based on this trajectory will have 100 nodes, and each node has a 15-dimensional feature vector.
[0100] The edges in the causal pattern graph are transformed into spatial connections between nodes in a spatiotemporal graph. For example, in a real causal graph, if observation point A is the cause of observation point B, the causal delay between them is... In the spacetime graph, node A, representing the state of observation point A at time t, will be connected to node B, representing the state of observation point B at time t+1. Node B represents the state at a given time; similarly, in a virtual causal graph, if virtual source V2 is the result of V1, the causal delay between them... =25, then the node feature component representing V1 in the spatiotemporal graph will be connected to the node feature component representing V2 25 steps later; based on the above graph node definition and edge connection transformation operation, an original disturbance event is represented as a dynamic spatiotemporal graph sequence.
[0101] The spatiotemporal graph sequence is encoded using a pre-trained spatiotemporal graph attention transformer, and a multilayer perceptron regression head is connected after the spatiotemporal graph attention transformer. The multilayer perceptron regression head performs global average pooling on the features of all nodes in the last time step to generate the corresponding interference event feature vector. Subsequently, the interference event feature vector is input into a multilayer perceptron containing several fully connected layers and activation functions to generate a time-varying parameter set containing at least arrival rate, service rate, and Erlang order. The arrival rate is represented as the average number of pulses arriving per unit time, used to reflect the activity frequency of the noise source. The service rate is represented as the reciprocal of the pulse duration, used to reflect the width of a single noise event. The Erlang order is represented as the order of the Erlang distribution describing the burstiness or smoothness of the arrival process. When the order is 1, it is a Poisson process; when the order is >1, it indicates more regular arrival; and when the order is <1, it indicates more burstiness. For example, for a typical switching power supply noise event, a high arrival rate is output to characterize frequent switching actions, a medium service rate is output to characterize pulses with a certain width, and a low Erlang order is output to characterize burstiness of arrival.
[0102] It should be noted that the spatiotemporal graph attention transformer is represented as a neural architecture encoder based on spatiotemporal attention blocks, where each spatiotemporal attention block contains a spatial self-attention layer and a temporal self-attention layer.
[0103] The spatial self-attention layer allows each node to aggregate information from other nodes causally connected to it in the spatiotemporal graph through an attention mechanism. When calculating attention weights, for each node in the graph, attention weights are calculated based on its query vector and the key vectors of all nodes. The calculation of attention weights is not only based on the feature similarity between nodes, but also constrained by the mask of the relevant adjacency relationship in the causal pattern graph. That is, only the attention weight of node j that has a causal connection with node i is calculated. For example, node i, which represents the state of a virtual source at time t, will mainly focus on the states of its causal parent node and child node at time t, thereby learning the instantaneous interaction patterns between different noise sources.
[0104] The temporal self-attention layer allows the same node to interact between states at different historical moments. That is, the feature sequence of a node at all time steps {1,...,T} is extracted and input into a standard temporal Transformer layer, thereby capturing long-term temporal evolution patterns such as the correlation between pulses in a burst or the complete dynamic process of a noise event from occurrence to dissipation.
[0105] The spatiotemporal graph attention transformer employs a masking autoencoder strategy for pre-training. Its training samples consist of unlabeled noise event waveforms collected from long-term monitoring in actual power line environments, as well as synthetic event data generated through high-fidelity simulation models, covering various typical load combinations and network topologies. In each training iteration, the input spatiotemporal graph sequence is randomly masked. For example, for a graph sequence containing 100 nodes, each with a feature dimension of 15, 40 nodes are randomly masked. The features of these 40 nodes at all time steps are replaced with a shared, learnable mask token. Subsequently, based on the features of the unmasked nodes, the location information of the masked nodes, and the causal topology of the entire graph, the original feature values of the masked nodes are reconstructed, and mean squared error loss is used as the loss function for the pre-training process.
[0106] Step S2-2: Perform drift detection according to the working condition drift detection mechanism.
[0107] Specifically, for each newly arrived interference event sample, the Mahalanobis distance between its interference event feature vector and the corresponding historical distribution in the historical interference event feature buffer is obtained; statistical change analysis is performed on the coarse classification label of the interference event sample to obtain the coarse classification change result.
[0108] If the Mahalanobis distance exceeds the preset threshold and the coarse classification change result reaches the preset working condition offset condition, then the corresponding working condition drift label is set to indicate that a working condition offset has occurred.
[0109] Otherwise, newly arrived interference event samples are judged as having no operating condition deviation, and the corresponding operating condition drift label is set to have no operating condition deviation.
[0110] Understandably, the historical interference event feature buffer stores the interference event feature vectors of the most recent N events under normal operating conditions in a first-in-first-out queue, and the historical interference event feature buffer contains the empirical distribution under the currently recognized normal or baseline operating conditions.
[0111] Furthermore, the operating condition drift label and the corresponding interference event feature set are encapsulated into a drift detection result for output.
[0112] In one possible implementation, firstly, for each newly arrived and processed event, the Mahalanobis distance between the event and the historical distribution in the historical event feature buffer is calculated based on the corresponding interference event feature vector, thereby quantifying the degree of deviation of the current event from the historical distribution. A larger Mahalanobis distance indicates that the pattern of the current event is significantly different from the historical norm.
[0113] Next, the average Mahalanobis distance and the proportion of events exceeding the dynamic threshold are calculated within a sliding time window. For example, the average Mahalanobis distance within the time window corresponding to the most recent 50 events is calculated, as well as the proportion of events exceeding the 95th percentile of the historical distribution. At the same time, the statistical changes in the coarse classification labels of events within the same time window are analyzed. For example, the difference between the proportion of each category of events in the current window and the proportion in a longer baseline window is calculated by using the chi-square test or by calculating the JS divergence.
[0114] When the average Mahalanobis distance of multiple consecutive detection windows is consistently higher than the baseline, and the proportion of events exceeding the dynamic threshold consistently exceeds the preset threshold, and at the same time, the distribution of event coarse classification labels undergoes statistically significant and continuous changes, such as the proportion of previously rare "arc" events continuously increasing from 5% to 30%, it is determined that a working condition deviation has occurred, and the corresponding working condition drift label is set to indicate that a working condition deviation has occurred.
[0115] Step S3: Optimize the interference event feature set according to the drift detection results to generate an optimized interference event feature set; perform noise prediction based on the optimized interference event feature set to generate a noise prediction result.
[0116] Specifically, for interference events in the drift detection results where the operating condition drift label indicates an operating condition shift, samples of similar interference events within the latest time window are used as a support set. A meta-learning algorithm is employed to quickly optimize and generate a set of parameter base values that adapt to the operating conditions of interference events with operating condition shifts based on the support set. The interference event feature set is then optimized based on the parameter base values to generate an optimized interference event feature set.
[0117] Furthermore, a fusion of neural ordinary differential equations and gated networks is used to perform noise prediction on the optimized interference event feature set to obtain initial noise prediction results. Based on physical constraint neural operators, physical consistency correction is performed on the initial noise prediction results to generate noise prediction results.
[0118] In one possible implementation, firstly, for disturbance events in the drift detection results labeled as "operating condition shift," a parameter adapter trained using a model-independent meta-learning algorithm is employed. Multiple recently occurring event samples belonging to the new dominant category are used as a support set. The parameter adapter performs a few gradient updates based on this support set and outputs a set of time-varying parameter base values. For example, for a newly emerging high-frequency motor disturbance, an arrival rate base value of 500 pulses / s and a service rate base value of 0.01 might be generated. The Erlang order base value is 0.8, which is used to characterize high arrival rate, pulse width of about 100us, and sudden arrival. The weighted fusion of the base value of the time-varying parameter and the value of the corresponding real-time time-varying parameter set generates an optimized time-varying parameter set, thereby completing the optimized adaptation of the feature set of the interference event corresponding to the interference event that causes the operating condition deviation.
[0119] It should be noted that the training data for the parameter adapter is represented as an offline event sample set containing various heterogeneous operating conditions such as purely resistive loads, intensive motor starts, and switching power supply dominance. Each heterogeneous operating condition is considered an independent learning task, and each task contains a support set and a query set. The training strategy of model-independent meta-learning is optimized in two nested loops. Specifically, in the inner loop, the parameter adapter performs a few gradient updates on the support set of a single task to quickly adapt to that specific task. In the outer loop, after the parameters are updated, training is performed with the goal of achieving the best overall performance on the query sets of all tasks after the rapid adaptation in the inner loop. For each task, after adaptation in the inner loop, the mean square error between the predicted time-varying parameter set and the true time-varying parameter set is calculated on the query set. By minimizing this loss, the small-sample generalization ability of the parameter adapter is maximized, thereby ensuring that when operating condition drift is detected, the time-varying parameter base values can be quickly generated in combination with the support set.
[0120] Next, a quantile regression network is introduced, taking the optimized time-varying parameter set, the feature vector of the interference event, and the query for future time steps as input. It outputs multiple conditional quantile estimates of the noise amplitude at future times, thereby obtaining the conditional quantile distribution of the noise amplitude. For example, the quantile regression network simultaneously predicts that at 1ms in the future, the 50%, 90%, and 99% quantiles of the noise amplitude A are 0.2V, 0.5V, and 1.2V, respectively. That is, it predicts that at that future time, there is a 50% probability that the noise amplitude will not exceed 0.2V, a 90% probability that it will not exceed 0.5V, and a 99% probability that it will not exceed 1.2V. Through the output... The amplitudes corresponding to multiple probability levels from low to high represent the complete conditional probability distribution of future noise amplitudes. The training of the quantile regression network uses a quantile loss function, which assigns asymmetric weights to the prediction errors of different target quantiles. For example, when optimizing the 90th quantile, the penalty for the actual amplitude exceeding the predicted value is much greater than the penalty for the actual amplitude falling below the predicted value. The prediction residuals of the quantile regression network at extreme quantiles of 99.9% or higher are modeled separately. For example, it is assumed that the statistical properties of the prediction residuals of these extreme quantiles follow a generalized Pareto distribution, and robust extrapolation estimation is performed by combining the theoretical properties of the generalized Pareto distribution.
[0121] Subsequently, the optimized time-varying parameter set, the conditional quantile distribution of noise amplitude, and the corresponding interference event feature vector are encapsulated into an optimized interference event feature set; feature extraction is performed on the original signal corresponding to the interference event to obtain real-time signal features that include at least short-time energy, zero-crossing rate, and spectral entropy.
[0122] Next, the optimized interference event feature set and the real-time signal features are regarded as two independent continuous time processes. The two time processes are modeled using neural network constant differential equations. The neural network constant differential equations define the derivative of the state as a neural network of the current state and time. Combined with numerical neural network constant differential equation solvers such as the fourth-order Runge-Kutta method, the state at any future time is integrated from the initial state. For example, for the process corresponding to the optimized interference event feature set, the interference event feature vector is obtained at the initial observation time, and the interference event feature vector is set as the initial state of the neural network constant differential equation solver. Based on the initial state and the corresponding differential equation, the state evolution is performed, thereby generating corresponding smooth feature trajectories for the two independent continuous time processes.
[0123] Then, a gated fusion network is used to simultaneously combine relevant historical context information such as peak periods and turning points corresponding to interference events similar to the current interference event to fuse the feature trajectories of the two independent continuous time processes mentioned above, generating a fused feature trajectory. A multilayer perceptron is used as a decoder to map the fused feature trajectory to an initial noise prediction waveform. Subsequently, the start timestamp of the current interference event is used as the time origin, and a predicted waveform of a preset fixed length is extracted after the time origin as an event slice. If the duration of the predicted event exceeds the preset fixed length, the overlapping sliding window method is used to slice the event, generating a set of event slices. For example, a 5ms interference event is divided into 3 overlapping 2ms slices.
[0124] Next, the event slice set is corrected based on physical constraint neural operators. Specifically, for each input event slice... Calculate its Fourier transform And in the Fourier domain, learn a complex weight tensor R, with Perform modular multiplication, then inverse Fourier transform, and add a residual connection, i.e. ,in, and Preset learnable parameters for the corresponding items, combined synchronously The loss function is used for correction, the This is expressed as the mean square error between the predicted waveform and the actual waveform; This is a physical constraint term that requires corrected event slices. It conforms to the basic physical laws of electromagnetic wave propagation, for example, the corrected event slice. It should approximately satisfy the simplified discrete form of the transmission line equations, such as the telegraph equations; The weighting coefficients for the physical constraint terms.
[0125] Finally, based on the above Get the corrected event slice Corresponding physical compliance index For example, using The calculation is performed in the form of [formula missing]; during the process of correcting the event slice set, Monte Carlo Dropout is enabled to perform multiple forward propagations and calculate the variance of the prediction results; the normalized value of the variance of the prediction results is weighted and fused to obtain the prediction confidence corresponding to the current corrected event slice; the corrected event slice set and the corresponding prediction confidence are output as noise prediction results.
[0126] Step S4: Obtain feedback data of the noise prediction results, generate a feedback optimization strategy in combination with a preset hierarchical optimization mechanism, and perform collaborative learning and optimization based on the feedback optimization strategy.
[0127] Specifically, the noise prediction results are compared and analyzed with the actual observation results to obtain a prediction accuracy dataset, which is then used as feedback data.
[0128] It should be noted that the prediction accuracy dataset includes at least a point prediction accuracy index, an interval prediction reliability index, and a confidence calibration index. The prediction accuracy index is expressed as the mean square error between the noise prediction result and the actual observation result, used to measure the overall deviation between the predicted waveform and the true waveform. The interval prediction reliability index is expressed as the prediction interval coverage of the noise prediction result, used to evaluate whether the probability interval output by the quantile regression network reliably includes the actual observation value. For example, if 920 observation values fall within its corresponding interval in 1000 consecutive predictions, then its interval coverage is 92%. The confidence calibration index is used to evaluate whether the prediction confidence of the prediction output truly reflects the probability of accurate prediction. For example, calculations show that the average actual accuracy of all noise predictions with prediction confidence between [0.8, 0.9] is only 0.7, indicating that there is too much confidence at this confidence level, and the corresponding parameters need to be adjusted to correct the accuracy of the prediction confidence.
[0129] If the feedback data indicates a failure to predict new types of interference events, meta-learning is initiated. Simultaneously, the latest samples with large prediction errors are combined to generate a first feedback optimization strategy. Specifically, a failure to predict new types of interference events is determined if any one of the following three conditions is met: persistently high prediction error, significant emergence of unknown category events, or significant deterioration of confidence calibration. A persistently high prediction error indicates that, for events with a specific coarse classification label, the normalized mean square error (NMSE) or the relative error of the key impulse peak prediction is consistently higher than the global baseline mean by more than K standard deviations for N consecutive detection windows. The mean and standard deviation are calculated from the known category events or all events under historical normal operating conditions; the significant emergence of unknown category events indicates that, in the most recent observation period, the number or proportion of events judged as unknown by the lightweight classifier in step S1 has increased significantly compared to the long-term baseline, for example, by applying the chi-square test, the p-value is <0.01, and there is significant overlap with the high-error event group; the significant deterioration of confidence calibration indicates that the expected calibration error between the predicted confidence and the actual accuracy for the high-error event group is significantly lower than the calibration level on known category events, for example, the ECE increases by more than 0.15.
[0130] At this point, the meta-learning mechanism is activated, and the first feedback optimization strategy is generated simultaneously by combining the latest interference event samples with large prediction errors. That is, the event samples with recent prediction errors significantly higher than the preset threshold and low classification confidence are retrieved from the local cache to form a small support set. The parameter adapter in step S3 is called to use the support set specified in the strategy as the target for rapid adaptation, and a few gradient descent iterations are performed to quickly produce parameters that adapt to the new interference type.
[0131] If feedback data shows that the prediction performance of known interference patterns is gradually declining, federated learning is triggered to simultaneously aggregate the gradients of multiple terminals to generate a second feedback optimization strategy. Specifically, if either the prediction performance of known categories declines or no new practice type dominates, it is determined that the prediction performance of known interference patterns is gradually declining. The decline in prediction performance of known categories means that for one or more major known load categories such as motors and switches, the rolling average or median of their NMSE and prediction interval coverage shows a statistically significant monotonically decreasing trend, and the current performance value is already lower than the preset maintenance threshold. The absence of new practice type dominance means that the proportion of unknown category events does not show the statistically significant increase phenomenon defined by the aforementioned "significant emergence of unknown category events" within the observation period. That is, high error events are still mainly concentrated in known categories, thus excluding the possibility that the performance decline is mainly caused by a new type of interference. At this time, it means that the prediction performance of known interference patterns has declined.
[0132] At this point, the federated learning mechanism is triggered. By aggregating the gradients of multiple terminals, a second feedback optimization strategy is generated. That is, relevant terminals are organized to participate in a round of federated learning. Each terminal uses known category event data related to performance degradation as specified by the strategy to calculate the gradient of the loss function. The cloud server uses a secure aggregation algorithm to calculate the average gradient and uses it to update the global model parameters. The updated parameters are then sent to each terminal.
[0133] Figure 2 This is a schematic diagram of a real-time prediction system for power line impulse noise based on deep learning, according to the present invention.
[0134] Specifically, a real-time prediction system for power line impulse noise based on deep learning includes:
[0135] An event detection module is used to perform causal discovery and interference event detection on the original power line dataset to generate an original interference event set.
[0136] The feature extraction module is used to extract features from the original set of interference events to generate a set of interference event features.
[0137] A drift detection module is used to perform drift detection according to the working condition drift detection mechanism and obtain drift detection results.
[0138] A noise prediction module is used to optimize the interference event feature set based on the drift detection results, and to perform noise prediction based on the optimized interference event feature set to generate a noise prediction result.
[0139] The feedback optimization module is used to obtain feedback data of the noise prediction results, generate a feedback optimization strategy in combination with a preset hierarchical optimization mechanism, and perform collaborative learning and optimization based on the feedback optimization strategy.
[0140] This embodiment provides an electronic device that may include at least one processor and at least one memory.
[0141] The following is a detailed introduction to the various components of the electronic device:
[0142] The processor may include one or more processing cores. It connects various parts of the electronic device via various interfaces and lines, executing instructions, programs, code sets, or instruction sets stored in memory, and accessing data stored in memory to perform various functions and process data. Optionally, the processor can be implemented using at least one hardware form of DSP, FPGA, or PLA. The processor can integrate one or more of the following: CPU, GPU, and modem, for example, one or more digital signal processors (DSPs) or one or more field-programmable gate arrays (FPGAs). The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.
[0143] The memory may include RAM or ROM. Optionally, the memory may include a non-transitory computer-readable medium. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (e.g., touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc.
[0144] This embodiment also provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements a deep learning-based real-time prediction method for power line impulse noise provided in this embodiment of the invention.
[0145] It should be noted that the above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation.
[0146] The above embodiments can be implemented, in whole or in part, through software, hardware (such as circuits), firmware, or any other combination thereof.
[0147] When implemented using software, the above embodiments can be implemented in whole or in part as a computer program product, which includes one or more computer instructions or computer programs; when the computer instructions or computer programs are loaded or executed on a computer, the processes or functions described in accordance with the embodiments of the present invention are generated in whole or in part.
[0148] It is understood that the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device; the computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via transmission methods such as infrared, wireless, or microwave; the computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more sets of available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. A semiconductor medium can be a solid-state drive.
[0149] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. A and B can be singular or plural. Additionally, the character " / " in this article generally indicates an "or" relationship between the preceding and following related objects, but it can also represent an "and / or" relationship. Please refer to the context for a more accurate understanding.
[0150] It should be understood that, in the embodiments of the present invention, the order of the above-mentioned process numbers does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0151] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A real-time prediction method for power line impulse noise based on deep learning, characterized in that, It includes the following steps: Obtain the original power line dataset, perform causal discovery based on the hierarchical causal discovery mode mechanism, and simultaneously combine the original power line dataset to detect interference events, thereby generating the original interference event set. Based on the spatiotemporal graph attention mechanism, feature extraction is performed on the original set of interference events to generate a set of interference event features, and drift detection is performed according to the working condition drift detection mechanism to obtain the drift detection results. Based on the drift detection results, the interference event feature set is optimized to generate an optimized interference event feature set. Based on the optimized interference event feature set, noise prediction is performed to generate a noise prediction result. The feedback data of the noise prediction results is obtained, and a feedback optimization strategy is generated in combination with a preset hierarchical optimization mechanism. Based on the feedback optimization strategy, collaborative learning and optimization are performed.
2. The method for real-time prediction of power line impulse noise based on deep learning according to claim 1, characterized in that, Obtain the original power line dataset, perform causal discovery based on a hierarchical causal discovery mechanism, and simultaneously combine the original power line dataset to detect interference events, generating an original interference event set, including: Obtain the original power line dataset, perform causal mining based on the hierarchical causal mining pattern mechanism, and obtain the causal pattern graph. Based on the aforementioned causal pattern diagram, phase space reconstruction is performed simultaneously using the delayed coordinate embedding method to generate a reconstructed phase space. Each detected complete transient process is encapsulated into an event to form a basic event data unit; The basic event data unit includes at least the original signal segment, phase space trajectory, causal pattern diagram and corresponding timestamp within the event time window; Short-time Fourier transform is performed on the original signal segments in the basic event data unit, and coarse classification is performed based on their frequency domain characteristics to generate coarse event classification labels. The basic event data units are encapsulated with coarse event classification labels to generate the original set of interference events.
3. The method for real-time prediction of power line impulse noise based on deep learning according to claim 2, characterized in that, Obtain the original power line dataset, perform causal discovery based on a hierarchical causal pattern discovery mechanism, and obtain a causal pattern graph, including: The hierarchical causal discovery mechanism is represented by automatically selecting the causal discovery mode based on the number of observation points collected simultaneously. If there are multiple synchronous observation points, then enter multi-node mode; In the multi-node mode, a convergent cross-mapping algorithm is used to perform causal discovery on multi-channel time-series signals, calculate the causal delay time between signal pairs, and construct a real causal graph. The real causal graph is used to characterize the causal topology and delay relationship of noise propagation in the network; If only a single observation point exists, then enter single-node mode; In single-node mode, by combining the preset load knowledge graph and the characteristics of transient signals, the number of virtual noise sources and their causal delays are inferred, and a virtual causal graph is generated. The causal pattern diagram is represented as a real causal diagram or a virtual causal diagram under different causal discovery modes.
4. The method for real-time prediction of power line impulse noise based on deep learning according to claim 1, characterized in that, Feature extraction is performed on the original set of interference events based on the spatiotemporal graph attention mechanism to generate a feature set of interference events. Drift detection is then performed according to the working condition drift detection mechanism to obtain the drift detection results, including: Each state point in the phase space trajectory contained in the original set of disturbance events is defined as a graph node, and the connection edges between nodes are established according to their corresponding causal pattern graph to generate a dynamic spatiotemporal graph sequence. A pre-trained spatiotemporal graph attention transformer is used to encode the spatiotemporal graph sequence to generate a feature vector of interference events; By combining a multilayer perceptron regression head, the feature vector of the interference event is mapped in real time to generate a time-varying parameter set based on queuing theory; The time-varying parameter set includes at least arrival rate, service rate, and Erlang order; The interference event feature vector, time-varying parameter set, and attention weights of each node are encapsulated into an interference event feature set for output. While performing feature extraction, drift detection is performed based on a historical interference event feature buffer to generate drift detection results.
5. The method for real-time prediction of power line impulse noise based on deep learning according to claim 4, characterized in that, While performing feature extraction, drift detection is performed based on a historical interference event feature buffer, generating drift detection results, including: For each newly arrived interference event sample, obtain the Mahalanobis distance between its interference event feature vector and the corresponding historical distribution in the historical interference event feature buffer; Statistical change analysis is performed on the coarse classification labels of the interference event samples to obtain the coarse classification change results; If the Mahalanobis distance exceeds the preset threshold and the coarse classification change result reaches the preset working condition offset condition, then the corresponding working condition drift label is set to indicate that a working condition offset has occurred. Otherwise, newly arrived interference event samples are judged as having no operating condition deviation, and the corresponding operating condition drift label is set to have no operating condition deviation. The operating condition drift label and the corresponding interference event feature set are encapsulated into a drift detection result and output.
6. The method for real-time prediction of power line impulse noise based on deep learning according to claim 1, characterized in that, The interference event feature set is optimized based on the drift detection results to generate an optimized interference event feature set. Noise prediction is then performed based on the optimized interference event feature set to generate a noise prediction result, including: For interference events in the drift detection results where the working condition drift label indicates a shift in working condition, samples of similar interference events within the latest time window are used as the support set. A meta-learning algorithm is used to quickly optimize and generate a set of parameter base values that are adapted to the working conditions of the interference events that cause the working condition deviation. The interference event feature set is optimized based on the parameter base values to generate an optimized interference event feature set; The noise prediction of the optimized interference event feature set is performed by using a fusion network of ordinary differential equations and gated network to obtain the initial noise prediction result. The initial noise prediction result is corrected for physical consistency based on the physical constraint neural operator to generate a new noise prediction result.
7. The method for real-time prediction of power line impulse noise based on deep learning according to claim 1, characterized in that, The feedback data of the noise prediction results is obtained, and a feedback optimization strategy is generated in conjunction with a preset hierarchical optimization mechanism. Based on the feedback optimization strategy, collaborative learning and optimization are performed, including: The noise prediction results are compared and analyzed with the actual observation results to obtain the prediction accuracy dataset, which is then used as feedback data. If the feedback data shows that the prediction of new types of interference events fails, meta-learning is initiated, and the first feedback optimization strategy is generated simultaneously by combining the latest samples with large prediction errors. If the feedback data shows that the prediction performance for known interference patterns is gradually declining, federated learning is triggered to simultaneously aggregate the gradients of multiple terminals to generate a second feedback optimization strategy. Collaborative learning and optimization are performed based on the first and second feedback optimization strategies.
8. A real-time prediction system for power line impulse noise based on deep learning, used to implement the method described in any one of claims 1 to 7, characterized in that, include: The event detection module is used to perform causal discovery and interference event detection on the original power line dataset to generate an original interference event set. The feature extraction module is used to extract features from the original set of interference events to generate a set of interference event features; A drift detection module is used to perform drift detection according to the working condition drift detection mechanism and obtain drift detection results; A noise prediction module is used to optimize the interference event feature set based on the drift detection result, and to perform noise prediction based on the optimized interference event feature set to generate a noise prediction result. The feedback optimization module is used to obtain feedback data of the noise prediction results, generate a feedback optimization strategy in combination with a preset hierarchical optimization mechanism, and perform collaborative learning and optimization based on the feedback optimization strategy.
9. An electronic device, characterized in that, Includes: memory and processor; The memory is used to store computer programs; the processor is used to execute the computer programs stored in the memory to implement the deep learning-based real-time prediction method for power line impulse noise as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store a computer program, which, when executed by a processor, implements a deep learning-based real-time prediction method for power line impulse noise as described in any one of claims 1 to 7.
