Identification methods, devices, equipment and media for cybercrime
By processing outliers and quantifying characteristic variables of the network behavior sample set, a logistic regression model is constructed, which solves the problems of long identification time and low accuracy in the process of identifying illegal network products, and improves the accuracy and efficiency of identification.
Patent Information
- Application Number
- CN202210061738.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-01-19
AI Technical Summary
When existing technology identifies illegal network products, the recognition time is long and the accuracy is low, making it difficult to combat illegal network products in real time.
By obtaining the pre-built network behavior sample set for outlier processing, dividing the training set and the test set, extracting the characteristic variable data and quantifying it, using the decision tree optimal grouping and information value calculation method to build a logistic regression model to identify illegal users. .
It reduces the impact of abnormal data on the model, increases the stability and accuracy of the model, improves the prediction accuracy of illegal product identification, and solves the problems of long identification time and low accuracy.
Smart Images

Figure CN114398638B
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent decision-making technology, and in particular to a method, device, electronic device and computer-readable storage medium for identifying cybercrime. Background Art
[0002] While the Internet brings us various conveniences, it also brings with it some new threats and risks, such as cyber black industries. The cyber black industries refer to the use of the Internet as a medium and network technology as the main means to undermine the security of computer information systems and the management order of cyberspace.
[0003] At present, the industry's protection against online black industries is mainly based on the concentration of mobile phone numbers, IP, GPS, etc., combined with expert experience, and summarized into rules and strategies to identify and combat online black industries. However, as online black industries become more professional, cheating tools emerge in an endless stream, and anti-fraud becomes increasingly difficult, existing protection methods are time-consuming and less efficient, making it difficult to achieve real-time combat against online black industries. Therefore, there is an urgent need for a faster and more accurate intelligent detection method for online black industries. Summary of the invention
[0004] The present application provides a method, device and computer-readable storage medium for identifying network black industries, the main purpose of which is to solve the problems of long identification time and low accuracy in the process of identifying network black industries.
[0005] To achieve the above purpose, this application provides a method for identifying network black industries, including:
[0006] Acquire a pre-constructed network behavior sample set, and perform outlier processing on the network behavior sample set to obtain a valid sample set;
[0007] According to a preset sample division strategy, the valid sample set is divided into a training set and a test set;
[0008] Extracting characteristic variable data from the training set and the test set, and using the decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantizing the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set;
[0009] Acquiring the information value of the characteristic variable data, and selecting effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and selecting effective variables from the standard test set to obtain an effective test set;
[0010] According to the valid training set and the valid test set, training a pre-built black market user identification model;
[0011] Identify the input parameter type corresponding to the feature variable data in the valid training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
[0012] Optionally, performing outlier processing on the network behavior sample set to obtain a valid sample set includes:
[0013] Performing a deduplication operation on the network behavior sample set to obtain a deduplication sample set;
[0014] The missing values in the deduplicated sample set are queried, and the missing values are supplemented by using the knn regression method to obtain a valid sample set.
[0015] Optionally, obtaining the information value of the characteristic variable data includes:
[0016] Extracting characteristic variable data of one category from the valid sample set in sequence as the target characteristic variable;
[0017] Extracting each grouping data of the target characteristic variable, and performing evidence weight transformation on each grouping data to obtain the evidence weight value corresponding to each grouping data;
[0018] Calculating the amount of information corresponding to each group of data according to the evidence weight value corresponding to each group of data using an information value calculation method;
[0019] The information amounts corresponding to the various grouped data are summed to obtain the information value of the target feature variable.
[0020] Optionally, selecting effective variables from the standard training set according to preset variable selection conditions and the information value to obtain an effective training set includes:
[0021] According to the information value of the characteristic variable data, the characteristic variable data is sorted to obtain a characteristic variable list;
[0022] Extracting feature variables with preset values from the feature variable list to obtain a primary valid feature variable set;
[0023] Query the missing rate of feature variable data in the primary effective feature variable set;
[0024] According to the preset variable selection conditions, feature variables whose information value is greater than the preset effective threshold and whose missing rate is less than the preset warning threshold are extracted from the primary effective feature variable set to obtain an effective training set.
[0025] Optionally, the training of a pre-built black market user identification model according to the valid training set and the valid test set includes:
[0026] Obtain a pre-built black industry user identification model, and use the valid training set to assign model parameters to the black industry user identification model to obtain an updated black industry user identification model;
[0027] Using the updated black market user identification model to perform black market identification on the valid test set, and obtain a prediction result of the valid test set;
[0028] Compare the prediction results with the real labels pre-constructed in the valid test set to obtain the precision rate and KS value of the black market user identification model;
[0029] According to the preset model judgment standard, the precision rate and the KS value, judging whether the black market user identification model is qualified;
[0030] When the black market user identification model is unqualified, returning to the above step of assigning model parameters to the black market user identification model using the valid training set;
[0031] When the black market user identification model is qualified, it is determined that the training of the black market user identification model is completed.
[0032] Optionally, the identifying the input parameter type corresponding to the feature variable data in the valid training set includes:
[0033] Obtain a pre-built feature engineering variation list, query the initial parameter type corresponding to each feature variable in the valid training set, and obtain a parameter type set;
[0034] The parameter type set is deduplicated to obtain the input parameter type corresponding to each feature variable.
[0035] Optionally, obtaining user data of the target user regarding each input parameter type includes:
[0036] Using preset tracking points, obtain the request response data of the target user in the pre-built program interface;
[0037] Parsing the request response data to obtain the target user's operation behavior record in the program interface;
[0038] The operation behavior record is queried for the operation behavior of the input parameter type to obtain user data.
[0039] In order to solve the above problems, the present application also provides a device for identifying network black industries, the device comprising:
[0040] An outlier processing module is used to obtain a pre-built network behavior sample set and perform outlier processing on the network behavior sample set to obtain a valid sample set;
[0041] A data quantization module is used to divide the valid sample set into a training set and a test set according to a preset sample division strategy, and extract characteristic variable data in the training set and the test set, and use a decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantize the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set;
[0042] An effective sample acquisition module is used to obtain the information value of the characteristic variable data, and select effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and select effective variables from the standard test set to obtain an effective test set;
[0043] A model building module, used to train a pre-built black market user identification model based on the valid training set and the valid test set;
[0044] The black market user identification module is used to identify the input parameter type corresponding to the feature variable data in the effective training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
[0045] In order to solve the above problem, the present application further provides an electronic device, the electronic device comprising:
[0046] at least one processor; and,
[0047] a memory communicatively connected to the at least one processor; wherein,
[0048] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned method for identifying online black industries.
[0049] In order to solve the above problems, the present application also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned method for identifying online black industries.
[0050] The embodiment of the present application processes outliers on the network behavior sample set, which can reduce the impact of abnormal data on the model and increase the stability of the model. Before the modeling process, the continuous feature variable data is discretized through quantization operations, which can summarize and compress data parameters and increase the accuracy of model construction. In addition, the black industry user identification model constructed by the present application is a logistic regression model, which realizes the conversion of nonlinear problems into linear problems and increases the prediction accuracy of black industry identification. Therefore, the network black industry identification method, device, electronic device and computer-readable storage medium proposed in the present application can solve the problems of long identification time and low accuracy in the process of network black industry identification. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flowchart of a method for identifying network black industries provided in an embodiment of the present application;
[0052] Figure 2 A flowchart of a step in a method for identifying network black industries provided in an embodiment of the present application;
[0053] Figure 3 A flowchart of a step in a method for identifying network black industries provided in an embodiment of the present application;
[0054] Figure 4 A functional module diagram of a network black industry identification device provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the structure of an electronic device for implementing the method for identifying network black industries provided in one embodiment of the present application.
[0056] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0058] The embodiment of the present application provides a method for identifying a network black industry. The execution subject of the method for identifying a network black industry includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the method for identifying a network black industry can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.
[0059] Reference Figure 1 FIG. 1 is a flow chart of a method for identifying network black industries provided in an embodiment of the present application. In this embodiment, the method for identifying network black industries includes:
[0060] S1. Obtain a pre-constructed network behavior sample set, and perform outlier processing on the network behavior sample set to obtain a valid sample set.
[0061] As we all know, cybercriminals mainly use group control software, simulators, fake devices and other means to maliciously attack marketing activities in order to obtain activity prizes. For example, some software applications have launched activities such as inviting friends to like and participate in support, which are very easy to be attacked.
[0062] In the embodiment of the present application, the network behavior sample set includes the target user's operational behavior data in the pre-built activity interface, including the number of new users invited by the target user, the proportion of high-risk accounts, the proportion of invited whitelist accounts, the situation of the invited user's hit strategy, the time taken to complete the invitation, etc. However, it should be known that the various feature variables in the network behavior sample set cannot be directly obtained, but are obtained by feature engineering from the basic features such as the network environment, device parameters, and behavior data collected from the app. Among them, the feature engineering is the process of converting raw data into features that better express the essence of the problem.
[0063] Furthermore, the process of outlier processing refers to a method of performing relevant operations on the corresponding values of repeated, missing, and abnormal mutations in the feature variable sample set to make the overall data of the feature variable sample set more reasonable.
[0064] In detail, in the embodiment of the present application, the outlier processing of the network behavior sample set to obtain a valid sample set includes:
[0065] Performing a deduplication operation on the network behavior sample set to obtain a deduplication sample set;
[0066] The missing values in the deduplicated sample set are queried, and the missing values are supplemented by using the knn regression method to obtain a valid sample set.
[0067] The deduplication operation is to delete the repeated parts in the network behavior sample set due to user operations, data transmission, repeated grouping, etc. For example, if the target user repeatedly sends invitations to a target ID account, only the behavior data of one invitation operation is retained.
[0068] Furthermore, the missing value refers to the clustering, grouping, deletion or truncation of data in the network behavior sample set due to the lack of certain information. Among them, the failure of the data storage process, memory damage, mechanical failure resulting in the failure to collect data for a certain period of time will all cause data missing.
[0069] In an embodiment of the present application, a knn regression method is used to fill in each of the missing values, wherein the knn regression actually takes the values of the k points closest to the target missing value and takes the average to obtain the value of the missing value. The knn regression method is beneficial to increasing the rationality of the data in the feature variable sample and reducing mutation data.
[0070] The embodiment of the present application removes the outliers in the network behavior sample set through the above-mentioned outlier processing method to obtain a valid sample set.
[0071] S2. According to a preset sample division strategy, the valid sample set is divided into a training set and a test set.
[0072] In an embodiment of the present application, the sample partitioning strategy can be a partitioning strategy based on random seed sampling or enterprise processing experience to divide the valid sample set into a training set and a test set. Specifically, in an embodiment of the present application, the ratio of the number of samples in the training set to that in the test set is 4:1.
[0073] Each valid sample in the training set and the test set contains feature variable data and corresponding true values. The feature variable data refers to the historical behavior data of a user, and the true value refers to whether the user is a black market user.
[0074] S3. Extract the characteristic variable data in the training set and the test set, and use the decision tree optimal grouping method to quantize the characteristic variable data in the training set to obtain a standard training set, and quantize the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set.
[0075] As we all know, the values of the feature variable data in the training set are continuous, and the feature meanings that each variable can express are not strong, which is not conducive to model construction. For example, if the user registration and use time may be a continuous variable [23h, 567h, 1086h...], in order to increase the characteristic of each variable, it is necessary to summarize the user registration and use time [within one week, within two weeks, within one month...].
[0076] Specifically, the embodiment of the present application performs quantization operations on the feature variable data in the training set through a decision tree optimal grouping method, wherein the decision tree optimal grouping method refers to a method for selecting the optimal grouping based on the information gain ratio.
[0077] The larger the information gain ratio is, the better the characteristic variable is. R (D,A) is expressed as follows:
[0078]
[0079] In the formula, g(D,A) is the information gain, which indicates the degree to which the uncertainty of the judgment process of the category result D is reduced after the information of the feature type A is known. A (D) represents the feature entropy of the category result D.
[0080] Specifically, the embodiment of the present application takes the characteristic variable of the number of new users invited by the user as an example, assuming that the value range of the characteristic variable is [1,500]. The decision tree optimal grouping algorithm finds the optimal grouping point to be 20, 100, 320, and the groups are (-∞, 20], (20, 100], (100, 320], (320, +∞).
[0081] Furthermore, in order to ensure that the test set has a test effect and to ensure that the test set is similar to the training set, in an embodiment of the present application, the characteristic variable data in the test set is divided accordingly according to the discreteness of the characteristic variable data in the standard training set to obtain a standard test set.
[0082] The embodiment of the present application uses the decision tree optimal grouping method to more accurately quantify each feature variable in the training set and the test set, ensure that data discretization is more reasonable, and increase the training efficiency of the model.
[0083] Furthermore, since the grouping size of the standard test set is consistent with that of the standard training set, that is, the quantized feature variable data in the standard training set is the same as the quantized feature variable data in the standard test set, when the quantized feature variable data is used subsequently, the source of the feature variable data will no longer be repeated.
[0084] S4. Obtain the information value of the characteristic variable data, and select effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and select effective variables from the standard test set to obtain an effective test set.
[0085] The information value refers to the degree of influence of a certain type of feature variable on the prediction result. The embodiment of the present application selects the appropriate feature variable category as a parameter for subsequent calculation in the model according to the information value of the feature variable data, which can increase the feature value of the model input parameter and improve the model training efficiency.
[0086] For more details, please refer to Figure 2 As shown, in the embodiment of the present application, the information value of obtaining the characteristic variable data includes:
[0087] S401, extracting characteristic variable data of one category from the valid sample set in sequence as a target characteristic variable;
[0088] S402, extracting each grouping data of the target characteristic variable, and performing evidence weight transformation on each grouping data to obtain the evidence weight value corresponding to each grouping data;
[0089] S403, using an information value calculation method, calculating the amount of information corresponding to each group of data according to the evidence weight value corresponding to each group of data;
[0090] S404: Sum the information amounts corresponding to the respective grouped data to obtain the information value of the target characteristic variable.
[0091] For example, taking "a user sends a link to a customer, whether the customer clicks the link to respond" as an example, the evidence weight value represents the ratio of responded customers to non-responded customers in the current group, and the difference in the ratio of customers to non-responded customers in all samples. The larger the evidence weight value, the greater the possibility that the sample in the group will respond, and the smaller the evidence weight value, the smaller the possibility that the sample in the group will respond.
[0092] Among them, one embodiment of the present application can calculate the weight of evidence for each group of data by the following weight of evidence transformation formula:
[0093]
[0094] Taking a certain characteristic variable as an example, where woe i is the evidence weight value of the i-th group of the characteristic variable, py iis the proportion of the network black industry in the i-th group of a certain characteristic variable to all the network black industries in all samples, pn i is the proportion of non-network black industries in group i to all non-network black industries in the sample, y i is the number of users of cybercrime in group i, n i is the number of non-black industry users in group i, y t is the number of all online black market users in the sample, n t It is the number of all non-online black industry users in the sample.
[0095] Thus, the embodiment of the present application obtains the woe corresponding to each group in the certain characteristic variable i , according to the information value and the woe i The calculation relationship is used to obtain the information value IV of the target feature variable:
[0096] VI i =(py i -pn i )*woe i
[0097]
[0098] Among them, the VI i is the information value of the i-th group, and the information value IV of the characteristic variable is the information value of each group in the characteristic variable, and m is the total number of groups in the characteristic variable.
[0099] Further, refer to Figure 3 As shown, in the embodiment of the present application, the effective variables are selected from the standard training set according to the preset variable selection conditions and the information value to obtain the effective training set, including:
[0100] S411, sorting the characteristic variable data according to the information value of the characteristic variable data to obtain a characteristic variable list;
[0101] S412, extracting feature variables with preset values from the feature variable list to obtain a primary valid feature variable set;
[0102] S413, querying the missing rate of feature variable data in the primary effective feature variable set;
[0103] S414. According to preset variable selection conditions, extract feature variables whose information value is greater than a preset effective threshold and whose missing rate is less than a preset warning threshold from the primary effective feature variable set to obtain a valid training set.
[0104] The embodiment of the present application sorts the feature variables according to their information value, retains the first N feature variables, where N can be 10, and then compares the information value of the first N feature variables with a preset effective threshold, such as 0.02, and retains the feature variables with information value greater than 0.02. In addition, if a certain type of feature variable in the primary effective feature variable set has a large missing rate, it indicates that most of the data is supplemented later and is not suitable as an input parameter of the model. Therefore, it is necessary to use a preset warning threshold, such as 0.75, to judge the reliability of the data and obtain the final effective training set.
[0105] Similarly, effective variables can be selected from the standard test set based on the variable selection conditions and the information value to obtain a valid test set.
[0106] S5. Train a pre-built black market user identification model based on the valid training set and the valid test set.
[0107] In the embodiment of the present application, the black market user identification model is a logistic regression model.
[0108] In detail, in the embodiment of the present application, the training of the pre-built black market user identification model according to the valid training set and the valid test set includes:
[0109] Obtain a pre-built black industry user identification model, and use the valid training set to assign model parameters to the black industry user identification model to obtain an updated black industry user identification model;
[0110] Using the updated black market user identification model to perform black market identification on the valid test set, and obtain a prediction result of the valid test set;
[0111] Compare the prediction results with the real labels pre-constructed in the valid test set to obtain the precision rate and KS value of the black market user identification model;
[0112] According to the preset model judgment standard, the precision rate and the KS value, judging whether the black market user identification model is qualified;
[0113] When the black market user identification model is unqualified, returning to the above step of assigning model parameters to the black market user identification model using the valid training set;
[0114] When the black market user identification model is qualified, it is determined that the training of the black market user identification model is completed.
[0115] In one embodiment of the present invention, the following black market user identification model can be constructed according to the logistic regression formula:
[0116] Logit(X)=β0+β1X1+β2X2+β3X3+β4X4……
[0117] Wherein, Logit(X) is the model function of the black market user identification model, and the parameters β, X n are model parameters, where β is a regression parameter that can be calculated by the maximal natural method, and X n is the characteristic variable data, and each characteristic variable data is selected in the above S4 process. n Within the possible range of values, select the value that maximizes Logit(X) as parameter X n The method of estimating the value of .
[0118] Furthermore, the embodiment of the present application tests the black industry user identification model through the valid test set to obtain the prediction value corresponding to each valid sample in the valid test set, and judges whether the black industry user identification model is qualified according to the preset model judgment standard, the precision rate and the KS value.
[0119] Among them, by comparing the real labels pre-constructed in the effective test set with the prediction results, the embodiment of the present application can obtain:
[0120] [True positive example TP: the valid test sample itself is a normal user, the prediction result is a normal user, and the prediction is correct; false positive example FP: the valid test sample itself is a black market user, the prediction result is a normal user, and the prediction is wrong; true negative example TN: the valid test sample itself is a black market user, the prediction result is also a black market user, and the prediction is correct; false negative example FN: the valid test sample itself is a normal user, but the prediction result is a black market user, and the prediction is wrong]. Among them, the FP predicts the black market user as a normal user, while the FN predicts the normal user as a black market user.
[0121] In the embodiment of the present application, the precision rate P indicates how many positive examples in the prediction results are predicted correctly, which can be expressed as:
[0122]
[0123] In addition, the KS value is an evaluation index used in the model to distinguish the degree of separation of predicted positive and negative samples. In the embodiment of the present application, the black market users are taken as positive examples and the non-black market users are taken as negative examples, and the KS value is calculated by the following formula:
[0124] KS=max{TPR-FPR}
[0125] The TPR is the probability of successfully identifying a positive example among all positive examples, and the FPR is the probability of misidentifying a negative example as a positive example.
[0126] Furthermore, in an embodiment of the present application, according to a preset model judgment standard, it can be determined whether the precision rate is greater than a preset first threshold, and whether the KS value is greater than a preset second threshold. When the precision rate is not greater than the preset first threshold or the KS value is not greater than the preset second threshold, the updated black industry user identification model is determined to be unqualified, and the step of assigning model parameters to the black industry user identification model using the valid sample set is returned to retrain; when the precision rate is greater than the preset first threshold and the KS value is greater than the preset second threshold, the black industry user identification model is determined to be qualified.
[0127] S6. Identify the input parameter type corresponding to the feature variable data in the valid training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
[0128] In detail, in the embodiment of the present application, the input parameter type corresponding to the feature variable data in the valid training set is identified, including:
[0129] Obtain a pre-built feature engineering variation list, query the initial parameter type corresponding to each feature variable in the valid training set, and obtain a parameter type set;
[0130] The parameter type set is deduplicated to obtain the input parameter type corresponding to each feature variable.
[0131] Specifically, the feature engineering change list can be obtained from the feature engineering. The embodiment of the present application uses the pre-constructed feature engineering change list to check how each feature variable is obtained, thereby determining what type of data needs to be received. In order to avoid repeated data reception, the present application retains the only parameter type that needs to be received through a deduplication operation to obtain a parameter type set.
[0132] In detail, in the embodiment of the present application, obtaining the user data of the target user regarding each of the input parameter types includes:
[0133] Using preset tracking points, obtain the request response data of the target user in the pre-built program interface;
[0134] Parsing the request response data to obtain the target user's operation behavior record in the program interface;
[0135] The operation behavior record is queried for the operation behavior of the input parameter type to obtain user data.
[0136] The embodiment of the present application can obtain the uniform resource location (URL) of the user's access program interface according to the preset embedding point. The URL is sent by the user's client and can obtain the request link for the product interface to retrieve the data content of the background. The URL includes the protocol mode, request address, parameter value, label, etc. By parsing the URL, the user's click content can be obtained, thereby obtaining the user's operation behavior. After the user data is obtained, the user data is imported into the black industry user identification model to obtain the identification result of whether the user is a network black industry.
[0137] The embodiment of the present application processes outliers on the network behavior sample set, which can reduce the impact of abnormal data on the model and increase the stability of the model. In addition, the continuous feature variable data is discretized through quantization operations before the modeling process, which can summarize and compress data parameters and increase the accuracy of model construction. In addition, the black industry user identification model constructed by the present application is a logistic regression model, which realizes the conversion of nonlinear problems into linear problems and increases the prediction accuracy of black industry identification. Therefore, the network black industry identification method proposed in the present application can solve the problems of long identification time and low accuracy in the process of network black industry identification.
[0138] like Figure 4 The figure shows a functional module diagram of a network black industry identification device provided in one embodiment of the present application.
[0139] The network black industry identification device 100 described in this application can be installed in an electronic device. According to the functions implemented, the network black industry identification device 100 may include an outlier processing module 101, a data quantization module 102, a valid sample acquisition module 103, a model building module 104, and a black industry user identification module 105. The module described in this application can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0140] In this embodiment, the functions of each module / unit are as follows:
[0141] The outlier processing module 101 is used to obtain a pre-constructed network behavior sample set, and perform outlier processing on the network behavior sample set to obtain a valid sample set;
[0142] The data quantization module 102 is used to divide the effective sample set into a training set and a test set according to a preset sample division strategy, and extract the characteristic variable data in the training set and the test set, and use the decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantize the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set;
[0143] The effective sample acquisition module 103 is used to obtain the information value of the characteristic variable data, and select effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and select effective variables from the standard test set to obtain an effective test set;
[0144] The model building module 104 is used to train a pre-built black market user identification model based on the valid training set and the valid test set;
[0145] The black market user identification module 105 is used to identify the input parameter type corresponding to the feature variable data in the effective training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
[0146] In detail, each module described in the network black industry identification device 100 described in the embodiment of the present application is used in the same manner as described above. Figures 1 to 3 The same technical means are used as the identification method of the online black industry described in, and can produce the same technical effects, so I will not go into details here.
[0147] like Figure 5 The figure is a schematic diagram of the structure of an electronic device for implementing a method for identifying network black industries provided in one embodiment of the present application.
[0148] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a program for identifying cybercrime.
[0149] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes the programs or modules stored in the memory 11 (for example, executing the identification program of the network black industry, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.
[0150] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of the identification program of the network black industry, but also can be used to temporarily store data that has been output or is to be output.
[0151] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0152] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0153] Figure 5 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0154] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0155] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0156] The network black industry identification program stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0157] Acquire a pre-constructed network behavior sample set, and perform outlier processing on the network behavior sample set to obtain a valid sample set;
[0158] According to a preset sample division strategy, the valid sample set is divided into a training set and a test set;
[0159] Extracting characteristic variable data from the training set and the test set, and using the decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantizing the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set;
[0160] Acquiring the information value of the characteristic variable data, and selecting effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and selecting effective variables from the standard test set to obtain an effective test set;
[0161] According to the valid training set and the valid test set, training a pre-built black market user identification model;
[0162] Identify the input parameter type corresponding to the feature variable data in the valid training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
[0163] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0164] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0165] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0166] Acquire a pre-constructed network behavior sample set, and perform outlier processing on the network behavior sample set to obtain a valid sample set;
[0167] According to a preset sample division strategy, the valid sample set is divided into a training set and a test set;
[0168] Extracting characteristic variable data from the training set and the test set, and using the decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantizing the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set;
[0169] Acquiring the information value of the characteristic variable data, and selecting effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and selecting effective variables from the standard test set to obtain an effective test set;
[0170] According to the valid training set and the valid test set, training a pre-built black market user identification model;
[0171] Identify the input parameter type corresponding to the feature variable data in the valid training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
[0172] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0173] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0174] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0175] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application.
[0176] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present application is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present application. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0177] The blockchain referred to in this application is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0178] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0179] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0180] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A method for identifying network black industries, characterized in that: The method comprises: Obtain a pre-constructed network behavior sample set, and perform outlier processing on the network behavior sample set to obtain a valid sample set, wherein the network behavior sample set includes the number of new users invited by the target user, the proportion of high-risk accounts, the proportion of invited whitelist accounts, the hit strategy of the invited users, and the time taken to complete the invitation, and the target user's operation behavior data in the pre-constructed activity interface; According to a preset sample division strategy, the valid sample set is divided into a training set and a test set; Extracting characteristic variable data from the training set and the test set, and using the decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantizing the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set; Acquiring the information value of the characteristic variable data, and selecting effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and selecting effective variables from the standard test set to obtain an effective test set; According to the valid training set and the valid test set, training a pre-built black market user identification model; Identify the input parameter type corresponding to the feature variable data in the valid training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user; Wherein, the obtaining of the information value of the characteristic variable data comprises: extracting characteristic variable data of a category from the effective sample set in turn as the target characteristic variable; extracting each grouping data of the target characteristic variable, and performing evidence weight transformation on each grouping data to obtain the evidence weight value corresponding to each grouping data; using the information value calculation method, according to the evidence weight value corresponding to each grouping data, calculating the information amount corresponding to each grouping data; summing the information amount corresponding to each grouping data to obtain the information value of the target characteristic variable; The method of selecting effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set includes: sorting the characteristic variable data according to the information value of the characteristic variable data to obtain a characteristic variable list; extracting characteristic variables with preset values from the characteristic variable list to obtain a primary effective characteristic variable set; querying the missing rate of characteristic variable data in the primary effective characteristic variable set; and extracting characteristic variables with information values greater than a preset effective threshold and missing rates less than a preset warning threshold from the primary effective characteristic variable set according to the preset variable selection conditions to obtain an effective training set.
2. The method for identifying network black production according to claim 1, characterized in that: The performing outlier processing on the network behavior sample set to obtain a valid sample set includes: Performing a deduplication operation on the network behavior sample set to obtain a deduplication sample set; The missing values in the deduplicated sample set are queried, and the missing values are supplemented by using the knn regression method to obtain a valid sample set.
3. The method for identifying network black production according to claim 1, characterized in that: The step of training a pre-built black market user identification model according to the valid training set and the valid test set includes: Obtain a pre-built black industry user identification model, and use the valid training set to assign model parameters to the black industry user identification model to obtain an updated black industry user identification model; Using the updated black market user identification model to perform black market identification on the valid test set, and obtain a prediction result of the valid test set; Compare the prediction results with the real labels pre-constructed in the valid test set to obtain the precision rate and KS value of the black market user identification model; According to the preset model judgment standard, the precision rate and the KS value, judging whether the black market user identification model is qualified; When the black market user identification model is unqualified, returning to the above step of assigning model parameters to the black market user identification model using the valid training set; When the black market user identification model is qualified, it is determined that the training of the black market user identification model is completed.
4. The method for identifying network black production according to any one of claims 1 to 3, characterized in that: The identifying the input parameter type corresponding to the feature variable data in the valid training set includes: Obtain a pre-built feature engineering variation list, query the initial parameter type corresponding to each feature variable in the valid training set, and obtain a parameter type set; The parameter type set is deduplicated to obtain the input parameter type corresponding to each feature variable.
5. The method for identifying network black production according to claim 1, characterized in that: The obtaining of user data of the target user regarding each of the input parameter types includes: Using preset tracking points, obtain the request response data of the target user in the pre-built program interface; Parsing the request response data to obtain the target user's operation behavior record in the program interface; The operation behavior record is queried for the operation behavior of the input parameter type to obtain user data.
6. A network black industry identification device, used to implement the network black industry identification method according to any one of claims 1 to 5, characterized in that: The device comprises: An outlier processing module is used to obtain a pre-constructed network behavior sample set and perform outlier processing on the network behavior sample set to obtain a valid sample set, wherein the network behavior sample set includes the number of new users invited by the target user, the proportion of high-risk accounts, the proportion of invited whitelist accounts, the hit strategy of the invited users, and the time taken to complete the invitation, and the target user's operation behavior data in the pre-constructed activity interface; A data quantization module is used to divide the valid sample set into a training set and a test set according to a preset sample division strategy, and extract characteristic variable data in the training set and the test set, and use a decision tree optimal grouping method to perform a quantization operation on the characteristic variable data in the training set to obtain a standard training set, and quantize the characteristic variable data in the test set according to the discreteness corresponding to the characteristic variable data in the standard training set to obtain a standard test set; An effective sample acquisition module is used to obtain the information value of the characteristic variable data, and select effective variables from the standard training set according to the preset variable selection conditions and the information value to obtain an effective training set, and select effective variables from the standard test set to obtain an effective test set; A model building module, used to train a pre-built black market user identification model based on the valid training set and the valid test set; The black market user identification module is used to identify the input parameter type corresponding to the feature variable data in the effective training set, obtain the user data of the target user for each of the input parameter types, and import the user data into the trained black market user identification model to obtain the violation identification result of the target user.
7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for identifying online black industries as described in any one of claims 1 to 5.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for identifying online black industries as described in any one of claims 1 to 5 is implemented.
