Method, device and equipment for automatic updating of ai model for detecting service anomaly
By automating the acquisition of false positive and false negative information through an intelligent security analysis platform, constructing an incremental training sample set and updating the AI model, the problem of low efficiency in multi-party collaboration in existing technologies is solved, and the efficient and automated updating of the AI model and the automated resolution of false positives and false negatives are achieved.
Patent Information
- Application Number
- CN202311036657.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-16
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-08-16
AI Technical Summary
The current AI model update process requires interaction among multiple parties and manual intervention at each stage, resulting in low efficiency and failing to effectively solve the problem of false positives and false negatives in AI engines.
The intelligent security analysis platform automates the acquisition of false positives and false negatives from business logs, builds an incremental training sample set, and automatically updates the AI model based on test results, including incremental and full training, priority adjustment, and automated machine learning, reducing reliance on professional personnel.
It has achieved full-process automation of AI model operation, reduced reliance on professional personnel, improved operational efficiency, reduced manual operation and human communication and coordination, and ensured the timeliness and accuracy of model updates.
Smart Images

Figure CN117170724B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network technology, and in particular to an automated update method, apparatus, and device for detecting business anomalies using an AI model. Background Technology
[0002] Network attack detection and protection systems deployed in real-world network environments generate a large number of alert logs daily. Security operations personnel use alert filtering and other methods to focus on investigating alerts from key business systems and malicious source IPs. Due to the diverse types of attack payloads and the attackers' ability to construct new payloads to bypass the attack detection engine, the rule engine, semantic engine, and AI engine integrated into the protection system cannot achieve 100% detection accuracy. Furthermore, data drift caused by changes in business scenarios can lead to false positives and false negatives in the detection and protection system. False positives miss actual attacks without generating alerts, while false positives classify legitimate access requests as attacks, thus affecting normal access to business systems and severely impacting customers' normal business operations.
[0003] For false alarms generated by the rule engine and semantic engine, security operations personnel can relay them to the relevant engine developers for rule updates. However, for false positives and missed positives generated by the AI engine, this issue cannot be resolved by directly modifying a single model parameter. Currently, security operations personnel collect false alarm data and relay it to model developers, who then construct incremental training samples and perform incremental model training to iteratively update the AI model. It is evident that this process requires interaction from multiple parties and manual intervention at each stage, resulting in low efficiency for updating the AI model. Summary of the Invention
[0004] This application provides a method, apparatus, and device for automatically updating an AI model to detect business anomalies, in order to solve the problem that current AI model updates are inefficient due to the need for interaction among multiple parties and manual intervention at each stage.
[0005] According to a first aspect of the embodiments of this application, an automated update method for an AI model used to detect business anomalies is provided, applied to an intelligent security analysis platform, comprising: Obtain false positives and / or false negatives caused by the current AI model from the business log information; An incremental training sample set is obtained based on the false positive and / or false negative information; Train at least one AI model, including the current AI model, based on the incremental training sample set, and update or not update the current AI model based on the test results.
[0006] In one or more possible embodiments, training at least one AI model including the current AI model based on the incremental training sample set includes performing any one or more of the following AI model training steps: Train the current AI model using an incremental training sample set; Train the current AI model using the full training sample set; Train other AI models using the full training sample set; The full training sample set includes the incremental training sample set and the original training sample set used to train the current AI model.
[0007] In one or more possible embodiments, when performing any number of AI model training steps, they are executed sequentially according to the following priority: Using the full training sample set to train other AI models has the lowest priority, while using the incremental training sample set to train the current AI model has a priority equal to or greater than using the full training sample set to train the current AI model.
[0008] In one or more possible embodiments, updating or not updating the current AI model based on test results includes: After each AI model training step is completed, the AI model trained is tested using the test training sample set; Once the test is passed, end the AI model training and replace the current AI model with the trained AI model. Otherwise, the current AI model will not be updated, and the next low-priority AI model training step will be triggered.
[0009] In one or more possible embodiments, when training the current AI model using an incremental training sample set and training the current AI model using the full training sample set, according to execution priority, the following are included: Based on the current AI model, the model is adjusted by alternating between incremental training sample sets and full training sample sets until a test-passing AI model is obtained or the required number of training iterations is reached. In this process, after M model adjustments using the incremental training sample set, the process switches to using the full training sample set to adjust the currently trained AI model. After adjustment, the AI model is tested, where M is a positive integer. After performing N model adjustments using the full training sample set, switch to using the incremental training sample set to adjust the currently trained AI model. After adjustment, test the AI model. N is a positive integer.
[0010] In one or more possible embodiments, other AI models are trained using the full training sample set, including: Obtain multiple other AI models from local or other servers, which are trained on N other AI models using the full training sample set when the set conditions are met; Updating or not updating the current AI model based on test results includes: If, based on the test results, it is determined that there is another AI model with a higher accuracy than the current AI model and an accuracy exceeding the threshold, the other AI model with the highest accuracy will be selected to replace the current AI model; otherwise, the current AI model will not be replaced.
[0011] In one or more possible embodiments, the method further includes: If no other AI model meets the requirements based on the test results, after a set interval, retrieve multiple other AI models obtained by optimizing and training N other AI models using the newly generated incremental training sample set from the local machine or other servers, and update or not update the current AI model based on the test results.
[0012] In one or more possible embodiments, obtaining an incremental training sample set based on the false positive and / or false negative information includes: The initial training sample set is obtained based on the false positive and / or false negative information and the corresponding correct labels; While keeping the semantics of the false positives and / or false negatives unchanged, the initial training sample set is expanded to obtain an incremental training sample set.
[0013] In one or more possible embodiments, while maintaining the semantics of the false positive and / or false negative information, the initial training sample set is expanded to obtain an incremental training sample set, including: The semantic and syntactic results of the false alarms and / or missed alarms in the log information; Based on the analysis results, the false alarm and / or missed alarm information is modified according to preset rules while maintaining semantics, to obtain expanded false alarm and / or missed alarm information; The expanded false alarm and / or missed alarm information, along with the false alarm and / or missed alarm information in the log information, are used as an incremental training sample set.
[0014] In one or more possible embodiments, the false positive and / or false negative information is modified according to preset rules while maintaining semantic integrity to obtain expanded false positive and / or false negative information, including at least one of the following steps: Noise data is added to the false alarm and / or missed alarm information in the log information to obtain expanded false alarm and / or missed alarm information; Based on the semantic and syntactic parsing results of the false positives and / or missed reports in the log information, the position of the word segmentation in the false positives and / or missed reports is changed to obtain expanded false positives and / or missed reports. Based on a pre-established thesaurus, the word segments in the false alarm and / or missed alarm information in the log information are replaced with synonyms to obtain expanded false alarm and / or missed alarm information.
[0015] In one or more possible embodiments, obtaining false positives and / or false negatives caused by the current AI model from business log information includes at least one of the following steps: Use AI models to detect log information anomalies, and use a set business anomaly detection algorithm to detect log information anomalies, and identify false alarms and / or missed alarms with inconsistent detection results; Based on manually labeled information, identify false alarms and / or missed alarms in the business log information; Based on the pre-defined characteristics of missed and / or false alarm information, the false alarm and / or missed alarm information in the business log information is determined by feature matching. Use the tool to obtain false or missed reports to identify false and / or missed reports in the business log information.
[0016] In one or more possible embodiments, anomaly detection using a configured business anomaly detection algorithm log information includes: Using at least one annotation algorithm different from the current AI model, feature extraction is performed on log information. The extracted features include one feature, multiple features, or the correlation characteristics between multiple features. The extracted features will be used to determine the classification of business access.
[0017] In one or more possible embodiments, the method further includes: When the current AI model training is completed but fails the test, the features extracted from each false alarm and / or missed alarm information are added using a set business anomaly detection algorithm, and the labels corresponding to the false alarm and / or missed alarm information are redefined; or the labels assigned by humans to false alarm and / or missed alarm information with inconsistent detection results are obtained. Replace the previous incremental training sample set with the incremental training sample set after correcting the labels, and trigger retraining.
[0018] In one or more possible embodiments, the false alarm and / or missed alarm information and the corresponding correct labels are determined in the following manner: Based on the results of log information anomaly detection using a pre-defined business anomaly detection algorithm, determine false positives and / or missed positives and their corresponding correct labels; or The false alarm and / or missed alarm information is clustered using a clustering algorithm. By gradually increasing the inter-cluster distance and decreasing the intra-cluster distance, the false alarm and / or missed alarm information is clustered into a set number of clusters. Based on the classification of false alarms and / or missed alarms within the same cluster, determine the corresponding correct label; According to a second aspect of the embodiments of this application, an AI model update apparatus for detecting business anomalies is provided, comprising: The exception log acquisition module is used to acquire false alarms and / or missed alarms caused by the current AI model from the business log information; The sample expansion module is used to obtain an incremental training sample set based on the false positive and / or false negative information; The model training module is used to train at least one AI model including the current AI model based on the incremental training sample set, and to update or not update the current AI model based on the test results.
[0019] According to a third aspect of the embodiments of this application, an AI model update device for detecting business anomalies is provided, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method provided in the first aspect above.
[0020] According to a fourth aspect of the embodiments of this application, a chip is provided, the chip being coupled to a memory in a device, such that the chip, during operation, calls program instructions stored in the memory to implement the above-described aspects of the embodiments of this application and any possible methods involved in each aspect.
[0021] According to a fifth aspect of the embodiments of this application, a computer-readable storage medium is provided, which stores program instructions that, when run on a computer, cause the computer to perform the above-described aspects of the embodiments of this application and any possible methods involved in each aspect.
[0022] According to a sixth aspect of the embodiments of this application, a computer program product is provided that, when the computer program product is run on an electronic device, causes the electronic device to perform methods that implement the above-described aspects of the embodiments of this application and any possible methods involved in each aspect.
[0023] The AI model automatic update method, apparatus, and device for detecting business anomalies provided in this application have the following beneficial effects: This application provides an automated AI model update method, apparatus, and device for detecting business anomalies. It can automatically build training datasets and employs an automated model update solution, freeing model update tasks from reliance on professionals. The platform-based model update solution allows operations personnel, even without machine learning backgrounds, to automatically complete model updates and iterations on the platform, avoiding the need for professionals to train and test models locally. The automated operation of the intelligent analysis engine streamlines the entire process from training set construction, model training, model testing, and model iteration updates, achieving full automation. This avoids manual operations and cumbersome human communication and coordination processes, reducing reliance on professionals and effectively improving the operational efficiency of AI models. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is a flowchart of an automated AI model update method for detecting business anomalies provided in an embodiment of this application; Figure 2 This is a flowchart illustrating the overall process of updating the AI model as provided in the embodiments of this application. Figure 3 This is a schematic diagram of the structure of the AI model update device for detecting business anomalies provided in the embodiments of this application; Figure 4 This is a schematic diagram of the structure of an AI model update device for detecting business anomalies provided in this application embodiment. Detailed Implementation
[0026] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0027] Currently, the operation of intelligent analysis engines (AI models) largely requires professional personnel to manually monitor, maintain, and iterate these models. This operation relies on multiple rounds of communication and feedback between security operations personnel and professional personnel, as well as manual AI model tuning by professionals. Typically, front-line or security operations personnel check device alarm logs and report false positives and false negatives. For these samples, the reporting personnel collect false positive and false negative data. When the data volume is insufficient, training samples often need to be manually constructed to meet the data requirements for AI model training. During this process, the quantity and quality of the false positive and false negative data require repeated communication and coordination between operations personnel and AI model developers. For issues related to false positives and false negatives, model developers need to analyze the causes, write training scripts to conduct incremental training experiments on the model, and if the experimental results are unsatisfactory, new feature engineering, dataset adjustments, or rebuilding a new AI model for training are required. This aims to improve the model's alarm accuracy and reduce the false positive and false negative rates.
[0028] The format of these data conforms to the requirements of all AI algorithms on this platform, or these data can be backed up and the format of at least one backup adjusted to conform to the requirements of at least one AI algorithm on this platform. In this way, this platform can automatically identify and perform targeted data augmentation on these two types of data or datasets.
[0029] Therefore, the operation of intelligent analysis engines (AI models) differs from that of rule engines and semantic engines. They cannot be updated based on single false positive or false negative data points. Updating intelligent analysis engines requires collaboration between front-end personnel or security operations personnel and model developers. Furthermore, incremental model training alone may not solve the problem of false positives and false negatives; feature engineering, dataset processing, or even model reconstruction may be necessary to reduce the false positive and false negative rates, or even eliminate all false positives and false negatives. Consequently, the operation of most AI models cannot be automated and relies heavily on the participation of security operations personnel and other professionals. The construction of training sample sets and iterative model updates require significant manual intervention, leading to a substantial increase in the workload and low operational efficiency of intelligent analysis engine operations.
[0030] In view of this, this application proposes an automated AI model update method for detecting business anomalies. This method is applied to an intelligent security analysis platform and is run by the intelligent security analysis platform server. It automates the AI model operation process by using a small amount of false positive and false negative data to automatically construct a training sample set. Considering the timeliness and resource consumption of AI model updates, an automated model update scheme is provided to realize the automated process from dataset construction to model update, reduce reliance on manual and professional personnel, and improve the efficiency of AI model operation.
[0031] Reference Figure 1 The flowchart of the AI model automated update method for detecting business anomalies provided in this application embodiment includes: Step 101: Obtain false positives and / or false negatives caused by the current AI model from the business log information; In this embodiment of the application, the above-mentioned business services are provided in the form of web pages. During the process of users accessing the web pages, multiple business access records are generated and reported to the intelligent security analysis platform in the form of logs.
[0032] Taking the scenario of web attack detection using an AI model based on CNN (Convolutional Neural Networks) structure in a WAF (Web Application Firewall) device as an example, the AI model runs on the WAF device, uses the AI model to detect anomalies in business access records, and generates alarm logs when anomalies are detected. It is necessary to pay attention to key business systems and malicious source IPs to investigate the alarm data and confirm whether the alarm data is a real attack or a false alarm or missed report.
[0033] Business access records can be labeled using AI models, specifically categorized as normal access, abnormal access, and the type of abnormal access. For example, in a web attack detection scenario, it can be classified as normal access (no attack) or access with an attack and the corresponding attack type. If the labeling results of the AI model are inconsistent with the actual labels, it indicates false positives and / or false negatives caused by the current AI model.
[0034] Step 102: Obtain an incremental training sample set based on the false positive and / or false negative information; This application embodiment automatically expands the training sample set based on false positive and / or false negative information to obtain an incremental training sample set. Specifically, it may not be limited to the following methods for automatically obtaining the incremental training sample set based on the false positive and / or false negative information: The initial training sample set is obtained based on the false positive and / or false negative information and the corresponding correct labels; While keeping the semantics of the false positives and / or false negatives unchanged, the initial training sample set is automatically expanded to obtain an incremental training sample set.
[0035] The error and / or missed information obtained in the above manner (also referred to as the first service access record in this embodiment) is a small amount of data. In order to expand the training sample, this embodiment performs semantic and syntactic parsing on the error and / or missed information, modifies the error and / or missed information according to preset rules while keeping the semantics unchanged, and obtains expanded error and missed data, which is also referred to as the second service access record in this embodiment. The label of the second service access record is the same as the label of the first service access record before modification.
[0036] Step 103: Train at least one AI model including the current AI model based on the incremental training sample set, and update or not update the current AI model based on the test results.
[0037] In this embodiment of the application, obtaining false positives and / or false negatives caused by the current AI model from the business log information includes at least one of the following steps: 1) Utilize AI models to detect anomalies in log information, and use a set business anomaly detection algorithm to detect anomalies in log information, and identify false alarms and / or missed alarms with inconsistent detection results; In order to determine whether the alarms in the logs are false alarms or missed alarms, this application embodiment obtains one or more pre-selected annotation algorithms that are different from the current AI model, also known as false alarm and missed alarm judgment algorithms. After the intelligent security analysis platform obtains the first detection result obtained by the AI model for anomaly detection, the above one or more false alarm and missed alarm judgment algorithms are used to perform anomaly detection on the log information again to obtain a second detection result.
[0038] For the same business access record, if the first detection result and the second detection result are inconsistent, it is judged as the first business access record that is either falsely reported or missed.
[0039] The purpose of the first and second detection results mentioned above is to determine the classification of each business access record, which includes normal access, abnormal access, and the type of abnormal access to which it belongs.
[0040] Specifically, if the first detection result is normal access and the second detection result is an attack of type A, it is determined to be a missed business access record. If the first detection result is an attack of type 1 and the second detection result is an attack of type 2 or normal access, it is determined to be a false alarm business access record.
[0041] The false alarm and / or missed alarm information and the corresponding correct labels can be presented in any of the following ways: Based on the results of log information anomaly detection using a defined business anomaly detection algorithm, false positives and / or missed positives and their corresponding correct labels are determined. When the first and second detection results are inconsistent, the second detection result prevails. Based on the second detection result, the label corresponding to the correct detection result of the first business access record is determined. The label may specifically include normal access (no attack), attack present, and the corresponding attack type.
[0042] The false positives and / or missed detections are clustered using a clustering algorithm. By gradually increasing the inter-cluster distance and decreasing the intra-cluster distance, the false positives and / or missed detections are clustered into a set number of clusters. Specifically, the intra-cluster distance and inter-cluster distance are determined based on the similarity of the first service access records. The greater the similarity, the smaller the intra-cluster / inter-cluster distance, and vice versa. Based on the first service access records within the same cluster, the corresponding labels for the correct detection results are determined.
[0043] Specifically, for multiple first service access records within the same cluster, the first access record with the most identical first detection results / second detection results is identified as the tag of the first service access record within that cluster.
[0044] 2) Based on manually labeled information, identify false alarms and / or missed alarms in the business log information; Taking the scenario of Web attack detection based on CNN model in WAF device as an example, for the alarm logs generated by WAF device, security operations personnel will check the alarm data by focusing on key business systems and malicious source IPs to confirm whether the alarm data is a real attack or a false alarm or missed report.
[0045] 3) Based on the pre-defined characteristics of missed and / or false alarm information, use feature matching to determine false alarm and / or missed alarm information in the business log information; Feature extraction algorithms can be used to extract features from business access records of different categories to obtain feature templates corresponding to different categories. Feature matching algorithms can be used to extract features from business access records in log information. Based on the results of matching the extracted features with the feature templates, the false alarms and missed alarms in the log information can be determined.
[0046] 4) Use the tool to obtain false or missed reports to identify false and / or missed reports in the business log information.
[0047] Other software tools developed in related technologies for analyzing false alarms and missed alarms can be used to identify false alarms and / or missed alarms in business log information.
[0048] At least one AI model, including the current AI model, is trained based on the incremental training sample set, and is replaced when the AI model passes the test. When testing the AI model, test samples from the test sample set can be used. These test samples include historical business access records and their corresponding correct labels.
[0049] This application can automatically expand the training dataset. Compared to manually constructed expanded data, which often contains a lot of duplicate data, the dataset expanded using data augmentation methods has higher data quality, providing excellent data support for model training. The automated model update solution eliminates the need for professional personnel for model updates. The platform-based model update solution allows operators, even those lacking machine learning backgrounds, to automatically update and iterate models on the platform, avoiding the need for professional personnel to perform model training and testing locally. The automated operation of the intelligent analysis engine streamlines the entire process from training set construction, model training, model testing, and model iteration updates, achieving full automation. This avoids manual operations and cumbersome human communication and coordination processes, reducing reliance on professional personnel and effectively improving the operational efficiency of AI models.
[0050] In this embodiment, after obtaining log information, data anonymization can be performed using a corresponding de-identification algorithm before proceeding to subsequent steps. Alternatively, data anonymization can be performed at any step before obtaining the incremental training sample set. After data anonymization, the risk of privacy information leakage is reduced.
[0051] In this embodiment, the aforementioned business anomaly detection algorithm is a labeling algorithm different from the AI model. The defined business anomaly detection algorithm is at least one type, and anomaly detection is performed using log information from the defined business anomaly detection algorithm, including: Using at least one annotation algorithm different from the current AI model, feature extraction is performed on log information. The extracted features include one feature, multiple features, or the correlation characteristics between multiple features. The extracted features will be used to determine the classification of business access. The classification includes normal access, abnormal access and the type of abnormal access. For Web attack detection scenarios, it can be normal access (also known as white sample) or Web attack type.
[0052] As an optional implementation, if the AI model fails the test, one of the following processing methods can be used: 1) Add features extracted from each false alarm and / or missed alarm information using a set business anomaly detection algorithm, and redetermine the labels corresponding to the false alarm and / or missed alarm information; or obtain the labels manually assigned to false alarm and / or missed alarm information with inconsistent detection results; replace the previous incremental training sample set with the incremental training sample set after correcting the labels, and trigger retraining.
[0053] 2) Obtain the labels assigned by humans to the false alarms and / or missed alarms that are inconsistent with the detection results; replace the previous incremental training sample set with the incremental training sample set after correcting the labels, and trigger retraining.
[0054] The label determination method described in this application may be inaccurate, potentially leading to false positives and false negatives. This could result in the overall solution failing to meet requirements. If the AI model fails testing, the algorithm can be modified to re-sample and detect false negatives and / or false positives. Alternatively, after the overall solution has been run once and the results are unsatisfactory, the number of input features and / or the correlation between features can be increased to redetermine the false negatives and / or their corresponding labels. The AI model is then retrained and tested; if the test fails, the process of redetermining labels is repeated. This process can be continuously looped until a predetermined number of loops is reached, all preset features and feature correlations are extracted, or the AI model passes testing. If the AI model test fails to pass, manual labeling is introduced. This further reduces the workload of manually labeling missed and / or false alarms. The reason is that manually identifying which are false alarms or missed alarms from a large number of log alerts requires a lot of analysis and comparison. However, this application filters out missed and / or false alarms through a set algorithm, which greatly reduces the amount of data that needs to be judged manually. For cases that are judged to be correct by multiple algorithms, they can be considered to be correct with a certain degree of confidence.
[0055] The following describes a specific implementation method for constructing a training sample set, training and testing the AI model after obtaining false negative and / or false positive information, according to an embodiment of this application.
[0056] One possible approach is to convert each business access record in the incremental training sample set into a vector, use the resulting vector and its corresponding label as the incremental training sample set, and then use the incremental training sample set to train the current AI model.
[0057] The false alarm and missed alarm data collected using the above methods are often limited in volume. Taking WAF as an example, for any given type of false alarm or missed alarm data, the WAF device's alarm log frequently contains only one data point associated with that specific false alarm or missed alarm data, or multiple data points that appear repeatedly. Therefore, this type of false alarm and missed alarm data often fails to meet the requirements for model training, as single or repeated data points cannot effectively train the model. For a single data point, due to the insufficient data volume, the model will completely fit that single data point during training, leading to overfitting and significantly reducing the model's generalization ability. When multiple repeated data points exist, the richness and diversity of that category of data are greatly reduced, making it difficult for the model to learn effective features specific to that category of false alarm and missed alarm data.
[0058] The intelligent security analysis platform provides data augmentation functionality. This augmentation expands the labeled false positive and false negative data, enriching its format and increasing the amount of data available for model training. It transforms a small amount of false positive and false negative data into a high-quality training sample set. In this embodiment, while maintaining the semantics of the false positive and / or false negative information, the initial training sample set is expanded to obtain an incremental training sample set, including: The semantic and syntactic results of the false alarms and / or missed alarms in the log information; Based on the analysis results, the false alarm and / or missed alarm information is modified according to preset rules while maintaining semantics, to obtain expanded false alarm and / or missed alarm information; The expanded false alarm and / or missed alarm information, along with the false alarm and / or missed alarm information in the log information, are used as an incremental training sample set.
[0059] Modifying the false positive and / or false negative information according to preset rules while maintaining semantic integrity, to obtain expanded false positive and / or false negative information, includes at least one of the following steps: Noise data is added to the false alarm and / or missed alarm information in the log information to obtain expanded false alarm and / or missed alarm information; Based on the semantic and syntactic parsing results of the false positives and / or missed reports in the log information, the position of the word segmentation in the false positives and / or missed reports is changed to obtain expanded false positives and / or missed reports. Based on a pre-established thesaurus, the word segments in the false alarm and / or missed alarm information in the log information are replaced with synonyms to obtain expanded false alarm and / or missed alarm information.
[0060] This ensures that the syntactic and semantic information in the payload sequence (business access records) remains largely intact, preserving the overall properties of the payload sequence. Data augmentation methods can effectively expand the training sample set and avoid generating duplicate data, effectively preventing the model from overfitting to false positives and false negatives. By utilizing the platform's data augmentation capabilities, the small amount of collected false positives and false negatives can be automatically augmented to obtain a high-quality training sample set of false positives and false negatives for subsequent model training.
[0061] Of course, if the amount of alarm data is sufficient, this enhancement feature is not necessary. Even with a small amount of data, the enhancement feature can still be omitted, as long as the final alarm results meet the user's needs.
[0062] Another possible approach is to convert each business access record in the incremental training sample set into a vector, use the resulting vector and its corresponding label as the incremental training sample set, merge the incremental training sample set with the original training sample set used to train the current AI model, and then use the full training sample set to train the current AI model.
[0063] After the false positive and false negative data training set is constructed, this embodiment of the application updates the currently used AI model through the model automation training function of the intelligent security analysis platform to reduce the false positive and false negative rate and improve the alarm accuracy.
[0064] Training at least one AI model, including the current AI model, based on the incremental training sample set includes performing one or more of the following AI model training steps: Train the current AI model using an incremental training sample set; Train the current AI model using the full training sample set; Train other AI models using the full training sample set; The full training sample set includes the incremental training sample set and the original training sample set used to train the current AI model.
[0065] The above AI model training steps can be performed one at a time. When training is complete, the trained AI model is tested. If the test is passed, the current AI model is replaced with the tested AI model. If the test is failed, the current AI model is not replaced, and false alarm and missed alarm data can continue to be collected online to continuously optimize the trained AI model until a tested AI model is obtained.
[0066] Alternatively, you can choose to perform any number of AI model training steps. When executing any number of AI model training steps, they will be performed in the following order of priority: Using the full training sample set to train other AI models has the lowest priority, while using the incremental training sample set to train the current AI model has a priority equal to or greater than using the full training sample set to train the current AI model.
[0067] This means that the current AI model can be trained first using the incremental training sample set, and then using the full training sample set, or simultaneously using both the incremental and full training sample sets. The training method can be, but is not limited to, alternating training based on the current AI model.
[0068] Updating or not updating the current AI model based on test results includes: After each AI model training step is completed, the AI model trained is tested using the test training sample set; Once the test is passed, end the AI model training and replace the current AI model with the trained AI model. Otherwise, the current AI model will not be updated, and the next low-priority AI model training step will be triggered.
[0069] This application's intelligent security analysis platform provides three basic AI model update solutions, as follows: The first approach involves training the current AI model with a subset or all of the training samples in the incremental training sample set. Specifically, this could involve inputting the vectors of the training samples into the AI model, determining the loss function based on the AI model's output and labels, and then adjusting the AI model according to the loss function.
[0070] Incremental training uses less training data than training the model with the full training sample set, offering the advantage of faster iteration speed. It is suitable for updating machine learning models and neural network models. The training process ends when the model training loss stabilizes and no longer changes, and / or the training monitoring metric reaches a set threshold. The trained model is then tested using correctly labeled false positive and false negative data. If the test results meet the preset pass criteria, the test passes, and the model is iterated to replace the old model.
[0071] The second approach is to use part or all of the full training sample set for AI model training. Compared with incremental training of the model, training with the full training sample set makes it easier to obtain the globally optimal model, and the model's detection performance will be relatively better. However, the full training sample set has a larger data volume, the model training time is longer, more resources are consumed, and the timeliness is poor.
[0072] It should be noted that the incremental training and full training mentioned above are performed independently based on the original AI model. For the AI models obtained from incremental training and full training, in addition to deploying them separately (e.g., deploying the one that passes the test first), a method similar to A / B testing can be used, alternating between training the current AI model using the incremental training sample set and training it using the full training sample set, as follows: Based on the current AI model, the model is adjusted by alternating between incremental training sample sets and full training sample sets until a test-passing AI model is obtained or the required number of training iterations is reached. In this process, after M model adjustments using the incremental training sample set, the process switches to using the full training sample set to adjust the currently trained AI model. After adjustment, the AI model is tested, where M is a positive integer. After performing N model adjustments using the full training sample set, switch to using the incremental training sample set to adjust the currently trained AI model. After adjustment, test the AI model. N is a positive integer.
[0073] Moreover, during the alternating training process, the AI model can be tested at any time at the end of the adjustment. If the test result meets the preset pass standard, the test passes, the model training ends, and then the old and new models are replaced. Otherwise, training continues until the set number of training times is reached using incremental training sample sets and full training sample sets.
[0074] The third approach is to use automated machine learning.
[0075] If the AI models trained by the first two methods fail the test, obtain multiple other AI models from the local machine or other servers, which are trained on N other AI models using the full training sample set when the set conditions are met. Updating or not updating the current AI model based on test results includes: If, based on the test results, it is determined that there is another AI model with a higher accuracy than the current AI model and an accuracy exceeding the threshold, the other AI model with the highest accuracy will be selected to replace the current AI model; otherwise, the current AI model will not be replaced.
[0076] Unlike incremental training and full-scale training, which only update model parameters without changing the model, the automated machine learning solution directly replaces the AI model that generates false positives and false negatives with the best-performing model in automated machine learning. It pre-builds N AI models, such as gradient boosting trees and random forests, into the automated machine learning module. These AI models are trained using the original training sample set and the real-time generated incremental training sample set (i.e., the full training sample set) to obtain better results. When certain conditions are met, such as if the accuracy of an AI model falls below a set threshold, the platform compares the detection analysis results of these models with those of the AI model currently being used by the platform. The platform selects the AI model with the lowest false positive / false negative rate and an accuracy above the threshold to replace the currently used AI model. After the replacement, the various AI models in the automated machine learning module can still run synchronously in the background, using the newly generated incremental training sample set to optimize multiple other AI models obtained from the N other AI models, continuously improving themselves. Alternatively, they can start running only after certain set conditions are met (the module always, periodically, irregularly, or under human selection, actively or passively receiving the detection accuracy status of the AI model currently being used by the platform) or after human intervention.
[0077] However, compared to the first two approaches, which optimize existing models based on false positive and false negative data, automated machine learning is equivalent to rebuilding a completely new model. This requires retraining and continuous adjustments to the training strategy to reduce training loss and bring the model closer to its optimal state. Therefore, its training risk is higher, and model performance metrics may decline. It is worth noting that this platform's automated machine learning module, in addition to having built-in conditions for ending model training, also provides an interface for selecting and inputting all parameters for these conditions. This allows for manual setting / input of the conditions, facilitating human intervention and greatly enhancing the flexibility of this approach.
[0078] It should also be noted that Solution 3 has high resource requirements and typically requires longer computation time. Therefore, besides integrating Solution 3 into the intelligent security analysis platform, it can also be placed separately on the cloud or other servers, providing services remotely through training interfaces. Alternatively, the solution can be embedded in mobile devices, providing necessary services through insertion interfaces on the platform, cloud, or server; these details will not be elaborated here. When the AI model produces false positives or false negatives, the optimal model obtained from current automated machine learning can be used to replace the AI model causing the false positives or false negatives in real time, reducing the additional time for model iteration and updates, and thus promptly reducing the problem of false positives or false negatives.
[0079] The three schemes are evaluated in terms of timeliness, resource usage, and expected model performance. The training order of the AI model can adopt any one or more of the above schemes. If multiple schemes are adopted, Scheme 1, Scheme 2, and Scheme 3 can be adopted in sequence. After the model training is completed, the AI model is tested using false positive and false negative data. If the test results meet the preset pass standard, the model test is passed, and the model is iterated and updated to replace the old AI model that generated false positives.
[0080] like Figure 2 The diagram shown is an overall flowchart of the AI model update provided in this application embodiment. The entire process, from the collection of false alarm and false alarm data, analysis and construction of dataset, automated training of AI model, AI model testing, and iterative update of AI model, can be automatically completed by the intelligent security analysis platform. Only when the dataset automatically constructed by the intelligent security analysis assessment does not meet the requirements is the intervention of security operations personnel required.
[0081] This application illustrates the working process of an intelligent analysis platform using a WAF log analysis engine example. However, this solution can also be used in traffic analysis. It involves mirroring part or all of the traffic entering the device to be analyzed, either in real-time or over a set time period. This mirrored traffic data is stored on a storage device. The relevant engines and algorithms are then replaced with corresponding engines and algorithms capable of analyzing traffic. Furthermore, due to the multi-format nature of traffic data, a data processing module (for format conversion and unification of traffic data) and other necessary auxiliary modules are added before analysis to facilitate the subsequent operation of related AI models and algorithms. These details are not elaborated here. Similarly, this platform can also be used for the analysis of various network data.
[0082] The above analysis of data from various sources can be achieved by adding identifiers for algorithms, models, and engines, enabling different algorithms, models, and engines to be used depending on the data source, thus achieving the goal of analyzing data from different data sources and realizing functional integration.
[0083] This application proposes a method for automated operation of AI models. Through the data augmentation function of an intelligent security analysis platform, the training dataset can be automatically expanded. Compared to manually constructed data augmentation, which often results in significant data duplication, the dataset augmented using this method is of higher quality, providing strong data support for model training. The intelligent security analysis platform proposes three progressive automated model update solutions, freeing model updates from reliance on specialized personnel. These platform-based solutions allow operators, even those lacking machine learning backgrounds, to automatically update and iterate models on the platform, avoiding the need for specialized personnel to perform model training and testing locally. The automated operation of the intelligent analysis engine streamlines the entire process from training set construction, model training, model testing, to iterative updates, achieving full automation. This avoids manual operations and cumbersome human communication and coordination processes, reducing reliance on specialized personnel and effectively improving the operational efficiency of AI models.
[0084] The above describes an automated update method for an AI model used to detect business anomalies. The following describes the apparatus and equipment for performing the above-described automated update method for an AI model used to detect business anomalies.
[0085] Please see Figure 3 This application provides an AI model update device for detecting business anomalies, comprising: The exception log acquisition module 301 is used to acquire false alarms and / or missed alarms caused by the current AI model from the business log information; Sample expansion module 302 is used to obtain an incremental training sample set based on the false positive and / or false negative information; The model training module 303 is used to train at least one AI model including the current AI model based on the incremental training sample set, and to update or not update the current AI model based on the test results.
[0086] Optionally, the model training module trains at least one AI model including the current AI model based on the incremental training sample set, including performing any one or more of the following AI model training steps: Train the current AI model using an incremental training sample set; Train the current AI model using the full training sample set; Train other AI models using the full training sample set; The full training sample set includes the incremental training sample set and the original training sample set used to train the current AI model.
[0087] Optionally, when performing any number of AI model training steps, the model training module executes them in the following order of priority: Using the full training sample set to train other AI models has the lowest priority, while using the incremental training sample set to train the current AI model has a priority equal to or greater than using the full training sample set to train the current AI model.
[0088] Optionally, the model training module may update or not update the current AI model based on the test results, including: After each AI model training step is completed, the AI model trained is tested using the test training sample set; Once the test is passed, end the AI model training and replace the current AI model with the trained AI model. Otherwise, the current AI model will not be updated, and the next low-priority AI model training step will be triggered.
[0089] Optionally, when the model training module executes training the current AI model using the incremental training sample set and training the current AI model using the full training sample set according to execution priority, it includes: Based on the current AI model, the model is adjusted by alternating between incremental training sample sets and full training sample sets until a test-passing AI model is obtained or the required number of training iterations is reached. In this process, after M model adjustments using the incremental training sample set, the process switches to using the full training sample set to adjust the currently trained AI model. After adjustment, the AI model is tested, where M is a positive integer. After performing N model adjustments using the full training sample set, switch to using the incremental training sample set to adjust the currently trained AI model. After adjustment, test the AI model. N is a positive integer.
[0090] Optionally, the model training module can train other AI models using the full training sample set, including: Obtain multiple other AI models from local or other servers, which are trained on N other AI models using the full training sample set when the set conditions are met; Updating or not updating the current AI model based on test results includes: If, based on the test results, it is determined that there is another AI model with a higher accuracy than the current AI model and an accuracy exceeding the threshold, the other AI model with the highest accuracy will be selected to replace the current AI model; otherwise, the current AI model will not be replaced.
[0091] Optionally, the model training module is also used for: If no other AI model meets the requirements based on the test results, after a set interval, retrieve multiple other AI models obtained by optimizing and training N other AI models using the newly generated incremental training sample set from the local machine or other servers, and update or not update the current AI model based on the test results.
[0092] Optionally, the sample augmentation module obtains an incremental training sample set based on the false positive and / or false negative information, including: The initial training sample set is obtained based on the false positive and / or false negative information and the corresponding correct labels; While keeping the semantics of the false positives and / or false negatives unchanged, the initial training sample set is expanded to obtain an incremental training sample set.
[0093] Optionally, the sample expansion module preserves the semantics of the false positive and / or false negative information and expands the initial training sample set to obtain an incremental training sample set, including: The semantic and syntactic results of the false alarms and / or missed alarms in the log information; Based on the analysis results, the false alarm and / or missed alarm information is modified according to preset rules while maintaining semantics, to obtain expanded false alarm and / or missed alarm information; The expanded false alarm and / or missed alarm information, along with the false alarm and / or missed alarm information in the log information, are used as an incremental training sample set.
[0094] Optionally, the sample augmentation module modifies the false positive and / or false negative information according to preset rules while maintaining semantic integrity, to obtain augmented false positive and / or false negative information, including at least one of the following steps: Noise data is added to the false alarm and / or missed alarm information in the log information to obtain expanded false alarm and / or missed alarm information; Based on the semantic and syntactic parsing results of the false positives and / or missed reports in the log information, the position of the word segmentation in the false positives and / or missed reports is changed to obtain expanded false positives and / or missed reports. Based on a pre-established thesaurus, the word segments in the false alarm and / or missed alarm information in the log information are replaced with synonyms to obtain expanded false alarm and / or missed alarm information.
[0095] Optionally, the exception log acquisition module acquires false positives and / or false negatives caused by the current AI model from the business log information, including at least one of the following steps: Use AI models to detect log information anomalies, and use a set business anomaly detection algorithm to detect log information anomalies, and identify false alarms and / or missed alarms with inconsistent detection results; Based on manually labeled information, identify false alarms and / or missed alarms in the business log information; Based on the pre-defined characteristics of missed and / or false alarm information, the false alarm and / or missed alarm information in the business log information is determined by feature matching. Use the tool to obtain false or missed reports to identify false and / or missed reports in the business log information.
[0096] Optionally, the exception log acquisition module uses a predefined business exception detection algorithm to detect exceptions in log information, including: Using at least one annotation algorithm different from the current AI model, feature extraction is performed on log information. The extracted features include one feature, multiple features, or the correlation characteristics between multiple features. The extracted features will be used to determine the classification of business access.
[0097] Optionally, the model training module is also used for: When the current AI model training is completed but fails the test, the features extracted from each false alarm and / or missed alarm information are added using a set business anomaly detection algorithm, and the labels corresponding to the false alarm and / or missed alarm information are redefined; or the labels assigned by humans to false alarm and / or missed alarm information with inconsistent detection results are obtained. Replace the previous incremental training sample set with the incremental training sample set after correcting the labels, and trigger retraining.
[0098] Optionally, the false alarm and / or missed alarm information and the corresponding correct labels obtained by the anomaly log acquisition module are determined in the following manner: Based on the results of log information anomaly detection using a pre-defined business anomaly detection algorithm, determine false positives and / or missed positives and their corresponding correct labels; or The false alarm and / or missed alarm information is clustered using a clustering algorithm. By gradually increasing the inter-cluster distance and decreasing the intra-cluster distance, the false alarm and / or missed alarm information is clustered into a set number of clusters. Determine the correct label based on the classification of false alarms and / or missed alarms within the same cluster.
[0099] Please see Figure 4 This application also provides an AI model automated update device for detecting business anomalies. The AI model automated update device 140 for detecting business anomalies is presented in the form of a general-purpose electronic device. The AI model automated update device for detecting business anomalies includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the AI model automated update method for detecting business anomalies provided in the above embodiments.
[0100] The components of the AI model automated update device 140 for detecting business anomalies may include, but are not limited to: at least one processor 141, at least one memory 142, and a bus 143 connecting different system components (including memory 142 and processor 141).
[0101] Bus 143 represents one or more of several bus structures, including a memory bus or memory controller, peripheral bus, processor, or local bus using any of the various bus structures.
[0102] The memory 142 may include a readable medium in the form of volatile memory, such as random access memory (RAM) 1421 and / or cache memory 1422, and may further include read-only memory (ROM) 1423.
[0103] The memory 142 may also include a program / utility 1425 having a set (at least one) of program modules 1424, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0104] The AI model automated update device 140 for detecting business anomalies can also communicate with one or more external devices 144 (e.g., keyboards, pointing devices, etc.), one or more devices that enable users to interact with electronic devices, and / or any device that enables the AI model automated update device 140 for detecting business anomalies to communicate with one or more other electronic devices (e.g., routers, modems, etc.). This communication can be performed via input / output (I / O) interface 145. Furthermore, the AI model automated update device 140 for detecting business anomalies can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 146. As shown, network adapter 146 communicates with other modules of the AI model automated update device 140 for detecting business anomalies via bus 143. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the AI model used to detect business anomalies to automatically update the device 140, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0105] In some possible implementations, various aspects of the AI model automated update method for detecting business anomalies provided in this application can also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to cause the computer device to perform the steps of the AI model automated update method for detecting business anomalies according to the various exemplary embodiments of this application described above.
[0106] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0107] The program product for automatically updating an AI model used to detect business anomalies according to embodiments of this application can be a portable compact disc read-only memory (CD-ROM) and include program code, and can run on an electronic device. However, the program product of this application is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0108] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying readable program code. This propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0109] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0110] Program code for performing the operations of this application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's electronic device, partially on the user's device, as a standalone software package, partially on the user's electronic device and partially on a remote electronic device, or entirely on a remote electronic device or server. In cases involving remote electronic devices, the remote electronic device can be connected to the user's electronic device via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external electronic device (e.g., via the Internet using an Internet service provider).
[0111] It should be noted that although several units or sub-units of the device have been mentioned in the detailed description above, this division is merely exemplary and not mandatory. In fact, according to embodiments of this application, the features and functions of two or more units described above can be embodied in one unit. Conversely, the features and functions of one unit described above can be further divided and embodied by multiple units.
[0112] Furthermore, although the operations of the method of this application are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all the operations shown must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0113] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0114] This application is described with reference to flowchart illustrations and block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block and / or segment of the flowchart illustrations and block diagrams, as well as combinations of blocks and segments in the flowchart illustrations and block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart. Figure 1 One or more processes and boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0115] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and boxes Figure 1 The function specified in one or more boxes.
[0116] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and boxes Figure 1 The steps of the function specified in one or more boxes.
[0117] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0118] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. An AI model automatic update method for detecting business anomalies, applied to an intelligent security analysis platform, characterized in that, include: Obtain false positives and / or false negatives caused by the current AI model from the business log information; An incremental training sample set is obtained based on the false positive and / or false negative information; Train at least one AI model including the current AI model based on the incremental training sample set, and update or not update the current AI model based on the test results; The step of obtaining the incremental training sample set based on the false positive and / or false negative information includes: The initial training sample set is obtained based on the false positive and / or false negative information and the corresponding correct labels; While keeping the semantics of the false positives and / or false negatives unchanged, the initial training sample set is expanded to obtain an incremental training sample set; When performing multiple AI model training steps, they should be executed in the following order of priority: Using the full training sample set to train other AI models has the lowest priority, while using the incremental training sample set to train the current AI model has a priority equal to or greater than using the full training sample set to train the current AI model. The decision to update or not update the current AI model based on the test results includes: After each AI model training step is completed, the AI model trained is tested using the test training sample set; If the test is passed, the AI model training ends, and the trained AI model replaces the current AI model; otherwise, the current AI model is not updated, and the next low-priority AI model training step is triggered.
2. The method of claim 1, wherein, Training at least one AI model, including the current AI model, based on the incremental training sample set includes performing one or more of the following AI model training steps: Train the current AI model using an incremental training sample set; Train the current AI model using the full training sample set; Train other AI models using the full training sample set; The full training sample set includes the incremental training sample set and the original training sample set used to train the current AI model.
3. The method of claim 1, wherein, When training the current AI model using the incremental training sample set and training the current AI model using the full training sample set, according to the execution priority, the following are included: Based on the current AI model, the model is adjusted by alternating between incremental training sample sets and full training sample sets until a test-passing AI model is obtained or the required number of training iterations is reached. In this process, after M model adjustments using the incremental training sample set, the process switches to using the full training sample set to adjust the currently trained AI model. After adjustment, the AI model is tested, where M is a positive integer. After performing N model adjustments using the full training sample set, switch to using the incremental training sample set to adjust the currently trained AI model. After adjustment, test the AI model. N is a positive integer.
4. The method of claim 2, wherein, Train other AI models using the full training sample set, including: Obtain multiple other AI models from local or other servers, which are trained on N other AI models using the full training sample set when the set conditions are met; Updating or not updating the current AI model based on test results includes: If, based on the test results, it is determined that there is another AI model with a higher accuracy than the current AI model and an accuracy exceeding the threshold, the other AI model with the highest accuracy will be selected to replace the current AI model; otherwise, the current AI model will not be replaced.
5. The method of claim 4, wherein, Also includes: If no other AI model meets the requirements based on the test results, after a set interval, retrieve multiple other AI models obtained by optimizing and training N other AI models using the newly generated incremental training sample set from the local machine or other servers, and update or not update the current AI model based on the test results.
6. The method of claim 1, wherein, While maintaining the semantics of the false positives and / or false negatives, the initial training sample set is expanded to obtain an incremental training sample set, including: The results of semantic and syntactic parsing / analysis of false alarms and / or missed alarms in the log information; Based on the analysis results, the false alarm and / or missed alarm information is modified according to preset rules while maintaining semantics, to obtain expanded false alarm and / or missed alarm information; The expanded false alarm and / or missed alarm information, along with the false alarm and / or missed alarm information in the log information, are used as an incremental training sample set.
7. The method of claim 6, wherein, Modifying the false positive and / or false negative information according to preset rules while maintaining semantic integrity, to obtain expanded false positive and / or false negative information, includes at least one of the following steps: Add noise data to the false alarms and / or missed alarms in the log information to obtain expanded false alarms and / or missed alarms; Based on the semantic and syntactic parsing results of the false positives and / or missed reports in the log information, the position of the word segmentation in the false positives and / or missed reports is changed to obtain expanded false positives and / or missed reports. Based on a pre-established thesaurus, the word segments in the false alarm and / or missed alarm information in the log information are replaced with synonyms to obtain expanded false alarm and / or missed alarm information.
8. The method of any one of claims 1-7, wherein, Obtaining false positives and / or false negatives caused by the current AI model from business log information includes at least one of the following steps: Use AI models to detect log information anomalies, and use a set business anomaly detection algorithm to detect log information anomalies, and identify false alarms and / or missed alarms with inconsistent detection results; Based on manually labeled information, identify false alarms and / or missed alarms in the business log information; Based on the pre-defined characteristics of missed and / or false alarm information, the false alarm and / or missed alarm information in the business log information is determined by feature matching. Use the tool to obtain false or missed reports to identify false and / or missed reports in the business log information.
9. The method of claim 8, wherein, Anomaly detection using configured business anomaly detection algorithms and log information includes: Using at least one annotation algorithm different from the current AI model, feature extraction is performed on log information. The extracted features include one feature, multiple features, or the correlation characteristics between multiple features. The extracted features will be used to determine the classification of business access.
10. The method of claim 8, wherein, Also includes: When the current AI model training is completed and fails the test, the features extracted from each false alarm and / or missed alarm information are added using a set business anomaly detection algorithm, and the labels corresponding to the false alarm and / or missed alarm information are re-determined; Alternatively, obtain labels manually assigned to inconsistent test results for false alarms and / or missed alarms; Replace the previous incremental training sample set with the incremental training sample set after correcting the labels, and trigger retraining.
11. The method of claim 8, wherein, The false alarm and / or missed alarm information and the corresponding correct labels are determined in the following manner: Based on the results of log information anomaly detection using a pre-defined business anomaly detection algorithm, determine false positives and / or missed positives and their corresponding correct labels; or The false alarm and / or missed alarm information is clustered using a clustering algorithm. By gradually increasing the inter-cluster distance and decreasing the intra-cluster distance, the false alarm and / or missed alarm information is clustered into a set number of clusters. Determine the correct label based on the classification of false alarms and / or missed alarms within the same cluster.
12. An AI model updating apparatus for detecting a service anomaly, characterized by, include: The exception log acquisition module is used to acquire false alarms and / or missed alarms caused by the current AI model from the business log information; The sample expansion module is used to obtain an incremental training sample set based on the false positive and / or false negative information; The model training module is used to train at least one AI model including the current AI model based on the incremental training sample set, and to update or not update the current AI model based on the test results. The sample expansion module is specifically used to obtain an initial training sample set based on false positive and / or false negative information and the corresponding correct labels; and to expand the initial training sample set while keeping the semantics of the false positive and / or false negative information unchanged, to obtain an incremental training sample set. When the model training module performs any number of AI model training steps, it executes them in the following order of priority: training other AI models using the full training sample set has the lowest priority, and training the current AI model using the incremental training sample set has a priority equal to or greater than training the current AI model using the full training sample set. The model training module updates or does not update the current AI model based on the test results. Specifically, it is used to: test the currently trained AI model using the test training sample set after each AI model training step; if the test is passed, end the AI model training and replace the current AI model with the trained AI model; otherwise, do not update the current AI model and trigger the next low-priority AI model training step.
13. An AI model automatic update device for detecting service anomalies, characterized by, The method includes at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the method as described in any one of claims 1 to 11.
14. A computer program medium, characterized in that, It stores a computer program, characterized in that when the program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 11.
