Intelligent analysis data security identification method and device, electronic equipment and storage medium
The data analysis model and traffic anomaly detection model optimized by genetic algorithms solve the problem of low security identification ability of intelligent analysis data, achieve effective protection against new vulnerabilities and transit vulnerabilities, and improve the detection of data security and business integrity. ability.
Patent Information
- Application Number
- CN202410081620.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-19
- Publication Date
- 2024-10-18
AI Technical Summary
The existing technology's intelligent analysis data security identification capability is low, making it difficult to effectively deal with new vulnerabilities and transit vulnerabilities, and traditional blocking rules lack effective security protection strategies.
Genetic algorithms are used to optimize parameters by combining sample feature vectors, Gaussian kernel functions and preset penalty factors to train data analysis models and traffic anomaly detection models. Intelligent analysis data security identification is achieved through feature extraction and anomaly rate calculations.
It improves the classification accuracy and generalization ability of the data analysis model, realizes real-time security assessment of user network behavior and illegal behavior detection, and ensures data security and business integrity.
Smart Images

Figure CN118802258A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network security technology, and in particular to an intelligent analysis data security identification method, device, electronic device and storage medium. Background Art
[0002] With the development of the times, big data technology and artificial intelligence technology have developed rapidly. The related automation and intelligent identification and processing capabilities, data analysis capabilities have gradually been deeply coordinated with network security technology, which has had an important impact on the technology, methods and applications of network security. It is foreseeable that the maturity of security data collection and security intelligent data analysis technology will greatly improve the efficiency of key security defense links such as network security threat detection and network security risk assessment, and greatly reduce the security of the network.
[0003] The current security protection methods are mainly based on traditional security ideas. The existing security protection technology uses traditional security equipment for blocking, such as firewalls, intrusion prevention systems, and website application-level intrusion prevention systems. Traditional security equipment uses blocking rules to determine whether there is a network attack or abnormal behavior based on data fingerprints and access levels. These blocking rules can be configured according to actual needs to provide a certain degree of security protection. However, for new vulnerabilities or transit vulnerabilities, traditional blocking rules lack effective security protection strategies, resulting in low intelligent analysis data recognition capabilities. Summary of the invention
[0004] The present invention provides a method, device, electronic device and storage medium for intelligent analysis data security identification, which are used to solve the problem of low intelligent analysis data security identification capability in the prior art.
[0005] In a first aspect, the present invention provides a method for intelligent analysis data security identification, comprising:
[0006] Acquire a data source; the data source includes user information and user traffic data;
[0007] Perform feature extraction based on the data source to obtain a first feature vector;
[0008] The first feature vector is input into a data analysis model to obtain a traffic type recognition result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by optimizing parameters based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor;
[0009] Inputting the first feature vector and the traffic type identification result into a traffic anomaly detection model to obtain a feature anomaly rate; the traffic anomaly detection model is obtained by training based on the traffic type sample vector;
[0010] Anomalies are identified based on the characteristic anomaly rate to obtain intelligent analysis data security identification results.
[0011] In one embodiment, the data analysis model is determined based on the following steps:
[0012] Determine the sample feature vector;
[0013] Determine the information entropy contribution rate of each feature in the sample feature vector; the information entropy contribution rate is used to reflect the importance of the feature to the prediction task;
[0014] Based on the contribution rate of each information entropy, the Gaussian kernel function is weighted to obtain a weighted kernel function;
[0015] Based on the linear combination of the weighted kernel function and the nonlinear kernel function, a combined kernel function is obtained;
[0016] Determining initial kernel function parameters and initial weighting coefficients in the combined kernel function; the kernel function parameters are used to optimize the generalization ability of the support vector machine; the weighting coefficients are used to adjust the weights of the weighted kernel function and the nonlinear kernel function in the combined kernel function;
[0017] Based on a genetic algorithm, the preset penalty factor, the initial kernel function parameters and the initial weighting coefficient are optimized to obtain a target penalty factor, a target kernel function parameter and a target weighting coefficient;
[0018] Based on the target penalty factor, the target kernel function parameter and the target weighting coefficient, a support vector machine is trained to obtain a data analysis model.
[0019] In one embodiment, the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient are optimized based on a genetic algorithm to obtain a target penalty factor, a target kernel function parameter and a target weighting coefficient, including:
[0020] Perform binary coding based on the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient to obtain multiple first chromosome codes to be selected;
[0021] Selecting a first preset number of first chromosome codes from all first chromosome codes to be selected;
[0022] Perform crossover processing based on each first chromosome code to obtain a first preset number of first crossover codes;
[0023] Performing mutation processing on each first cross code to obtain a first preset number of first variant codes;
[0024] Update the first candidate chromosome code according to each first variation code and each remaining chromosome code; the remaining chromosome code refers to the remaining first candidate chromosome code among all the first candidate chromosome codes except the first chromosome code;
[0025] Iteratively executing the step of selecting a first preset number of first chromosome codes from all first chromosome codes to be selected, until the number of iterations reaches a preset number or the updated first chromosome codes to be selected meet a preset rule, and obtaining an optimal solution for the chromosome code;
[0026] Based on the chromosome encoding optimal solution, a target penalty factor, a target kernel function parameter and a target weighting coefficient are determined.
[0027] In one embodiment, the traffic anomaly detection model includes a traffic feature detection model, a character feature detection model and a time series statistical feature detection model; the traffic feature detection model is obtained by training based on a traffic feature sample vector; the character feature detection model is obtained by training based on a character feature sample vector; the time series statistical feature detection model is obtained by training based on a time series statistical feature sample vector; the feature anomaly rate includes a traffic feature anomaly rate, a character feature anomaly rate and a time series statistical feature anomaly rate.
[0028] In one embodiment, determining the intelligent analysis data security identification result based on the feature abnormality rate includes:
[0029] Determining a first preset weight coefficient, a second preset weight coefficient, and a third preset weight coefficient;
[0030] Based on the first preset weight coefficient, weighted calculation is performed on the flow characteristic abnormality rate to obtain a flow characteristic weighted value;
[0031] Based on the second preset weight coefficient, weighted calculation is performed on the character feature abnormality rate to obtain a character feature weighted value;
[0032] Based on the third preset weight coefficient, weighted calculation is performed on the abnormal rate of the time series statistical feature to obtain a weighted value of the time series statistical feature;
[0033] Calculate the mean of the traffic feature weighted value, the character feature weighted value and the time series statistical feature weighted value to obtain the feature anomaly average value;
[0034] Anomalies are identified based on the characteristic anomaly average value to obtain intelligent analysis data security identification results.
[0035] In one embodiment, the abnormality identification is performed based on the feature abnormality average value to obtain the intelligent analysis data security identification result, including:
[0036] If the average value of the characteristic anomaly is greater than the preset threshold, the intelligent analysis data security identification result is determined to be that there is a network anomaly;
[0037] If the average value of the characteristic anomaly is less than or equal to the preset threshold, the intelligent analysis data security identification result is determined to be that the network is normal.
[0038] In one embodiment, extracting features based on the data source to obtain a first feature vector includes:
[0039] Performing field processing on the data source to obtain field data;
[0040] Performing feature extraction on the field data to obtain a second feature vector;
[0041] Based on a feature hash function, feature extraction is performed on the second feature vector to obtain a first feature vector; the feature hash function is used to map a high-dimensional feature vector to a low-dimensional feature vector.
[0042] In a second aspect, the present invention further provides an intelligent analysis data security identification device, comprising:
[0043] An acquisition module, used to acquire a data source; the data source includes user information and user traffic data;
[0044] A feature extraction module, used to extract features based on the data source to obtain a first feature vector;
[0045] A traffic type identification module, used for inputting the first feature vector into a data analysis model to obtain a traffic type identification result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by optimizing parameters based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor;
[0046] A traffic anomaly detection module, used for inputting the first feature vector and the traffic type identification result into a traffic anomaly detection model to obtain a feature anomaly rate;
[0047] The safety identification module is used to identify anomalies based on the characteristic anomaly rate to obtain a safety identification result of the intelligent analysis data.
[0048] In a third aspect, the present invention provides an electronic 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 program, the steps of any of the above-described intelligent analysis data security identification methods are implemented.
[0049] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above-described intelligent analysis data security identification methods.
[0050] The intelligent analysis data security identification method, device, electronic device and storage medium provided by the present invention use a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor to perform parameter optimization to obtain an optimized data analysis model, thereby improving the classification accuracy and generalization ability of the data analysis model. Therefore, by inputting the first feature vector into the data analysis model, strict data analysis can be performed on the data generated by the user's network behavior to obtain a traffic type identification result. The first feature vector and the traffic type identification result are further input into the traffic anomaly detection model to obtain a feature anomaly rate to determine the intelligent analysis data security identification result, and a real-time assessment of the security of the user's network behavior can be performed. Effective illegal behavior detection can be achieved to ensure the data security and business integrity of the user when using the network, thereby improving the intelligent analysis data security identification capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 It is a flow chart of the intelligent analysis data security identification method provided by the present invention;
[0053] Figure 2 It is a schematic diagram of chromosome coding provided by the present invention;
[0054] Figure 3 It is a structural schematic diagram of the intelligent analysis data security identification device provided by the present invention;
[0055] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] The terms "first", "second", etc. in the present invention are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention can be implemented in an order other than those illustrated or described herein.
[0058] Combine the following Figure 1-Figure 4 The present invention describes the intelligent analysis data security identification method, device, electronic device and storage medium provided by the present invention.
[0059] Figure 1 It is a flow chart of the intelligent analysis data security identification method provided by the present invention.
[0060] like Figure 1 As shown, the intelligent analysis data security identification method provided by the present invention includes but is not limited to the following steps:
[0061] Step 100: Obtain data source;
[0062] Step 200: extracting features based on the data source to obtain a first feature vector;
[0063] Step 300: Input the first feature vector into a data analysis model to obtain a traffic type recognition result;
[0064] Step 400: inputting the first feature vector and the traffic type identification result into a traffic anomaly detection model to obtain a feature anomaly rate;
[0065] Step 500: Perform anomaly identification based on the characteristic anomaly rate to obtain an intelligent analysis data security identification result.
[0066] It should be noted that the intelligent analysis data security identification method provided in the embodiment of the present invention is implemented based on the intelligent analysis data security identification device. The intelligent analysis data security identification method uses a data analysis model completed with parameter optimization to strictly analyze the traffic data generated by the user's network behavior to obtain a traffic type identification result, and further inputs the traffic data and its traffic type identification result into a traffic anomaly detection model, outputs a characteristic anomaly rate, and then performs anomaly identification based on the characteristic anomaly rate to obtain an intelligent analysis data security identification result. Therefore, the embodiment of the present invention describes the intelligent analysis data security identification method by taking the intelligent analysis data security identification device as the execution subject as an example.
[0067] Specifically, the intelligent analysis data security identification device obtains a data source, wherein the data source includes user information and user traffic data, and there is no limit on the number of users, which can be one user or multiple users.
[0068] Furthermore, the intelligent analysis data security identification device performs feature extraction based on the data source to obtain a first feature vector, wherein the first feature vector includes 10 types of features, and the 10 types of features are low-dimensional features of traffic timing, low-dimensional features of log number statistics, low-dimensional features of network session number statistics, low-dimensional features of network traffic value statistics, low-dimensional features of Hypertext Transfer Protocol (HTTP) session statistics, low-dimensional features of HTTP download behavior statistics, low-dimensional features of active connection number statistics, low-dimensional features of application connection number statistics, low-dimensional features of network external connection number statistics, and low-dimensional features of user behavior statistics.
[0069] Furthermore, the intelligent analysis data security identification device inputs the first feature vector into the data analysis model to obtain a traffic type identification result, wherein the data analysis model is obtained by training based on the target penalty factor, target kernel function parameters and target weighting coefficient, and the target penalty factor, target kernel function parameters and target weighting coefficient are obtained by optimizing parameters based on a genetic algorithm combined with sample feature vectors, Gaussian kernel functions and preset penalty factors.
[0070] It should be noted that, since the parameters of the data analysis model are optimized based on the genetic algorithm, the data analysis model has a strong generalization ability, which makes the classification accuracy of samples high, can adapt to different data distributions, and analyze data with complex features, including but not limited to packet size, protocol type, source Internet Protocol (IP) address and target IP address. The data analysis model determines the traffic type to which the first feature vector belongs by learning the pattern of complex features.
[0071] Furthermore, the intelligent analysis data security identification device inputs the first feature vector and the traffic type identification result into the traffic anomaly detection model to obtain the feature anomaly rate, wherein the traffic anomaly detection model includes a traffic feature detection model, a character feature detection model and a time series statistical feature detection model, and the feature anomaly rate includes a traffic feature anomaly rate, a character feature anomaly rate and a time series statistical feature anomaly rate.
[0072] It should be noted that the traffic feature detection model is obtained by training based on the traffic feature sample vector, the character feature detection model is obtained by training based on the character feature sample vector, and the time series statistical feature detection model is obtained by training based on the time series statistical feature sample vector. Since the traffic feature detection model, the character feature detection model and the time series statistical feature detection model are all basic detection models used to detect the security of traffic data, the training process of the traffic feature detection model, the character feature detection model and the time series statistical feature detection model will not be elaborated here.
[0073] Therefore, it can be understood that the intelligent analysis data security identification device inputs the first feature vector and the traffic type identification result into the traffic feature detection model to obtain the traffic feature abnormality rate. Further, the intelligent analysis data security identification device inputs the first feature vector and the traffic type identification result into the character feature detection model to obtain the character feature abnormality rate. Further, the intelligent analysis data security identification device inputs the first feature vector and the traffic type identification result into the time series statistical feature detection model to obtain the time series statistical feature abnormality rate.
[0074] Furthermore, the intelligent analysis data security identification device performs anomaly identification based on the characteristic anomaly rate to obtain an intelligent analysis data security identification result.
[0075] Therefore, it can be understood that the intelligent analysis data security identification device performs anomaly identification based on the traffic feature anomaly rate, the character feature anomaly rate and the time series statistical feature anomaly rate to obtain the intelligent analysis data security identification result.
[0076] The intelligent analysis data security identification method provided by the present invention adopts a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor to perform parameter optimization to obtain an optimized data analysis model, thereby improving the classification accuracy and generalization ability of the data analysis model. Therefore, by inputting the first feature vector into the data analysis model, strict data analysis can be performed on the data generated by the user's network behavior to obtain a traffic type identification result. The first feature vector and the traffic type identification result are further input into the traffic anomaly detection model to obtain a feature anomaly rate to determine the intelligent analysis data security identification result, and a real-time assessment of the security of the user's network behavior can be performed. Effective illegal behavior detection can be achieved to ensure the data security and business integrity of the user when using the network, thereby improving the intelligent analysis data security identification capability.
[0077] Further, based on step 200, feature extraction is performed based on the data source to obtain a first feature vector, including:
[0078] Performing field processing on the data source to obtain field data;
[0079] Performing feature extraction on the field data to obtain a second feature vector;
[0080] Based on a feature hash function, feature extraction is performed on the second feature vector to obtain a first feature vector; the feature hash function is used to map a high-dimensional feature vector to a low-dimensional feature vector.
[0081] Specifically, the intelligent analysis data security identification device performs field processing on the data source to obtain field data, wherein the field processing includes but is not limited to data merging, data filtering, field extraction and statistical value calculation. The field processing is used to implement customized configuration of the data source, thereby generating a feature vector that meets the model analysis requirements.
[0082] Furthermore, the intelligent analysis data security identification device extracts features from the field data to obtain a second feature vector, wherein the second feature vector includes 10 types of features, namely, traffic timing features, log number statistical features, network session number statistical features, network traffic value statistical features, HTTP session statistical features, HTTP download behavior statistical features, active connection number statistical features, application connection number statistical features, network external connection number statistical features, and user behavior statistical features. Therefore, after the data source is processed by fieldization and feature extraction, the data source forms a unified structure, and the unified digital structure forms the second feature vector of the above 10 types of features, which can be applied to subsequent data intelligent analysis.
[0083] Furthermore, the intelligent analysis data security identification device extracts features from the second feature vector based on a feature hash function to obtain a first feature vector.
[0084] It should be noted that the feature hash function can map high-dimensional input data to a low-dimensional feature space, thereby reducing the dimension of the data and retaining some important information in the original data, which helps to simplify the complexity of data processing and analysis and improve the efficiency of the model. Therefore, the intelligent analysis data security identification device extracts features from the second feature vector based on the feature hash function to obtain the first feature vector, which can map the high-dimensional second feature vector to the low-dimensional first feature vector, which helps the data analysis model to better understand and process the input data.
[0085] Therefore, the first feature vector includes 10 types of features, which are low-dimensional features of traffic time series, low-dimensional features of log number statistics, low-dimensional features of network session number statistics, low-dimensional features of network traffic value statistics, low-dimensional features of HTTP session statistics, low-dimensional features of HTTP download behavior statistics, low-dimensional features of active connection number statistics, low-dimensional features of application connection number statistics, low-dimensional features of network external connection number statistics, and low-dimensional features of user behavior statistics.
[0086] The embodiment of the present invention performs field processing on the data source to obtain field data, and performs feature extraction on the field data to obtain a second feature vector, and further maps the high-dimensional second feature vector to the low-dimensional first feature vector based on the feature hash function, thereby realizing a standard vectorization process of the data source, which can improve the efficiency of data processing and analysis, reduce data dimensions, and retain important feature information, thereby providing a better data foundation for subsequent data analysis tasks and traffic anomaly detection tasks.
[0087] Further, based on the characteristic abnormality rate in step 500, determining the intelligent analysis data security identification result includes:
[0088] Determining a first preset weight coefficient, a second preset weight coefficient, and a third preset weight coefficient;
[0089] Based on the first preset weight coefficient, weighted calculation is performed on the flow characteristic abnormality rate to obtain a flow characteristic weighted value;
[0090] Based on the second preset weight coefficient, weighted calculation is performed on the character feature abnormality rate to obtain a character feature weighted value;
[0091] Based on the third preset weight coefficient, weighted calculation is performed on the abnormal rate of the time series statistical feature to obtain a weighted value of the time series statistical feature;
[0092] Calculate the mean of the traffic feature weighted value, the character feature weighted value and the time series statistical feature weighted value to obtain the feature anomaly average value;
[0093] Anomalies are identified based on the characteristic anomaly average value to obtain intelligent analysis data security identification results.
[0094] Specifically, the intelligent analysis data security identification device determines a first preset weight coefficient, a second preset weight coefficient, and a third preset weight coefficient.
[0095] It should be noted that the first preset weight coefficient, the second preset weight coefficient and the third preset weight coefficient are set according to the statistical information of historical traffic characteristics. If the historical traffic form is a fast traffic speed and a short access time, the first preset weight coefficient should be appropriately increased, and the third preset weight coefficient should be appropriately reduced; if the historical traffic form is a slow traffic speed but a long duration, the first preset weight coefficient should be appropriately reduced, and the third preset weight coefficient should be appropriately increased; the second preset weight coefficient is determined according to the change frequency of the historical traffic character type. If the change frequency is high, the second preset weight coefficient should be appropriately increased.
[0096] Furthermore, the intelligent analysis data security identification device performs weighted calculation on the abnormal rate of traffic characteristics based on the first preset weight coefficient to obtain a weighted value of the traffic characteristics. Furthermore, the intelligent analysis data security identification device performs weighted calculation on the abnormal rate of character features based on the second preset weight coefficient to obtain a weighted value of the character features. Further, the intelligent analysis data security identification device performs weighted calculation on the abnormal rate of time series statistical features based on the third preset weight coefficient to obtain a weighted value of the time series statistical features.
[0097] Furthermore, the intelligent analysis data security identification device calculates the mean of the traffic feature weighted value, the character feature weighted value and the time series statistical feature weighted value to obtain the feature anomaly average value.
[0098] In one embodiment, the calculation formula of the characteristic anomaly average value is as follows:
[0099] AC=(ac 1 *b 1 +ac 2 *b 2 +ac 3 *b 3 ) / 3
[0100] Among them, AC represents the average value of characteristic anomaly, ac 1 Characterizes the abnormal rate of traffic characteristics, b 1 Characterizes the first preset weight coefficient, ac 2 Characterizes the abnormality rate of character features, b 2 Characterizes the second preset weight coefficient, ac 3 Characterize the abnormal rate of time series statistics, b 3 Characterizes a third preset weight coefficient.
[0101] Furthermore, the intelligent analysis data safety identification device determines the intelligent analysis data safety identification result based on the characteristic abnormality average value.
[0102] The embodiment of the present invention performs weighted calculation on the traffic feature anomaly rate, the character feature anomaly rate and the time series statistical feature anomaly rate based on the first preset weight coefficient, the second preset weight coefficient and the third preset weight coefficient, and further calculates the feature anomaly average value, so as to make a more accurate judgment on the feature anomaly rate, and then perform anomaly identification based on the anomaly average value to obtain the intelligent analysis data security identification result, realize an intelligent intelligent analysis data security identification method, perform real-time evaluation on the security of user network behavior, and improve the intelligent analysis data security identification capability.
[0103] Furthermore, the abnormality identification is performed based on the characteristic abnormality average value to obtain the intelligent analysis data security identification result, including:
[0104] If the average value of the characteristic anomaly is greater than the preset threshold, the intelligent analysis data security identification result is determined to be that there is a network anomaly;
[0105] If the average value of the characteristic anomaly is less than or equal to the preset threshold, the intelligent analysis data security identification result is determined to be that the network is normal.
[0106] Specifically, the intelligent analysis data security identification device compares the numerical value of the characteristic anomaly average value with a preset threshold, wherein the preset threshold is set according to actual conditions.
[0107] Furthermore, if the average value of the characteristic anomaly is greater than a preset threshold, the intelligent analysis data security identification device determines that the intelligent analysis data security identification result is that there is a network anomaly. Furthermore, the intelligent analysis data security identification device cuts off network communication and takes emergency measures based on the intelligent analysis data security identification result to achieve effective blocking of illegal access and attacks, or blocking of illegal behaviors under authorized access, so as to achieve real-time and effective security protection of the network.
[0108] Furthermore, if the average value of the characteristic anomaly is less than or equal to a preset threshold, the intelligent analysis data security identification device determines that the intelligent analysis data security identification result is that the network is normal.
[0109] The embodiment of the present invention determines the possibility of network anomalies based on the numerical size of the average value of characteristic anomalies and takes corresponding emergency measures. It can provide effective security protection strategies when facing new vulnerabilities or transit vulnerabilities, improve the ability of intelligent analysis data recognition, and effectively reduce the risks and security vulnerability costs faced by applications and systems, thereby avoiding business losses and reputation damage to users caused by security incidents.
[0110] Furthermore, the data analysis model is determined based on the following steps:
[0111] Determine the sample feature vector;
[0112] Determine the information entropy contribution rate of each feature in the sample feature vector; the information entropy contribution rate is used to reflect the importance of the feature to the prediction task;
[0113] Based on the contribution rate of each information entropy, the Gaussian kernel function is weighted to obtain a weighted kernel function;
[0114] Based on the linear combination of the weighted kernel function and the nonlinear kernel function, a combined kernel function is obtained;
[0115] Determining initial kernel function parameters and initial weighting coefficients in the combined kernel function; the kernel function parameters are used to optimize the generalization ability of the support vector machine; the weighting coefficients are used to adjust the weights of the weighted kernel function and the nonlinear kernel function in the combined kernel function;
[0116] Based on a genetic algorithm, the preset penalty factor, the initial kernel function parameters and the initial weighting coefficient are optimized to obtain a target penalty factor, a target kernel function parameter and a target weighting coefficient;
[0117] Based on the target penalty factor, the target kernel function parameter and the target weighting coefficient, a support vector machine is trained to obtain a data analysis model.
[0118] Specifically, the intelligent analysis data security identification device obtains data source samples, wherein the data source samples include user information samples and user traffic data samples.
[0119] Furthermore, the intelligent analysis data security identification device extracts features based on the data source sample to obtain a sample feature vector, wherein the sample feature vector includes multiple feature vectors. It should be noted that the process of extracting features based on the data source sample is the same as the process of extracting features based on the data source, and will not be repeated here.
[0120] It should be noted that since the sample feature vector contains multiple low-dimensional feature vectors, the sample feature vectors can form a sample data set, where the i-th feature vector of the sample data set is x i , then the vector x i The corresponding kernel matrix is Vector x i The corresponding information entropy contribution rate is C i , so the vector x i The corresponding weighted kernel matrix is:
[0121]
[0122] Therefore, based on formula (1) and the principle of kernel function construction, the regeneration kernel function can be constructed as:
[0123]
[0124] Among them, x i Characterizes the i-th feature vector in the sample data set, x j Characterize the center of the kernel function, x im Characterization vector x i The m-th dimension feature, x jm Characterization vector x j The m-th dimension feature, G m Characterization vector x i Medium feature x im The information entropy contribution rate.
[0125] The kernel function is the core component of the support vector machine algorithm. The kernel function is used to calculate the similarity or distance between a feature vector and the kernel function center (that is, the support vector). This similarity measure is usually nonlinear. The purpose is to map the data to a higher-dimensional space so that the originally difficult-to-distinguish data can be easier to distinguish in the new space. The kernel function center can be a specific feature vector in the sample data set, or it can be a feature vector that is pre-selected or randomly selected according to preset criteria.
[0126] Furthermore, the intelligent analysis data security identification device determines the information entropy contribution rate of each feature in the sample feature vector, wherein the information entropy contribution rate is used to reflect the importance of the feature to the prediction task.
[0127] Furthermore, the intelligent analysis data security identification device weights the Gaussian kernel function based on the contribution rate of each information entropy to obtain a weighted kernel function.
[0128] In one embodiment, the Gaussian kernel function K RBF The formula is as follows:
[0129]
[0130] Among them, x i Characterizes the i-th feature vector in the sample data set, x j represents the center of the kernel function, σ represents the width factor of the Gaussian kernel function, and the kernel function width factor is used to control the width of the Gaussian kernel function.
[0131] Therefore, substituting formula (3) into formula (2), the weighted kernel function K can be constructed: IE-RB for:
[0132]
[0133] Among them, x i Characterizes the i-th feature vector in the sample data set, x im Characterization vector x i The m-th dimension feature, x jm Characterization vector x j The m-th dimension feature, x j Characterize the kernel function center, C m Characterization vector x i Medium feature x im The information entropy contribution rate, N represents the vector x i Contains features of N dimensions.
[0134] Furthermore, the intelligent analysis data security identification device obtains a combined kernel function based on a linear combination of a weighted kernel function and a nonlinear kernel function, wherein the nonlinear kernel function includes a polynomial kernel function (poly kernel function) and an S-type kernel function (sigmiod kernel function), and the combined kernel function includes a first combined kernel function and a second combined kernel function.
[0135] Therefore, it can be understood that the intelligent analysis data security identification device obtains a first combined kernel function based on a linear combination of the weighted kernel function and the poly kernel function. Further, the intelligent analysis data security identification device obtains a second combined kernel function based on a linear combination of the weighted kernel function and the sigmiod kernel function.
[0136] In one embodiment, the poly kernel function K poly The formula is as follows:
[0137] K poly =[(x k T x i )+1] d (5)
[0138] Among them, x k Characterizes the kth eigenvector in the sample data set, x i represents the i-th eigenvector in the sample data set, d represents the number of power operations, controls the influence of the polynomial terms, and can enhance the nonlinear characteristics of the kernel function.
[0139] sigmiod kernel function K sigmiod The formula is as follows:
[0140] K sigmiod =tanh[(x k T x i )+1] (6)
[0141] Among them, x k Characterizes the kth eigenvector in the sample data set, xi Represents the i-th eigenvector in the sample data set.
[0142] Therefore, according to formula (4), formula (5) and formula (6), the first combined kernel function K 1 and the second combined kernel function K 2 The formula is as follows:
[0143]
[0144]
[0145] Among them, α represents the weighting coefficient, which is used to adjust the weights of the weighted kernel function and the nonlinear kernel function in the combined kernel function, and c represents the kernel function parameters, which are used to optimize the generalization ability of the support vector machine.
[0146] Furthermore, the intelligent analysis data security identification device determines initial kernel function parameters and initial weighting coefficients in the combined kernel function.
[0147] Furthermore, the intelligent analysis data security identification device optimizes the preset penalty factor, initial kernel function parameters and initial weighting coefficient based on a genetic algorithm to obtain a target penalty factor, target kernel function parameters and target weighting coefficient.
[0148] Furthermore, the intelligent analysis data security identification device trains a support vector machine based on a target penalty factor, a target kernel function parameter and a target weighting coefficient to obtain a data analysis model.
[0149] The embodiment of the present invention weights the Gaussian kernel function based on the information entropy contribution rate of each feature in the sample feature vector to obtain a weighted kernel function, further performs linear combination based on the weighted kernel function and the nonlinear kernel function to obtain a combined kernel function, and optimizes the initial kernel function parameters, initial weighting coefficient and preset penalty factor of the combined kernel function based on a genetic algorithm to obtain a target penalty factor, target kernel function parameters and target weighting coefficient after parameter optimization, and then trains a support vector machine based on the target penalty factor, target kernel function parameters and target weighting coefficient to obtain a data analysis model, thereby improving the classification accuracy and generalization ability of the data analysis model, being able to adapt to different data distributions and analyze data with complex features. Therefore, by inputting the first feature vector into the data analysis model, strict data analysis of the data generated by the user's network behavior can be achieved.
[0150] Furthermore, the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient are optimized based on the genetic algorithm to obtain the target penalty factor, the target kernel function parameter and the target weighting coefficient, including:
[0151] Perform binary coding based on the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient to obtain multiple first chromosome codes to be selected;
[0152] Selecting a first preset number of first chromosome codes from all first chromosome codes to be selected;
[0153] Perform crossover processing based on each first chromosome code to obtain a first preset number of first crossover codes;
[0154] Performing mutation processing on each first cross code to obtain a first preset number of first variant codes;
[0155] Update the first candidate chromosome code according to each first variation code and each remaining chromosome code; the remaining chromosome code refers to the remaining first candidate chromosome code among all the first candidate chromosome codes except the first chromosome code;
[0156] Iteratively executing the step of selecting a first preset number of first chromosome codes from all first chromosome codes to be selected, until the number of iterations reaches a preset number or the updated first chromosome codes to be selected meet a preset rule, and obtaining an optimal solution for the chromosome code;
[0157] Based on the chromosome encoding optimal solution, a target penalty factor, a target kernel function parameter and a target weighting coefficient are determined.
[0158] Specifically, the intelligent analysis data security identification device binary encodes the combined kernel function type, the preset penalty factor, the initial kernel function parameters and the initial weighting coefficient to obtain multiple first chromosome encodings, wherein the combined kernel function type includes a first combined kernel function and a second combined kernel function.
[0159] In one embodiment, reference may be made to Figure 2 As shown, Figure 2 is a schematic diagram of chromosome coding provided by the present invention, wherein c 0 Characterizes the code of the combined kernel function type. If the combined kernel function type is the first combined kernel function, then c 0 = 0, if the combined kernel function type is the second combined kernel function, then c 0 =1; Characterize the encoding of the initial kernel function parameters; A code representing the initial weighting coefficients; The code representing the preset penalty factor.
[0160] Furthermore, the intelligent analysis data security identification device performs fitness evaluation on each first chromosome code based on the fitness function to obtain the fitness value of each first chromosome code. Furthermore, the intelligent analysis data security identification device selects a first preset number of first chromosome codes from all first chromosome codes according to the fitness value of each first chromosome code, wherein the first preset number is set according to actual conditions, and a selection operator is used to select the first chromosome code, and the selection strategy of the selection operator includes but is not limited to a roulette selection method, a random traversal selection method and a tournament selection method.
[0161] It should be noted that the fitness function is usually set according to the specific requirements and objectives of the problem. The fitness function can map the individual's genetic expression (i.e., chromosome encoding) to a real value, which represents the individual's degree of adaptation to the problem. The higher the fitness value, the greater the individual's chance of survival and reproduction during the evolutionary process.
[0162] In one embodiment, the fitness function may use the prediction accuracy of the test sample, that is, the ratio of the number of samples correctly predicted by the classifier as positive to the number of all actual positive samples as the fitness value. Therefore, the formula of the fitness function Fitness can be expressed as:
[0163]
[0164] Among them, TP represents the true positive examples, that is, the number of samples that are actually positive but are correctly predicted as positive by the classifier, and FN represents the false negative examples, that is, the number of samples that are actually positive but are incorrectly predicted as negative by the classifier.
[0165] Furthermore, the intelligent analysis data security identification device performs cross processing based on each first chromosome code to obtain a first preset number of first cross codes. Further, the intelligent analysis data security identification device performs cross processing on each first chromosome code to obtain a first preset number of first cross codes.
[0166] It should be noted that the crossover processing will use the crossover operator, and the mutation processing will use the mutation operator. The existence of the crossover operator and the mutation operator is to maintain the diversity of the population (that is, the diversity of chromosome codes) and to prevent the genetic algorithm from falling into a local optimum. In the individuals selected by the selection operator, that is, in each first chromosome code, the crossover operator takes two first chromosome codes as a group of codes, divides all first chromosome codes into multiple groups of codes, and exchanges the codes of the two first chromosome codes at the same position in each group of codes, thereby generating two new chromosome codes, that is, two first crossover codes. Furthermore, the mutation operator randomly changes the code of any position in each first crossover code according to a preset probability value, wherein the preset probability value can be set to 0.1.
[0167] Furthermore, the intelligent analysis data security identification device updates the first candidate chromosome code according to each first variation code and each remaining chromosome code, wherein the remaining chromosome code refers to the first candidate chromosome code remaining in all the first candidate chromosome codes except the first chromosome code.
[0168] Furthermore, the intelligent analysis data security identification device iteratively executes the step of selecting a first preset number of first chromosome codes from all first chromosome codes to be selected until the number of iterations reaches a preset number or the updated first chromosome codes to be selected meet the preset rules, thereby obtaining the optimal solution for the chromosome code, wherein the preset number and the preset rules are set according to actual conditions, and in each iteration process, the number of first chromosome codes selected by the selection operator can be adjusted and set according to the complexity of the problem.
[0169] Furthermore, the intelligent analysis data security identification device decodes based on the optimal solution of the chromosome encoding to determine the target penalty factor, target kernel function parameters and target weighting coefficient.
[0170] The embodiment of the present invention is based on a genetic algorithm, and binary codes a preset penalty factor, an initial kernel function parameter, and an initial weighting coefficient to obtain multiple first chromosome codes to be selected. The process of selecting the chromosome code is further implemented by a selection operator, the process of chromosome code crossover processing is implemented by a crossover operator, and the process of chromosome code mutation processing is implemented by a mutation operator. The first chromosome code to be selected is further updated, and the steps of selection, crossover, mutation, and update are iteratively performed until the optimal solution of the chromosome code is obtained to determine the target penalty factor, target kernel function parameter, and target weighting coefficient, implement the parameter optimization process of the support vector machine, and obtain a data analysis model. The data analysis model is used to classify feature vectors, which can enhance the contribution of features that are conducive to classification, suppress features with low contribution, and avoid the result from falling into a local optimal solution, thereby improving the classification accuracy and generalization ability of the data analysis model.
[0171] Furthermore, the present invention also provides an intelligent analysis data security identification device.
[0172] Reference Figure 3 , Figure 3 It is a structural schematic diagram of the intelligent analysis data security identification device provided by the present invention.
[0173] The intelligent analysis data security identification device comprises:
[0174] The acquisition module 310 is used to acquire a data source; the data source includes user information and user traffic data;
[0175] A feature extraction module 320, configured to extract features based on the data source to obtain a first feature vector;
[0176] The traffic type identification module 330 is used to input the first feature vector into a data analysis model to obtain a traffic type identification result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by optimizing parameters based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor;
[0177] A traffic anomaly detection module 340, configured to input the first feature vector and the traffic type identification result into a traffic anomaly detection model to obtain a feature anomaly rate;
[0178] The safety identification module 350 is used to perform anomaly identification based on the characteristic anomaly rate to obtain a safety identification result of the intelligent analysis data.
[0179] The intelligent analysis data security identification device provided by the present invention adopts a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor to perform parameter optimization to obtain an optimized data analysis model, thereby improving the classification accuracy and generalization ability of the data analysis model. Therefore, by inputting the first feature vector into the data analysis model, it is possible to perform strict data analysis on the data generated by the user's network behavior to obtain a traffic type identification result, and further input the first feature vector and the traffic type identification result into the traffic anomaly detection model to obtain a feature anomaly rate to determine the intelligent analysis data security identification result, and perform a real-time assessment of the security of the user's network behavior, thereby achieving effective illegal behavior detection and ensuring the data security and business integrity of the user when using the network, thereby improving the intelligent analysis data security identification capability.
[0180] Furthermore, the feature extraction module 320 also includes:
[0181] Performing field processing on the data source to obtain field data;
[0182] Performing feature extraction on the field data to obtain a second feature vector;
[0183] Based on a feature hash function, feature extraction is performed on the second feature vector to obtain a first feature vector; the feature hash function is used to map a high-dimensional feature vector to a low-dimensional feature vector.
[0184] Furthermore, the security identification module 350 also includes:
[0185] Determining a first preset weight coefficient, a second preset weight coefficient, and a third preset weight coefficient;
[0186] Based on the first preset weight coefficient, weighted calculation is performed on the flow characteristic abnormality rate to obtain a flow characteristic weighted value;
[0187] Based on the second preset weight coefficient, weighted calculation is performed on the character feature abnormality rate to obtain a character feature weighted value;
[0188] Based on the third preset weight coefficient, weighted calculation is performed on the abnormal rate of the time series statistical feature to obtain a weighted value of the time series statistical feature;
[0189] Calculate the mean of the traffic feature weighted value, the character feature weighted value and the time series statistical feature weighted value to obtain the feature anomaly average value;
[0190] Anomalies are identified based on the characteristic anomaly average value to obtain intelligent analysis data security identification results.
[0191] Furthermore, the security identification module 350 also includes:
[0192] If the average value of the characteristic anomaly is greater than the preset threshold, the intelligent analysis data security identification result is determined to be that there is a network anomaly;
[0193] If the average value of the characteristic anomaly is less than or equal to the preset threshold, the intelligent analysis data security identification result is determined to be that the network is normal.
[0194] Furthermore, the intelligent analysis data security identification device also includes:
[0195] Determine the sample feature vector;
[0196] Determine the information entropy contribution rate of each feature in the sample feature vector; the information entropy contribution rate is used to reflect the importance of the feature to the prediction task;
[0197] Based on the contribution rate of each information entropy, the Gaussian kernel function is weighted to obtain a weighted kernel function;
[0198] Based on the linear combination of the weighted kernel function and the nonlinear kernel function, a combined kernel function is obtained;
[0199] Determining initial kernel function parameters and initial weighting coefficients in the combined kernel function; the kernel function parameters are used to optimize the generalization ability of the support vector machine; the weighting coefficients are used to adjust the weights of the weighted kernel function and the nonlinear kernel function in the combined kernel function;
[0200] Based on a genetic algorithm, the preset penalty factor, the initial kernel function parameters and the initial weighting coefficient are optimized to obtain a target penalty factor, a target kernel function parameter and a target weighting coefficient;
[0201] Based on the target penalty factor, the target kernel function parameter and the target weighting coefficient, a support vector machine is trained to obtain a data analysis model.
[0202] Furthermore, the intelligent analysis data security identification device also includes:
[0203] Perform binary coding based on the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient to obtain multiple first chromosome codes to be selected;
[0204] Selecting a first preset number of first chromosome codes from all first chromosome codes to be selected;
[0205] Perform crossover processing based on each first chromosome code to obtain a first preset number of first crossover codes;
[0206] Performing mutation processing on each first cross code to obtain a first preset number of first variant codes;
[0207] Update the first candidate chromosome code according to each first variation code and each remaining chromosome code; the remaining chromosome code refers to the remaining first candidate chromosome code among all the first candidate chromosome codes except the first chromosome code;
[0208] Iteratively executing the step of selecting a first preset number of first chromosome codes from all first chromosome codes to be selected, until the number of iterations reaches a preset number or the updated first chromosome codes to be selected meet a preset rule, and obtaining an optimal solution for the chromosome code;
[0209] Based on the chromosome encoding optimal solution, a target penalty factor, a target kernel function parameter and a target weighting coefficient are determined.
[0210] It should be noted that the intelligent analysis data security identification device provided by the present invention can execute the intelligent analysis data security identification method described in any of the above embodiments during specific operation, which will not be elaborated in this embodiment.
[0211] Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4As shown, the electronic device may include: a processor (processor) 410, a communication interface (Communications Interface) 420, a memory (memory) 430 and a communication bus 440, wherein the processor 410, the communication interface 420, and the memory 430 communicate with each other through the communication bus 440. The processor 410 can call the logic instructions in the memory 430 to execute the intelligent analysis data security identification method, which includes: obtaining a data source; the data source includes user information and user traffic data; performing feature extraction based on the data source to obtain a first feature vector; inputting the first feature vector into the data analysis model to obtain a traffic type identification result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by parameter optimization based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor; the first feature vector and the traffic type identification result are input into a traffic anomaly detection model to obtain a feature anomaly rate; the traffic anomaly detection model is obtained by training based on a traffic type sample vector; anomaly identification is performed based on the feature anomaly rate to obtain an intelligent analysis data security identification result.
[0212] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0213] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the intelligent analysis data security identification method provided by the above-mentioned embodiments, the method including: obtaining a data source; the data source includes user information and user traffic data; performing feature extraction based on the data source to obtain a first feature vector; inputting the first feature vector into a data analysis model to obtain a traffic type identification result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by parameter optimization based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor; the first feature vector and the traffic type identification result are input into a traffic anomaly detection model to obtain a feature anomaly rate; the traffic anomaly detection model is obtained by training based on a traffic type sample vector; anomaly identification is performed based on the feature anomaly rate to obtain an intelligent analysis data security identification result.
[0214] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the intelligent analysis data security identification method provided by the above-mentioned embodiments, the method comprising: obtaining a data source; the data source comprises user information and user traffic data; performing feature extraction based on the data source to obtain a first feature vector; inputting the first feature vector into a data analysis model to obtain a traffic type identification result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by parameter optimization based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor; the first feature vector and the traffic type identification result are input into a traffic anomaly detection model to obtain a feature anomaly rate; the traffic anomaly detection model is obtained by training based on a traffic type sample vector; anomaly identification is performed based on the feature anomaly rate to obtain an intelligent analysis data security identification result.
[0215] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0216] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0217] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for intelligent analysis of data security identification, characterized in that: include: Get the data source; The data source includes user information and user traffic data; Perform feature extraction based on the data source to obtain a first feature vector; The first feature vector is input into a data analysis model to obtain a traffic type recognition result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by optimizing parameters based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor; Inputting the first feature vector and the traffic type identification result into a traffic anomaly detection model to obtain a feature anomaly rate; the traffic anomaly detection model is obtained by training based on the traffic type sample vector; Anomalies are identified based on the characteristic anomaly rate to obtain intelligent analysis data security identification results.
2. The intelligent analysis data security identification method according to claim 1 is characterized in that: The data analysis model is determined based on the following steps: Determine the sample feature vector; Determine the information entropy contribution rate of each feature in the sample feature vector; the information entropy contribution rate is used to reflect the importance of the feature to the prediction task; Based on the contribution rate of each information entropy, the Gaussian kernel function is weighted to obtain a weighted kernel function; Based on the linear combination of the weighted kernel function and the nonlinear kernel function, a combined kernel function is obtained; Determining initial kernel function parameters and initial weighting coefficients in the combined kernel function; the kernel function parameters are used to optimize the generalization ability of the support vector machine; The weighting coefficient is used to adjust the weights of the weighted kernel function and the nonlinear kernel function in the combined kernel function; Based on a genetic algorithm, the preset penalty factor, the initial kernel function parameters and the initial weighting coefficient are optimized to obtain a target penalty factor, a target kernel function parameter and a target weighting coefficient; Based on the target penalty factor, the target kernel function parameter and the target weighting coefficient, a support vector machine is trained to obtain a data analysis model.
3. The intelligent analysis data security identification method according to claim 2 is characterized in that: The method of performing parameter optimization on the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient based on the genetic algorithm to obtain the target penalty factor, the target kernel function parameter and the target weighting coefficient includes: Perform binary coding based on the preset penalty factor, the initial kernel function parameter and the initial weighting coefficient to obtain multiple first chromosome codes to be selected; Selecting a first preset number of first chromosome codes from all first chromosome codes to be selected; Perform crossover processing based on each first chromosome code to obtain a first preset number of first crossover codes; Performing mutation processing on each first cross code to obtain a first preset number of first variant codes; Update the first candidate chromosome code according to each first variation code and each remaining chromosome code; the remaining chromosome code refers to the remaining first candidate chromosome code among all the first candidate chromosome codes except the first chromosome code; Iteratively executing the step of selecting a first preset number of first chromosome codes from all first chromosome codes to be selected, until the number of iterations reaches a preset number or the updated first chromosome codes to be selected meet a preset rule, and obtaining an optimal solution for the chromosome code; Based on the chromosome encoding optimal solution, a target penalty factor, a target kernel function parameter and a target weighting coefficient are determined.
4. The intelligent analysis data security identification method according to claim 1 is characterized in that: The traffic anomaly detection model includes a traffic feature detection model, a character feature detection model and a time series statistical feature detection model; the traffic feature detection model is obtained by training based on a traffic feature sample vector; the character feature detection model is obtained by training based on a character feature sample vector; the time series statistical feature detection model is obtained by training based on a time series statistical feature sample vector; the feature anomaly rate includes a traffic feature anomaly rate, a character feature anomaly rate and a time series statistical feature anomaly rate.
5. The intelligent analysis data security identification method according to claim 4 is characterized in that: The step of determining the intelligent analysis data security identification result based on the feature abnormality rate includes: Determining a first preset weight coefficient, a second preset weight coefficient, and a third preset weight coefficient; Based on the first preset weight coefficient, weighted calculation is performed on the flow characteristic abnormality rate to obtain a flow characteristic weighted value; Based on the second preset weight coefficient, weighted calculation is performed on the character feature abnormality rate to obtain a character feature weighted value; Based on the third preset weight coefficient, weighted calculation is performed on the abnormal rate of the time series statistical feature to obtain a weighted value of the time series statistical feature; Calculate the mean of the traffic feature weighted value, the character feature weighted value and the time series statistical feature weighted value to obtain the feature anomaly average value; Anomalies are identified based on the characteristic anomaly average value to obtain intelligent analysis data security identification results.
6. The intelligent analysis data security identification method according to claim 5 is characterized in that: The abnormality identification is performed based on the feature abnormality average value to obtain the intelligent analysis data security identification result, including: If the average value of the characteristic anomaly is greater than the preset threshold, the intelligent analysis data security identification result is determined to be that there is a network anomaly; If the average value of the characteristic anomaly is less than or equal to the preset threshold, the intelligent analysis data security identification result is determined to be that the network is normal.
7. The intelligent analysis data security identification method according to any one of claims 1 to 6, characterized in that: The extracting features based on the data source to obtain a first feature vector includes: Performing field processing on the data source to obtain field data; Performing feature extraction on the field data to obtain a second feature vector; Based on a feature hash function, feature extraction is performed on the second feature vector to obtain a first feature vector; the feature hash function is used to map a high-dimensional feature vector to a low-dimensional feature vector.
8. An intelligent analysis data security identification device, characterized in that: include: An acquisition module, used to acquire a data source; the data source includes user information and user traffic data; A feature extraction module, used to extract features based on the data source to obtain a first feature vector; A traffic type identification module, used for inputting the first feature vector into a data analysis model to obtain a traffic type identification result; the data analysis model is obtained by training based on a target penalty factor, a target kernel function parameter and a target weighting coefficient; the target penalty factor, the target kernel function parameter and the target weighting coefficient are obtained by optimizing parameters based on a genetic algorithm combined with a sample feature vector, a Gaussian kernel function and a preset penalty factor; A traffic anomaly detection module, used for inputting the first feature vector and the traffic type identification result into a traffic anomaly detection model to obtain a feature anomaly rate; The safety identification module is used to identify anomalies based on the characteristic anomaly rate to obtain a safety identification result of the intelligent analysis data.
9. An electronic 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 intelligent analysis data security identification method as described in any one of claims 1 to 7 are implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the intelligent analysis data security identification method as described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Abnormal behavior evaluation method and system based on data driving
CN119442122A
Network security event detection method and system based on machine learning
CN119922020A
Network security incident detection method and system based on machine learning
CN119922020B
