A power communication network anomaly detection and prediction method based on traffic analysis

By constructing a dynamic traffic behavior baseline model and combining variational mode decomposition and autoregressive moving average models, the problem that static baseline models in power communication networks cannot adapt to different load scenarios is solved, thereby achieving a more refined characterization of traffic behavior patterns in power communication networks and improving the accuracy of anomaly detection.

CN123164037APending Publication Date: 2026-11-24SHANDONG WUZHOU ELECTRIC CO LTD SHOUGUANG BRANCH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610982292.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-02
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, the static baseline model of power communication networks cannot dynamically classify traffic behavior patterns based on the number of connections, resulting in insufficient accuracy and adaptability of anomaly detection, making it difficult to adapt to the differences in traffic characteristics under different load scenarios.

Method used

By acquiring historical traffic characteristic data sequences of the power communication network, a traffic behavior baseline model is constructed using a clustering algorithm after denoising. This model is then combined with variational mode decomposition and autoregressive moving average models for trend analysis and prediction. The acquisition frequency is dynamically adjusted to generate potential future risk assessment information.

Benefits of technology

It improves the accuracy and adaptability of power communication network traffic behavior patterns, reduces false alarm and false negative rates, enables proactive prevention and risk assessment of future anomalies, and enhances the accuracy and adaptability of anomaly detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164037A_ABST
    Figure CN123164037A_ABST
Patent Text Reader

Abstract

This invention belongs to the field of power communication network monitoring and relates to a method for anomaly detection and prediction in power communication networks based on traffic analysis. The method includes: S1. Denoising the historical traffic characteristic data sequence of the target power communication network, performing cluster analysis using a clustering algorithm, and constructing a traffic behavior baseline model based on the cluster analysis results; S2. Collecting real-time traffic characteristic data, calculating a joint anomaly index using the traffic behavior baseline model, and identifying anomalies; S3. Constructing a traffic characteristic time series, and obtaining a stable traffic characteristic time series through empirical mode decomposition; S4. Performing trend analysis and prediction using a combination of variational mode decomposition and autoregressive moving average model to obtain a predicted traffic characteristic data sequence; S5. Counting the number of times the predicted traffic characteristic data exceeds the baseline normal range within a preset future time period. If the number of times exceeds a preset threshold, generating potential future risk assessment information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power communication network monitoring technology, specifically to a method for detecting and predicting anomalies in power communication networks based on traffic analysis. Background Technology

[0002] With the continuous expansion of the smart grid, the power communication network, as the nerve center of the power grid operation, places extremely high demands on the real-time performance and reliability of its core services such as relay protection, stability control, and dispatch automation. However, the highly dynamic nature of power communication network traffic and the complexity and variability of business models make it difficult for traditional static monitoring methods to adapt to the rapid changes in the actual operating environment.

[0003] In existing technologies, statistical analysis methods based on fixed thresholds or machine learning algorithms that rely on large amounts of labeled data are mainly used for traffic anomaly detection. Although this can improve monitoring efficiency to some extent, the static baseline model that is built cannot dynamically divide traffic behavior patterns according to the number of connections, making it difficult to adapt to the differences in traffic characteristics under different load scenarios, resulting in insufficient accuracy and adaptability of anomaly detection.

[0004] In view of this, it is very necessary to provide a method for anomaly detection and prediction in power communication networks based on traffic analysis to solve the above-mentioned defects in the prior art. Summary of the Invention

[0005] The purpose of this invention is to solve the technical problem that the static baseline model constructed in the prior art cannot dynamically divide the traffic behavior pattern according to the number of connections, and is difficult to adapt to the differences in traffic characteristics under different load scenarios, resulting in insufficient accuracy and adaptability of anomaly detection. The invention provides a method for anomaly detection and prediction in power communication networks based on traffic analysis to solve the technical problems existing in the prior art.

[0006] To achieve the above objectives, the present invention provides the following technical solution: This application provides a method for anomaly detection and prediction in power communication networks based on traffic analysis, comprising the following steps: Step S1. Obtain the historical traffic characteristic data sequence of the target power communication network. After denoising the historical traffic characteristic data sequence, perform cluster analysis using a clustering algorithm. Construct a traffic behavior baseline model based on the cluster analysis results. Step S2. Dynamically monitor the key links and core nodes of the target power communication network, dynamically adjust the collection frequency based on traffic bursts and link service priorities, collect real-time traffic characteristic data, calculate the joint anomaly index based on the traffic behavior baseline model, and judge anomalies. Step S3. Arrange the real-time collected traffic characteristic data in the order of collection time to construct a traffic characteristic time series. Through empirical mode decomposition, obtain the stationary traffic characteristic time series. Step S4. The stabilized flow characteristic time series is subjected to trend analysis and prediction using a combination of variational mode decomposition and autoregressive moving average model to obtain the predicted flow characteristic data series; Step S5. Match and compare the predicted traffic characteristic data sequence with the traffic behavior baseline model, and count the number of times the predicted traffic characteristic data exceeds the normal range of the baseline within a preset future time period. If the number of times exceeds the preset threshold, generate future potential risk assessment information.

[0007] The beneficial effects of this invention are as follows: This invention acquires historical traffic characteristic data sequences of the target power communication network, and constructs a traffic behavior baseline model corresponding to different connection number ranges by employing denoising processing and cluster analysis. It can dynamically classify the traffic behavior patterns of the power communication network according to different connection number ranges, improve the accuracy and adaptability of traffic characteristic modeling under different load scenarios, realize a refined characterization of power communication network traffic behavior patterns, solve the problem that traditional fixed threshold methods cannot adapt to the differences in traffic characteristics under different connection number scenarios, reduce false alarm rate and false negative rate, and improve the accuracy and adaptability of anomaly detection.

[0008] This invention employs a combination of variational mode decomposition and autoregressive moving average model to perform trend analysis on the time series of traffic characteristics, obtaining a predicted traffic characteristic data series. The predicted traffic characteristic data series is then matched and compared with a traffic behavior baseline model. The number of times the predicted traffic characteristic data exceeds the normal range of the baseline in the future time period is statistically analyzed, enabling early identification of potential abnormal risks. This achieves a shift from passive response to proactive prevention, improving the ability to predict and assess future abnormal situations in power communication networks.

[0009] This invention re-clusters newly added traffic feature data and dynamically updates each connection cluster, enabling the traffic behavior baseline model to dynamically adjust with changes in power communication network services. This solves the problems of low resource utilization and poor real-time performance of traditional fixed-frequency acquisition methods, and improves the long-term adaptability and anomaly detection stability of the traffic behavior baseline model to different power communication network load scenarios.

[0010] Therefore, it is evident that the present invention has outstanding substantive features and significant progress compared with the prior art, and the beneficial effects of its implementation are also obvious. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0012] Figure 1 This is a flowchart of the prediction method; Figure 2 This is a flowchart of the dynamic acquisition frequency adjustment process; Figure 3 This is a flowchart for anomaly detection and future risk assessment. Detailed Implementation

[0013] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. The following embodiments are explanations of the present invention, but the present invention is not limited to the following implementation methods.

[0014] Example: like Figures 1-3 As shown in this embodiment, the power communication network anomaly detection and prediction method based on traffic analysis can dynamically collect traffic characteristic data of key links and core nodes of the power communication network. The collected data types cover power communication network indicators such as link bandwidth utilization, packet throughput, number of connections, and protocol type distribution. A power communication network anomaly detection and prediction method based on traffic analysis includes the following steps: Step S1. Obtain the historical traffic characteristic data sequence of the target power communication network. After denoising the historical traffic characteristic data sequence, perform cluster analysis using a clustering algorithm. Construct a traffic behavior baseline model based on the cluster analysis results. Step S1 specifically includes: S11. Obtain the historical traffic characteristic data sequence corresponding to the target power communication network; The target power communication network mentioned in step S11 is the dispatch data network or backbone communication network of a power grid in a certain region, which carries key services such as relay protection, automation, and dispatch telephone. S12. Denoising the historical traffic feature data sequence using improved wavelet packet transform, including wavelet packet decomposition, energy entropy calculation, adaptive threshold determination, soft thresholding, and wavelet packet reconstruction; S13. Cluster analysis is performed on the historical connection count in the denoised historical traffic feature data sequence using a clustering algorithm. The operating status of the power communication network is divided into multiple load levels, and a normal fluctuation range of bandwidth and throughput is established for each level. A multi-dimensional, dynamic traffic behavior baseline model is generated. The traffic behavior baseline model can reflect the normal range of bandwidth occupancy when the number of connections is in the low load range, providing a reference benchmark for subsequent real-time detection and risk prediction.

[0015] It should be noted that by acquiring historical traffic characteristic data sequences of the target power communication network and using improved wavelet packet transform for denoising, the impact of on-site noise and acquisition interference on traffic characteristic analysis can be effectively reduced, improving the quality and stability of historical data. Combining clustering algorithms to perform cluster analysis on load states with different connection numbers, and establishing corresponding traffic behavior baseline models, a multi-dimensional characterization of typical operating states of the power communication network can be achieved. Dynamically updating the traffic behavior baseline model through a sliding window mechanism can continuously adapt to changes in the scale of power communication network services and the evolution of operating modes, improving the accuracy and reliability of real-time anomaly detection, trend analysis, and potential risk prediction.

[0016] Step S11 specifically includes: S111. Deploy traffic acquisition probes on the core nodes of the target power communication network to collect traffic related to relay protection, automation, dispatching telephone, etc. The traffic acquisition probes can be directly connected to the power communication network equipment ports or obtain data through the power communication network splitter / mirror port to collect power communication network traffic in real time; the core nodes include core routers and aggregation switches. S112. Using port mirroring technology or power communication network splitters, passively acquire power communication network traffic from the physical link to generate a historical traffic characteristic data sequence. The historical traffic characteristic data sequence includes historical link bandwidth utilization data, historical packet throughput data, historical connection count data, and historical protocol type distribution data; The link bandwidth utilization rate mentioned in step S112 is the percentage of the used bandwidth of the link to the total bandwidth; the message throughput is the number of data packets successfully transmitted per unit time; the connection count data is the number of TCP / UDP sessions established simultaneously on the power communication network equipment or link; the protocol type distribution is power-specific protocols and general protocols. Power-specific protocols include IEC60870-5-104, Modbus / TCP, and GOOSE, while general protocols include HTTP and SSH.

[0017] Each historical flow characteristic data record is accompanied by a precise collection timestamp and stored at a fixed sampling period of once every 5 minutes. After long-term accumulation over a month or a quarter, a historical flow characteristic data sequence is generated, which can reflect the typical operating status of the power communication network during different periods such as peak and valley periods and maintenance periods, providing basic data for the subsequent construction of the power communication network behavior baseline.

[0018] By deploying traffic acquisition probes at the core nodes of the target power communication network and combining port mirroring technology with power communication network splitters to passively acquire power communication network traffic, continuous acquisition of multi-dimensional traffic characteristic data can be achieved without affecting the normal operation of the existing power communication network. Through long-term accumulation, historical traffic characteristic data sequences can be generated, which can comprehensively reflect the typical state of the power communication network under different operating scenarios, providing a reliable data foundation for subsequent traffic behavior analysis and baseline modeling.

[0019] The noise reduction process in step S12 is as follows: S121. Select a wavelet packet basis function suitable for the historical flow characteristic data sequence, either 'db4' from the Daubechies wavelet family or 'sym8' from the Symlets wavelet family, and set the decomposition level to 3 levels. Use the selected wavelet packet basis function and the decomposition level to perform wavelet packet decomposition on the historical flow characteristic data sequence, decomposing the original signal of the historical flow characteristic data sequence into multiple sub-band signals of different frequency bands. Each frequency band corresponds to a series of wavelet packet coefficients, providing a basis for subsequent energy analysis and noise suppression.

[0020] S122. Calculate the energy entropy for the wavelet packet coefficients of each frequency band. The energy entropy reflects the complexity of the signal energy distribution within that frequency band. The more chaotic the energy distribution, the higher the energy entropy value, meaning that the frequency band may contain more noise. The formula for calculating the energy entropy is:

[0021] in , This represents the total energy of that frequency band. For the k-th wavelet packet coefficient of the i-th frequency band of the j-th layer.

[0022] S123. The threshold for each frequency band is adaptively determined based on the energy entropy. The threshold calculation formula is as follows:

[0023] in, Let be the threshold value for the i-th frequency band in the j-th layer. The standard deviation estimate of the wavelet packet coefficients for this frequency band is obtained by estimating the absolute deviation of the median: N is the signal length; The energy entropy of the i-th frequency band in the j-th layer; The adjustment factor, set to 0.5, controls the influence of energy entropy on the threshold. The threshold calculation formula aims to obtain a larger threshold for frequency bands with higher energy entropy, thereby removing more noise.

[0024] S124. Soft thresholding is performed on the wavelet packet coefficients of each frequency band using the thresholds determined for each frequency band, wherein the soft thresholding function is: ,in, These are the original wavelet packet coefficients. Here, represents the wavelet packet coefficients after soft thresholding, and sgn is the sign function. The soft thresholding function sets coefficients with absolute values ​​less than the threshold to zero, while shrinking coefficients with absolute values ​​greater than the threshold towards zero, effectively suppressing noise.

[0025] S125. The wavelet packet coefficients processed by the soft threshold function are subjected to inverse wavelet packet transform to reconstruct the denoised historical flow feature data sequence. The denoised historical flow feature data sequence eliminates the interference introduced by the on-site environmental noise and the acquisition equipment, retains the pure flow features, and provides high-quality data for subsequent baseline modeling.

[0026] By using improved wavelet packet transform to denoise historical traffic feature data sequences, and combining energy entropy and adaptive thresholding mechanisms, the threshold size can be dynamically adjusted according to the noise complexity of different frequency bands, effectively suppressing on-site environmental noise and interference introduced by the acquisition equipment. Through soft thresholding and wavelet packet reconstruction, the data purity and stability are improved while retaining effective information, thereby improving the accuracy of subsequent clustering analysis and anomaly detection.

[0027] Step S13 specifically includes: S131. A density-based noisy spatial clustering algorithm (DBSCAN algorithm) is used to perform cluster analysis on each historical connection number data in the denoised historical traffic feature data sequence. Specifically, by setting the neighborhood radius parameter Eps and the minimum neighborhood point parameter MinPts, core points are identified and sample points are divided into different clusters according to the density reachability and density accessibility relationship, resulting in multiple connection number clusters. Each connection number cluster has a corresponding cluster center and historical connection number data group.

[0028] In this embodiment, Eps=100 and MinPts=50 are set. The DBSCAN algorithm scans all historical connection count data to identify core points with at least 50 points within a neighborhood radius of 100. Sample points are then divided into different clusters based on density reachability and density accessibility relationships. This results in multiple connection count clusters, each representing a typical power communication network connection load level, including low-load clusters (0-500 connections), normal-load clusters (500-2000 connections), and high-load clusters (2000-5000 connections). Points not assigned to any cluster are considered noise and do not participate in subsequent modeling.

[0029] The DBSCAN algorithm described in step S131 can automatically discover clusters of arbitrary shapes and effectively identify noise points.

[0030] S132. Construct a corresponding traffic behavior baseline sub-model for each cluster of connection counts, and combine them to generate a traffic behavior baseline model; S133. Construct a sliding window data sequence of length L. Real-time detected traffic characteristic data is stored in the constructed sliding window data sequence in chronological order. The traffic behavior baseline model is then dynamically updated based on sliding window density clustering. The sliding window length L can be set to the amount of data from the most recent week. As new data is added, the window continuously slides, always retaining the latest L data entries. This dynamic update process ensures that the dynamically updated model reflects the current state of the power communication network and adapts to the long-term evolution of power communication network service models.

[0031] S134. At preset time intervals, the traffic characteristic data in the sliding window data sequence are re-clustered to obtain updated connection number clusters.

[0032] In this embodiment, the preset time interval is 24 hours. Taking 2 AM every day as an example, all historical connection count data in the sliding window is input into the DBSCAN algorithm. Core points are identified using the neighborhood radius parameter Eps and the minimum neighborhood point parameter MinPts. Sample points are then divided according to density reachability and density accessibility relationships to generate updated connection count clusters that match the current power communication network load status. As power communication network services naturally grow, old clusters may expand, shrink, or disappear, and new clusters may emerge. The DBSCAN algorithm can adaptively capture these changes.

[0033] S135. For the updated connection number clusters, execute step S132 to generate an updated traffic behavior baseline sub-model. Replace the traffic behavior baseline sub-model corresponding to the updated connection number clusters in the original model with the newly generated traffic behavior baseline sub-model to generate an updated traffic behavior baseline model. The updated traffic behavior baseline model can dynamically reflect the current state of the power communication network, achieve self-learning function, and provide an accurate reference benchmark for subsequent real-time detection and risk prediction.

[0034] By employing clustering algorithms to perform cluster analysis on the denoised historical connection counts, a traffic behavior baseline model can be constructed, enabling accurate characterization of the operational status of power communication networks at different load levels. By building a dynamically updated traffic behavior baseline model, it can continuously adapt to the growth of power communication network services and changes in operational modes, improving the accuracy and adaptability of subsequent real-time anomaly detection and risk prediction.

[0035] Step S132 specifically includes: S1321. For each connection number cluster, extract the denoised historical traffic feature data corresponding to each historical connection number data in the cluster from the denoised historical traffic feature data sequence to generate a target historical traffic feature data group corresponding to the connection number cluster. Each historical connection data point has a collection timestamp. It is necessary to ensure that the extracted historical traffic feature data is consistent with the timestamp, including historical link bandwidth utilization, historical packet throughput, and historical protocol type distribution.

[0036] S1322. Extract the historical link bandwidth utilization data of each individual in the target historical traffic feature data group to form a historical link bandwidth utilization data group; extract the historical packet throughput data of each individual in the target historical traffic feature data group to form a historical packet throughput data group. S1323. Determine the connection number range information corresponding to each connection number cluster. The range information includes the minimum to maximum value of the historical connection number data in the connection number cluster. For example, if the minimum historical connection number in the normal load cluster is 500 and the maximum value is 2000, then the connection number range is [500, 2000]. S1324. Define the normal range for the historical link bandwidth utilization data set and the historical packet throughput data set respectively, to obtain the historical normal link bandwidth utilization range information and the historical normal packet throughput range information. The normal range is calculated using statistical methods, specifically by calculating the mean of the historical link bandwidth utilization data set. and standard deviation Define the normal range as Calculate the average of historical message throughput data sets. and standard deviation To obtain the normal range It can cover 99.7% of normal data points. If the historical link bandwidth utilization data group and the historical packet throughput data group are not normally distributed, the percentile method is used, and the 5% to 95% percentile is taken as the normal range. S1325. Combine the historical normal link bandwidth utilization range information and the historical normal packet throughput range information with the connection number range information corresponding to each connection number cluster to determine the traffic behavior baseline sub-model corresponding to that connection number cluster. This sub-model describes the normal fluctuation range that the bandwidth utilization and packet throughput of the power communication network should be within within that connection number range.

[0037] S1326. Combine the traffic behavior baseline sub-models corresponding to all connection number clusters to generate a complete traffic behavior baseline model, which can reflect the typical operating status of the denoised historical traffic characteristic data sequence under different load levels, and provide a reference benchmark for subsequent real-time monitoring and anomaly detection.

[0038] By constructing corresponding traffic behavior baseline sub-models for different connection number clusters, and combining the normal fluctuation range of bandwidth utilization and message throughput to generate a complete traffic behavior baseline model, it is possible to accurately reflect the typical operating characteristics under different power communication network load levels, and improve the pertinence and accuracy of subsequent anomaly detection and risk assessment.

[0039] Step S2. Dynamically monitor the key links and core nodes of the target power communication network, dynamically adjust the collection frequency based on traffic bursts and link service priorities, collect real-time traffic characteristic data, calculate the joint anomaly index based on the traffic behavior baseline model, and judge anomalies. like Figure 3 As shown, step S2 specifically includes: S21. Traffic characteristic data of key links and core nodes of the target power communication network are collected in real time according to a dynamic acquisition frequency. This traffic characteristic data includes link bandwidth utilization data, message throughput data, connection count data, and protocol type distribution data. For example... Figure 2 As shown, the sampling frequency is dynamically adjusted according to the real-time status of the power communication network: when the power communication network is stable, the sampling frequency is reduced to once every 10 minutes; when a traffic surge is detected, the sampling frequency is increased to once every 1 minute to ensure fine monitoring of critical links.

[0040] The critical link mentioned in step S21 refers to the link that carries important services, such as relay protection and stability control. The dynamic acquisition frequency is determined based on the current traffic burst status of the power communication network and the priority of the critical link.

[0041] S22. Match the current connection count data with the connection count range information in the traffic behavior baseline model to determine the corresponding target traffic behavior baseline sub-model. The target traffic behavior baseline sub-model includes the historical normal link bandwidth utilization range information and the historical normal packet throughput range information corresponding to the connection count range, providing a reference for deviation calculation; S23. For example Figure 3 As shown, the deviation of the link bandwidth utilization and packet throughput in the current traffic characteristic data from the target traffic behavior baseline sub-model is calculated, and the bandwidth deviation is obtained respectively. and throughput deviation ; S24. Based on bandwidth deviation and throughput deviation, a joint anomaly index is constructed. The joint anomaly index is the weighted Euclidean distance between bandwidth deviation and throughput deviation. The formula for calculating the joint anomaly index J is:

[0042] in and The preset weights can be adjusted based on the importance of bandwidth and throughput in different types of anomalies. For example, for bandwidth exhaustion attacks, the weights can be adjusted accordingly. Set it to 0.7. Set the weight to 0.3, and the sum of the two weight values ​​is 1.

[0043] S25. Compare the calculated joint anomaly index J with a preset threshold. Compare them. If J> If J < 0, it is considered that the current traffic characteristics have deviated from the normal pattern, an anomaly warning message is generated, and the operation and maintenance personnel are notified. If so, dynamic monitoring will continue.

[0044] It should be noted that by dynamically monitoring the key links and core nodes of the target power communication network, and dynamically adjusting the collection frequency in conjunction with traffic bursts and link service priorities, a refined real-time perception of the power communication network's operating status can be achieved. By using a traffic behavior baseline model to perform joint anomaly detection on real-time traffic characteristic data, and by constructing a joint anomaly index to comprehensively analyze deviations in link bandwidth utilization and packet throughput, the false alarm rate caused by single indicator detection can be effectively reduced, and the accuracy and reliability of anomaly detection and risk warning can be improved.

[0045] Step S21 specifically includes: S211. Real-time monitoring of traffic characteristic data of critical links in the current power communication network, extraction of abrupt change information from the traffic characteristic data, and calculation of the cumulative sum statistic at the current moment using a sliding window-based cumulative sum algorithm. The formula for calculating the cumulative sum statistic is as follows: .

[0046] in, Let be the cumulative sum statistic at time t, initially ; This provides real-time traffic characteristic data at time t. The mean of the target process can be obtained from historical stable periods. The allowable offset represents the normal fluctuation range and needs to be set empirically. This algorithm can sensitively detect minute deviations in the process.

[0047] When the cumulative and statistical values ​​exceed the preset mutation threshold, a traffic burst is determined, and the dynamic acquisition frequency of the critical link is adjusted to a high-frequency acquisition mode.

[0048] Preset mutation threshold H, when When >H, a traffic burst is detected. At this time, the dynamic sampling frequency of the link is adjusted to high-frequency mode, and sampling is performed once every 30 seconds to capture the burst details with dense sampling.

[0049] S212. When the cumulative sum and statistics do not exceed the preset mutation threshold, the system is determined to be in a stable state. Based on the service priority level of the critical link, the corresponding collection frequency is determined from the preset priority-frequency mapping table and used as the dynamic collection frequency. like Figure 2 As shown, under stable conditions, the dynamic acquisition frequency is determined according to the link service priority: the highest priority links, such as relay protection, use a high-frequency acquisition frequency of once every 2 minutes; medium-priority links use a medium-frequency acquisition frequency of once every 5 minutes; and ordinary service links use a low-frequency acquisition frequency of once every 10 minutes. This ensures both precise monitoring of critical links and saves resources.

[0050] By dynamically adjusting the collection frequency based on traffic bursts and link service priorities, the monitoring accuracy of critical links is ensured while reducing resource consumption. At the same time, the cumulative sum algorithm based on sliding windows can promptly identify sudden changes in power communication network traffic.

[0051] Step S23 specifically includes: S231. Assume the link bandwidth occupancy rate in the current traffic characteristic data is... The normal bandwidth range of the target traffic behavior baseline sub-model is Bandwidth deviation The calculation method is as follows: like exist Inside, then ; like > ,but ; like ,but .

[0052] in, The upper limit of the historical normal link bandwidth utilization range information in the target traffic behavior baseline sub-model; This represents the lower limit of the historical normal link bandwidth utilization range information in the target traffic behavior baseline sub-model. Bandwidth deviation. This reflects the relative extent to which the bandwidth deviates from the normal range.

[0053] S232. Let the packet throughput in the current traffic characteristic data be... Normal throughput range is Throughput Deviation The calculation method is as follows: like exist Inside, then ; like ,but ; like ,but .

[0054] in, The upper limit of the historical normal packet throughput range information in the target traffic behavior baseline sub-model; This is the lower limit of the historical normal message throughput range information in the target traffic behavior baseline sub-model.

[0055] By calculating the deviations of link bandwidth utilization and message throughput from the target traffic behavior baseline sub-model, the differences between the current operating state and the normal state of the power communication network can be quantitatively described; the bandwidth deviation is used to... and throughput deviation The combined analysis improved the accuracy and stability of anomaly detection results.

[0056] Step S3. Arrange the real-time collected traffic characteristic data in the order of collection time to construct a traffic characteristic time series. Through empirical mode decomposition, obtain the stationary traffic characteristic time series. like Figure 3 As shown, step S3 specifically includes: S31. Arrange the traffic characteristic data collected by dynamic monitoring strictly in chronological order of collection time to obtain a traffic characteristic time series. The traffic characteristic data includes link bandwidth utilization data, message throughput data, connection number data, and protocol type distribution data. This time series completely records the trajectory of the power communication network status evolving over time, such as the continuous change curves of indicators such as bandwidth, throughput, and connection number over the past 24 hours.

[0057] S32. Empirical Mode Decomposition (EMD) is performed on the flow characteristic time series, adaptively decomposing the original flow characteristic time series x(t) into several intrinsic mode function components (IMFs) and a residual component. EMD filters out the IMF components from high frequency to low frequency based on the local characteristic time scale of the data itself, and can handle non-stationary and nonlinear signals, providing a basis for trend analysis.

[0058] S33. Calculate the sample entropy value for each IMF component. The formula for calculating the sample entropy value is as follows: ; Where m is the embedding dimension, usually 2; r is the similarity tolerance, usually 0.1 to 0.25 times the standard deviation of the original sequence; N is the data length; Let f(x) represent the probability of matching two sequences in m+1 dimensional space to be similar in m-dimensional space. Let be the probability that two sequences are similar in m-dimensional space. The larger the sample entropy value, the more complex and random the traffic flow time series is.

[0059] S34. Set the sample entropy value to be greater than the preset entropy threshold. The IMF component is determined to be a random component, and the sample entropy value is not greater than The IMF component is determined to be a deterministic component. Preset entropy threshold. When the value is set to 0.5, the random component mainly includes high-frequency fluctuations or random noise, while the deterministic component includes trend or periodic components.

[0060] S35. Superimpose all deterministic components with the residual components to obtain the stationary trend term sequence; superimpose all random components to obtain the stationary random term sequence. The trend term sequence reflects the main changing trend and periodic components of the signal, while the random term sequence reflects noise and random fluctuations. The sum of the two equals the original flow characteristic time series. Combine the stationary trend term sequence and the stationary random term sequence to obtain the stationary flow characteristic time series.

[0061] It should be noted that by constructing a traffic characteristic time series from real-time collected traffic characteristic data in chronological order of collection, and employing empirical mode decomposition (EMD) to adaptively decompose the non-stationary and nonlinear power communication network traffic signal, the trend, periodic, and random fluctuation components in traffic changes are effectively extracted, improving the data quality for subsequent trend analysis. Simultaneously, by determining the randomness of each IMF component through sample entropy and separating deterministic and random components, the interference of random noise on the trend analysis results can be reduced, enhancing the stability and analyzability of the stationary traffic characteristic time series, and providing a reliable data foundation for subsequent traffic forecasting and potential risk assessment.

[0062] Step S4. The stabilized flow characteristic time series is subjected to trend analysis and prediction using a combination of variational mode decomposition and autoregressive moving average model to obtain the predicted flow characteristic data series; Step S4 specifically includes: S41. Perform Variational Mode Decomposition (VMD) on the stationary flow characteristic time series, decomposing it into K eigenmode function component sequences at different frequency scales and a residual sequence. The decomposition formula is as follows: ; in, This represents the stationary traffic characteristic time series at time t. The stationary traffic characteristic time series includes bandwidth utilization data, packet throughput data, or connection count data. Let r(t) represent the value of the k-th intrinsic mode function component sequence at time t; r(t) represent the value of the residual sequence at time t; let K=5, where K is the preset number of decomposition layers.

[0063] The variational mode decomposition (VMD) described in step S41 is a non-recursive signal decomposition method that can decompose complex signals into components of different frequency scales. By using variational mode decomposition, complex flow signals can be decomposed into long-term trend components, periodic fluctuation components, and random fluctuation components, thereby improving the accuracy of subsequent predictions.

[0064] S42. For each sequence of intrinsic mode function components and residual sequences The autoregressive moving average model was used to model each component, resulting in prediction models for each component. The model form is as follows:

[0065] in, Let represent the predicted value of the k-th intrinsic mode function component sequence at a future time t+τ; τ is the prediction step size. The order of autoregression; The moving average order; These are the autoregressive coefficients; The moving average coefficient; The white noise term represents random fluctuations that the model cannot explain. The autoregressive order and moving average order are determined using the autocorrelation function, partial autocorrelation function, or Akaike Information Criterion (AIC); the autoregressive coefficients and moving average coefficients are obtained by fitting historical flow characteristic data using the least squares method or moment estimation.

[0066] S43. Input the historical flow characteristic data corresponding to each intrinsic mode function component sequence into the corresponding autoregressive moving average model, and calculate the predicted value at the future time t+τ. The residual sequence is input into the corresponding autoregressive moving average model to obtain the predicted residual values ​​for future times. .

[0067] S44. By superimposing the predicted values ​​of each intrinsic mode function component sequence at future time and the predicted residual values, the predicted flow characteristic data at the future time t+τ is obtained. The superposition and reconstruction formula is:

[0068] in, This represents the predicted flow characteristic data corresponding to the future time t+τ; This represents the predicted value of the k-th intrinsic mode function component sequence at a future time. This represents the predicted residual value at a future time.

[0069] S45. Repeat steps S43 to S44 for multiple consecutive future moments to obtain predicted traffic feature data corresponding to multiple future moments. Arrange the data in chronological order to generate a predicted traffic feature data sequence. The predicted traffic feature data sequence includes predicted link bandwidth utilization data, predicted message throughput data, predicted connection number data, and predicted protocol type distribution data corresponding to each future moment. These data are used for subsequent power communication network risk trend analysis and anomaly early warning.

[0070] It should be noted that by combining variational mode decomposition with an autoregressive moving average model to perform trend analysis and prediction on the stationary flow characteristic time series, the complex power communication network flow signal can be decomposed into long-term trend components, periodic fluctuation components, and random fluctuation components, and corresponding prediction models can be established for each. This improves the ability to characterize and predict future power communication network flow change trends. By independently modeling and reconstructing the sequences of each intrinsic mode function component and residual sequence, the impact of complex nonlinear flow fluctuations on the prediction results can be effectively reduced, improving the stability and reliability of the predicted flow characteristic data sequence and providing accurate data support for subsequent potential risk assessment and anomaly early warning.

[0071] Step S5. Match and compare the predicted traffic characteristic data sequence with the traffic behavior baseline model, and count the number of times the predicted traffic characteristic data exceeds the normal range of the baseline within a preset future time period. If the number of times exceeds the preset threshold, generate potential future risk assessment information. Step S5 specifically includes: S51. Traverse each predicted data point in the predicted traffic feature data sequence, match the predicted connection number of the current predicted data point with the range of connection numbers in the traffic behavior baseline model, find the target baseline sub-model corresponding to its connection number interval, and use it for subsequent anomaly judgment.

[0072] S52. Determine whether the predicted link bandwidth utilization and predicted packet throughput are within the range of historical normal link bandwidth utilization and historical normal packet throughput of the target traffic behavior baseline sub-model, and assess potential anomalies.

[0073] S53. For each predicted data point, count the number of times the predicted link bandwidth utilization rate exceeds the historical normal range and the number of times the predicted packet throughput exceeds the historical normal range within a preset future time period, providing a quantitative basis for potential risk assessment.

[0074] In this embodiment, the number of times the predicted link bandwidth utilization rate exceeds the historical normal range and the number of times the predicted packet throughput exceeds the historical normal range are counted within the next hour, providing a quantitative basis for potential risk assessment.

[0075] S54. Compare the number of times the statistical link bandwidth utilization rate exceeds the historical normal range and the number of times the predicted packet throughput exceeds the historical normal range with the preset number thresholds. If either indicator exceeds the preset number threshold, it is determined that there is a potential risk. If neither indicator exceeds the preset number threshold, the risk assessment ends and the next cycle of data is awaited.

[0076] The preset threshold for the number of occurrences is set to exceed 3 consecutive occurrences or 5 cumulative occurrences.

[0077] S55. When a potential risk is identified, generate future potential risk assessment information and notify the operation and maintenance personnel to take corresponding measures to deal with possible power communication network anomalies in advance. The corresponding measures taken by the operation and maintenance personnel include adjusting routing strategies, expanding bandwidth, or optimizing load distribution.

[0078] It should be noted that by matching and comparing the predicted traffic characteristic data sequence with the traffic behavior baseline model, it is possible to identify abnormal link bandwidth utilization and abnormal message throughput that may occur in the future, thus enabling a forward-looking assessment of potential risks to the power communication network. By counting the number of times the predicted traffic characteristic data exceeds the normal range of the baseline and combining it with a preset threshold for comprehensive judgment, it is possible to effectively reduce false alarms caused by occasional fluctuations, improve the accuracy and reliability of potential risk assessment results, and provide decision-making basis for operation and maintenance personnel.

[0079] The above-disclosed embodiments are merely preferred embodiments of the present invention, but the present invention is not limited thereto. Any non-creative variations that can be conceived by those skilled in the art, as well as any improvements and modifications made without departing from the principles of the present invention, should fall within the protection scope of the present invention.

Claims

1. A method for anomaly detection and prediction in power communication networks based on flow analysis, characterized in that, Includes the following steps: Step S1. Obtain the historical traffic characteristic data sequence of the target power communication network. After denoising the historical traffic characteristic data sequence, perform cluster analysis using a clustering algorithm. Construct a traffic behavior baseline model based on the cluster analysis results. Step S2. Dynamically monitor the key links and core nodes of the target power communication network, dynamically adjust the collection frequency based on traffic bursts and link service priorities, collect real-time traffic characteristic data, calculate the joint anomaly index based on the traffic behavior baseline model, and judge anomalies. Step S3. Arrange the real-time collected traffic characteristic data in the order of collection time to construct a traffic characteristic time series. Through empirical mode decomposition, obtain the stationary traffic characteristic time series. Step S4. The stabilized flow characteristic time series is subjected to trend analysis and prediction using a combination of variational mode decomposition and autoregressive moving average model to obtain the predicted flow characteristic data series; Step S5. Match and compare the predicted traffic characteristic data sequence with the traffic behavior baseline model, and count the number of times the predicted traffic characteristic data exceeds the normal range of the baseline within a preset future time period. If the number of times exceeds the preset threshold, generate future potential risk assessment information.

2. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 1, characterized in that, Step S1 specifically includes: S11. Obtain the historical traffic characteristic data sequence corresponding to the target power communication network; S12. Denoise the historical traffic characteristic data sequence using improved wavelet packet transform; S13. For the denoised historical traffic characteristic data sequence, cluster analysis is performed based on the number of connections using a clustering algorithm. The operating status of the power communication network is divided into multiple load levels, and a normal fluctuation range of bandwidth and throughput is established for each level to generate a traffic behavior baseline model.

3. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 2, characterized in that, The noise reduction process in step S12 specifically includes: S121. Select the wavelet packet basis function and decomposition level suitable for the historical flow characteristic data sequence; use the selected wavelet packet basis function and decomposition level to perform wavelet packet decomposition on the historical flow characteristic data sequence to obtain multiple sub-band signals of different frequency bands, each frequency band corresponding to a series of wavelet packet coefficients; S122. Calculate the energy entropy for the wavelet packet coefficients of each frequency band; S123. Adaptively determine the threshold for each frequency band based on energy entropy; S124. Soft thresholding is performed on the wavelet packet coefficients of each frequency band using the thresholds determined for each frequency band; S125. Perform inverse wavelet packet transform on the wavelet packet coefficients after processing with the soft threshold function to reconstruct the denoised historical traffic feature data sequence.

4. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 3, characterized in that, Step S13 specifically includes: S131. A density-based noisy spatial clustering algorithm is used to perform cluster analysis on the denoised historical traffic feature data sequence to obtain multiple clusters with high connectivity. S132. Construct a corresponding traffic behavior baseline sub-model for each cluster of connection counts, and combine them to generate a traffic behavior baseline model; S133. Construct a sliding window data sequence of length L, store the real-time detected traffic feature data into the constructed sliding window data sequence in chronological order, and perform dynamic update processing on the traffic behavior baseline model based on sliding window density clustering. S134. At preset time intervals, the traffic characteristic data in the sliding window data sequence are re-clustered to obtain updated connection number clusters; S135. For the updated connection number cluster, execute step S132 to generate an updated traffic behavior baseline sub-model. Replace the traffic behavior baseline sub-model corresponding to the updated connection number cluster in the original model with the newly generated traffic behavior baseline sub-model to generate an updated traffic behavior baseline model.

5. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 4, characterized in that, Step S132 specifically includes: S1321. For each cluster of connection counts, extract the corresponding denoised historical traffic feature data from the denoised historical traffic feature data sequence to generate a target historical traffic feature data group corresponding to the cluster of connection counts. S1322. Extract the historical link bandwidth utilization data of each individual in the target historical traffic feature data group to form a historical link bandwidth utilization data group; extract the historical packet throughput data of each individual in the target historical traffic feature data group to form a historical packet throughput data group. S1323. Determine the range information of the number of connections corresponding to each cluster of connections. The range information includes the minimum to maximum value of the historical number of connections in the cluster of connections. S1324. Define the normal range for the historical link bandwidth utilization data group and the historical packet throughput data group respectively to obtain the historical normal link bandwidth utilization range information and the historical normal packet throughput range information. S1325. Combine the historical normal link bandwidth utilization range information and the historical normal packet throughput range information with the connection number range information corresponding to each connection number cluster to determine the traffic behavior baseline sub-model corresponding to that connection number cluster. S1326. Combine the traffic behavior baseline sub-models corresponding to all connection number clusters to generate a traffic behavior baseline model.

6. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 5, characterized in that, Step S2 specifically includes: S21. Collect traffic characteristic data of key links and core nodes of the target power communication network in real time according to the dynamic acquisition frequency. The traffic characteristic data includes link bandwidth utilization data, message throughput data, connection number data and protocol type distribution data. S22. Match the current connection count data with the connection count range information in the traffic behavior baseline model to determine the corresponding target traffic behavior baseline sub-model; S23. Calculate the deviation of the link bandwidth utilization and packet throughput in the current traffic characteristic data from the target traffic behavior baseline sub-model, and obtain the bandwidth deviation respectively. and throughput deviation ; S24. Construct a joint anomaly index based on bandwidth deviation and throughput deviation; S25. Compare the calculated joint anomaly index J with a preset threshold. Compare; if J> If the current traffic characteristics deviate from the normal pattern, an abnormal warning message will be generated.

7. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 6, characterized in that, Step S3 specifically includes: S31. Arrange the flow characteristic data collected by dynamic monitoring strictly in chronological order of collection time to obtain the flow characteristic time series; S32. Perform empirical mode decomposition on the flow characteristic time series, and adaptively decompose the original flow characteristic time series x(t) into several intrinsic mode function components and a residual component; S33. Calculate the sample entropy value for each IMF component; S34. Set the sample entropy value to be greater than the preset entropy threshold. The IMF component is determined to be a random component, and the sample entropy value is not greater than The IMF component is determined to be a deterministic component; S35. Superimpose all deterministic components with the residual components to obtain the stationary trend term sequence; superimpose all random components to obtain the stationary random term sequence; combine the stationary trend term sequence and the stationary random term sequence to obtain the stationary flow characteristic time series.

8. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 7, characterized in that, Step S4 specifically includes: S41. Perform variational mode decomposition (VMD) on the stationary flow characteristic time series to decompose it into K eigenmode function component sequences at different frequency scales and a residual sequence; S42. For each sequence of intrinsic mode function components and residual sequences The autoregressive moving average model was used to model the components, and the prediction models for each component were obtained. S43. Input the historical flow characteristic data corresponding to each intrinsic mode function component sequence into the corresponding autoregressive moving average model, and calculate the predicted value at the future time t+τ. The residual sequence is input into the corresponding autoregressive moving average model to obtain the predicted residual values ​​for future times. ; S44. By superimposing the predicted values ​​of each intrinsic mode function component sequence at future time and the predicted residual values, the predicted flow characteristic data at the future time t+τ is obtained. ; S45. Repeat steps S43 to S44 for multiple consecutive future moments to obtain predicted traffic feature data corresponding to multiple future moments, arrange them in chronological order, and generate a predicted traffic feature data sequence.

9. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 8, characterized in that, The superposition and reconstruction formula is: in, This represents the predicted flow characteristic data corresponding to the future time t+τ; This represents the predicted value of the k-th intrinsic mode function component sequence at a future time. This represents the predicted residual value at a future time.

10. The method for anomaly detection and prediction in power communication networks based on flow analysis according to claim 9, characterized in that, Step S5 specifically includes: S51. Traverse each predicted data point in the predicted traffic feature data sequence, match the predicted connection number of the current predicted data point with the range of connection numbers in the traffic behavior baseline model, and find the target baseline sub-model corresponding to its connection number interval. S52. Determine whether the predicted link bandwidth utilization and predicted packet throughput are within the range of historical normal link bandwidth utilization and historical normal packet throughput of the target traffic behavior baseline sub-model, and assess potential anomalies. S53. For each predicted data point, count the number of times the predicted link bandwidth utilization rate exceeds the historical normal range and the number of times the predicted packet throughput exceeds the historical normal range within a preset future time period. S54. Compare the number of times the statistical link bandwidth utilization rate exceeds the historical normal range and the number of times the predicted packet throughput exceeds the historical normal range with the preset number thresholds. If either indicator exceeds the preset number threshold, it is determined that there is a potential risk. S55. When a potential risk is identified, generate future potential risk assessment information and take corresponding measures.