User risk classification method, device, medium and equipment based on machine learning

By combining random forest and logistic regression models and using users' static and dynamic feature data for risk assessment, the problem of inaccurate user risk assessment in the existing technology is solved, and more efficient and accurate risk classification is achieved.

CN109344906BInactive Publication Date: 2024-08-27CHINA PING AN LIFE INSURANCE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN201811244552.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-10-24
Publication Date
2024-08-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing user risk assessment methods are based on a single machine learning model, resulting in inaccurate classification results, and fail to make full use of users' static and dynamic feature data, resulting in one-sided and inaccurate assessments.

Method used

Using a combination of random forest model and logistic regression model, by obtaining the user's static and dynamic feature data, eliminating feature data with low contribution, inputting the pre-trained model to output the user risk level and score, and conducting comprehensive classification based on the results of the two .

Benefits of technology

It improves the accuracy and efficiency of user risk assessment, reduces input data processing costs, avoids the limitations of a single model, and provides more comprehensive risk assessment and classification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109344906B
    Figure CN109344906B
Patent Text Reader

Abstract

The present disclosure is about a user risk classification method, device and equipment based on machine learning, belonging to the field of artificial intelligence technology, the method includes: firstly obtaining static feature data of users not combined with network behavior and dynamic feature data combined with network behavior; then, removing target-removed feature data from the above two feature data and inputting them into a pre-trained random forest model to output the user risk level; secondly, inputting the feature data after removing target-removed feature data from the above two feature data and the user risk level output by the random forest model into a pre-trained logistic regression model to output the user risk score; finally, according to the user risk level output by the random forest model and the user risk score output by the logistic regression model, the user is classified in terms of risk. The present disclosure classifies user risks by using user static features and dynamic feature data through a machine learning model, which effectively improves the accuracy of risk classification.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] User risk refers to the possibility that users may suffer losses due to external factors or internal factors caused by their own behavior under certain circumstances and at certain times; the classification of user risk is to evaluate user risk according to the possibility of risk generation based on external and internal factors in the user's operating environment.

[0003] The existing user scoring system is basically a scoring card model based on user attributes or based on blacklist and whitelist classification. Such an evaluation method based on static attribute information that is not combined with user network behavior is not conducive to evaluating the risk of users on a platform with a large number of users, and will cause one-sidedness and inaccuracy in the evaluation. Therefore, it is necessary to supplement it based on user behavior data, and evaluate the user's risk level based on static feature data that is not combined with user network behavior and dynamic feature data that is combined with user network behavior. More importantly, in the existing methods, when using machine learning models to classify user risks, a single machine learning model is generally used. The evaluation results have limitations and the classification results are not accurate enough. Therefore, it is necessary to consider the combined evaluation method of multiple machine learning models, combining the advantages of multiple machine learning models to complement each other, so as to obtain more accurate analysis results and avoid the problem of accidental injury during user risk assessment. The use of random forest model combined with logistic regression model to evaluate user risk can not only ensure high computing efficiency, high model result accuracy, and low input data processing cost, but also can process user risk features into risk scores at low cost and high efficiency. The results of the comprehensive random forest model and logistic regression model can more accurately classify user risks.

[0004] Therefore, a system that classifies user risks based on user static feature data and dynamic feature data through a random forest model combined with a logistic regression model is of great significance.

[0005] Therefore, it is necessary to provide a new user risk classification method and device based on machine learning.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] The purpose of the present disclosure is to provide a user risk classification method, device, medium and equipment based on machine learning, thereby overcoming at least to a certain extent the problem of inaccurate classification results caused by insufficient user feature data and a single classification model due to the limitations and defects of related technologies.

[0008] According to one aspect of the present disclosure, a user risk classification method is provided, comprising:

[0009] Acquire user static feature data, where the user static feature data represents features that are displayed without combining with user network behavior;

[0010] Acquire user dynamic feature data, wherein the user dynamic feature data represents features exhibited by the user's network behavior;

[0011] Eliminate target feature data from user static feature data and user dynamic feature data;

[0012] Inputting the feature data of the user's static feature data and the user's dynamic feature data after removing the target feature data into a pre-trained random forest model, the random forest model outputting the user's risk level;

[0013] Input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model, into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score;

[0014] Users are classified based on their risk levels output by the random forest model and their risk scores output by the logistic regression model.

[0015] In an exemplary embodiment of the present disclosure, the user is classified based on the risk level of the user output by the random forest model and the risk score of the user output by the logistic regression model, specifically including:

[0016] If the user risk level output by the random forest model meets the first predetermined user risk level condition, and the user risk score output by the logistic regression model is greater than the first predetermined user risk score threshold, the user is classified as an abnormal network behavior user;

[0017] If the user risk level output by the random forest model meets the second predetermined user risk level condition, and the user risk score output by the logistic regression model is less than the second predetermined user risk score threshold, the user is classified as a normal network behavior user;

[0018] Otherwise, the user is classified as a user with pending network behavior.

[0019] In an exemplary embodiment of the present disclosure, the user is classified based on the risk level of the user output by the random forest model and the risk score of the user output by the logistic regression model, specifically including:

[0020] Convert the user risk level output by the random forest model into a level score;

[0021] Determining a weighted sum of the grade score and the user risk score as a total risk score;

[0022] Based on the total risk score, the user is classified according to risk.

[0023] In an exemplary embodiment of the present disclosure, the user static feature data includes at least one of the following:

[0024] Whether the user is a user in the blacklist;

[0025] The user's registration information characteristics;

[0026] The user's online consumption characteristics.

[0027] In an exemplary embodiment of the present disclosure, the user dynamic feature data includes at least one of the following:

[0028] The number of times the user changes the network address per unit time;

[0029] The number of times the user changes the Internet access device per unit time;

[0030] The number of times the user generates the same operation path per unit time.

[0031] In an exemplary embodiment of the present disclosure, the number of times the user changes the network address per unit time is determined by:

[0032] Based on the mobile phone number or ID number of the user when registering, determine the number of Internet access times per unit time of the user corresponding to the mobile phone number or ID number when registering, wherein the time from the user logging in to the Internet to the user logging out of the Internet is called one Internet access;

[0033] Determine the network address used by the user to access the Internet each time within a unit time;

[0034] Based on the consistency of the network addresses used by the user for two consecutive Internet accesses within a unit time, the number of times the user changes the network address within a unit time is determined, wherein if the network address used by the user for one Internet access is inconsistent with the previous one, the network address is changed once.

[0035] In an exemplary embodiment of the present disclosure, the number of times the user changes the Internet access device per unit time is determined by:

[0036] Based on the mobile phone number or ID number of the user when registering, determine the number of Internet access times per unit time of the user corresponding to the mobile phone number or ID number when registering, wherein the time from the user logging in to the Internet to the user logging out of the Internet is called one Internet access;

[0037] Determine the Internet access device used by the user for each Internet access within a unit time;

[0038] The number of times the user changes the Internet device per unit time is determined based on the consistency of the Internet access devices used for two consecutive Internet accesses within a unit time, wherein if the Internet access device used by the user for one Internet access is inconsistent with that used for the previous Internet access, the Internet access device is changed once.

[0039] According to one aspect of the present disclosure, a user risk classification device is provided, comprising:

[0040] A first acquisition module is used to acquire user static feature data, where the user static feature data represents features that are displayed without combining with user network behavior;

[0041] A second acquisition module is used to acquire user dynamic feature data, wherein the user dynamic feature data represents the features of the user's network behavior;

[0042] A rejection module, used to reject target rejection feature data in user static feature data and user dynamic feature data;

[0043] A first evaluation module is used to input feature data of user static feature data and user dynamic feature data after removing target feature data into a pre-trained random forest model, and the random forest model outputs a user risk level;

[0044] The second evaluation module is used to input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model, into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score;

[0045] The comprehensive assessment module is used to classify users based on their risk levels output by the random forest model and their risk scores output by the logistic regression model.

[0046] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above methods is implemented.

[0047] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0048] Processor; and

[0049] A memory, configured to store executable instructions of the processor;

[0050] The processor is configured to perform any of the above methods by executing the executable instructions.

[0051] The present invention discloses a user risk classification method, device, computer-readable storage medium and electronic device. First, obtain user static feature data and user dynamic feature data, wherein the user static feature data represents the features exhibited without combining the user's network behavior, and the user dynamic feature data represents the features exhibited by the user's network behavior; in this way, all user feature data that may cause the possibility of user risk can be obtained, so that a comprehensive assessment can be performed, making the risk assessment more accurate and reliable. Then, the feature data of the user static feature data and the user dynamic feature data except the target exclusion feature data are input into a pre-trained random forest model, and the random forest model outputs the user risk level; in this way, the assessed risk level can be obtained with high computational efficiency, high model result accuracy and low input data processing cost, while avoiding the model calculation load caused by the exclusion features with low contribution. Then, the feature data of the user static feature data and the user dynamic feature data except the target elimination feature data, and the user risk level output by the random forest model are input into the pre-trained logistic regression model, and the logistic regression model outputs the user risk score; in this way, further considering the random forest evaluation results, a secondary risk evaluation is performed again based on the user static feature data and the user dynamic feature data except the target elimination feature data, which can efficiently obtain a more effective and accurate analysis result score, and the result is clearly expressed by the score. Finally, according to the user risk level output by the random forest model and the user risk score output by the logistic regression model, the user is classified in terms of risk; in this way, the analysis results of the random forest model and the analysis results of the logistic regression model can be combined to effectively improve the accuracy of the analysis results relative to the single classification model.

[0052] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0054] Figure 1 A flowchart of a user risk classification method based on machine learning is schematically shown.

[0055] Figure 2 A diagram schematically illustrates an example application scenario of a user risk classification method based on machine learning.

[0056] Figure 3 The flowchart schematically shows a method for classifying users based on risk according to the user risk level output by the random forest model and the user risk score output by the logistic regression model.

[0057] Figure 4 A block diagram of a user risk classification device based on machine learning is schematically shown.

[0058] Figure 5 An example block diagram of an electronic device for implementing the above-mentioned method for user risk classification based on machine learning is schematically shown.

[0059] Figure 6 A computer-readable storage medium for implementing the above-mentioned method of user risk classification based on machine learning is schematically shown. DETAILED DESCRIPTION

[0060] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0061] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0062] In this exemplary embodiment, a user risk classification method is first provided, which can be run on a server, a server cluster, a cloud server, etc. Of course, those skilled in the art can also run the method of the present invention on other platforms as required, and this exemplary embodiment does not specifically limit this. Figure 1As shown, the user risk classification method based on machine learning may include the following steps:

[0063] Step S110: Obtain user static feature data, where the user static feature data represents features that are displayed without combining with user network behavior.

[0064] Step S120: Acquire user dynamic feature data, where the user dynamic feature data represents features exhibited by the user's network behavior.

[0065] Step S130: Eliminate target feature data from the user static feature data and the user dynamic feature data.

[0066] Step S140: Input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed into a pre-trained random forest model, and the random forest model outputs the user's risk level.

[0067] Step S150. Input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model, into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score.

[0068] Step S160: Classify the user based on risk according to the user risk level output by the random forest model and the user risk score output by the logistic regression model.

[0069] The random forest model is trained in the following manner: for each user sample in a set of user samples pre-marked as various user risk levels, user static feature data and dynamic feature data are obtained, and the user static feature data and the user dynamic feature data are input into the random forest model, the random forest model includes multiple trees, and a predetermined plurality of features in the user static feature data and the user dynamic features are input into each tree, and the combination of the number of trees in the random forest model and the number of features input into each tree is traversed, and the number of user samples whose user risk level judged by the random forest model output under each combination is consistent with the pre-marked user risk level is determined, and the number of trees corresponding to the highest number of user samples and the number of features input into each tree are determined. Inputting a target number of trees and a target number of features for each tree, removing each feature data in the user static feature data and the user dynamic feature data from the set of the user static feature data and the user dynamic feature data, respectively, inputting the random forest model with the target number of trees and the target number of features for each tree, determining the number of user samples whose judged user risk level output by the random forest model is consistent with the pre-marked user risk level as the first sample number, and the number of user samples whose judged user risk level output by the random forest model is consistent with the pre-marked user risk level before the feature data is removed as the second sample number, if the absolute value of the difference between the first sample number and the second sample number is less than a predetermined absolute value threshold, then the removed feature data is considered to be the target removal feature data;

[0070] The logistic regression model is trained in the following manner: each user sample in the above-mentioned set of user samples has a pre-printed user risk score, and for each user sample, feature data other than target exclusion feature data in user static feature data and user dynamic feature data is obtained, and feature data other than target exclusion feature data in user static feature data and user dynamic feature data and the user risk level of the user are output to the logistic regression model, and the logistic regression model outputs the user risk score, and if the output user risk score is inconsistent with the pre-printed user risk score, the logistic regression model is adjusted so that the user risk score it outputs is consistent with the pre-printed user risk score.

[0071] In the above user risk classification method, first, the user static feature data and the user dynamic feature data are obtained, wherein the user static feature data represents the features exhibited without combining the user's network behavior, and the user dynamic feature data represents the features exhibited by the user's network behavior; in this way, all user feature data that may cause the possibility of user risk can be obtained, so that a comprehensive assessment can be performed, making the risk assessment more accurate and reliable. Then, the feature data of the user static feature data and the user dynamic feature data except the target exclusion feature data are input into the pre-trained random forest model, and the random forest model outputs the user risk level; in this way, the risk level of the assessment can be obtained with high computational efficiency, high model result accuracy, and low input data processing cost, while avoiding the model calculation load caused by the exclusion features with low contribution; wherein, the exclusion features are determined by the random forest model by verifying that the contribution of each feature is lower than a certain threshold. Then, the feature data of the user static feature data and the user dynamic feature data except the target elimination feature data, and the user risk level output by the random forest model are input into the pre-trained logistic regression model, and the logistic regression model outputs the user risk score; in this way, further considering the random forest evaluation results, a secondary risk evaluation is performed again based on the user static feature data and the user dynamic feature data except the target elimination feature data, which can efficiently obtain a more effective and accurate analysis result score, and the result is clearly expressed by the score. Finally, according to the user risk level output by the random forest model and the user risk score output by the logistic regression model, the user is classified in terms of risk; in this way, the analysis results of the random forest model and the analysis results of the logistic regression model can be combined to effectively improve the accuracy of the analysis results relative to the single classification model.

[0072] Below, each step in the above-mentioned user risk classification method in this example implementation will be explained and illustrated in detail with reference to the accompanying drawings.

[0073] In step S110, user static feature data is obtained, where the user static feature data represents features that are displayed without combining with the user's network behavior.

[0074] In this example implementation, reference Figure 1As shown, first, the server 201 obtains the user characteristic data of the user terminal 202; wherein, the acquisition method can be through big data crawling, or other commonly used legal means, and this example does not impose special restrictions on this; the user terminal can be a mobile terminal device (for example, it can be a mobile phone), or it can be other terminal devices manufactured with risky user characteristics (for example, it can be a watch, etc.), and this example does not impose special restrictions on this; further, the user terminal can include one or more, and this example does not impose special restrictions on this. Then, the server 201 determines the static characteristics of the user based on the characteristics displayed without combining the user's network behavior; wherein not combining network behavior means that the user does not need to connect to the Internet for operation, and the static characteristics of the user determined by the characteristics displayed without combining the user's network behavior are the characteristics displayed by the user's most basic, most representative, and inherent attributes; the acquisition of static characteristics can ensure the accuracy of the user risk assessment.

[0075] In one implementation of this example, the user static feature data includes at least one of the following: whether the user is a user in the blacklist; the user's registration information features; the user's network consumption features.

[0076] Whether a user is on the blacklist is determined by the inherent attributes of the user, such as the user's account and device, and whether the user has a blacklist history; for example, the account and device involved in reported card and number theft cases, abnormal account and device information identified by a verified risk control model, and the account and device that hits the blacklist database provided by a third party.

[0077] The user's registration information characteristics refer to the user characteristics derived from the registration information filled in by the user when registering, such as name, age, mobile phone number, ID number, and bank card number.

[0078] A user's online consumption characteristics refer to the user characteristics derived when the user engages in consumption behavior, such as the purchase and browsing records generated when the user purchases and browses products.

[0079] A user's blacklist history, registration information characteristics, and consumption characteristics are directly related to the possibility of user risk, and will directly reflect the size of the user's risk potential. Assessments in these aspects can effectively ensure the accuracy of the assessment.

[0080] Furthermore, the user's static characteristic data may also be characteristic data that directly reflects the risk potential of the user and is not combined with the user's network behavior.

[0081] In step S120, user dynamic feature data is obtained, where the user dynamic feature data represents features exhibited by the user's network behavior.

[0082] In this example implementation, reference Figure 1 As shown, first, the server 201 obtains the user characteristic data of the user terminal 202; wherein, the acquisition method can be through big data crawling, or other commonly used legal means, and this example does not impose special restrictions on this; the user terminal can be a mobile terminal device (for example, it can be a mobile phone), or it can be other terminal devices manufactured with risky user characteristics (for example, it can be a watch, etc.), and this example does not impose special restrictions on this; further, the user terminal can include one or more, and this example does not impose special restrictions on this. Then, the server 201 determines the dynamic characteristics of the user based on the characteristics shown in the case of combining the user's network behavior; wherein combining network behavior means that the user needs to connect to the Internet to operate, and the dynamic characteristics of the user determined by the characteristics shown in the case of combining the user's network behavior can reflect the possibility of risks when the user behaves on the Internet. Through the acquisition of dynamic characteristics, the risk assessment of the user can be more comprehensive, and the accuracy of the user risk assessment can be further improved.

[0083] In one implementation of this example, the user dynamic feature data includes at least one of the following: the number of times the user changes the network address per unit time; the number of times the user changes the Internet access device per unit time; the number of times the user generates the same operation path per unit time.

[0084] The number of times a user changes his network address per unit time refers to the number of times the network environment logged in by the user's device, account, etc. is changed per unit time. The unit time can be a time less than a predetermined time threshold. For example, if the predetermined time threshold is less than 1 day, the unit time can be 1 day, 1 hour or 1 minute. There is no special limitation here. It can be determined by, for example, the change of the network IP address or the change of the MAC. Frequent changes in the network environment will result in a higher risk score.

[0085] The number of times a user changes his / her Internet access device per unit time refers to the number of times the user's APP account or other logged-in device is changed per unit time. The unit time may be a time less than a predetermined time threshold. For example, if the predetermined time threshold is less than 1 day, the unit time may be 1 day, 1 hour or 1 minute. There is no special limitation here. It can be determined by changing the IP address of the logged-in device. Frequent changes in the network environment are more risky.

[0086] The number of times a user generates the same operation path per unit time refers to the number of times the user's app operation behavior path is repeated per unit time, and the unit time may be a time less than a predetermined time threshold, for example, if the predetermined time threshold is less than 1 day, then the unit time may be 1 day, 1 hour or 1 minute, without any special limitation here; for example, path 1: homepage-module 2-personal center-sign in, path 2: homepage-personal center-sign in-receive award, path 3: homepage-personal center-sign in-receive award; then path 2 and path 3 are repeated, and then the number of times these two paths are repeated per unit time is determined. A high frequency of operation path changes per unit time indicates a high possibility of user risk.

[0087] The number of times a user changes his network address per unit time, the number of times he changes his Internet access device per unit time, and the number of times he generates the same operation path per unit time reflect the possibility of risks brought about by user operations or operations, which can make the user's risk assessment more comprehensive and the assessment results more accurate based on the static feature data assessment.

[0088] In one implementation of this example, the number of times the user changes the network address per unit time is determined in the following manner:

[0089] Based on the mobile phone number or ID number of the user when registering, determine the number of Internet access times per unit time of the user corresponding to the mobile phone number or ID number when registering, wherein the time from the user logging in to the Internet to the user logging out of the Internet is called one Internet access;

[0090] Determine the network address used by the user to access the Internet each time within a unit time;

[0091] Based on the consistency of the network addresses used by the user for two consecutive Internet accesses within a unit time, the number of times the user changes the network address within a unit time is determined, wherein if the network address used by the user for one Internet access is inconsistent with the previous one, the network address is changed once.

[0092] First, the number of times a user surfs the Internet per unit time is determined by the user's mobile phone number or ID number when registering, where a user's Internet access is counted as one Internet access; in this way, the user can be accurately identified by each person's unique mobile phone number or ID number. Then, the network address used by the user for each Internet access per unit time is determined; the network address can be used to accurately determine whether the user has changed the network environment. Finally, the number of times the user changes the network address per unit time is determined. If the network addresses used for two consecutive Internet accesses within a unit time are inconsistent, it can be determined that the user has changed the network. For example, if the unit time is 1 hour, and the number of times the user changes the network within 1 hour is obtained to be 3 times, the network addresses of these three times are: 100.15.224.0 / 22, 100.15.208.0 / 17 and 100.15.254.0 / 11, the adjacent 100.15.224.0 / 22 ​​is compared with 100.15.208.0 / 17 and the results are inconsistent, and 100.15.208.0 / 17 is compared with 100.15.254.0 / 11 and the results are inconsistent, it means that the number of times the user changes the network within 1 hour is 2 times. In this way, the frequency of user network changes can be accurately judged and measured, thereby improving the correctness of dynamic feature data, and then improving the accuracy of user risk assessment.

[0093] In one implementation of this example, the number of times the user changes the Internet access device per unit time is determined in the following manner:

[0094] Based on the mobile phone number or ID number of the user when registering, determine the number of Internet access times per unit time of the user corresponding to the mobile phone number or ID number when registering, wherein the time from the user logging in to the Internet to the user logging out of the Internet is called one Internet access;

[0095] Determine the Internet access device used by the user for each Internet access within a unit time;

[0096] The number of times the user changes the Internet device per unit time is determined based on the consistency of the Internet access devices used for two consecutive Internet accesses within a unit time, wherein if the Internet access device used by the user for one Internet access is inconsistent with that used for the previous Internet access, the Internet access device is changed once.

[0097] First, the number of times a user goes online per unit time is determined by the mobile phone number or ID number used when the user registered, where the time from logging in to logging out of the Internet is considered as one Internet access; in this way, the user can be accurately identified by each person's unique mobile phone number or ID number. Then, the Internet access device used by the user for each Internet access per unit time is determined; the IP address of the device can be used to accurately determine whether the user has changed the Internet access device. Finally, the number of times the user has changed the Internet access device per unit time is determined. If the IP addresses of the devices used for two consecutive Internet accesses per unit time are inconsistent, it can be determined that the user has changed the Internet access device. For example, if the unit time is 1 hour, and the number of times the user logs into the network within 1 hour is obtained to be 3 times, and the IP addresses of the three login devices are: 192.168.123.12, 192.168.123.12 and 192.168.122.23, the adjacent 192.168.123.12 is compared with 192.168.123.12 and the results are consistent, and 192.168.123.12 is compared with 192.168.122.23 and the results are inconsistent, then it means that the number of times the user changes the network within 1 hour is times. In this way, the frequency of users changing online devices can be accurately judged and measured based on the online situation, the correctness of dynamic feature data is improved, and the accuracy of user risk assessment is improved.

[0098] In step S130, target feature data to be eliminated from the user static feature data and the user dynamic feature data is eliminated.

[0099] In this example implementation, first, we obtain the full amount of user static feature data and user dynamic feature data. These full amounts of data contain a lot of feature data that contributes little to the user risk classification calculation. These data that contribute little are target elimination feature data. Then, before we input the user's feature data into the machine learning model, we remove these target elimination technical features from the full amount of data. This can effectively reduce the pressure of model calculation and effectively improve the accuracy of classification.

[0100] In step S140, the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed are input into a pre-trained random forest model, and the random forest model outputs the user's risk level.

[0101] In this example implementation, first, all the acquired static feature data and dynamic feature data of the user, excluding the target rejection feature data, are input into the random forest model, and the random forest model outputs the classification result. The classification result refers to the classification of the risk probability of the user, for example, it can be a high-risk user, a low-risk user, and a normal user. Furthermore, it can also be represented by other classification results according to the risk probability.

[0102] At the same time, the target elimination feature refers to eliminating each feature data in the user static feature data and the user dynamic feature data from the set of the user static feature data and the user dynamic feature data, respectively, inputting the random forest model with the target number of trees and the target number of input features for each tree, determining the number of user samples whose user risk level judged by the random forest model output is consistent with the user risk level marked in advance as the first sample number, and the number of user samples whose user risk level judged by the random forest model output is consistent with the user risk level marked in advance before the feature data is eliminated as the second sample number, if the absolute value of the difference between the first sample number and the second sample number is less than the predetermined absolute value threshold, then the eliminated feature data is considered to be the target elimination feature data. For example, the static feature data of 5 users obtained include 1.1: data on whether they belong to users in the blacklist, 1.2: user registration information features, 1.3: user network consumption features; the dynamic feature data obtained include 2.1: the number of times the user changes the network address per unit time, 2.2: the number of times the user changes the Internet access device per unit time, and 2.3: the number of times the user generates the same operation path per unit time. Then, one of the data sets of the five users is removed in turn, and the remaining data is input into the machine learning model. For example, after removing 1.1, 1.2, 1.3, 1.4, 1.5, and 1.6 are input into the random forest model, and then the output user risk level is compared with the pre-marked user risk level, and the number of users with the same level twice is 4; by inputting all the features of the five users into the random forest model, the output user risk level is compared with the pre-marked user risk level, and the number of users with the same level twice is 5; finally, the absolute value of the result of 5 minus 4 is 1. If the predetermined absolute value threshold is 2, 1.1 is the target feature data to be removed. Then, after the other data are removed one by one, the other data except the removed data are evaluated and compared.

[0103] This example implementation also provides a method for training a random forest model, including:

[0104] For each user sample in a set of user samples that are pre-marked as various user risk levels, obtain user static feature data and dynamic feature data, input the user static feature data and user dynamic feature data into a random forest model, the random forest model includes multiple trees, input the user static feature data and a predetermined plurality of features in the user dynamic features into each tree, traverse the combination of the number of trees in the random forest model and the number of features input into each tree, determine the number of user samples whose user risk level judged by the random forest model output under each combination is consistent with the pre-marked user risk level, the number of trees corresponding to the highest number of user samples and the number of features input into each tree are the target number of trees and the target number of features input into each tree. For example, there are 6 sample features in total, first, set the number of trees to 1, the number of features input into each tree starts from 1 to 6, and the random forest model sequentially evaluates the user's risk level; then, set the number of trees to 2, the number of features input into each tree starts from 1 to 6, and the random forest model sequentially evaluates the user's risk level; traverse sequentially until the total number of trees is reached. The number of trees and the number of features input for each tree is a combination. When the number of trees is 20 and the number of features input for each tree is 5, the number of user samples whose judged user risk level is consistent with the pre-marked user risk level is the highest, then 20,5 is set as the target number of trees and the target number of features input for each tree. By evaluating and comparing user risk levels by traversing feature combinations to determine the best combination, the training effect of the random forest model can be guaranteed, thereby improving the accuracy of model classification.

[0105] In step S150, the feature data of the user static feature data and the user dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model are input into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score.

[0106] In this example implementation, first, the feature data other than the target elimination feature data in the user static feature data and the user dynamic feature data are obtained, wherein the target elimination feature data is the user feature data with low contribution obtained through the evaluation comparison of the above random forest model; then, the data of the level of classification of the feature data other than the target elimination feature data by the random forest model is obtained; finally, these three types of data are input into the logistic regression model together to perform user risk scoring. In this way, a secondary evaluation is performed based on the user feature data and the evaluation results of the random forest model are considered, which can ensure the accuracy of the evaluation results while obtaining the scoring score results.

[0107] This example implementation also provides a method for training a logistic regression model, including: each user sample in a set of user samples has a pre-printed user risk score, for each user sample, obtaining feature data other than target exclusion feature data from user static feature data and user dynamic feature data, outputting the feature data other than target exclusion feature data from the user static feature data and user dynamic feature data, and the user risk level of the user to a logistic regression model, and outputting a user risk score from the logistic regression model, and if the output user risk score is inconsistent with the pre-printed user risk score, adjusting the logistic regression model so that the user risk score it outputs is consistent with the pre-printed user risk score.

[0108] In step S160, the user is classified based on risk according to the user risk level output by the random forest model and the user risk score output by the logistic regression model.

[0109] In the implementation of this example, the user risk level output by the random forest model based on the user feature data and the user risk score output by the logistic regression model based on the user feature data are obtained, and then the user is classified in terms of risk based on the predetermined rules and the evaluation results of the two are combined. In this way, it can be ensured that only when the two models evaluate the same result will the final result of the user risk assessment be used, and the advantages of the two models are combined to improve the accuracy of user risk classification.

[0110] In one implementation of this example, reference Figure 3 As shown, it includes step S310, step S320 and step S330, wherein:

[0111] In step S310, if the user risk level output by the random forest model meets the first predetermined user risk level condition, and the user risk score output by the logistic regression model is greater than the first predetermined user risk score threshold, the user is classified as an abnormal network behavior user.

[0112] In step S320, if the user risk level output by the random forest model meets the second predetermined user risk level condition, and the user risk score output by the logistic regression model is less than the second predetermined user risk score threshold, the user is classified as a normal network behavior user.

[0113] In step S330, otherwise, the user is classified as a pending network behavior user.

[0114] Below, step S310, step S320 and step S330 are explained and illustrated. First, the user risk level output by the random forest model and the user risk score output by the logistic regression model are obtained. For example, the risk level can be a high-risk user, a low-risk user, a normal user, or other level results; the risk score can be 0 to 100 points, or other scoring results. Then, the risk level of the first predetermined user is set as high risk, and the risk score threshold of the first predetermined user is 85. According to the risk score of the logistic regression model of 85 points and above and the random forest model is marked as a high-risk user, a high-risk user is determined. Then, the risk level of the second predetermined user is set as normal, and the risk score threshold of the first predetermined user is 40 points and below. According to the risk score of the logistic regression model of 40 points and below and the random forest model is marked as a normal user, a normal user is determined. Finally, other users are classified as pending network behavior users, and a longer period of observation and evaluation is conducted or other models are applied to evaluate the risk level of these user feature data.

[0115] In one implementation of this example, the following may also be included:

[0116] The user risk level output by the random forest model is converted into a level score; the weighted sum of the level score and the user risk score is determined as the total risk score; based on the total risk score, the user is classified according to the risk. First, the user risk level output by the random forest model is converted into a level score, for example, the high-risk users, low-risk users, and normal users in the above risk levels are converted to 90 points, 60 points, and 10 points respectively according to the level. Then, the weighted sum of the level score and the user risk score is determined as the total risk score; for example, the weighted coefficient of the high-risk users in the risk level in the predetermined random forest model is 0.8, the weighted coefficient of the low-risk users is 0.6, and the weighted coefficient of the normal users is 0.1; the weighted coefficient of the risk score of 100-85 points in the predetermined logistic regression model is 0.8, the weighted coefficient of 85-40 points is 0.6, and the weighted coefficient of 40-0 points is 0.1. Then, when a user is evaluated as a high-risk user in the random forest model and the risk score is 75 in the logistic regression model, the weighted sum of the user is 90*0.8+75*0.6=117. Then, according to the weighted and total risk score, the user is classified by risk. For example, the total risk score of 100 points or more can be predetermined as a high-risk user, 100-40 points as a low-risk user, and 40 points or less as a normal user. The final score of the above user is 117 greater than 100, and the evaluation result is a high-risk user. This classification method can apply all the result data in the two classification models, as well as the weighted coefficient for comprehensive evaluation, and the evaluation is more reasonable and accurate.

[0117] The present disclosure also provides a user risk classification device. Figure 4 As shown, the user risk classification device may include a first acquisition module 410, a second acquisition module 420, a rejection module 430, a first evaluation module 440, a second evaluation module 450 and a comprehensive evaluation module 460. Among them:

[0118] The first acquisition module may be used to acquire user static feature data, where the user static feature data represents features that are displayed without combining with user network behavior.

[0119] The second acquisition module can be used to acquire user dynamic feature data, where the user dynamic feature data represents features exhibited by the user's network behavior.

[0120] The elimination module can be used to eliminate target elimination feature data in user static feature data and user dynamic feature data.

[0121] The first evaluation module can be used to input feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed into a pre-trained random forest model, and the random forest model outputs a user risk level.

[0122] The second evaluation module can be used to input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score.

[0123] The comprehensive assessment module can be used to classify users based on their risk levels output by the random forest model and their risk scores output by the logistic regression model.

[0124] The random forest model is trained in the following manner: for each user sample in a set of user samples pre-marked as various user risk levels, user static feature data and dynamic feature data are obtained, and the user static feature data and the user dynamic feature data are input into the random forest model, the random forest model includes multiple trees, and a predetermined plurality of features in the user static feature data and the user dynamic features are input into each tree, and the combination of the number of trees in the random forest model and the number of features input into each tree is traversed, and the number of user samples whose user risk level judged by the random forest model output under each combination is consistent with the pre-marked user risk level is determined, and the number of trees corresponding to the highest number of user samples and the number of features input into each tree are determined. Inputting a target number of trees and a target number of features for each tree, removing each feature data in the user static feature data and the user dynamic feature data from the set of the user static feature data and the user dynamic feature data, respectively, inputting the random forest model with the target number of trees and the target number of features for each tree, determining the number of user samples whose judged user risk level output by the random forest model is consistent with the pre-marked user risk level as the first sample number, and the number of user samples whose judged user risk level output by the random forest model is consistent with the pre-marked user risk level before the feature data is removed as the second sample number, if the absolute value of the difference between the first sample number and the second sample number is less than a predetermined absolute value threshold, then the removed feature data is considered to be the target removal feature data;

[0125] The logistic regression model is trained in the following manner: each user sample in the above-mentioned set of user samples has a pre-printed user risk score, and for each user sample, feature data other than target exclusion feature data in user static feature data and user dynamic feature data is obtained, and feature data other than target exclusion feature data in user static feature data and user dynamic feature data and the user risk level of the user are output to the logistic regression model, and the logistic regression model outputs the user risk score, and if the output user risk score is inconsistent with the pre-printed user risk score, the logistic regression model is adjusted so that the user risk score it outputs is consistent with the pre-printed user risk score.

[0126] The specific details of each module in the above-mentioned user risk classification device have been described in detail in the corresponding seat allocation method, so they will not be repeated here.

[0127] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0128] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0129] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0130] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0131] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".

[0132] Refer to the following Figure 5 The electronic device 500 according to this embodiment of the present invention is described. Figure 5 The electronic device 500 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0133] like Figure 5As shown, the electronic device 500 is in the form of a general computing device. The components of the electronic device 500 may include but are not limited to: at least one processing unit 510, at least one storage unit 520, and a bus 530 connecting different system components (including the storage unit 520 and the processing unit 510).

[0134] The storage unit stores program codes, which can be executed by the processing unit 510, so that the processing unit 510 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 510 can perform the following steps: Figure 1 Step S110 shown in: obtaining user static feature data, which indicates features that are displayed without combining with user network behavior; S120: obtaining user dynamic feature data, which indicates features displayed by user network behavior; Step S130: inputting feature data other than target-removed feature data in user static feature data and user dynamic feature data into a pre-trained random forest model, and the random forest model outputs a user risk level; Step S140: inputting feature data other than target-removed feature data in user static feature data and user dynamic feature data, and the user risk level output by the random forest model into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score. Step S150: classifying users in terms of risk according to the user risk level output by the random forest model and the user risk score output by the logistic regression model.

[0135] The storage unit 520 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 5201 and / or a cache storage unit 5202 , and may further include a read-only storage unit (ROM) 5203 .

[0136] The storage unit 520 may also include a program / utility 5204 having a set (at least one) of program modules 5205, such program modules 5205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0137] Bus 530 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0138] The electronic device 500 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 500, and / or communicate with any device that enables the electronic device 500 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 550. Furthermore, the electronic device 500 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 560. As shown, the network adapter 560 communicates with other modules of the electronic device 500 via a bus 530. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0139] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0140] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0141] refer to Figure 6 As shown, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0142] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0143] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0144] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0145] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0146] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0147] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A user risk classification method, characterized in that: include: Acquire user static feature data, where the user static feature data represents features that are displayed without combining with user network behavior; Acquire user dynamic feature data, wherein the user dynamic feature data indicates features of the user's network behavior; the user dynamic feature data includes at least one of the following: the number of times the user changes the network address per unit time, the number of times the user changes the Internet access device per unit time, and the number of times the user generates the same operation path per unit time; The number of times the user changes the network address per unit time, the number of times the user changes the Internet access device per unit time, and the number of times the user generates the same operation path per unit time are used to reflect the possibility of risks caused by user operations or operations; Each feature data in the user static feature data and the user dynamic feature data is removed from the set of the user static feature data and the user dynamic feature data, and input into a random forest model with a target number of trees and a target number of input features for each tree; the number of trees corresponding to the highest number of user samples is the target number of trees, and the number of features input for each tree corresponding to the highest number of user samples is the target number of input features for each tree; Determine that the number of user samples whose user risk levels determined by the random forest model output are consistent with the user risk levels marked in advance is the first sample number, and the number of user samples whose user risk levels determined by the random forest model output are consistent with the user risk levels marked in advance before the feature data is removed is the second sample number; If the absolute value of the difference between the first sample number and the second sample number is less than a predetermined absolute value threshold, determining the rejected feature data as target rejection feature data; The target feature data to be eliminated is feature data that has a small contribution to the user risk classification calculation among the user static feature data and the user dynamic feature data; Inputting the feature data of the user's static feature data and the user's dynamic feature data after removing the target feature data into a pre-trained random forest model, the random forest model outputting the user's risk level; Input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model, into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score; Users are classified based on their risk levels output by the random forest model and their risk scores output by the logistic regression model.

2. The method according to claim 1, characterized in that: The risk classification of users according to the user risk level output by the random forest model and the user risk score output by the logistic regression model specifically includes: If the user risk level output by the random forest model meets the first predetermined user risk level condition, and the user risk score output by the logistic regression model is greater than the first predetermined user risk score threshold, the user is classified as an abnormal network behavior user; If the user risk level output by the random forest model meets the second predetermined user risk level condition, and the user risk score output by the logistic regression model is less than the second predetermined user risk score threshold, the user is classified as a normal network behavior user; Otherwise, the user is classified as a user with pending network behavior.

3. The method according to claim 1, characterized in that The risk classification of users according to the user risk level output by the random forest model and the user risk score output by the logistic regression model specifically includes: Convert the user risk level output by the random forest model into a level score; Determine a weighted sum of the grade score and the user risk score as a total risk score; Based on the total risk score, the user is classified according to risk.

4. The method according to claim 1, characterized in that: The user static feature data includes at least one of the following: Whether the user is a user in the blacklist; The registration information characteristics of the user; The user's online consumption characteristics.

5. The method according to claim 1, characterized in that The number of times the user changes the network address per unit time is determined by: Based on the mobile phone number or ID number of the user when registering, determine the number of Internet access times per unit time of the user corresponding to the mobile phone number or ID number when registering, wherein the time from the user logging in to the Internet to the user logging out of the Internet is called one Internet access; Determine the network address used by the user to access the Internet each time within a unit time; Based on the consistency of the network addresses used by the user for two consecutive Internet accesses within a unit time, the number of times the user changes the network address within a unit time is determined, wherein if the network address used by the user for one Internet access is inconsistent with the previous one, the network address is changed once.

6. The method according to claim 1, characterized in that The number of times the user changes the Internet access device per unit time is determined by the following method: Based on the mobile phone number or ID number of the user when registering, determine the number of Internet access times per unit time of the user corresponding to the mobile phone number or ID number when registering, wherein the time from the user logging in to the Internet to the user logging out of the Internet is called one Internet access; Determine the Internet access device used by the user for each Internet access within a unit time; The number of times the user changes the Internet device within a unit time is determined based on the consistency of the Internet access devices used for two consecutive Internet accesses within a unit time, wherein if the Internet access device used by the user for one Internet access is inconsistent with that used for the previous Internet access, the Internet access device is changed once.

7. A user risk classification device, characterized in that: include: A first acquisition module is used to acquire user static feature data, where the user static feature data represents features that are displayed without combining with user network behavior; The second acquisition module is used to acquire user dynamic feature data, wherein the user dynamic feature data represents the characteristics of the user's network behavior; the user dynamic feature data includes at least one of the following: the number of times the user changes the network address per unit time; the number of times the user changes the Internet access device per unit time; The number of times the user generates the same operation path per unit time; The number of times the user changes the network address per unit time, the number of times the user changes the Internet access device per unit time, and the number of times the user generates the same operation path per unit time are used to reflect the possibility of risks caused by user operations or operations; A removal module is used to remove each feature data in the user static feature data and the user dynamic feature data from the set of the user static feature data and the user dynamic feature data, and input a random forest model with a target number of trees and a target number of input features for each tree; the number of trees corresponding to the highest number of user samples is the target number of trees, and the number of features input for each tree corresponding to the highest number of user samples is the target number of input features for each tree; Determine the number of user samples whose user risk levels determined by the random forest model output are consistent with the user risk levels marked in advance as the first sample number, and the number of user samples whose user risk levels determined by the random forest model output are consistent with the user risk levels marked in advance before the feature data is eliminated as the second sample number; if the absolute value of the difference between the first sample number and the second sample number is less than a predetermined absolute value threshold, determine the eliminated feature data as the target elimination feature data; The target feature data to be eliminated is feature data that has a small contribution to the user risk classification calculation among the user static feature data and the user dynamic feature data; A first evaluation module is used to input feature data of user static feature data and user dynamic feature data after removing target feature data into a pre-trained random forest model, and the random forest model outputs a user risk level; The second evaluation module is used to input the feature data of the user's static feature data and the user's dynamic feature data after the target feature data is removed, and the user risk level output by the random forest model, into a pre-trained logistic regression model, and the logistic regression model outputs a user risk score; The comprehensive assessment module is used to classify users based on their risk levels output by the random forest model and their risk scores output by the logistic regression model.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the user risk classification method according to any one of claims 1 to 6 is implemented.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the user risk classification method described in any one of claims 1-6 by executing the executable instructions.

Citation Information

Patent Citations

  • Method and system for monitoring network behavior data

    CN103123712A

  • Method used for constructing and verifying credit scoring equation and system design

    CN106875270A

  • High-quality customer identification method and apparatus based on random forest and logistic regression

    CN108389069A

  • User behavior data processing method and device, electronic equipment and computer readable medium

    CN108416669A

  • Network security threat detection by user / user-entity behavioral analysis

    US9516053B1