A network anomaly detection method, device, equipment and medium
Extracting network data information through multi-level attention models and self-attention models, combined with smoothing processing and dropout operations, solves the problem that traditional methods are difficult to adapt to complex network environments, and improves the robustness and response speed of network anomaly detection.
Patent Information
- Application Number
- CN202410058469.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-01-16
AI Technical Summary
Traditional network anomaly detection methods are too rigid and difficult to adapt to complex and ever-changing network environments. They lack learning and adaptability, cannot effectively detect unknown anomaly patterns, and have slow response speeds.
Multi-level attention models and self-attention models are used to extract information from network data. Through smooth processing, linear transformation, QRelu operations and Dropout operations, it automatically focuses on key information in network data and improves the robustness and adaptability of detection methods. .
It achieves flexible adaptation to the dynamic network environment, improves the ability to capture unknown abnormal patterns, and improves the robustness and response speed of the detection method.
Smart Images

Figure CN117997605B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network anomaly detection, and in particular to a network anomaly detection method, device, equipment and medium. Background Art
[0002] Traditional methods are based on predefined rules and patterns, using rule engines or pattern matching algorithms to detect network anomalies, which may involve setting thresholds, defining rules, or using statistical methods to identify abnormal patterns. Traditional methods have many disadvantages, such as: traditional rules and pattern matching methods are usually rigid and difficult to adapt to complex and changing network environments; rules and thresholds need to be set manually, which may lead to inflexibility and inefficiency for large-scale networks or frequently changing network environments. Traditional methods may not be able to effectively detect unknown abnormal patterns because they lack learning and adaptability, and methods that rely on manual operations may result in slow response because manual intervention usually takes a certain amount of time.
[0003] Some modern methods use machine learning (such as support vector machines, decision trees, random forests, etc.) to build anomaly detection models. This approach usually has disadvantages, including: machine learning methods usually require a large amount of labeled data for training, and it may be difficult to obtain enough labeled data in real scenarios; as the network environment changes, the model may need to be retrained frequently to adapt to new patterns, which poses a challenge to system maintenance and management; some machine learning models may be difficult to explain, which is unacceptable in some application scenarios, especially when performing subsequent analysis of anomalies; some traditional machine learning methods pay less attention to key information, which may lead to insufficient sensitivity to anomalies.
[0004] Therefore, there is an urgent need to address the problem that traditional rule and pattern matching methods are usually too rigid and difficult to adapt to changes in the network environment. Summary of the invention
[0005] The present application provides a network anomaly detection method that can automatically focus on key information in network data, improve the adaptability of the detection method to dynamic network environments, better capture unknown abnormal patterns, and improve the robustness of the detection method.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a network anomaly detection method, the method comprising:
[0008] Step S1, obtaining network data using a standardized interface protocol;
[0009] Step S2, using a multi-level attention model to extract information from the network data to obtain primary data, the multi-level attention model is:
[0010] Q matrix =W q x noml +β;
[0011] K matrix =W k x noml +α;
[0012] Among them, x noml represents the network data after smoothing, x noml The initial dimensions are given as (N, H), W q , W k Represents the decomposition factor based on the linear formula, which is used to decompose the content of the original data. matrix It represents the Q matrix after extraction. After decomposition, its dimension size is (N / W q , H / W q ), K matrix It represents the K matrix after extraction. After decomposition, its dimension size is (N / W k , H / W k ), β and α represent a set of learnable hyperparameters, which are used to unify the dimensions of the output, and use the self-attention model to extract information from the primary data to obtain secondary data;
[0013] Step S3, using the Linear operation to perform linear transformation on the secondary data to obtain transformed data, performing a QRelu operation on the transformed data to obtain data after the QRelu operation, performing a Dropout operation on the data after the QRelu operation to obtain anomaly detection results.
[0014] In a preferred example of the present application, it can be further configured that the smoothing process includes:
[0015]
[0016] Among them, P represents the hyperparameter used to coordinate the data size, with an initial value of 0.5, which is subsequently adjusted based on self-learning based on reverse gradient propagation, x represents network data, and x min Represents the smallest value in the network data, x i represents the current i-th sample, x max Indicates the maximum value in the network data. Represents a hyperparameter that prevents the denominator from being zero.
[0017] In a preferred example of the present application, it can be further configured to include:
[0018] Repeat the detection process of steps S1 to S3 three times for the same network data to obtain three anomaly detection results;
[0019] Select the maximum value among the three abnormal detection results to obtain a maximum value result;
[0020] The dimension of the maximum value result is converted to obtain an output result.
[0021] In a preferred example of the present application, it can be further configured to include:
[0022] Classify the abnormal type of the output result according to the severity or urgency, and obtain the level corresponding to the abnormal type;
[0023] The corresponding preset response measures are triggered according to the level.
[0024] In a preferred example of the present application, it can be further configured to include:
[0025] Automatically record relevant data on detection and response;
[0026] Based on the relevant data, a corresponding abnormal event log is established.
[0027] In a preferred example of the present application, it can be further configured that the relevant data at least includes: anomaly detection results, anomaly types, preset response measures and affected scope.
[0028] In a preferred example of the present application, it can be further configured to include:
[0029] Regularly check and update rule engines, algorithms, and data processing models based on preset business specifications and security standards.
[0030] In a second aspect, the present application provides a network anomaly detection device, the device comprising:
[0031] A data acquisition module, used to acquire network data using a standardized interface protocol;
[0032] The extraction module is used to extract information from the network data using a multi-level attention model to obtain primary data, wherein the multi-level attention model is:
[0033] Q matrix =W q x noml +β;
[0034] K matrix =W k x noml +α;
[0035] Among them, xnoml represents the network data after smoothing, x noml The initial dimensions are given as (N, H), W q , W k Represents the decomposition factor based on the linear formula, which is used to decompose the content of the original data. matrix It represents the Q matrix after extraction. After decomposition, its dimension size is (N / W q , H / W q ), K matrix It represents the K matrix after extraction. After decomposition, its dimension size is (N / W k , H / W k ), β and α represent a set of learnable hyperparameters, which are used to unify the dimensions of the output, and use the self-attention model to extract information from the primary data to obtain secondary data;
[0036] The anomaly detection module is used to perform linear transformation on the secondary data using a Linear operation to obtain transformed data, perform a QRelu operation on the transformed data to obtain data after the QRelu operation, and perform a Dro p out operation to obtain the anomaly detection result.
[0037] In a third aspect, the present application provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the network anomaly detection method as described in any one of the above items are implemented.
[0038] In a fourth aspect, the present application provides a computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the network anomaly detection method as described in any one of the above items is implemented.
[0039] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:
[0040] The present application provides a network anomaly detection method, which uses a standardized interface protocol to obtain network data through step S1; uses a multi-level attention model to extract information from the network data to obtain primary data; and uses a Linear operation to perform a linear transformation on the secondary data to obtain transformed data, performs a QRelu operation on the transformed data to obtain data after the QRelu operation, and performs a Dropout operation on the data after the QRelu operation to obtain anomaly detection results. The detection method automatically pays attention to key information in the network data, improves the adaptability of the detection method to a dynamic network environment, better captures unknown abnormal patterns, and improves the robustness of the detection method. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flowchart of a network anomaly detection method provided by one embodiment of the present application.
[0042] Figure 2 A device diagram of a network anomaly detection method provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION
[0043] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0044] In one embodiment of the present application, a network anomaly detection method is provided. Figure 1 As shown, the method includes:
[0045] Step S1, obtaining network data using a standardized interface protocol;
[0046] Specifically, the standardized interface protocol includes RESTful API or WebSocket, and the network data includes real-time user interaction data and regularly generated system logs. When acquiring network data, encryption and identity authentication mechanisms are used according to circumstances.
[0047] Step S2, using a multi-level attention model to extract information from the network data to obtain primary data, the multi-level attention model is:
[0048] Q matrix =W q x noml +β;
[0049] K matrix =Wk x noml +α;
[0050] Among them, x noml represents the network data after smoothing, x noml The initial dimensions are given as (N, H), W q , W k Represents the decomposition factor based on the linear formula, which is used to decompose the content of the original data. matrix It represents the Q matrix after extraction. After decomposition, its dimension size is (N / W q , H / W q ), K matrix It represents the K matrix after extraction. After decomposition, its dimension size is (N / W k , H / W k ), β and α represent a set of learnable hyperparameters, which are used to unify the dimensions of the output, and use the self-attention model to extract information from the primary data to obtain secondary data;
[0051] Specifically, the network data is first read in, the network data is smoothed, and then the information in the network data is extracted through the multi-level attention model. The multi-level attention model is a three-level attention model based on Transformer, in which Transformer first decomposes the original features into two matrices, Q and K, and then performs attention calculation based on these two matrices. Then, the self-attention mechanism model based on Transformer is used to capture global information of the secondary data. The specific formula is as follows:
[0052]
[0053] Among them, Self Attenion It represents the result obtained after being processed by the self-attention mechanism model, and e refers to the function;
[0054] Step S3, using the Linear operation to perform linear transformation on the secondary data to obtain transformed data, performing a QRelu operation on the transformed data to obtain data after the QRelu operation, performing a Dropout operation on the data after the QRelu operation to obtain anomaly detection results.
[0055] Specifically, firstly, the data dimension is changed for the secondary data obtained in step S2, and the specific formula of the Linear operation is:
[0056] L=M*Self Attenion ;
[0057] Among them, M represents the linear transformation matrix, and L represents the content obtained after the transformation output.
[0058] Then, the linearly extracted data is subjected to a QRelu operation, so that the neural network can learn and represent more complex patterns. Finally, a Dropout operation is performed, which is a regularization technique used in deep neural networks. Its function is to randomly discard (set to zero) some neurons in the neural network during the training process to prevent the model from overfitting the training data. Among them, the neural network uses the Dropout operation to randomly discard some parameters that need to be learned during training, so that the neural network does not rely too much on certain specific neurons during the training process.
[0059] In this embodiment, a standardized interface protocol is used so that the data acquisition step is highly flexible and can adapt to the diversity of data from different sources. Using encryption and authentication mechanisms to obtain data helps prevent unauthorized access and data tampering, and provides protection for the entire data process. Through the three-level attention model, the network data information is converted at multiple levels to extract more information content. Using the self-attention model, the extracted content can better capture global information, improving the expression and generalization capabilities of the model. The QRelu operation is performed on the linearly extracted data, so that the neural network can learn and represent more complex patterns, improving the expression ability of the network. The Dropout operation makes the network not overly dependent on certain specific neurons during the training process, thereby improving the generalization ability of the model. In this embodiment, the abnormality of the network data is predicted through steps S1-S3, so that the detection method automatically pays attention to the key information in the network data, improves the adaptability of the detection method to the dynamic network environment, and better captures unknown abnormal patterns, improving the robustness of the detection method. Moreover, after steps S1-S3, once the abnormality in the network data is identified, the system will be able to classify it into different abnormal types, such as network failures, security attacks, etc. This provides guidance for subsequent response actions and can help system administrators understand the nature and urgency of the problem more quickly.
[0060] In some embodiments, the smoothing process includes:
[0061]
[0062] Among them, P represents the hyperparameter used to coordinate the data size, with an initial value of 0.5, which is subsequently adjusted based on self-learning based on reverse gradient propagation, x represents network data, and x min Represents the smallest value in the network data, x i represents the current i-th sample, x max Indicates the maximum value in the network data. Represents a hyperparameter that prevents the denominator from being zero.
[0063] In specific implementation, due to the unevenness of the received network data, these different data may cause certain features to dominate the model training, while the influence of other features is ignored. Therefore, data preprocessing is required so that the extraction model can eliminate the scale differences between the features, making the extraction model more stable and converging faster. Using the smoothing process, the obtained network data is preprocessed to make the value of each data point smooth, preventing data with large feature differences from causing adverse effects on the model. Among them, P is a hyperparameter. For example, the initial value is set to 0.5. If the value error calculated by the model for the first time is too large, reverse gradient transfer will be performed to adjust the size of P by itself. The hyperparameter P can adjust the data at multiple levels to make the data smoother. Among them, X min 、x max Represents network data. Usually, this data is a bunch of data at the bottom of the computer. We can select the maximum and minimum values in each batch of data.
[0064] In this embodiment, the obtained data signal is preprocessed to make the value of each data point smooth, so as to prevent data with large feature differences from having adverse effects on the extraction model. The hyperparameter P can be adjusted at multiple levels to make the data smoother.
[0065] In some embodiments, it also includes:
[0066] Repeat the detection process of steps S1 to S3 three times for the same network data to obtain three anomaly detection results;
[0067] Select the maximum value among the three abnormal detection results to obtain a maximum value result;
[0068] The dimension of the maximum value result is converted to obtain an output result.
[0069] In specific implementation, the formula for taking the maximum value among the three abnormal detection results and converting the dimension of the maximum value result is:
[0070] Output=W*Max(output1, output2, output3);
[0071] Among them, Output represents the output result, W represents the dimension matrix, Max represents the maximum value function, and output1, output2, and output3 represent the results of three anomaly detections.
[0072] In this embodiment, since the results obtained from multiple executions may be different, comprehensive consideration of multiple results can further improve the model prediction accuracy. In this embodiment, the maximum value of the results predicted by the three models is selected for output, and the dimension is converted through the W matrix, thereby greatly improving the model prediction accuracy.
[0073] In some embodiments, it also includes:
[0074] Classify the abnormal type of the output result according to the severity or urgency, and obtain the level corresponding to the abnormal type;
[0075] The corresponding preset response measures are triggered according to the level.
[0076] In specific implementation, the system classifies the output results into different abnormal types (abnormal) according to the preset abnormal type classification rules, such as network failure, security attack, etc., and then predicts and classifies the risk level of the abnormal type according to the abnormal type to obtain the level corresponding to the abnormal type. The prediction and classification method is:
[0077] P=W p (abnormal);
[0078]
[0079] Among them, W p represents the probability prediction function, abnormal represents the abnormal type of the abnormal detection result, P represents the predicted probability of the level of the current abnormal type, T represents the level type, if the probability P is greater than the threshold θ, then the level of the current abnormal type needs to be set to dangerous (Danger), if P is less than the threshold θ, the level of the current abnormal type is set to normal (Normal).
[0080] For minor or recoverable abnormalities set as Normal, the system will automatically send reminder notifications to relevant users to inform them of the abnormal situation and provide solutions, such as through email, SMS or in-app notifications, to ensure that users can learn about the problem in a timely manner. For more urgent or serious abnormalities set as Danger, the system will take automatic forced shutdown measures to prevent the problem from spreading further or causing greater damage.
[0081] In this embodiment, automatically reminding the user or forcibly closing the system according to the level of the exception type is an intelligent decision-making link in the network exception handling process. Through automation, the response speed of the system is improved, and the impact of the exception on user experience and IT service efficiency is minimized.
[0082] In some embodiments, it also includes:
[0083] Automatically record relevant data on detection and response;
[0084] Based on the relevant data, a corresponding abnormal event log is established.
[0085] During specific implementation, a professional database is used to record the relevant data.
[0086] In this embodiment, the abnormal record tracks and stores the detailed information of each abnormal event through a systematic data recording mechanism, which provides strong support for post-analysis, troubleshooting and system optimization. Use a professional database or log management system to ensure the reliability and accessibility of data.
[0087] In some embodiments, the relevant data includes at least: anomaly detection results, anomaly types, preset response measures and affected scope.
[0088] In this embodiment, the recorded relevant data is relatively detailed, which provides support for in-depth analysis afterwards, and helps system administrators or network engineers better understand the background and root causes of abnormal events. By regularly analyzing abnormal records, the system can identify potential problem patterns and common abnormal causes, thereby adjusting the automated decision-making strategy and improving the system's adaptability and efficiency.
[0089] In some embodiments, it also includes:
[0090] Regularly check and update rule engines, algorithms, and data processing models based on preset business specifications and security standards.
[0091] In specific implementation, the system will regularly update the data model, algorithm and rules of the detection method to reflect the latest network conditions and abnormal patterns. The update also includes regular maintenance of the rule engine. The system will automatically check and update the rules to ensure that they are consistent with the latest business specifications and security standards.
[0092] In this embodiment, the update ensures that the system can adapt to the ever-changing network environment in a timely manner, improve the accuracy and efficiency of anomaly detection and response, and maintain the system's sensitivity to evolving network threats.
[0093] This application also provides a network anomaly detection method and device, see Figure 2 As shown, the device comprises:
[0094] The data acquisition module 101 is used to acquire network data using a standardized interface protocol;
[0095] The extraction module 102 is used to extract information from the network data using a multi-level attention model to obtain primary data. The multi-level attention model is:
[0096] Q matrix =W q x noml +β;
[0097] K matrix =W k x noml +α;
[0098] Among them, x noml represents the network data after smoothing, x noml The initial dimensions are given as (N, H), W q , W k Represents the decomposition factor based on the linear formula, which is used to decompose the content of the original data. matrix It represents the Q matrix after extraction. After decomposition, its dimension size is (N / W q , H / W q ), K matrix It represents the K matrix after extraction. After decomposition, its dimension size is (N / W k , H / W k ), β and α represent a set of learnable hyperparameters, which are used to unify the dimensions of the output, and use the self-attention model to extract information from the primary data to obtain secondary data;
[0099] The anomaly detection module 103 is used to perform linear transformation on the secondary data using a Linear operation to obtain transformed data, perform a QRelu operation on the transformed data to obtain data after the QRelu operation, and perform a Dropout operation on the data after the QRelu operation to obtain an anomaly detection result.
[0100] In one embodiment, the data acquisition module 101 is further used to: perform smoothing processing on the network data, and the smoothing processing is:
[0101]
[0102] Among them, P represents a hyperparameter, which is used to coordinate the data size. Here, the initial value is given as 0.5, and then it is adjusted by self-learning based on reverse gradient propagation. x represents network data. Usually, network information is a pile of data at the bottom of the computer. min Indicates the minimum value in the data, x i represents the current i-th sample, x max Indicates the maximum value in the current data. Represents a hyperparameter that prevents the denominator from being zero.
[0103] In one embodiment, the anomaly detection module 103 is further configured to:
[0104] Repeat the detection process of steps S1 to S3 three times for the same network data to obtain three anomaly detection results;
[0105] Select the maximum value among the three abnormal detection results to obtain a maximum value result;
[0106] The dimension of the maximum value result is converted to obtain an output result.
[0107] The present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the network anomaly detection method as described in any of the above embodiments are implemented.
[0108] The present application also provides a computer-readable storage medium, on which a program is stored, wherein the computer-readable storage medium refers to a carrier for storing data, which may include but is not limited to a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive, and / or a memory stick, etc., and the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The working process, working details, and technical effects of the computer-readable storage medium provided in this embodiment can be found in the above embodiment of a network anomaly detection method, which will not be repeated here.
[0109] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0110] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification. The above-mentioned embodiments only express several implementation methods of the present application, and their descriptions are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several deformations and improvements can be made, which all belong to the protection scope of the present application. Therefore, the protection scope of the patent of this application shall be based on the attached claims.
Claims
1. A network anomaly detection method, characterized in that: include: Step S1, obtaining network data using a standardized interface protocol; Step S2, using a multi-level attention model to extract information from the network data to obtain primary data, the multi-level attention model is: Q matrix =W q x noml +β; K matrix =W k x noml +α; Among them, x noml represents the network data after smoothing, x noml The initial dimensions are given as (N, H), W q , W k Represents the decomposition factor based on the linear formula, which is used to decompose the content of the original data. matrix It represents the Q matrix after extraction. After decomposition, its dimension size is (N / W q , H / W q ), K matrix It represents the K matrix after extraction. After decomposition, its dimension size is (N / W k , H / W k ), β and α represent a set of learnable hyperparameters, which are used to unify the dimensions of the output, and use the self-attention model to extract information from the primary data to obtain secondary data; Step S3, using the Linear operation to perform linear transformation on the secondary data to obtain transformed data, performing a QRelu operation on the transformed data to obtain data after the QRelu operation, performing a Dropout operation on the data after the QRelu operation to obtain anomaly detection results.
2. The network anomaly detection method according to claim 1, characterized in that: The smoothing process comprises: Among them, P represents the hyperparameter used to coordinate the data size, with an initial value of 0.5, which is subsequently adjusted based on reverse gradient propagation. x represents the network data, and x min Represents the smallest value in the network data, x i represents the current i-th sample, x max Indicates the maximum value in the network data. Represents a hyperparameter that prevents the denominator from being zero.
3. The network anomaly detection method according to claim 1, characterized in that: include: Repeat the detection process of steps S1 to S3 three times for the same network data to obtain three anomaly detection results; Select the maximum value among the three abnormal detection results to obtain a maximum value result; The dimension of the maximum value result is converted to obtain an output result.
4. The network anomaly detection method according to claim 3, characterized in that: include: Classify the abnormal type of the output result according to the severity or urgency, and obtain the level corresponding to the abnormal type; The corresponding preset response measures are triggered according to the level.
5. The network anomaly detection method according to claim 4, characterized in that: include: Automatically record relevant data on detection and response; Based on the relevant data, a corresponding abnormal event log is established.
6. The network anomaly detection method according to claim 5, characterized in that: The relevant data includes at least: anomaly detection results, anomaly types, preset response measures and affected scope.
7. The network anomaly detection method according to claim 1, characterized in that: include: Regularly check and update rule engines, algorithms, and data processing models based on preset business specifications and security standards.
8. A network anomaly detection device, characterized in that: include: A data acquisition module, used to acquire network data using a standardized interface protocol; The extraction module is used to extract information from the network data using a multi-level attention model to obtain primary data, wherein the multi-level attention model is: Q matrix =W q x noml +β; K matrix =W k x noml +α; Among them, x noml represents the network data after smoothing, x noml The initial dimensions are given as (N, H), W q , W k Represents the decomposition factor based on the linear formula, which is used to decompose the content of the original data. matrix It represents the Q matrix after extraction. After decomposition, its dimension size is (N / W q , H / W q ), K matrix It represents the K matrix after extraction. After decomposition, its dimension size is (N / W k , H / W k ), β and α represent a set of learnable hyperparameters, which are used to unify the dimensions of the output, and use the self-attention model to extract information from the primary data to obtain secondary data; The anomaly detection module is used to perform linear transformation on the secondary data using a Linear operation to obtain transformed data, perform a QRelu operation on the transformed data to obtain data after the QRelu operation, and perform a Dropout operation on the data after the QRelu operation to obtain an anomaly detection result.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the network anomaly detection method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program, wherein when the program is executed by a processor, the network anomaly detection method according to any one of claims 1 to 7 is implemented.
