Intelligent management method and system for communication device
By preprocessing and feature extraction of raw traffic data, and utilizing a two-layer convolutional network and a multi-head self-attention mechanism, the problems of messy terminal traffic data and low efficiency of traditional models are solved, enabling intelligent management and efficient anomaly detection of communication equipment.
Patent Information
- Application Number
- CN202611093237.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-22
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the raw traffic data collected by the terminal is messy, and traditional models only extract single-class, single-granularity traffic features, resulting in low efficiency and accuracy.
By preprocessing the raw traffic data, including missing value removal, noise filtering, feature redundancy removal, and numerical normalization, multi-scale features are extracted using a two-layer convolutional network. Then, multi-head self-attention and bidirectional LSTM are combined to perform feature fusion, generating a fused spatiotemporal feature vector, thereby enabling intelligent management of communication devices.
It improves the accuracy and efficiency of anomaly identification, adapts to the computing power of edge devices, forms a closed loop of security operation and maintenance, reduces false alarms and missed alarms, and realizes automated management and control of communication equipment.
Smart Images

Figure CN123145167A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of edge data transmission technology, and more specifically to a method and system for intelligent management of communication devices. Background Technology
[0002] Currently, various industrial, IoT, and base station-type edge communication devices are widely deployed in a distributed manner. Edge nodes continuously generate massive amounts of heterogeneous network traffic data. Traditional communication equipment management systems rely on fixed rule bases to complete edge-side traffic security detection and equipment operation and maintenance. At the data processing level, the raw traffic collected by edge devices generally suffers from problems such as missing fields, collection distortion and noise, and complex and redundant feature dimensions. The numerical values of various traffic features vary greatly, and the number of normal traffic and attack traffic samples is unbalanced. Directly using them for detection can easily cause model training oscillations and significant deviations in recognition results.
[0003] Publication No. CN121907872A discloses a real-time processing method for power equipment condition monitoring data based on edge computing. This method achieves localized data decision-making through an edge computing architecture, completing preprocessing, feature extraction, and condition analysis directly at the terminal, uploading only key summary information, significantly reducing the amount of data transmitted over the network, and effectively alleviating bandwidth pressure and communication costs. Utilizing the real-time processing capabilities of the edge, health indicators are collected and calculated synchronously at the millisecond level, compressing the entire process response latency to the minute level, significantly improving the early warning timeliness of rapid faults such as bearing loosening and winding overheating. Through cross-validation of composite indicators, it accurately identifies composite fault modes such as mechanical anomalies, overheating, and excessive harmonics, improving diagnostic accuracy and reliability.
[0004] The raw traffic data collected by the terminal is messy, unbalanced, and redundant in features. Traditional models only extract single-class, single-granularity traffic features, resulting in large deviations in the identification of unidirectional time-series structures. The models have high computational overhead and are not suitable for edge devices. Furthermore, traffic detection is disconnected from equipment operation and maintenance, leading to many false alarms and missed alarms in anomaly identification. Communication equipment relies on manual management, resulting in low efficiency in security operation and maintenance. Summary of the Invention
[0005] The purpose of this invention is to solve the problem mentioned in the background art that the raw traffic data collected by the terminal is messy and the traditional model only extracts single-class single-granularity traffic features, resulting in low efficiency and accuracy. Therefore, this invention proposes an intelligent management method and system for communication equipment.
[0006] A first aspect of this invention provides an intelligent management method for communication devices, the method comprising:
[0007] Collect raw traffic data from each communication device, and preprocess the raw traffic data to obtain standard traffic data;
[0008] The standard traffic data is input into a two-layer convolutional network to obtain a spatial feature map. Feature modeling is performed on the spatial feature map to obtain a multi-scale feature group. The multi-scale feature group is fused to obtain a fused spatiotemporal feature vector.
[0009] The classification result is determined based on the fused spatiotemporal feature vector, and the communication equipment is managed based on the classification result.
[0010] By standardizing raw traffic data and optimizing model input quality, integrating multi-scale spatiotemporal traffic features, false positives and false negatives in anomaly detection are reduced, and the computing power of edge devices is adapted to the needs of the network. The entire process forms a closed loop for secure operation and maintenance, improving the efficiency of network anomaly detection and intelligent management.
[0011] Optionally, preprocessing the raw traffic data to obtain standard traffic data includes:
[0012] The original traffic dataset is processed by removing missing values, imputing the mean, and filtering noisy samples to obtain cleaned traffic data.
[0013] The cleaned flow data was filtered using a combination of Pearson correlation coefficient and random forest to remove highly redundant and low-discrimination features, resulting in simplified flow data.
[0014] Numerical normalization is performed on the simplified traffic dataset to map it to the [0,1] interval to obtain standardized traffic data.
[0015] The preprocessing process systematically organizes the raw traffic data layer by layer. First, it removes missing, distorted, noisy, and dirty data to ensure data integrity and usability. Then, it uses two algorithms to jointly remove redundant and invalid features, reducing data dimensionality and subsequent computational overhead. Finally, it standardizes the data scale by unifying the numerical range, eliminating interference from magnitude differences, optimizing the overall data distribution, and balancing sample features. This avoids model training oscillations and identification biases from the data source, providing a high-quality and lightweight input base for the subsequent network model to accurately extract abnormal traffic features.
[0016] Optionally, inputting the standard traffic data into a two-layer convolutional network to obtain spatial feature maps includes:
[0017] The standard traffic data is input into a two-layer convolutional network. The first convolutional layer performs basic message feature extraction on the standard traffic data to obtain a primary feature map, and the second convolutional layer abstracts and extracts deep feature maps from the primary feature map. The two-layer convolutional network includes: a first convolutional layer and a second convolutional layer.
[0018] Max pooling downsampling is performed on the deep feature map to reduce its dimensionality, resulting in a pooled feature map. The pooled feature map is then flattened, batch normalized, and ReLU nonlinear activation is performed sequentially to obtain a normalized one-dimensional feature vector.
[0019] The normalized one-dimensional feature vectors are fused through a fully connected layer and Dropout regularization is used to suppress overfitting, outputting a spatial feature map.
[0020] This approach extracts static spatial features of traffic in a hierarchical manner. First, two levels of convolution are used to sequentially capture shallow basic information and deep combined attack features from the packets. Then, max pooling is used to compress data dimensionality and reduce the computational burden on edge devices. Flattening, batch normalization, and ReLU activation are combined to stabilize the data distribution and introduce non-linear expressions. Finally, fully connected layers are used to integrate features, and Dropout is used to suppress model overfitting. This fully exploits the topological features of data packets, enhancing the model's ability to capture various hidden packet anomalies.
[0021] Optionally, feature modeling of the spatial feature map to obtain a multi-scale feature set includes:
[0022] The spatial feature map is split into two sets of features at different granular scales to obtain the original feature sequence Fi and the original feature sequence Gi. Global average pooling and global max pooling are performed on Fi to obtain the global average feature and global peak feature of Fi. Global average pooling and global max pooling are performed on Gi to obtain the global average feature and global peak feature of Gi.
[0023] The first feature sequence is obtained by cross-injecting the global average feature of Fi and the global peak feature of Fi into the original feature sequence of Gi. The second feature sequence is obtained by cross-injecting the global average feature of Gi and the global peak feature of Gi into the original feature sequence of Fi. The first feature sequence and the second feature sequence are combined to obtain the cross-interaction feature sequence.
[0024] Obtain the time node for standard traffic data collection, determine the time identifier vector based on the time node, add the time identifier vector to the cross-interaction feature sequence to obtain the target interaction feature sequence, and input the target interaction feature sequence into the multi-head self-attention MSA layer to obtain a multi-scale feature group.
[0025] The spatial feature map is split into two scale features and global trend and local abnormal peak features are extracted by dual pooling. The two scale sequences are then cross-injected to achieve information exchange. Traffic collection time coding is introduced to mark the time sequence position. Based on multi-head self-attention, long-distance feature association is automatically modeled. Attack-related key features are dynamically weighted and amplified, and redundant noise is filtered. It takes into account both global traffic patterns and subtle abnormal packet features, makes up for the lack of single-scale feature information, and greatly improves the model's ability to capture features of covert and complex network attacks.
[0026] Optionally, fusing the multi-scale feature groups to obtain a fused spatiotemporal feature vector includes:
[0027] The multi-scale feature group is converted into a time-series input sequence, generating a forward time-series sequence and a reverse time-series sequence, respectively.
[0028] The forward temporal sequence is input into the forward LSTM to calculate the forward temporal hidden layer features; the reverse temporal sequence is input into the reverse LSTM to calculate the reverse temporal hidden layer features; the forward temporal hidden layer features and the reverse temporal hidden layer features are fused to obtain the fused spatiotemporal feature vector.
[0029] Optionally, determining the classification result based on the fused spatiotemporal feature vector includes:
[0030] The numbers in the fused spatiotemporal feature vector are converted into probability values, and two probabilities are output. Probability 1 and probability 2 are compared. If probability 1 is greater than probability 2, the classification result is determined to be normal; otherwise, the classification result is determined to be abnormal. The probabilities include probability 1 and probability 2. Probability 1 represents the probability that the current traffic is normal traffic, and probability 2 represents the probability that the current traffic is abnormal traffic.
[0031] A second aspect of this invention provides an intelligent management system for communication devices, the system comprising:
[0032] The preprocessing module is used to collect raw traffic data from various communication devices and preprocess the raw traffic data to obtain standard traffic data.
[0033] The feature extraction module is used to input the standard traffic data into a two-layer convolutional network to obtain a spatial feature map, perform feature modeling on the spatial feature map to obtain a multi-scale feature group, and fuse the multi-scale feature group to obtain a fused spatiotemporal feature vector.
[0034] The device management module is used to determine the classification result based on the fused spatiotemporal feature vector and to manage the communication devices based on the classification result.
[0035] The beneficial effects of this invention are:
[0036] This invention proposes an intelligent management method for communication devices. By cleaning, simplifying features, normalizing, and balancing samples of raw traffic, it eliminates interference from dirty data, redundant features, and numerical differences, providing high-quality input for the model and reducing computational overhead. Simultaneously, it mines the spatiotemporal features of traffic, taking into account both global trends and local attack details, adapting to lightweight inference for edge devices, and reducing false positives and false negatives in anomaly detection. Based on spatiotemporal features, it accurately identifies traffic types, and the classification results enable automated security management of communication devices, forming a complete closed loop and improving the accuracy of anomaly detection and the computational efficiency of edge communication devices. Attached Figure Description
[0037] Figure 1A flowchart of a communication device intelligent management method provided in an embodiment of the present invention. Detailed Implementation
[0038] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.
[0039] This invention provides an intelligent management method for communication devices. See also... Figure 1 The method includes the following steps:
[0040] S101: Collect raw traffic data from each communication device and preprocess the raw traffic data to obtain standard traffic data;
[0041] S102, standard traffic data is input into a two-layer convolutional network to obtain a spatial feature map, feature modeling is performed on the spatial feature map to obtain a multi-scale feature group, and the multi-scale feature group is fused to obtain a fused spatiotemporal feature vector;
[0042] S103, determine the classification result based on the fused spatiotemporal feature vector, and manage the communication equipment based on the classification result.
[0043] In one implementation, the raw traffic dataset generated by all communication devices is collected, and missing value removal, mean imputation, and noise sample filtering are performed sequentially to obtain cleaned traffic data; then, redundant features are jointly screened using Pearson correlation coefficient and random forest to obtain simplified traffic data; finally, the simplified traffic data is normalized to the [0,1] interval and positive and negative samples are balanced to output standard traffic data.
[0044] The process involves cleaning raw, dirty data, removing redundant features, unifying numerical values, and balancing samples. This eliminates model interference caused by missing data, acquisition noise, feature duplication, differences in numerical magnitude, and sample imbalance, reducing the computational load of subsequent networks, ensuring the stability of subsequent feature extraction model training, and improving the quality of basic data for anomaly identification.
[0045] In one implementation, standard traffic data is fed into a two-layer convolutional network, and after two layers of convolution, max pooling, flattening, batch normalization, ReLU, full connection, and Dropout operations, a spatial feature map is output. The spatial feature map is then split into multiple scales, global features are extracted using dual pooling, cross-injected, and modeled using multi-head self-attention to generate multi-scale feature groups. The multi-scale feature groups are then converted into temporal sequences and input into a bidirectional BiLSTM, and the bidirectional temporal features are fused to obtain a fused spatiotemporal feature vector.
[0046] Simultaneously mining static spatial packet features and dynamic temporal change features of traffic, taking into account both global traffic trends and local attack details through a multi-scale attention mechanism, bidirectional BiLSTM fully captures the traffic mutation patterns before and after the attack, generating feature vectors containing complete spatiotemporal anomaly information, significantly reducing the probability of missed and false alarms of traffic anomalies, and lightweight operation is adapted to the limited computing power of edge communication devices.
[0047] In one implementation, the fused spatiotemporal feature vector is input into the Softmax layer to calculate the probability of normal / attack traffic, and the traffic classification result is output by comparing the probability magnitudes. Based on the classification result, intelligent management operations such as traffic access, uploading abnormal features to the cloud, remote device control, and security alarms are performed on the communication device.
[0048] Complete spatiotemporal characteristics accurately distinguish normal traffic from abnormal traffic caused by network attacks, enabling real-time intelligent judgment of communication device traffic; based on the classification results, local processing, cloud review, and device operation and maintenance management are carried out in layers, forming an automated security management closed loop for edge communication devices, eliminating the need for manual inspections and improving the overall security protection efficiency of communication networks.
[0049] In one embodiment, preprocessing the raw traffic data to obtain standard traffic data includes:
[0050] The original traffic dataset was processed by removing missing values, imputing the mean, and filtering noisy samples to obtain cleaned traffic data.
[0051] The cleaned flow data was filtered using a combination of Pearson correlation coefficient and random forest to remove highly redundant and low-discrimination features, resulting in simplified flow data.
[0052] Numerical normalization is performed on the simplified traffic dataset to map it to the [0,1] interval to obtain standardized traffic data.
[0053] In one implementation, the raw traffic dataset generated by the terminal layer device is collected, and missing value removal, mean imputation, and noise sample filtering are performed on the raw traffic dataset to obtain a cleaned traffic dataset. The dataset is collected and generated by terminal devices such as IoT sensors, industrial communication terminals, and edge gateways, and contains a large number of raw fields such as data packet length, transmission port, connection duration, uplink and downlink traffic, and alarm logs. There are generally three types of dirty data: missing data with some fields empty, and extreme error noise data generated by abnormal device collection.
[0054] The three-step serial cleaning operation processes the raw traffic dataset:
[0055] (1) Missing value removal: Directly delete traffic samples with large areas of missing fields in the entire row that cannot be repaired to avoid invalid data interfering with model learning;
[0056] (2) Mean filling: For a small number of samples with missing fields, calculate the average of all valid values of the field and fill the missing positions with the average value to retain usable samples and not waste effective collected data;
[0057] (3) Noise sample filtering: Set a numerical threshold to filter out abnormal and distorted data that exceeds the reasonable range (such as negative traffic values, single data packet size far exceeding the device limit, etc.).
[0058] Output: Cleaned traffic dataset, with no large gaps or distortion noise, and complete and usable field data for each sample.
[0059] In one implementation, the cleaned traffic dataset is filtered using a combination of Pearson correlation coefficient and random forest to remove highly redundant and low-discriminative features, resulting in a simplified traffic dataset.
[0060] The input traffic dataset after cleaning contains dozens to hundreds of traffic features. Many features are highly repetitive or irrelevant to "whether it is a network attack". Redundant features will significantly increase the computational load of the model and interfere with the model's judgment.
[0061] (1) Pearson correlation coefficient screening: Calculate the linear correlation between all features. If the correlation coefficient between two features is close to 1, it means that the information of the two features is highly repeated. Eliminate redundant features to reduce the repetitive information of features.
[0062] (2) Random forest feature importance screening: The contribution weight of each feature to "distinguishing normal / attack traffic" is calculated by the random forest model, and low-discrimination features with extremely low weights that cannot identify anomalies are removed;
[0063] It removes duplicate features while retaining key features that can identify network attacks, outputting a simplified traffic dataset with a significant reduction in feature dimensions. Only core traffic fields that are strongly correlated with security anomalies and have no duplication or redundancy are retained, reducing the computational power consumption of subsequent convolutional networks.
[0064] In one implementation, numerical normalization is performed on the simplified traffic dataset to map it to the [0,1] interval, while oversampling of a minority of samples and undersampling of a majority of samples are used to balance the sample distribution to obtain standardized traffic samples.
[0065] The input simplified traffic dataset has a wide range of numerical values for different features (e.g., connection duration is in thousands, port number is in hundreds). The inconsistent numerical scale will lead to slow convergence of neural network training. In addition, the dataset has a sample imbalance problem: there are a large number of normal traffic samples and a small number of attack and abnormal samples (minority class). The model is prone to bias towards identifying normal traffic and missing attacks.
[0066] Two processing operations are executed simultaneously:
[0067] (1) Numerical normalization mapping to the [0,1] interval: The minimum-maximum normalization formula is used to compress all the values of each column of features to between 0 and 1, unify the numerical scale of all features, and ensure that the convolutional network learns each type of feature equally.
[0068] (2) Sample balancing: Oversampling of a minority of samples: Copying and expanding rare attack samples to increase the number of abnormal samples; Undersampling of the majority of samples: Randomly deleting a large number of duplicate normal traffic samples to reduce the proportion of normal samples;
[0069] Ultimately, the number of samples for normal traffic and attack traffic is made similar, thus addressing the model's bias towards the majority class. The output product is standardized traffic samples, which are the final product of the entire preprocessing process. The data is clean, the features are concise, the numerical scale is uniform, and the positive and negative samples are balanced. They can be directly input into a two-layer convolutional network for spatial feature extraction.
[0070] In one embodiment, inputting standard traffic data into a two-layer convolutional network to obtain spatial feature maps includes:
[0071] Standard traffic data is input into a two-layer convolutional network. The first convolutional layer performs basic message feature extraction on the standard traffic data to obtain a primary feature map, and the second convolutional layer abstracts and extracts deep feature maps from the primary feature map. The two-layer convolutional network includes: a first convolutional layer and a second convolutional layer.
[0072] Max pooling downsampling is performed on the deep feature map to reduce its dimensionality, resulting in a pooled feature map. The pooled feature map is then flattened, batch normalized, and ReLU nonlinear activation is performed sequentially to obtain a normalized one-dimensional feature vector.
[0073] The normalized one-dimensional feature vectors are fused through a fully connected layer and Dropout regularization is used to suppress overfitting, outputting a spatial feature map.
[0074] In one implementation, standardized traffic samples are input into a two-layer convolutional network. The first convolutional layer performs basic message feature extraction to obtain a primary feature map, and the second convolutional layer abstracts and extracts deep feature maps from the primary feature map.
[0075] Standardized traffic samples are normalized network traffic data, including all original traffic values such as message length, port, transmission protocol, and data packet layering structure. They are uniform in format, without missing data, and have balanced samples, and can be directly fed into convolutional networks for computation.
[0076] A two-layer convolutional network consists of only two convolutional computation units: a first convolutional layer and a second convolutional layer.
[0077] The first convolutional operation extracts basic message features. The convolutional kernel slides through all the values of the standardized traffic sample to capture the most intuitive and shallow basic message information, such as single packet size, source and destination ports, protocol identifiers, and simple features such as packet header fields. After the operation is completed, a primary feature map is produced.
[0078] The primary feature map serves to record only the surface-level, intuitive basic information of the packets. It has a coarse feature granularity and lacks abstract correlation information.
[0079] The second convolution operation: abstracts and extracts from the primary feature map, and the convolution kernel slides again to traverse the primary feature map produced in the previous step, combining and associating multiple shallow basic features to mine deep combined features, and producing a deep feature map after the operation is completed.
[0080] The role of deep feature maps: They fuse multiple basic message features to form abstract spatial features with attack-detectability capabilities, and are the core output of the convolution stage.
[0081] In one implementation, max pooling downsampling is performed on the deep feature map to reduce its dimensionality, resulting in a pooled feature map. The deep feature map is then divided into multiple small regions, and each region retains only the largest feature value and discards the remaining minor values.
[0082] ① Dimensionality reduction: Significantly reduces the amount of data in the feature map, reduces the computational load of all subsequent steps, and adapts to the low computing power of edge devices;
[0083] ② Retain key features: The maximum value corresponds to highly identifiable features such as traffic mutations and abnormal packets, and filters out useless and redundant information.
[0084] Pooled feature maps (smaller, simplified feature maps that retain only core local features).
[0085] In one implementation, the pooled feature map is sequentially flattened, batch normalized, and ReLU nonlinear activation to obtain a normalized one-dimensional feature vector.
[0086] The first step is to flatten the pooling feature map, which is a two-dimensional matrix. The fully connected network can only receive one-dimensional data. The flattening operation straightens the two-dimensional matrix in sequence and converts it into a long one-dimensional sequence.
[0087] The second step is batch normalization, which standardizes and scales the numerical values of the batch input to unify the data distribution range; this solves the problems of gradient vanishing and slow convergence during deep network training, making model training more stable.
[0088] The third step is ReLU nonlinear activation, which introduces nonlinear calculation logic into the data: values less than 0 are set to 0, and values greater than 0 remain unchanged.
[0089] This step enables the model to learn complex, non-linear combinations of network attack features. Without this step, the network can only learn simple linear patterns and cannot identify complex abnormal traffic.
[0090] After all three steps are completed, the output is a unified normalized one-dimensional feature vector (a one-dimensional feature vector with stable numerical distribution and non-linear expressive ability).
[0091] In one implementation, the normalized one-dimensional feature vector is fused through a fully connected layer and overfitted by Dropout regularization to output a spatial feature map.
[0092] Each value within the vector undergoes a linear operation with the network weights, fusing and integrating all the scattered one-dimensional features into a unified representation, condensing all the spatial structure information of the message, and strengthening the expression of abnormal features.
[0093] Dropout regularization suppresses overfitting by randomly and temporarily shutting down some neuron connections during model training. This prevents the model from over-memorizing traffic data from the training set and improves the model's ability to recognize and generalize unknown new types of attack traffic.
[0094] The spatial feature map, containing static spatial information of all traffic, includes the basic structure of the message, deep combined attack features, simplified core local features, and normalized stable feature representation. It is the final output of the spatial feature learning module and is directly used as the input material for the downstream multi-scale feature fusion module.
[0095] In one embodiment, feature modeling of a spatial feature map to obtain a multi-scale feature set includes:
[0096] The spatial feature map is split into two sets of features at different granular scales to obtain the original feature sequence Fi and the original feature sequence Gi. Global average pooling and global max pooling are performed on Fi to obtain the global average feature and global peak feature of Fi. Global average pooling and global max pooling are performed on Gi to obtain the global average feature and global peak feature of Gi.
[0097] The first feature sequence is obtained by cross-injecting the global average feature of Fi and the global peak feature of Fi into the original feature sequence of Gi. The second feature sequence is obtained by cross-injecting the global average feature of Gi and the global peak feature of Gi into the original feature sequence of Fi. The first feature sequence and the second feature sequence are combined to obtain the cross-interactive feature sequence.
[0098] Obtain the time node for standard traffic data collection, determine the time identifier vector based on the time node, add the time identifier vector to the cross-interaction feature sequence to obtain the target interaction feature sequence, and input the target interaction feature sequence into the multi-head self-attention MSA layer to obtain the multi-scale feature group.
[0099] In one implementation, the spatial feature map only contains local traffic features at a single level, and cannot simultaneously take into account coarse-grained global trends and fine-grained attack details. By splitting into multiple scales, extracting complementary information through dual pooling, cross-injection, and attention weighting, abnormal features at different scales are fused to solve the technical defects of pooling losing key attack features and incomplete information at a single scale.
[0100] In one implementation, the spatial feature map is split into two sets of features Fi and Gi with different granular scales. Global average pooling and global max pooling are then performed on Fi and Gi respectively to obtain global average features and global peak features.
[0101] Input object: Spatial feature map output from the previous module (feature matrix extracted by CNN, containing local spatial topology of data packets)
[0102] Splitting operation: The same spatial feature map is split into layers and blocks to generate two sets of feature matrices with different granularities.
[0103] Fi: Fine-grained scale features, focusing on small packets, local traffic abrupt changes, and minor attack features (fine-grained details);
[0104] Gi: Coarse-grained scale features, focusing on long-term overall traffic trends and macro-level traffic distribution across the entire network (global overall patterns).
[0105] Dual pooling parallel processing (the same operation is performed on both sets of scale features):
[0106] Global average pooling: Iterate through all values of Fi, take the average value, compress it into a one-dimensional vector, and output the global average feature of Fi; iterate through all values of Gi, take the average value, and output the global average feature of Gi; its function is to capture the overall stable trend of traffic changes.
[0107] Global max pooling: Iterate through all values of Fi, take the maximum value, compress it into a one-dimensional vector, and output the global peak feature of Fi; iterate through all values of Gi, take the maximum value, and output the global peak feature of Gi; its function is to capture prominent features such as traffic surges, abnormal packets, and attack peaks.
[0108] In one implementation, cross-injection means breaking down the isolation between features at two scales, allowing fine-grained and coarse-grained features to exchange global information.
[0109] Injection operation details: Extract the global average feature and global peak feature of Fi, and insert them as additional tokens into the beginning and end positions of the original feature sequence of Gi;
[0110] Extract the global average feature and the global peak feature of Gi, and insert them as additional tokens at the beginning and end of the original feature sequence of Fi;
[0111] Originally, Fi only understood local details and Gi only understood global trends. After injection, the Fi sequence comes with global traffic information and the Gi sequence comes with local abnormal peak information.
[0112] The cross-interaction feature sequence is obtained (containing a novel feature sequence that incorporates bidirectional scale information).
[0113] In one implementation, network traffic is ordered time-series data, and the order of the feature sequence represents the time when the traffic occurred. Embedded position encoding adds a position identifier vector to each feature segment in the sequence, which is used to allow the model to distinguish which segment of traffic comes first and which segment comes last, preventing attention from losing temporal position information. After processing, a target interactive feature sequence with time position information is obtained.
[0114] The multi-head self-attention MSA layer is fed into the model to model global dependencies: MSA calculates the correlation weights between all pairs of features in the sequence and automatically identifies long-distance feature correlations (such as traffic build-up before an attack or traffic drop-off after an attack). This addresses the shortcoming of CNNs, which can only capture local features and cannot establish long-distance feature correlations. The output is a weighted attention feature matrix.
[0115] Superimposed learnable bias weighted filtering of key abnormal features: Introducing dynamically trainable bias parameters to amplify high-weight features with attack behavior and suppress normal traffic and noise redundancy features; automatically filtering irrelevant interference information and strengthening the expression of abnormal features such as Trojans, port scans, and malicious packets.
[0116] Multi-scale feature set (a complete feature set that integrates fine-grained details, coarse-grained global features, location-based temporal information, and weighted enhanced anomaly information).
[0117] In one embodiment, fusing multi-scale feature groups to obtain a fused spatiotemporal feature vector includes:
[0118] The multi-scale feature set is converted into a time-series input sequence, generating a forward time-series sequence and a reverse time-series sequence, respectively.
[0119] The forward temporal sequence is input into the forward LSTM to calculate the forward temporal hidden layer features; the reverse temporal sequence is input into the reverse LSTM to calculate the reverse temporal hidden layer features; the forward temporal hidden layer features and the reverse temporal hidden layer features are fused to obtain the fused spatiotemporal feature vector.
[0120] In one implementation, the multi-scale feature set is a collection of unordered / blocked traffic features. LSTM can only process ordered sequences sorted chronologically, so format conversion is required first.
[0121] According to the time sequence of traffic collection, all feature segments in the multi-scale feature group are reordered and spliced to generate a one-dimensional ordered sequence, which is named the time-series input sequence.
[0122] For example: flow characteristics at time t1 → flow characteristics at time t2 → flow characteristics at time t3... strung together by time;
[0123] Generate two sets of reverse sequences:
[0124] Forward time sequence: Consistent with the original acquisition order, the order is: t1→t2→t3→t4, used to read historical traffic information;
[0125] Reverse time sequence: Reverse the entire \(Y_i^a\) sequence, t4→t3→t2→t1, to read subsequent traffic changes after the attack occurs;
[0126] In one implementation, the inputs are a forward time series sequence and a reverse time series sequence;
[0127] Forward LSTM processes forward time series (forward data flow). LSTM has three built-in core gates, solving the problems of gradient vanishing and inability to capture long-term time series in traditional recurrent networks.
[0128] Forgot gate: Determines and discards useless old traffic information (such as normal traffic that is irrelevant from a long time ago);
[0129] Input gate: Filter key abnormal traffic features at the current moment and store them in the model's memory unit;
[0130] Output gate: Controls which memory features are output to the current result;
[0131] After completing the three-layer gating calculation, the output product is: positive temporal hidden layer features, which only contain the temporal change pattern [from the past to the present].
[0132] The reverse LSTM processes the reverse time sequence (reverse data stream), and also reuses the input gate, forget gate, and output gate logic to read the traffic data from back to front, capturing the traffic fallback and abnormal residual behavior after the attack ends;
[0133] The output after calculation is: reverse temporal hidden layer features, which only contain the temporal change patterns [tracing back from the present].
[0134] Finally, we obtain the forward temporal hidden layer features and the reverse temporal hidden layer features.
[0135] In one implementation, two sets of trainable weight matrices Wr and Wi are set up, and weights are assigned to the positive and negative features respectively. Then, a bias parameter bi is added to perform a linear weighted calculation.
[0136]
[0137] Where W0 represents the weights of the forward temporal hidden layer features, and W1 represents the weights of the backward temporal hidden layer features. These are positive temporal hidden layer features. These are reverse temporal hidden layer features. For bias parameters, To fuse spatiotemporal feature vectors;
[0138] The weights are automatically learned during model training: if the attack behavior is more sensitive to historical traffic, the weights of positive features will automatically increase; if the traffic features after the attack is over are more critical, the weights of negative features will automatically increase.
[0139] The fused spatiotemporal feature vector contains three types of information: ① spatial structure features of data packets extracted by CNN; ② global / local details fused from multi-scale modules; ③ bidirectional temporal variation patterns mined by BiLSTM; it is the most complete feature representation of the entire model.
[0140] In one embodiment, determining the classification result based on the fused spatiotemporal feature vector includes:
[0141] The numbers in the fused spatiotemporal feature vector are converted into probability values, and two probabilities are output. Probability 1 and Probability 2 are compared. If Probability 1 is greater than Probability 2, the classification result is determined to be normal; otherwise, the classification result is determined to be abnormal. The probabilities include Probability 1 and Probability 2. Probability 1 represents the probability that the current traffic is normal traffic, and Probability 2 represents the probability that the current traffic is abnormal traffic.
[0142] In one implementation, the fused spatiotemporal feature vector is input into the Softmax classification layer, mapped to normal / attack binary classification probabilities, and the anomaly classification result is output.
[0143] Input material: fused spatiotemporal feature vector
[0144] The function of the Softmax layer:
[0145] Convert the numbers in the vector into probability values between 0 and 1, and sum all probabilities to equal 1; the model is set to binary classification, and finally outputs two probabilities:
[0146] Probability 1: The probability that the current traffic is normal traffic;
[0147] Probability 2: The probability that the current traffic is an anomaly caused by a network attack.
[0148] Judgment rule: Compare the two probability values, and take the one with the larger value as the final judgment. If they are equal, it is considered abnormal by default.
[0149] Classification results (only two outputs: normal traffic / attack abnormal traffic).
[0150] In one implementation,
[0151] The input is a fused spatiotemporal feature vector, which contains two original scores (for binary classification scenarios, denoted as z1 and z2, these two values are the original scores calculated by the model's neural network, which can be positive or negative and have no range of values; e is the natural exponentiation operation, and the result after calculation will always be greater than 0, regardless of whether the original scores are positive or negative). Add the two index results together to get the total; the probability of each category = the index value of the current category ÷ the sum of the indices of all categories;
[0152] Assume the original scores output by fusing the spatiotemporal feature vectors are: z1=2.3 (normal traffic score), z2=4.1 (attack anomaly score).
[0153] Calculation index: e 2.3 ≈9.974, e 4.1 ≈60.340, total denominator: 9.974+60.340=70.314, normal traffic probability: 9.974÷70.314≈0.142, attack anomaly probability: 60.340÷70.314≈0.858, total checksum: 0.142+0.858=1.
[0154] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention should still fall within the scope of the claims of the present invention.
Claims
1. A method for intelligent management of communication equipment, characterized in that, The method includes: Collect raw traffic data from each communication device, and preprocess the raw traffic data to obtain standard traffic data; The standard traffic data is input into a two-layer convolutional network to obtain a spatial feature map. Feature modeling is performed on the spatial feature map to obtain a multi-scale feature group. The multi-scale feature group is fused to obtain a fused spatiotemporal feature vector. The classification result is determined based on the fused spatiotemporal feature vector, and the communication equipment is managed based on the classification result.
2. The intelligent management method for communication equipment according to claim 1, characterized in that, Preprocessing the raw traffic data to obtain standard traffic data includes: The original traffic dataset is processed by removing missing values, imputing the mean, and filtering noisy samples to obtain cleaned traffic data. The cleaned flow data was filtered using a combination of Pearson correlation coefficient and random forest to remove highly redundant and low-discrimination features, resulting in simplified flow data. Numerical normalization is performed on the simplified traffic dataset to map it to the [0,1] interval to obtain standardized traffic data.
3. The intelligent management method for communication equipment according to claim 1, characterized in that, The standard traffic data is input into a two-layer convolutional network to obtain spatial feature maps, including: The standard traffic data is input into a two-layer convolutional network. The first convolutional layer performs basic message feature extraction on the standard traffic data to obtain a primary feature map, and the second convolutional layer abstracts and extracts deep feature maps from the primary feature map. The two-layer convolutional network includes: a first convolutional layer and a second convolutional layer. Max pooling downsampling is performed on the deep feature map to reduce its dimensionality, resulting in a pooled feature map. The pooled feature map is then flattened, batch normalized, and ReLU nonlinear activation is performed sequentially to obtain a normalized one-dimensional feature vector. The normalized one-dimensional feature vectors are fused through a fully connected layer and Dropout regularization is used to suppress overfitting, outputting a spatial feature map.
4. The intelligent management method for communication equipment according to claim 1, characterized in that, Feature modeling of the spatial feature map yields a multi-scale feature set, including: The spatial feature map is split into two sets of features at different granular scales to obtain the original feature sequence Fi and the original feature sequence Gi. Global average pooling and global max pooling are performed on Fi to obtain the global average feature and global peak feature of Fi. Global average pooling and global max pooling are performed on Gi to obtain the global average feature and global peak feature of Gi. The first feature sequence is obtained by cross-injecting the global average feature of Fi and the global peak feature of Fi into the original feature sequence of Gi. The second feature sequence is obtained by cross-injecting the global average feature of Gi and the global peak feature of Gi into the original feature sequence of Fi. The first feature sequence and the second feature sequence are combined to obtain the cross-interaction feature sequence. Obtain the time node for standard traffic data collection, determine the time identifier vector based on the time node, add the time identifier vector to the cross-interaction feature sequence to obtain the target interaction feature sequence, and input the target interaction feature sequence into the multi-head self-attention MSA layer to obtain a multi-scale feature group.
5. The intelligent management method for communication equipment according to claim 1, characterized in that, The fusion of the multi-scale feature groups to obtain the fused spatiotemporal feature vector includes: The multi-scale feature group is converted into a time-series input sequence, generating a forward time-series sequence and a reverse time-series sequence, respectively. The forward temporal sequence is input into the forward LSTM to calculate the forward temporal hidden layer features; the reverse temporal sequence is input into the reverse LSTM to calculate the reverse temporal hidden layer features; the forward temporal hidden layer features and the reverse temporal hidden layer features are fused to obtain the fused spatiotemporal feature vector.
6. The intelligent management method for communication equipment according to claim 1, characterized in that, The classification result determined based on the fused spatiotemporal feature vector includes: The numbers in the fused spatiotemporal feature vector are converted into probability values, and two probabilities are output. Probability 1 and probability 2 are compared. If probability 1 is greater than probability 2, the classification result is determined to be normal; otherwise, the classification result is determined to be abnormal. The probabilities include probability 1 and probability 2. Probability 1 represents the probability that the current traffic is normal traffic, and probability 2 represents the probability that the current traffic is abnormal traffic.
7. An intelligent management system for communication equipment, characterized in that, The system includes: The preprocessing module is used to collect raw traffic data from various communication devices and preprocess the raw traffic data to obtain standard traffic data. The feature extraction module is used to input the standard traffic data into a two-layer convolutional network to obtain a spatial feature map, perform feature modeling on the spatial feature map to obtain a multi-scale feature group, and fuse the multi-scale feature group to obtain a fused spatiotemporal feature vector. The device management module is used to determine the classification result based on the fused spatiotemporal feature vector and to manage the communication devices based on the classification result.
Citation Information
Patent Citations
Power equipment state monitoring data real-time processing method based on edge calculation
CN121907872A
