User type identification method, device, electronic device and storage medium
By analyzing the feature evaluation values in user login logs and using the target login feature evaluation model to identify user types, the problem of early identification of user types in the existing technology is solved, and service pertinence and efficiency are improved.
Patent Information
- Application Number
- CN201910273038.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-04
- Publication Date
- 2024-08-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
It is difficult for existing technology to identify and distinguish normal users and abnormal users early, especially before users perform actual operations, causing the normal operation of network services to be affected.
By analyzing the user's login log, the evaluation value of each login feature is obtained and evaluated, and input into the target login feature evaluation model to determine the user type and provide targeted services.
It achieves accurate identification of user types before users perform actual operations, improves user experience and service efficiency, and reduces the interference of abnormal users on network services.
Smart Images

Figure CN111784375B
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic information, and in particular, to a method, device, electronic device and storage medium for identifying a user type. Background Art
[0002] In recent years, with the rise of Internet technology, many Internet-based network services have emerged, such as food delivery services and online car-hailing services.
[0003] These network services have greatly improved the convenience of people's lives, but at the same time, these network services are also under attack. Specifically, users of network services can be divided into two types, normal users and abnormal users. Normal users usually use network services in accordance with established compliance methods for the purpose of enjoying network services. Network black industries often make profits by registering a large number of accounts, and the users of these accounts are not normal users of network services. Common non-compliant ways of using network services include brushing orders for a merchant (helping merchants increase the number of completed orders), obtaining new user rewards by registering a large number of new accounts, and other network black industry behaviors.
[0004] It is obvious that a large number of abnormal accounts without real users controlled by the cybercrime industry have interfered with the normal use of network services. In order to ensure the normal operation of network services, it is necessary to identify the abnormal accounts used by the cybercrime industry. Summary of the invention
[0005] The purpose of the present application is to provide a user type identification method, device, electronic device and storage medium.
[0006] An information prompt method provided by the present application includes:
[0007] Get the user's login log;
[0008] According to the user's login log, for any other login feature under each target login value of any target login feature in the login log, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0009] According to the user's login log, for each target login value of any target login feature in the login log, the evaluation value of each other login feature associated with the target login value is input into the target login feature evaluation model to obtain the evaluation value of the target login value;
[0010] According to the evaluation value of each target login value, the type of the user in the login log is determined.
[0011] In some embodiments, according to the user's login log, for any other login feature under each target login value of any target login feature in the login log, according to the other login value corresponding to the other login feature, determining the evaluation value of the other login feature includes:
[0012] For any target login feature in the login log, deduplication of log records in the login log according to the target login value, the reference login value and other login values;
[0013] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the other login values corresponding to the other login feature.
[0014] In some embodiments, according to the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, according to other login values corresponding to the other login feature, determining the evaluation value of the other login feature, including:
[0015] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to the specified other login values.
[0016] In some embodiments, according to the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, according to the number ratio of reference login values corresponding to the specified other login values, determining the evaluation value of the other login feature, including:
[0017] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the ratio of the number of reference login values corresponding to the specified other login values according to the number of reference login values corresponding to the specified other login values and the total number of log records in the deduplicated login log;
[0018] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to the specified other login values.
[0019] In some embodiments, the specified other login value includes any one or more of the following values: a first other login value and a second other login value;
[0020] The first other registered values are one or more other registered values with the largest number of corresponding reference registered values;
[0021] The second other registered values are other registered values whose number of corresponding reference registered values exceeds a predetermined value.
[0022] In some embodiments, obtaining a user's login log includes:
[0023] Get the target user's identification number;
[0024] Searching for a login log related to the target user according to the identity identification number of the target user as the login log of the user;
[0025] Determining the type of user in the login log according to the evaluation value of each target login value includes:
[0026] According to the correspondence between the target login value and the target feature, the evaluation value of each target feature is determined according to the evaluation value of each target login value;
[0027] According to the evaluation value of each target feature, the type of target user is determined.
[0028] In some embodiments, determining the type of the target user according to the evaluation value of each target feature includes:
[0029] Obtain the historical operation records of the target user;
[0030] The type of the target user is determined based on the evaluation value of each target feature of the target user and the historical operation record of the target user.
[0031] In some embodiments, obtaining a user's login log includes:
[0032] Obtain the login logs generated by the target server within a predetermined time;
[0033] Determining the type of user in the login log according to the evaluation value of each target login value includes:
[0034] Determining the type of each target login value according to the evaluation value of the target login value;
[0035] The type of the target user in the login log is determined according to the type of each target login value and the target login value of the target user in the login log.
[0036] In some embodiments, determining the type of the target user in the login log according to the type of each target login value and the target login value of the target user in the login log includes:
[0037] Obtain the historical operation records of each target user respectively;
[0038] The type of each target user is determined according to the type of each target login value, the target login value of the target user in the login log, and the historical operation record of the target user.
[0039] In some embodiments, the method further comprises:
[0040] Determine the service strategy for the target user based on the correspondence between the type of the target user and the service strategy;
[0041] Provide services to target users according to the determined service strategy.
[0042] In some embodiments, determining the service policy of the target user according to the correspondence between the type of the target user and the service policy includes:
[0043] Obtain the service request sent by the target user;
[0044] A service policy for the target user is determined according to the type of the service request and the type of the target user.
[0045] In some embodiments, the target login value includes any one or more of the following:
[0046] The IP address used when logging in, the device number used when logging in, and the latitude and longitude information when logging in;
[0047] Reference login values include any one or more of the following:
[0048] The user's mobile phone number and the user's identification number;
[0049] Other login values include any one or more of the following:
[0050] Login device value, user category value, and login behavior value.
[0051] In some embodiments, the login device value includes any one or more of the following:
[0052] System number of the login device, browser version number of the login device, processor version number of the login device, login software download channel number;
[0053] User category values include any one or more of the following:
[0054] The user's service level and historical usage time;
[0055] Login behavior values include any one or more of the following:
[0056] Service type number, login software version number, login time, login interface.
[0057] In some embodiments, the target login feature evaluation model is trained as follows:
[0058] Acquire a training sample set; the training sample set includes positive training samples and negative training samples;
[0059] The target login feature evaluation model is trained respectively using the positive training samples and negative training samples in the training sample set.
[0060] In some embodiments, obtaining a training sample set includes:
[0061] Obtain a sample login log of a first sample user from historical login logs;
[0062] According to the sample login log of the first sample user, for any other login feature under each target login value of any target login feature in the sample login log of the first sample user, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0063] According to the sample login log of the first sample user, for each target login value of any target login feature in the sample login log of the first sample user, the evaluation value of each other login feature associated with the target login value is used as a positive training sample.
[0064] In some embodiments, obtaining a training sample set includes:
[0065] Obtain sample login logs of abnormal users;
[0066] According to the sample login log of the abnormal user, for any other login feature under each target login value of any target login feature in the sample login log of the abnormal user, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0067] According to the sample login log of the abnormal user, for each target login value of any target login feature in the sample login log of the abnormal user, the evaluation value of each other login feature associated with the target login value is used as a negative training sample.
[0068] In some embodiments, according to the sample login log of the abnormal user, for each target login value of any target login feature in the sample login log of the abnormal user, the evaluation value of each other login feature associated with the target login value is used as a negative training sample, including:
[0069] According to the sample login logs of multiple abnormal users, for each target login value of any target login feature in the sample login logs of each abnormal user, according to the evaluation value of each other login feature associated with the target login value, calculate the evaluation average value of other login features corresponding to each target login value;
[0070] For each sample login log of the abnormal user, determine the evaluation value of each sample login log according to the evaluation average value of other login features corresponding to the target login value in each sample login log;
[0071] Evaluation value of sample login logs, selecting negative sample users from multiple abnormal users;
[0072] According to the sample login log of the negative sample user, for each target login value of any target login feature in the sample login log of the negative sample user, the evaluation value of each other login feature associated with the target login value is used as a negative training sample.
[0073] The present application also provides a user type identification device, including:
[0074] The first acquisition module is used to obtain the user's login log;
[0075] A first determination module is used to determine, based on the user's login log, for any other login feature under each target login value of any target login feature in the login log, according to the other login values corresponding to the other login feature, an evaluation value of the other login feature;
[0076] A first input module is used for inputting the evaluation values of each other login feature associated with each target login value of any target login feature in the login log according to the user's login log, into the target login feature evaluation model to obtain the evaluation value of the target login value;
[0077] The second determination module is used to determine the type of user in the login log according to the evaluation value of each target login value.
[0078] In some embodiments, the first determining module includes:
[0079] A first deduplication unit, configured to deduplicate log records in the login log according to a target login value, a reference login value, and other login values for any target login feature in the login log;
[0080] The first determination unit is used to determine the evaluation value of any other login feature under each target login value of any target login feature in the deduplicated login log according to the other login values corresponding to the other login feature.
[0081] In some embodiments, the first determining unit includes:
[0082] The first determination subunit is used to determine the evaluation value of any other login feature under each target login value of any target login feature in the deduplicated login log based on the deduplicated login log, according to the proportion of the number of reference login values corresponding to the specified other login values.
[0083] In some embodiments, the first determining subunit includes:
[0084] A second determination subunit is used to determine, based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, the number of reference login values corresponding to the specified other login values and the total number of log records in the deduplicated login log, the proportion of the number of reference login values corresponding to the specified other login values;
[0085] The third determination subunit is used to determine the evaluation value of any other login feature under each target login value of any target login feature in the deduplicated login log based on the deduplicated login log, according to the proportion of the number of reference login values corresponding to the specified other login values.
[0086] In some embodiments, the specified other login value includes any one or more of the following values: a first other login value and a second other login value;
[0087] The first other registered values are one or more other registered values with the largest number of corresponding reference registered values;
[0088] The second other registered values are other registered values whose number of corresponding reference registered values exceeds a predetermined value.
[0089] In some embodiments, the first acquisition module includes:
[0090] A first acquisition unit, used to acquire an identity number of a target user;
[0091] A first search unit, configured to search for a login log related to the target user as the user's login log according to the identity identification number of the target user;
[0092] The second determination module includes:
[0093] A second determining unit, configured to determine the evaluation value of each target feature according to the corresponding relationship between the target login value and the target feature and according to the evaluation value of each target login value;
[0094] The third determining unit is used to determine the type of the target user according to the evaluation value of each target feature.
[0095] In some embodiments, the third determining unit includes:
[0096] A first acquisition subunit is used to acquire the historical operation records of the target user;
[0097] The fourth determination subunit is used to determine the type of the target user according to the evaluation value of each target feature of the target user and the historical operation record of the target user.
[0098] In some embodiments, the first acquisition module includes:
[0099] A second acquisition unit is used to acquire a login log generated by the target server within a predetermined time;
[0100] The second determination module includes:
[0101] a fourth determining unit, configured to determine a type of each target login value according to the evaluation value of the target login value;
[0102] The tenth determining unit is used to determine the type of the target user in the login log according to the type of each target login value and the target login value of the target user in the login log.
[0103] In some embodiments, the fourth determining unit includes:
[0104] A first acquisition subunit is used to respectively acquire the historical operation records of each target user;
[0105] The fifth determining subunit is used to determine the type of each target user according to the type of each target login value, the target login value of the target user in the login log, and the historical operation record of the target user.
[0106] In some embodiments, the apparatus further comprises:
[0107] A third determination module is used to determine the service policy of the target user according to the correspondence between the type of the target user and the service policy;
[0108] The service module is used to provide services to target users according to the determined service strategy.
[0109] In some embodiments, the third determination module includes:
[0110] A third acquisition unit is used to acquire a service request sent by a target user;
[0111] The fifth determining unit is used to determine the service policy of the target user according to the type of the service request and the type of the target user.
[0112] In some embodiments, the target login value includes any one or more of the following:
[0113] The IP address used when logging in, the device number used when logging in, and the latitude and longitude information when logging in;
[0114] Reference login values include any one or more of the following:
[0115] The user's mobile phone number and the user's identification number;
[0116] Other login values include any one or more of the following:
[0117] Login device value, user category value, and login behavior value.
[0118] In some embodiments, the login device value includes any one or more of the following:
[0119] System number of the login device, browser version number of the login device, processor version number of the login device, login software download channel number;
[0120] User category values include any one or more of the following:
[0121] The user's service level and historical usage time;
[0122] Login behavior values include any one or more of the following:
[0123] Service type number, login software version number, login time, login interface.
[0124] In some embodiments, the target login feature evaluation model is trained by the following modules:
[0125] A second acquisition module is used to acquire a training sample set; the training sample set includes positive training samples and negative training samples;
[0126] The training module is used to train the target login feature evaluation model using the positive training samples and the negative training samples in the training sample set.
[0127] In some embodiments, the second acquisition module includes:
[0128] A fourth acquisition unit, configured to acquire a sample login log of a first sample user from a historical login log;
[0129] A sixth determining unit, configured to determine, based on the sample login log of the first sample user, for any other login feature under each target login value of any target login feature in the sample login log of the first sample user, an evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0130] The seventh determination unit is used to use, based on the sample login log of the first sample user, for each target login value of any target login feature in the sample login log of the first sample user, the evaluation value of each other login feature associated with the target login value as a positive training sample.
[0131] In some embodiments, the second acquisition module includes:
[0132] A fifth acquisition unit, used to acquire a sample login log of an abnormal user;
[0133] An eighth determination unit is configured to determine, based on the sample login log of the abnormal user, for any other login feature under each target login value of any target login feature in the sample login log of the abnormal user, according to the other login value corresponding to the other login feature;
[0134] The ninth determination unit is used to use, based on the sample login log of the abnormal user, for each target login value of any target login feature in the sample login log of the abnormal user, the evaluation value of each other login feature associated with the target login value as a negative training sample.
[0135] In some embodiments, the ninth determining unit includes:
[0136] A first calculation subunit is configured to calculate, based on the sample login logs of multiple abnormal users, for each target login value of any target login feature in the sample login logs of each abnormal user, an evaluation average value of other login features corresponding to each target login value according to the evaluation value of each other login feature associated with the target login value;
[0137] a sixth determining subunit, configured to determine, for each of the sample login logs of the abnormal user, an evaluation value of each sample login log according to an evaluation average of other login features corresponding to a target login value in each sample login log;
[0138] The first selection subunit is used for evaluating the sample login log and selecting negative sample users from multiple abnormal users;
[0139] The seventh determination subunit is used to, based on the sample login log of the negative sample user, for each target login value of any target login feature in the sample login log of the negative sample user, use the evaluation value of each other login feature associated with the target login value as a negative training sample.
[0140] An electronic device provided by an embodiment of the present invention includes: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform steps such as a user type identification method.
[0141] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the user type identification method are executed.
[0142] The method for identifying user types provided by the present application, after obtaining the user's login log, first for any other login feature under each target login value of any target login feature in the login log, according to the other login value corresponding to the other login feature, determine the evaluation value of the other login feature, and then, for each target login value of any target login feature in the login log, the evaluation value of each other login feature associated with the target login value is input into the target login feature evaluation model to obtain the evaluation value of the target login value, and finally, according to the evaluation value of each target login value, determine the type of user in the login log. The method for determining the user type provided by the present application no longer depends on the actual operation behavior of the user, and the type of the user can be determined only by the login features in the login log generated by the user's login behavior, which changes the method for determining the user type. Compared with the method of determining the user type according to the user operation in the related art, the method of the present application can determine the user type earlier.
[0143] In a certain embodiment, the method provided in the present application is used to determine the user type, so that the user type can be determined before the user initiates an actual operation, and more targeted services can be provided according to the user type, thereby improving user experience.
[0144] In a certain embodiment, when the method provided by the present application is implemented, before generating the evaluation values of other login features, the log records in the login log are deduplicated according to the target login value, the reference login value and the other login values, so that when calculating the evaluation values of other login features, the log records of abnormal users will not be obscured by the log records of a large number of normal users. After deduplication, only one of each log record will be retained, which improves the accuracy of determining the evaluation values of other login features. In a certain embodiment, when the method provided by the present application is implemented, the user type is further assisted in determining the user type according to the user's historical operation records, so that the determination of the user type is more accurate.
[0145] In a certain embodiment, when the method provided in the present application is implemented, a corresponding service strategy may also be determined according to the type of user, so that the determined service strategy is more targeted and accurate.
[0146] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0147] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0148] Figure 1 A basic flow chart of the user type identification method provided in an embodiment of the present application is shown;
[0149] Figure 2 The first detailed flow chart of the user type identification method provided in the embodiment of the present application is shown;
[0150] Figure 3 A second detailed flow chart of the user type identification method provided in an embodiment of the present application is shown;
[0151] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0152] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0153] Among the related technologies, with the rise of Internet technology, some emerging service industries based on Internet technology have emerged, such as online car-hailing services and food delivery services.
[0154] These network services have greatly improved the convenience of people's lives. Take online car-hailing services as an example. Service requesters (such as passengers) can place orders before they travel to reserve travel time and travel location in advance, so as to avoid spending a lot of time waiting for taxis on the roadside when traveling; service providers (such as drivers) can choose to transport service requesters according to the destinations that service requesters expect to reach. In addition, both service requesters and service providers can use network services to better arrange their travel.
[0155] Some users may perform non-compliant operations for their own purposes.
[0156] For example, in some cases, in order to promote certain specific services, network service providers or merchants using network services (such as takeaway merchants) will provide some discounts to service requesters (users using network services), such as issuing coupons or subsidies, etc. At this time, some users may earn a large number of coupons or subsidies by registering a large number of users.
[0157] For example, a user may repeatedly place a large number of service orders in a short period of time, for example, placing service orders continuously within a few minutes to increase the number of orders for a merchant. For another example, after placing a large number of service orders in a short period of time, a large number of service orders are cancelled in batches.
[0158] Furthermore, these users who perform non-compliant operations are abnormal users, and the existence of these abnormal users greatly affects the normal operation of network services. In order to ensure the normal operation of network services, these abnormal users should be identified in a timely manner. In related technologies, it is usually determined whether a user is an abnormal user based on the user's specific ordering behavior.
[0159] Specifically, abnormal users will repeatedly place a large number of service orders in a short period of time. For example, they will place service orders continuously within a few minutes to increase the number of orders for merchants. Another example is that after placing a large number of service orders in a short period of time, they will cancel the service orders in batches. In response to this situation, the system can use manual search to find some abnormal user behavior data in advance, and then use the abnormal user behavior data to train the model. Then, after obtaining new user behavior data, the new user behavior data can be input into the trained model for analysis to determine whether the user who generated the new user data is an abnormal user.
[0160] However, this method of determining whether a user is an abnormal user has a certain lag, that is, it is only after the user has made a specific order that it can be determined whether the user is an abnormal user, but it is impossible to determine whether the user is an abnormal user before the user places a service order.
[0161] Furthermore, in view of the deficiencies in the related art, a method for identifying user types that is not based on ordering behavior is provided, such as Figure 1 As shown, the user type identification method includes:
[0162] S101, obtaining the user's login log;
[0163] S102, according to the user's login log, for any other login feature under each target login value of any target login feature in the login log, according to other login values corresponding to the other login feature, determining an evaluation value of the other login feature;
[0164] S103, according to the user's login log, for each target login value of any target login feature in the login log, input the evaluation value of each other login feature associated with the target login value into the target login feature evaluation model to obtain the evaluation value of the target login value;
[0165] S104, determining the type of user in the login log according to the evaluation value of each target login value.
[0166] The information recorded in the login log is the login features related to the user's login behavior. Specifically, there are many kinds of login features recorded in the login log, such as the IP address used when logging in, the device number used when logging in, the latitude and longitude information when logging in, the user's mobile phone number, the user's identity number, the login device value, the user category value, the login behavior value, etc.
[0167] In the solution provided by this application, the login log mainly refers to the website login log or the server login log. The website login log refers to the detailed information about the user login operation recorded by a website that provides services to users. The server login log refers to the detailed information about the user login operation recorded by a server that provides services to users. Regardless of whether it is a website login log or a server login log, each login operation initiated by the user will generate a corresponding login log.
[0168] Usually, a login log consists of at least one log record, and each login behavior of a user generates a log record. Each log record records specific login values under different login features.
[0169] As shown in Table 1 below, a login log in a certain server is shown.
[0170] Table 1
[0171]
[0172] It can be seen from Table 1 that the login log is composed of multiple log records (each line from the second line to the last line is a log record). In the login log in Table 1, the content in the first line represents the login features of the log record, which can be seen as IP address, login software download channel number, software version number, login interface, etc.
[0173] Here, the login log obtained can be the login log of a certain user or some users (target users), or it can be the login log of unspecified users collected in the past period of time (such as the login log generated based on the login behavior of unspecified users accepted by a server).
[0174] In step S102, what needs to be determined is the evaluation value of any other login feature under each target login value of any target login feature in the login log, and the evaluation value of the other login feature is determined according to the other login value corresponding to the other login feature.
[0175] In step S103, the evaluation value of the target login value needs to be determined. If there are multiple target login values, the evaluation value of each target login value usually needs to be determined. The evaluation value of each target login value is determined based on the evaluation value of each other login feature associated with the target login value.
[0176] Usually, each target login feature is associated with at least one other login feature. For example, as shown in Table 1, the IP address is associated with the login software download channel number, software version number, login interface, user service level and ID number. That is, for multiple login features appearing in the login log, the target login feature (such as IP address) can be associated with any one or more features other than the target login feature.
[0177] Specifically, in step S102, the target login feature and other login features are all login features in the login log, but it should be noted that the target login feature and other login features should be different login features in the login log. In theory, each login feature in the login log can be used as a target login feature, and each login feature can also be used as other login features. Each target login feature corresponds to at least one target login value. Taking the target login feature as an IP address as an example, the target login value is the specific IP address number, such as the target login value can be 0.0.0.1, 0.0.0.2, 0.0.0.5, etc. Taking the target login feature as the latitude and longitude information at the time of login as an example, the target login value is the specific latitude and longitude number, such as the target login value can be (15, 87), (-57, 15), (24, 35), etc. Of course, the target login feature can also be other login features in the login log. No matter which target login feature is, each target login feature must have at least one target login value. As shown in Table 1, if the target login feature is an IP address, the target login value is 0.0.0.1. If the target login feature is a login interface, the target login values are 0, 1, 2, 3, and 4.
[0178] Similarly, each other login feature also corresponds to at least one other login value. Taking the other login feature as login time as an example, the other login values can be 10:01, 11:12; 18:41, 21:34. Of course, other login features can also be other login features in the login log (such as the processor version number of the login device used when logging in). Regardless of which other login feature is, each other login feature must have at least one other login value. It should be noted that the target login feature and other login features are not fixed. For example, the feature used as the target login feature (such as longitude and latitude information) in this calculation can be used as other login features in the next calculation. Similarly, the feature used as other login features (such as login time) in this calculation can also be used as the target login feature in the next calculation. Generally speaking, before executing the method provided in this application, the user needs to determine which login features are used as target login features and which features are used as other login features, so that the corresponding data can be directly retrieved for calculation during the specific calculation.
[0179] Although in theory, any login feature in the login log can be used as a target login feature, or as other login features, the inventor's experiments show that some login features are more suitable as target login features, and some login features are more suitable as other login features.
[0180] Specifically, the target login value preferably includes any one or more of the following:
[0181] The IP address used when logging in, the device number used when logging in, and the latitude and longitude information when logging in;
[0182] Other login values include any one or more of the following:
[0183] Login device value, user category value, and login behavior value.
[0184] The login device value includes any one or more of the following:
[0185] System number of the login device, browser version number of the login device, processor version number of the login device, login software download channel number;
[0186] User category values include any one or more of the following:
[0187] The user's service level and historical usage time;
[0188] Login behavior values include any one or more of the following:
[0189] Service type number, login software version number, login time, login interface (access address when logging in).
[0190] Here, the device number used when logging in refers to the device number of the device used when the user initiates the login request.
[0191] The login device value refers to the characteristics of the device used by the user when initiating the login request. The user category value refers to the category attribute of the account used by the user when logging in. The login behavior value refers to the characteristics of some information that occurs immediately when the user logs in.
[0192] Specifically, the login interface may refer to the access address when logging in, and the login software version number refers to the version number of the software used by the user when logging in. The service type number refers to the type of service selected by the user when logging in (such as express service, private car service). The user's service level can be understood as the user's VIP level, or the level that increases with the increase in the number of uses. The user's historical usage time refers to the time the user uses a certain software (usually refers to the time the software that initiated the current login request was used).
[0193] As shown in Table 1, each target login value corresponds to multiple other login features (at least one other login feature), and each target login value corresponds to multiple other login values of multiple other login features, such as the IP address 0.0.0.1 (target login value) in Table 1 corresponds to two software version numbers 5.1.30 and 5.1.32 (other login values). Furthermore, when calculating any other login value under the target login value, the evaluation value of a certain other login feature corresponding to the specified target login value can be calculated based on the other login values of the other login feature. Since a target login value may correspond to multiple other login features, the evaluation value of the other login features corresponding to the target login value may also be multiple.
[0194] For example, the other login features corresponding to the target login value of IP address 0.0.0.1 include login time, login device processor version number, and login device system number. Then the evaluation values of other login features corresponding to the target login value of IP address 0.0.0.1 include the evaluation value of login time, the evaluation value of login device processor version number, and the evaluation value of login device system number. In other words, one target value usually corresponds to the evaluation values of multiple other login features, or one target value usually corresponds to the evaluation values of multiple other login features.
[0195] Specifically, in step S102, the evaluation value of other login features is determined according to the values of other login features (i.e., other login values corresponding to the other login features). There are many ways to determine the evaluation value of other login features, for example, the evaluation value of other login features can be determined according to the number of other login values, or according to the type of other login values, or according to the number of other login values of each type / specified type, or according to the proportion of other login values of a specified type.
[0196] As shown in Table 1, if the target feature evaluation value is 0.0.0.1 (IP address) and the other login feature is the login interface, then the evaluation value of the login interface under 0.0.0.1 is calculated based on the following data: 0, 0, 0, 0, 1, 1, 1, 1, 2, 3, 4.
[0197] As shown in Table 1, if the target feature evaluation value is 5.1.30 (software version number) and the other login feature is the login interface, the evaluation value of the login interface under 5.1.30 is calculated based on the following data: 0, 0, 1, 1.
[0198] Regardless of the above-mentioned method for calculating the evaluation value of other login features, the evaluation value of a certain other login feature should be calculated using the other login value corresponding to the other login feature. Specifically, as shown in Table 2 below, the corresponding relationship between the evaluation value of each other login feature and the other login value is shown.
[0199] Table 2
[0200]
[0201] As can be seen from Table 2, each target login value corresponds to two (or one or at least three) evaluation values of other login features (the evaluation values of these two other login features are the evaluation value of the login time and the evaluation value of the processor version number). The evaluation value of each other login feature corresponds to multiple other login values of this type. Furthermore, when calculating the evaluation value of each other login feature, it can be calculated based on the other login values of the corresponding type. For example, when calculating the evaluation value of the login time (one of the other login features) numbered 1 in Table 2 (the evaluation value of the login time feature under the target login value of 0.0.0.1), it can only be calculated based on the four other login values of 10:01, 11:12; 18:41, and 21:34 (that is, using the data of other login values corresponding to the IP address and corresponding to other login features for calculation; or using the data of other login values corresponding to the IP address and corresponding to the evaluation value of other login features for calculation), and other other login values in Table 2 (such as the data in the third row) cannot be used for calculation.
[0202] For another example, when calculating the evaluation value of the processor version number 4 in Table 2 (the evaluation value of the processor version number under the target login value of 0.0.0.2), the calculation can only be performed based on the parameter 1.6.
[0203] If there are multiple target login features, then in step S103, the evaluation value of the target login value of each target login feature may be calculated separately. For example, as shown in Table 1, if the target login feature is an IP address, the evaluation value of the target login value is 0.0.0.1; if the target login feature is a software version number, the evaluation values of the target login value are 5.1.30 and 5.1.32.
[0204] Furthermore, the evaluation value of each other registration feature associated with the target registration value means that each target registration value corresponds to (is associated with) the evaluation values of multiple other registration features.
[0205] Table 3 below shows a relationship table of the evaluation values of each other registered feature associated with the target registered numerical value.
[0206] Table 3
[0207]
[0208] As shown in Table 3, the evaluation values of other login features corresponding to each target login value are shown. It can be seen that each target login value corresponds to the evaluation values of multiple other login features (the evaluation value of the device number, the evaluation value of the processor version number, and the evaluation value of the login time).
[0209] In specific implementation, the number of evaluation values of other login features corresponding to each target login value can be one or more. Usually, in order to ensure the accuracy of calculation, the more evaluation values of other login features corresponding to the target login value, the better.
[0210] Furthermore, as shown in Table 3, when calculating the evaluation value of 0.0.0.1 (the evaluation value of a target login value), it can be calculated based on 0.2, 0.8 and 0.4; when calculating the evaluation value of 0.0.0.2 (the evaluation value of a target login value), it can be calculated based on 0.1, 0.5 and 0.5; when calculating the evaluation value of 0.0.0.3 (the evaluation value of a target login value), it can be calculated based on 0.3, 0.4 and 0.7; when calculating the evaluation value of 0.0.0.4 (the evaluation value of a target login value), it can be calculated based on 0.9, 1 and 0.8.
[0211] As shown in Table 4, the evaluation value of each target login value calculated based on the data in Table 3 is shown:
[0212] Table 4
[0213]
[0214] As shown in Table 4, the target feature evaluation value A is calculated based on 0.2, 0.8 and 0.4; the target feature evaluation value B is calculated based on 0.1, 0.5 and 0.5; the target feature evaluation value C is calculated based on 0.3, 0.4 and 0.7; and the target feature evaluation value D is calculated based on 0.9, 1 and 0.8.
[0215] It should be noted that when calculating the evaluation value of a target login value, the evaluation value of each other login feature corresponding to the target login value is input into the target login feature evaluation model, and the result of the model value is used as the evaluation value of the target login value. Therefore, the evaluation value of the target login value output by the target login feature evaluation model is actually a probability value, which is used to evaluate the quality (or rationality) of the target login value.
[0216] As mentioned above, the evaluation value of the target login value is determined based on the evaluation value of each other login feature associated with the target login value, and the evaluation value of other login features is determined based on other login values of the other login features. Therefore, the evaluation value of the target login value can reflect the health status of each target login value to a certain extent. For example, through the health status of each target login value, it can be distinguished which IP addresses are frequently used by abnormal users (such as hackers) and which longitudes and latitudes are frequently used by abnormal users. After determining the health status of each longitude and latitude and each IP address, the type of the user can be determined based on the IP address and longitude and latitude of the specified user at the time of login (the corresponding login features can be obtained by burying points in the computer of the specified user), such as determining whether the user is an abnormal user, or whether the user is a normal user, etc.; or determining whether the user meets a certain type level, such as determining the user's health level, determining the user's abnormal user level, etc.
[0217] For another example, if the login logs of the users in step S101 are all login logs of the same user, the type of the user can be determined through the health status of each target login value, such as determining whether the user is a hacker user, or whether the user is a normal user, etc.; or determining whether the user meets a certain type level, such as determining the user's health level, determining the user's hacker level, etc.
[0218] After determining the user type, a service strategy that matches the user may be further determined. The specific service strategy may be determined based on the user's level.
[0219] The method provided by the present application first determines the evaluation value of any other login feature under each target login value of any target login feature in the login log through other login values corresponding to other login features, and then, for each target login value of any target login feature in the login log, the evaluation value of each other login feature associated with the target login value is input into the target login feature evaluation model to obtain the evaluation value of the target login value, and finally, the type of user in the login log is determined according to the evaluation value of each target login value. This method of determining the user type can distinguish the user type without the user generating actual operation behavior, changes the idea of determining the user type, and enables the behavior of determining the user type to be advanced, which provides convenience for subsequent other operations (such as identifying service strategies according to user types, and providing services to users according to the determined service strategies).
[0220] In actual use, for some login logs, the login log contains a large number of log records. The log record here refers to the record generated by a login behavior. As shown in Table 1, each row is a log record. If the user's behavior is relatively regular, then each log record should be basically the same. For example, if the user only logs in to a website in the company, then the user's login IP address and login latitude and longitude for the website should be the same. Furthermore, under normal circumstances, the user's log records for the website are the same. But in fact, the same IP address may be used by different users, such as all employees of a company share an IP address. Most of these employees may be normal users, and a small number are non-normal users (abnormal users). Therefore, if a large number of users are normal users, then there will be a large number of almost identical normal log records in the login log of the IP address. In other words, in some cases, most of the log records in a login log are the same. In this case, directly analyzing based on the login log is not accurate enough, mainly because the abnormal data may be overwhelmed by a large amount of normal data. In response to this situation, the inventor of the present application believes that before determining the evaluation values of other login features, the log records in the login log should be deduplicated to ensure the accuracy of the evaluation values of other login features.
[0221] In specific implementation, there are two deduplication methods that can be used. The first deduplication method is to deduplicate log records based on all login features in all log records. The second deduplication method is to deduplicate other login values, target login values, and reference values that need to calculate the evaluation value.
[0222] The first deduplication method mentioned above is overall deduplication. The specific deduplication strategy can be: compare any two log records, and if the similarity between the two log records exceeds a predetermined value, delete one of the log records. In this way, each log record in the login log is deduplicated to ensure that the similarity between any two log records in the login log after deduplication is low. Here, the similarity of the log records can be determined based on the number of values of the same login features between the two log records, or it can be determined based on the type of values of the same login features between the two log records.
[0223] For example, there are two log records. The login features of the first log record are: IP address 0.0.0.1; user ID, 0001; login latitude and longitude, (15, 45); login time, 7:45; the login features of the second log record are: IP address 0.0.0.1; user ID, 0001; login latitude and longitude, (25, 41); login time, 12:30. It can be seen that the same login features in these two log records are IP address and user ID, and other login features are different. At this time, the similarity of the two log records can be determined based on the types of the two login features of IP address and user ID. The similarity of the two log records can also be determined based on 2 (the values of the two login features are the same).
[0224] When the first deduplication method is implemented, the similarity can be set according to user needs. For example, one of the log records can be deleted only when the values of each login feature in the two log records are the same; or one of the log records can be deleted only when the values of N login features in the two log records are the same, where N can be a positive integer greater than or equal to 1.
[0225] The first deduplication method is overall deduplication. With this deduplication method, the login log only needs to be deduplicated once. However, this deduplication method is not targeted because it does not deduplicate every other login feature. When performing subsequent calculations, it is still possible that the abnormal data cannot be discovered due to excessive normal data.
[0226] Furthermore, the second deduplication method is to deduplicate the log records according to other login values, target login values and reference values that need to calculate the evaluation value. It can be seen that the second deduplication method is a refined and targeted deduplication. However, compared with the first deduplication method, the second deduplication method requires that when the solution is implemented, after the target login value is determined, each other login feature needs to be deduplicated once, that is, each time the evaluation value of another login feature under any target login value is calculated, deduplication must be performed once, and the workload of deduplication is relatively large (the deduplication here refers to deduplication of all log records of the login log in step S101, and the log records that meet the target login value and other login values are deduplicated).
[0227] Here we need to explain the reference value. The reference value is a login value in the login log, or a deformed value of a login value. The purpose of using the reference value to participate in deduplication is to ensure that the deduplication result is reasonable enough. In other words, if only the target login value and other login values are used for deduplication, the deduplication result is very simple, which is not conducive to subsequent calculations. Usually, the reference value can be an identity identification number (such as an ID number) automatically generated by the system or the user's mobile phone number.
[0228] That is, the second deduplication method is adopted. In step S102, based on the user's login log, for any other login feature under each target login value of any target login feature in the login log, according to the other login values corresponding to the other login feature, the evaluation value of the other login feature is determined, which can be implemented as follows:
[0229] Step 1021, for any target login feature in the login log, de-duplicate the log records in the login log according to the target login value, the reference login value and other login values;
[0230] Step 1022, based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature.
[0231] When using the target login value, reference login value, and other login values for deduplication, it is also necessary to compare any two log records. If at least one of the target login value, reference login value, and other login values in the two log records is different, then the two log records are retained; if the target login value, reference login value, and other login values in the two log records are the same, then delete one of the two log records. In fact, if the target login value, reference login value, and other login values in the two log records are the same, it means that the two log records are exactly the same in terms of the three parameters of the target login value, reference login value, and other login values, so one of them can be deleted.
[0232] It should be noted that in the case of certain features, the user's mobile phone number may be used as another login feature. In this case, if the user's mobile phone number is also used as a reference login feature, it is not very meaningful to use the reference login feature for auxiliary deduplication. In this case, you can choose to cut off a certain number of digits of the mobile phone number, usually the first X (usually 6-8) digits of the mobile phone number as the reference login feature. Therefore, the first X (usually 6-8) digits of the mobile phone number generally do not change much, and the changes are usually the last few digits.
[0233] The second deduplication method is illustrated below with an example, see Table 5.
[0234] Table 5
[0235]
[0236]
[0237] Table 5 shows part of the contents of 11 log records in the login log before deduplication (usually each log record will have more than ten login features. Since only the three login features listed in Table 5 are considered for deduplication this time, the other login features are not listed). In Table 5, the target login feature is the IP address, the reference login feature is the ID number, and the other login features are the login interface.
[0238] The result of deduplication of the login logs shown in Table 5 is shown in Table 6:
[0239] Table 6
[0240] IP address Login interface ID Number 0.0.0.1 0 12345678910 0.0.0.1 0 22222222222 0.0.0.1 1 22222222223 0.0.0.1 1 22222222224 0.0.0.1 1 22222222225 0.0.0.1 2 22222222226 0.0.0.1 3 12345678911 0.0.0.1 4 12345678911
[0241] By comparing Tables 5 and 6, it can be seen that one log record numbered 1 and 2 in the original Table 5 has been deleted, one log record numbered 3 and 4 in the original Table 6 has been deleted, and one log record numbered 5 and 6 in the original Table 5 has been deleted.
[0242] That is, in any two log records in Table 6, the value of at least one login feature (IP address, ID number and login interface) is different.
[0243] By adopting this deduplication method, the deduplicated login logs can be used to calculate the evaluation values of other login features, which can improve the accuracy and pertinence of the calculation.
[0244] When calculating the evaluation values of other login features, if the evaluation values of other login features are calculated based on the login logs after deduplication, then the evaluation values of other login features input into the target login feature evaluation model are the evaluation values of other login features calculated using the login logs after deduplication. Furthermore, using the login logs after deduplication to implement step S102 can improve the accuracy of the overall solution.
[0245] After deduplication of login logs, the evaluation values of other login features can be calculated in a more accurate manner.
[0246] Specifically, step 1022, based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, according to other login values corresponding to the other login feature, determines the evaluation value of the other login feature, which can be implemented as follows:
[0247] Step 10221, based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to the specified other login values.
[0248] Here, when calculating the proportion of the number of reference login values corresponding to the specified other login values, you can first determine the number of reference login values corresponding to the value of each other login value based on the values of the other login values; then, based on the proportion of the number of reference login values corresponding to the specified other login values to the number of reference login values corresponding to a certain number of other specified login values, this proportion is also the proportion of the number of reference login values corresponding to the specified other login values.
[0249] As shown in Table 6, when determining the evaluation value of the login interface (other login features), it can be determined according to the ratio of the number of ID numbers corresponding to login interface 0. Specifically, the number of ID numbers corresponding to login interface 0 is 2 (12345678910 and 222222222222), so when determining the evaluation value of the login interface according to the ratio of the number of ID numbers corresponding to login interface 0, the evaluation value of the login interface can be determined according to the ratio of 2. Specifically, the ratio can refer to the ratio of the number of ID numbers corresponding to login interface 0 (2) to the number of all log records (8) (the ratio is 1 / 4).
[0250] As described above, the proportion of the number of reference login values corresponding to other specified login values may also refer to: the ratio of the number of reference login values corresponding to other specified login values to the number of reference login values corresponding to a plurality of other specified login values. As shown in Table 6, the proportion of step 10221 may refer to the ratio of the number of ID numbers corresponding to login interface 0 (2) to the number of ID numbers corresponding to login interface 1 (3), the number of ID numbers corresponding to login interface 3 (1) and the number of ID numbers corresponding to login interface 4 (1) (the ratio is 2 / 5). The proportion of step 10221 may also refer to the ratio of the number of ID numbers corresponding to login interface 1 (3) to the sum of the number of ID numbers corresponding to login interface 1 (3) and the number of ID numbers corresponding to login interface 4 (1) (the ratio is 3 / 4).
[0251] The evaluation value of the login interface may also be determined by the number of ID numbers corresponding to login interface 2 , the number of ID numbers corresponding to login interface 3 , or the number of ID numbers corresponding to login interface 4 .
[0252] That is, in the above solution, the specified other login value may refer to a certain other login value. That is, step 10221 may be implemented as follows:
[0253] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to a specified other login value.
[0254] In addition, the specified other login values may also refer to a plurality of other login values, that is, as shown in Table 6, when determining the evaluation value of the login interface (other login features), it can be determined according to the ratio of the sum of the number of ID numbers corresponding to login interface 0 and the number of ID numbers corresponding to login interface 1. Specifically, the number of ID numbers corresponding to login interface 0 is 2 (12345678910 and 222222222222); the number of ID numbers corresponding to login interface 1 is 3 (22222222223, 22222222224 and 22222222225). Then, when determining the evaluation value of the login interface according to the ratio of the sum of the number of ID numbers corresponding to login interface 0 and the number of ID numbers corresponding to login interface 1, the evaluation value of the login interface can be determined according to the ratio of 5 (2+3). Specifically, the ratio may refer to the ratio of the sum of the number of ID numbers corresponding to login interface 0 and the number of ID numbers corresponding to login interface 1 (5) to the number of all log records (8) (the ratio is 5 / 8).
[0255] Similarly, when determining the evaluation value of the login interface (other login features), it can be determined based on the ratio of the sum of the number of ID numbers corresponding to login interface 0 and the number of ID numbers corresponding to login interface 2; it can also be determined based on the ratio of the sum of the number of ID numbers corresponding to login interface 3 and the number of ID numbers corresponding to login interface 4. It can also be determined based on the ratio of the sum of the number of ID numbers corresponding to login interface 1, the number of ID numbers corresponding to login interface 3, and the number of ID numbers corresponding to login interface 4. That is, step 10221 can be implemented as follows:
[0256] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the ratio of the number of reference login values corresponding to at least two specified other login values.
[0257] As described above, in step 10221, the ratio of the number of reference login values corresponding to the specified other login values may refer to: the ratio of the number of reference login values corresponding to the specified one or more other login values to the number of all log records after deduplication. Furthermore, as a preferred solution, in the method provided by the present application, step 10221 may be implemented as follows:
[0258] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the ratio of the number of reference login values corresponding to the specified other login values according to the number of reference login values corresponding to the specified other login values and the total number of log records in the deduplicated login log;
[0259] Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to the specified other login values.
[0260] As described above, when determining the evaluation value of the other login feature according to the ratio of the number of reference login values corresponding to the specified other login values, the evaluation value of the other login feature can be determined according to the ratio of the number of reference login values corresponding to any (specified) one or more other login values. After calculation, the inventor of the present application believes that if the specified other login values are reasonably constrained, the final evaluation value of the other login feature can be made more recognizable.
[0261] Specifically, there are three situations in which other login values are specified:
[0262] In the first case, the specified other login values specifically include only one value, namely, the first other login value, which is one or more other login values with the largest number of corresponding reference login values;
[0263] In the second case, the designated other login values specifically include only one value, namely, the second other login value, and the second other login value is the other login value whose number of corresponding reference login values exceeds the predetermined value;
[0264] In the third case, the specified other login values specifically include two values, namely the first other login value and the second other login value, wherein the first other login value is one or more other login values with the largest number of corresponding reference login values; the second other login value is the other login value with the number of corresponding reference login values exceeding the predetermined value.
[0265] As shown in Table 6, if the first other login value is the other login value that corresponds to the largest number of reference login values, then the first other login value refers to login interface 1, where login interface 1 corresponds to 3 ID numbers;
[0266] As shown in Table 6, if the first other login value is the two other login values corresponding to the largest number of reference login values, then the first other login value refers to login interface 1 and login interface 0, where login interface 1 corresponds to 3 ID numbers; login interface 0 corresponds to 2 ID numbers.
[0267] As shown in Table 6, if the predetermined value is 2, the second other login value refers to login interface 1, where login interface 1 corresponds to 3 ID numbers, which exceeds 2;
[0268] As shown in Table 6, if the preset value is 1, the second other login value refers to login interface 1 and login interface 0, where login interface 1 corresponds to 3 ID numbers; login interface 0 corresponds to 2 ID numbers, and the ID numbers corresponding to these two login interfaces are both greater than 1.
[0269] The third case mentioned above is a combination of the first two cases, that is, the other login values can include both the first other login value and the second other login value. If the other login values can include both the first other login value and the second other login value, then when determining the evaluation value of the other login feature based on the proportion of the number of reference login values corresponding to the specified other login values, there are two ways to calculate the evaluation value of the other login feature:
[0270] The first method of calculating the evaluation value of the other registered numerical values is to calculate the evaluation value of one other registered numerical value based on the first other registered numerical value and the second other registered numerical value.
[0271] The specific calculation method may be to calculate the evaluation value of the first other login feature and the evaluation value of the second other login value respectively, and then calculate the evaluation value of the other login value according to the evaluation value of the first other login value and the evaluation value of the second other login value.
[0272] Specifically, the evaluation value of the first other login value may be calculated in the following manner:
[0273] First, according to the number of reference login values corresponding to the first other login values and the total number of log records in the login log after deduplication, determine the number ratio of the reference login values corresponding to the first other login values;
[0274] Determining an evaluation value of the first other login value according to a ratio of the number of reference login values corresponding to the first other login value;
[0275] Specifically, the evaluation value of the second other login value may be calculated as follows:
[0276] First, according to the number of reference login values corresponding to the second other login values and the total number of log records in the login log after deduplication, determine the number ratio of the reference login values corresponding to the first other login values;
[0277] An evaluation value of the second other login value is determined according to a quantity ratio of the reference login values corresponding to the second other login values.
[0278] After determining the evaluation value of the first other login value and the evaluation value of the second other login value, a weighted calculation method can be used to calculate the evaluation values of the other login values based on the first other login value and the second other login value.
[0279] The second method of calculating the evaluation value of other login values is to calculate the evaluation value of the first other login value according to the first other login value, and to calculate the evaluation value of the second other login value according to the second other login value, and then, use the evaluation value of the first other login value and the evaluation value of the second other login value as the evaluation values of the other login values.
[0280] Furthermore, when there are two evaluation values of other login values (the evaluation value of the first other login value and the evaluation value of the second other login value), when determining the target login value, it can be determined based on the evaluation values of these two other login values at the same time.
[0281] Specifically, when there are two evaluation values of other login values (the evaluation value of the first other login value and the evaluation value of the second other login value), the corresponding relationship shown in Table 2 should be adjusted to the situation shown in Table 7 below:
[0282] Table 7
[0283]
[0284] As can be seen from Table 7, each target login value corresponds to the evaluation values of two other login values (the evaluation value of the first other login value and the evaluation value of the second other login value). Furthermore, when calculating the evaluation value of the first login time and the evaluation value of the second login time corresponding to the target login value 0.0.0.1, they are calculated based on the same other login values (10:01, 11:12; 18:41, 21:34).
[0285] In other words, in this case, each target login value corresponds to two groups of evaluation values of other login features, namely, the evaluation value of the first group of other login features and the evaluation value of the second group of other login features; wherein, the evaluation value of the first group of other login features is composed of evaluation values of multiple different types of first other login features, and the evaluation value of the second group of other login features is composed of evaluation values of multiple different types of second other login features. Furthermore, when calculating the evaluation value of the target login value, the calculation can be performed based on these two groups of features respectively. The calculation method can be to calculate the evaluation value of the first target login value based on the evaluation value of the first group of other login features, and to calculate the evaluation value of the second target login value based on the evaluation value of the second group of other login features. Then, in step S104, the type of user in the login log is determined based on the evaluation value of each first target login value and the evaluation value of each second target login value.
[0286] It is also possible to calculate the evaluation value of the first target login value based on the evaluation value of the first group of other login features, and calculate the evaluation value of the second target login value based on the evaluation value of the second group of other login features. Then, the evaluation value of the corresponding target login value is calculated based on the evaluation value of the first target login value and the evaluation value of the second target login value. The subsequent method of determining the type of user in the login log is the same as the method of determining the type of user in the login log based on the evaluation value of each of the target login values introduced in the previous article, and will not be repeated here.
[0287] As introduced in the previous text, the method provided by the present application can obtain login logs of a certain user or certain users (target users), or login logs of unspecified users collected in the past period of time (such as login logs generated based on login behaviors of unspecified users accepted by a server).
[0288] Furthermore, the method provided in this application has two typical usage scenarios. The first usage scenario is to determine the type of a specific user (in this scenario, the login log obtained is the login log of the specific user), and the second usage scenario is to determine the types of certain users in the login logs generated in a certain period of time (in this scenario, the login log obtained is the login log generated in a certain period of time). The following introduces these two usage scenarios respectively:
[0289] The first usage scenario is to determine the type of a specific user.
[0290] like Figure 2 As shown, step S101 can be implemented as follows:
[0291] S1011, obtaining the identity number of the target user;
[0292] S1012, searching for a login log related to the target user according to the identity identification number of the target user as the login log of the user;
[0293] like Figure 3 As shown, step S104 can be implemented as follows:
[0294] S1041, according to the correspondence between the target login value and the target feature, and according to the evaluation value of each target login value, determining the evaluation value of each target feature;
[0295] S1042: Determine the type of the target user according to the evaluation value of each target feature.
[0296] In step S1011, the user's identification number is used to distinguish different users, that is, each user can usually have only one identification number, and the identification numbers of any two users are different. Specifically, there are many kinds of numbers that can be used as identification numbers (mainly there are many kinds of numbers that can distinguish different users), such as mobile phone numbers, ID card numbers, user names used by users when registering, or ID numbers automatically assigned by the system after the user completes registration.
[0297] A specific user can be located through the identity identification number. Then, in step S1012, a login log related to the target user can be searched according to the identity identification number of the target user as the login log of the user.
[0298] Here, the log found according to the identity identification number of the target user may be a log containing a target log record, wherein the target log record refers to a log record in which the identity identification number in the log record is the identity identification number of the target user.
[0299] As shown in Table 8, a login log of the target user whose identity identification number (ID number) is 12345678911 is extracted from the login log shown in Table 1.
[0300] Table 8
[0301]
[0302] As shown in Table 8, there are two log records with the identity identification number 12345678911, and these two log records together form the login log shown in Table 8.
[0303] Furthermore, step S102 and step S103 are performed according to the login log related to the target user, and then the type of the user determined in the login log can only be the type of the target user.
[0304] It should be noted that the same user may log in under different IP addresses. For example, the user may log in to a specific website both at home and at work. In other words, each login feature in the log record corresponding to the same user may be different. Not only the IP address may be different, but also the device number, longitude and latitude information may be different. Therefore, when judging the type of target user, it is necessary to make a comprehensive judgment based on the evaluation value of each target login value.
[0305] As shown in Table 9, the corresponding relationship between the evaluation value of the target login value and the target feature is listed.
[0306] Table 9
[0307]
[0308] Table 9 lists 6 records related to the target user with ID number 12345678911. As can be seen from Table 9, the user has three types of latitude and longitude information and IP address, and then, when step S1041 is implemented, the evaluation value of the latitude and longitude information (the evaluation value of the target feature) can be calculated according to the evaluation value of the corresponding target login value (0.68, 0.78 and 0.96); similarly, the evaluation value of the IP address (the evaluation value of the target feature) can be calculated according to the evaluation value of the corresponding target login value (0.24, 0.85 and 0.55).
[0309] Here, according to the evaluation value of the target login value, there are many ways to calculate the evaluation value of the target feature. For example, a weighted calculation method can be used to calculate it. The largest evaluation value of the target login value corresponding to the target feature can be directly used as the evaluation value of the target feature; or the smallest evaluation value of the target login value corresponding to the target feature can be directly used as the evaluation value of the target feature.
[0310] In step S1042, after determining the evaluation value of each target feature, the type of the target user can be determined according to the evaluation value of the target feature. The specific implementation methods of step S1042 can be roughly divided into two types, namely, a weighted calculation method and an extreme value determination method.
[0311] The weighted calculation method means that the evaluation value of the target user is calculated according to the evaluation value of each target feature, and finally the type of user is determined according to the evaluation value of the user. For example, the following rules can be set in advance: if the evaluation value of the target user is less than A, the target user is a safe user; if the evaluation value of the target user is greater than A and less than B, the target user is an approximately safe user; if the evaluation value of the target user is greater than B and less than C, the target user is an approximately abnormal user; if the evaluation value of the target user is greater than C and less than D, the target user is an abnormal user; among them, the values of A, B, C and D increase in sequence.
[0312] The extreme value determination method refers to determining the type of target users based on the maximum / minimum evaluation value among the evaluation values of each target feature.
[0313] Of course, in the specific implementation, before determining the type of the target user, the type of each target login feature can be determined according to the evaluation value of each target login feature; then the type of the target user can be determined according to the type of each target login feature. This method of first determining the type of the target login feature and then determining the type of the target user is similar to the method of determining the type of the target user according to the evaluation value of the target login feature, and will not be elaborated here.
[0314] Finally, it should be noted that in some cases, due to the influence of data integrity or model accuracy, the type of target user finally determined may have a certain deviation. Considering this situation, the inventor of this application believes that the user's operation record can be used for auxiliary judgment. That is, step S1042 can be implemented as follows:
[0315] Step 10421, obtaining the historical operation records of the target user;
[0316] Step 10422, determining the type of the target user according to the evaluation value of each target feature of the target user and the historical operation record of the target user.
[0317] In step 10421, the historical operation record refers to the Internet operations that the target user has performed. Generally speaking, the historical operation record should record not only the login operation, but also other operations, such as the operation of selecting a service order, the operation of returning a service order, etc. The historical operation record can reflect the user's behavior habits to a certain extent, and then based on the evaluation value of the target feature, the target user's historical operation record can be used to more accurately determine the type of the target user.
[0318] Specifically, the historical operation record can be understood as an adjustment coefficient (such as a scaling coefficient), and the size of the adjustment coefficient is determined according to whether the behavior of the target user reflected by the historical operation record is normal.
[0319] The second usage scenario is to use the login logs of unspecified users collected over a period of time to determine the type of a specific user in the login logs.
[0320] Step S101 can be implemented as follows:
[0321] Step 1013, obtaining the login log generated by the target server within a predetermined time;
[0322] Step S104 can be implemented as follows:
[0323] Step 1043, according to the evaluation value of the target login value, the type of each target login value;
[0324] Step 1044, determining the type of the target user in the login log according to the type of each target login value and the target login value of the target user in the login log.
[0325] In step 1013, the target server is a designated server to be detected, and the target server may be a server that generates a certain service order. The login log generated within the predetermined time may be a log record generated within 24 hours, or a log record generated in a certain time period in the past.
[0326] In step 1043, according to the evaluation value of the target login value and the type of each target login value, the execution purpose of this step is to judge the health of each target login feature. For example, the execution result of this step can be that a certain target login value is frequently used by abnormal users. Furthermore, in step 1044, the type of the target user can be judged according to the target login value of the target user. For example, if the IP address (a type of target login value) frequently used by the target user is an address frequently used by abnormal users, the target user can be considered as an abnormal user.
[0327] Similar to the first implementation, in some cases, due to the influence of data integrity or model accuracy, the type of target user finally determined may have a certain deviation. Considering this situation, the inventor of the present application believes that the user's operation record can be used for auxiliary judgment. That is, step 1044 can be implemented as follows:
[0328] Step 10441, respectively obtain the historical operation records of each target user;
[0329] Step 10442, determining the type of each target user based on the type of each target login value, the target login value of the target user in the login log, and the historical operation record of the target user.
[0330] In step 10442, the purpose of using the historical operation record is to assist in determining the type of the target user. For example, the target user has 3 target login values, one of which is the same as the target login value of the abnormal user, but the historical operation record of the target user is normal. In this case, the target user should not be identified as an abnormal user.
[0331] For another example, there are three target login values for the target user, two of which are the same as the target login values of the abnormal user, but the target user's historical operation records are generally normal. In this case, the target user should be identified as an abnormal user.
[0332] Here, the difference between the specific implementation of step 1043 and the specific implementation of step S1042 is that in step 1043, the types of multiple unspecified target users are determined, while in step 1042, the type of a specific target user is determined.
[0333] As described above, after determining the type of user, more targeted services can be provided to the user to improve service quality or efficiency.
[0334] That is, the method provided in this application may also include the following steps:
[0335] Step 401, determining the service policy of the target user according to the correspondence between the type of the target user and the service policy;
[0336] Step 402: Provide service to the target user according to the determined service strategy.
[0337] In step 401, the correspondence between the type of target user and the service policy should be pre-stored in the system. For example, a table as shown in Table 10 below may be pre-stored in the system.
[0338] Table 10
[0339] serial number Type of target users Service Strategy 1 Security User Strategy A 2 Approximate safe user Strategy B 3 Approximate abnormal users Strategy C 4 Abnormal users Strategy D
[0340] Table 10 shows the service strategy corresponding to each type, in which the safety levels of safe users, nearly safe users, nearly abnormal users, and abnormal users are reduced one by one. Specifically, the service strategy can be formulated according to the actual situation. If the method of the present application is applied to the field of online car-hailing, the corresponding service strategy may be to require users with too low a safety level to pay a deposit in advance, or to pay the fare in advance. It may also be to stop issuing coupons to users with too low a safety level; it may also be to increase the proportion of coupons issued to users whose safety level exceeds a predetermined threshold. It may also be to adjust the service process according to the type of user. The service process here may refer to the order of providing different service operations to users. For example, in the online car-hailing service, the server will issue a service order to the driver only after the user pays the fare; or the driver needs to pay the fare only after completing the service order. By formulating different strategies for different types of users, the service is more targeted.
[0341] More specifically, the service policy of the target user can be determined according to the service request sent by the target user. That is, in the method provided in the present application, the service policy of the target user is determined according to the correspondence between the type of the target user and the service policy, which can be implemented as follows:
[0342] Obtain the service request sent by the target user;
[0343] A service policy for the target user is determined according to the type of the service request and the type of the target user.
[0344] Here, the target user sending a service request indicates that the target user expects to receive a certain service. If the service request is an online car-hailing service request, the service request may be any one of a private car service request, a taxi service request, a ride-sharing service request, and an express service request.
[0345] In specific implementation, based on Table 10, the type of service request constraint can be added, that is, under the specified service request type, different user types correspond to different service strategies. For example, the determined service strategy can be: when the service request type is express service, the higher the user's abnormality, the more the user's coupon issuance amount will be reduced; when the service request type is private car service, the higher the user's abnormality, the higher the amount required for the user to prepay.
[0346] In the method provided in the present application, the evaluation value of the target login value is obtained by inputting the evaluation value of each other login feature associated with the target login value into the target login feature evaluation model. The training process of the target login feature evaluation model is briefly described below.
[0347] The target login feature evaluation model is trained in the following way:
[0348] Step 501, obtaining a training sample set; the training sample set includes positive training samples and negative training samples;
[0349] Step 502: Use the positive training samples and negative training samples in the training sample set to train the target login feature evaluation model respectively.
[0350] In step 501, both the positive training samples and the negative training samples are samples of the model used for training, and the difference between the two is the type. In fact, the process of training the model can be understood as letting the model understand the corresponding attributes of the positive training samples, and the corresponding attributes of the negative training samples. After the training of the target login feature evaluation model is completed using the positive training samples and the negative training samples, and then the evaluation values of each other login feature associated with the target login value are input into the target login feature evaluation model, the model will naturally judge whether the target login value is more like a positive sample or more like a negative sample. The value output by the target login feature evaluation model can also be understood as the probability that the target login value is a positive sample, or the probability that the target login value is a negative sample.
[0351] In step 502, when the target login feature evaluation model is trained using positive training samples or negative training samples, the parameters in the samples are input into the target login feature evaluation model, and then a loss function is generated based on the difference between the result output by the target login feature evaluation model (the model outputs a probability value, which indicates the probability that the input parameter is a positive training sample or a negative training sample) and the standard result (usually 0 is used to represent the standard result of a negative training sample, and 1 is used to represent the standard result of a positive training sample), and then the target login feature evaluation model is trained based on the loss function.
[0352] Generally, positive training samples and negative training samples should be extracted from a large number of samples by manual distinction. However, in order to improve the accuracy of sample extraction, the method provided in this application recommends the following method for obtaining positive training samples and negative training samples.
[0353] The process of obtaining positive training samples is as follows:
[0354] Obtain a sample login log of a first sample user from historical login logs;
[0355] According to the sample login log of the first sample user, for any other login feature under each target login value of any target login feature in the sample login log of the first sample user, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0356] According to the sample login log of the first sample user, for each target login value of any target login feature in the sample login log of the first sample user, the evaluation value of each other login feature associated with the target login value is used as a positive training sample.
[0357] The historical login log may be a login log generated after any unspecified user logs into a server. The process of obtaining the sample login log of the first sample user from the historical login log can be understood as randomly obtaining the login log of a certain user, or randomly obtaining the login log under a certain ID number. Since the proportion of abnormal users is usually very small in actual work, the sample login log directly obtained from the historical login log of a server can be considered as the login log of a normal user.
[0358] Then, it is necessary to extract the data used to train the target login feature evaluation model from the login log of the first sample user.
[0359] Specifically, the data used for training is the evaluation value of each other login feature associated with a specified target login value, and the process of determining the training sample is actually the same as the process of determining the evaluation value of each other login feature associated with a target login value in step S102 and step S103. Please refer to the previous description for details, which will not be repeated here.
[0360] The process of determining negative training samples is similar to the process of obtaining positive training samples, but the source of negative training samples is different from that of positive training samples. Specifically, negative training samples are based on the abnormal user identity identification number determined by the identification technology in the relevant technology (such as determining whether the user is an abnormal user based on the user's operation behavior), and the sample login log of the abnormal user is found, and then the sample login log of the abnormal user is used to determine the negative training samples.
[0361] Specifically, the process of obtaining negative training samples can be as follows:
[0362] Obtain sample login logs of abnormal users;
[0363] According to the sample login log of the abnormal user, for any other login feature under each target login value of any target login feature in the sample login log of the abnormal user, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0364] According to the sample login log of the abnormal user, for each target login value of any target login feature in the sample login log of the abnormal user, the evaluation value of each other login feature associated with the target login value is used as a negative training sample.
[0365] Except for the difference in the source of the sample login logs, the method for determining negative training samples is basically the same as that for determining positive training samples, and both can refer to the same process of determining the evaluation value of each other login feature associated with a target login value in step S102 and step S103. Please refer to the previous description for details, which will not be repeated here.
[0366] In actual implementation, in order to ensure the quality of negative training samples, the samples can also be filtered based on the evaluation average of other login features corresponding to each target login value in the sample login log of abnormal users.
[0367] Specifically, the steps include, based on the sample login log of the abnormal user, for each target login value of any target login feature in the sample login log of the abnormal user, taking the evaluation value of each other login feature associated with the target login value as a negative training sample, including:
[0368] According to the sample login logs of multiple abnormal users, for each target login value of any target login feature in the sample login logs of each abnormal user, according to the evaluation value of each other login feature associated with the target login value, calculate the evaluation average value of other login features corresponding to each target login value;
[0369] For each sample login log of the abnormal user, determine the evaluation value of each sample login log according to the evaluation average value of other login features corresponding to the target login value in each sample login log;
[0370] Evaluation value of sample login logs, selecting negative sample users from multiple abnormal users;
[0371] According to the sample login log of the negative sample user, for each target login value of any target login feature in the sample login log of the negative sample user, the evaluation value of each other login feature associated with the target login value is used as a negative training sample.
[0372] The process of calculating the evaluation value of each other login feature associated with the target login value is similar to the calculation process in step S103, and will not be repeated here.
[0373] By using the evaluation value of each other login feature associated with the target login value, the evaluation average of other login features corresponding to each target login value is calculated, and each sample login log is evaluated using the evaluation average of other login features corresponding to the target login value in each sample login log (one abnormal user only corresponds to one sample login log), so that the abnormal user corresponding to the sample login log with an evaluation average value higher than a preset threshold can be used as a negative sample user. This method of determining negative sample users further improves the accuracy of determining negative sample users on the basis of the discrimination technology in the relevant technology, ensuring the accuracy of training.
[0374] After the negative sample users are determined, the evaluation values of each other login feature associated with the specified target login value can be directly used as negative training samples.
[0375] The process of determining positive training samples and negative training samples may refer to the implementation process of step S102 and step S103 in the above text, and will not be repeated here.
[0376] Corresponding to the above method, the embodiment of the present application further provides a user type identification device, including:
[0377] The first acquisition module is used to obtain the user's login log;
[0378] A first determination module is used to determine, based on the user's login log, for any other login feature under each target login value of any target login feature in the login log, according to the other login values corresponding to the other login feature, an evaluation value of the other login feature;
[0379] A first input module is used for inputting the evaluation values of each other login feature associated with each target login value of any target login feature in the login log according to the user's login log, into the target login feature evaluation model to obtain the evaluation value of the target login value;
[0380] The second determination module is used to determine the type of user in the login log according to the evaluation value of each target login value.
[0381] In some embodiments, the first determining module includes:
[0382] A first deduplication unit, configured to deduplicate log records in the login log according to a target login value, a reference login value, and other login values for any target login feature in the login log;
[0383] The first determination unit is used to determine the evaluation value of any other login feature under each target login value of any target login feature in the deduplicated login log according to the other login values corresponding to the other login feature.
[0384] In some embodiments, the first determining unit includes:
[0385] The first determination subunit is used to determine the evaluation value of any other login feature under each target login value of any target login feature in the deduplicated login log based on the deduplicated login log, according to the proportion of the number of reference login values corresponding to the specified other login values.
[0386] In some embodiments, the first determining subunit includes:
[0387] A second determination subunit is used to determine, based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, the number of reference login values corresponding to the specified other login values and the total number of log records in the deduplicated login log, the proportion of the number of reference login values corresponding to the specified other login values;
[0388] The third determination subunit is used to determine the evaluation value of any other login feature under each target login value of any target login feature in the deduplicated login log based on the deduplicated login log, according to the proportion of the number of reference login values corresponding to the specified other login values.
[0389] In some embodiments, the specified other login value includes any one or more of the following values: a first other login value and a second other login value;
[0390] The first other registered values are one or more other registered values with the largest number of corresponding reference registered values;
[0391] The second other registered values are other registered values whose number of corresponding reference registered values exceeds a predetermined value.
[0392] In some embodiments, the first acquisition module includes:
[0393] A first acquisition unit, used to acquire an identity number of a target user;
[0394] A first search unit, configured to search for a login log related to the target user as the user's login log according to the identity identification number of the target user;
[0395] The second determination module includes:
[0396] A second determining unit, configured to determine the evaluation value of each target feature according to the corresponding relationship between the target login value and the target feature and according to the evaluation value of each target login value;
[0397] The third determining unit is used to determine the type of the target user according to the evaluation value of each target feature.
[0398] In some embodiments, the third determining unit includes:
[0399] A first acquisition subunit is used to acquire the historical operation records of the target user;
[0400] The fourth determination subunit is used to determine the type of the target user according to the evaluation value of each target feature of the target user and the historical operation record of the target user.
[0401] In some embodiments, the first acquisition module includes:
[0402] A second acquisition unit is used to acquire a login log generated by the target server within a predetermined time;
[0403] The second determination module includes:
[0404] a fourth determining unit, configured to determine a type of each target login value according to the evaluation value of the target login value;
[0405] The tenth determining unit is used to determine the type of the target user in the login log according to the type of each target login value and the target login value of the target user in the login log.
[0406] In some embodiments, the fourth determining unit includes:
[0407] A first acquisition subunit is used to respectively acquire the historical operation records of each target user;
[0408] The fifth determining subunit is used to determine the type of each target user according to the type of each target login value, the target login value of the target user in the login log, and the historical operation record of the target user.
[0409] In some embodiments, the apparatus further comprises:
[0410] A third determination module is used to determine the service policy of the target user according to the correspondence between the type of the target user and the service policy;
[0411] The service module is used to provide services to target users according to the determined service strategy.
[0412] In some embodiments, the third determination module includes:
[0413] A third acquisition unit is used to acquire a service request sent by a target user;
[0414] The fifth determining unit is used to determine the service policy of the target user according to the type of the service request and the type of the target user.
[0415] In some embodiments, the target login value includes any one or more of the following:
[0416] The IP address used when logging in, the device number used when logging in, and the latitude and longitude information when logging in;
[0417] Reference login values include any one or more of the following:
[0418] The user's mobile phone number and the user's identification number;
[0419] Other login values include any one or more of the following:
[0420] Login device value, user category value, and login behavior value.
[0421] In some embodiments, the login device value includes any one or more of the following:
[0422] System number of the login device, browser version number of the login device, processor version number of the login device, login software download channel number;
[0423] User category values include any one or more of the following:
[0424] The user's service level and historical usage time;
[0425] Login behavior values include any one or more of the following:
[0426] Service type number, login software version number, login time, login interface.
[0427] In some embodiments, the target login feature evaluation model is trained by the following modules:
[0428] A second acquisition module is used to acquire a training sample set; the training sample set includes positive training samples and negative training samples;
[0429] The training module is used to train the target login feature evaluation model using the positive training samples and the negative training samples in the training sample set.
[0430] In some embodiments, the second acquisition module includes:
[0431] A fourth acquisition unit, configured to acquire a sample login log of a first sample user from a historical login log;
[0432] A sixth determining unit, configured to determine, based on the sample login log of the first sample user, for any other login feature under each target login value of any target login feature in the sample login log of the first sample user, an evaluation value of the other login feature according to the other login value corresponding to the other login feature;
[0433] The seventh determination unit is used to use, based on the sample login log of the first sample user, for each target login value of any target login feature in the sample login log of the first sample user, the evaluation value of each other login feature associated with the target login value as a positive training sample.
[0434] In some embodiments, the second acquisition module includes:
[0435] A fifth acquisition unit, used to acquire a sample login log of an abnormal user;
[0436] An eighth determination unit is configured to determine, based on the sample login log of the abnormal user, for any other login feature under each target login value of any target login feature in the sample login log of the abnormal user, according to the other login value corresponding to the other login feature;
[0437] The ninth determination unit is used to use, based on the sample login log of the abnormal user, for each target login value of any target login feature in the sample login log of the abnormal user, the evaluation value of each other login feature associated with the target login value as a negative training sample.
[0438] In some embodiments, the ninth determining unit includes:
[0439] A first calculation subunit is configured to calculate, based on the sample login logs of multiple abnormal users, for each target login value of any target login feature in the sample login logs of each abnormal user, an evaluation average value of other login features corresponding to each target login value according to the evaluation value of each other login feature associated with the target login value;
[0440] a sixth determining subunit, configured to determine, for each of the sample login logs of the abnormal user, an evaluation value of each sample login log according to an evaluation average of other login features corresponding to a target login value in each sample login log;
[0441] The first selection subunit is used for evaluating the sample login log and selecting negative sample users from multiple abnormal users;
[0442] The seventh determination subunit is used to, based on the sample login log of the negative sample user, for each target login value of any target login feature in the sample login log of the negative sample user, use the evaluation value of each other login feature associated with the target login value as a negative training sample.
[0443] Corresponding to the above method, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the user type identification method are executed.
[0444] like Figure 4 As shown, it is a schematic diagram of an electronic device provided in an embodiment of the present application, and the electronic device 1000 includes: a processor 1001, a memory 1002 and a bus 1003, and the memory 1002 stores execution instructions. When the electronic device is running, the processor 1001 communicates with the memory 1002 through the bus 1003, and the processor 1001 executes the steps of the user type identification method stored in the memory 1002.
[0445] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0446] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0447] The units described as separate components may or may not be physically separated, and the components shown as units 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0448] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0449] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0450] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for identifying user types, It is characterized in that include: Get the user's login log; According to the user's login log, for any other login feature under each target login value of any target login feature in the login log, determine the evaluation value of the other login feature according to the other login value corresponding to the other login feature; According to the user's login log, for each target login value of any target login feature in the login log, the evaluation value of each other login feature associated with the target login value is input into the target login feature evaluation model to obtain the evaluation value of the target login value; Determining the type of users in the login log according to the evaluation value of each target login value, wherein the types of users include normal users and abnormal users; The step of determining the evaluation value of any other login feature under each target login value of any target login feature in the login log according to the login value corresponding to the other login feature comprises: For any target login feature in any two login logs, determine whether to deduplicate the two login logs by comparing the target login values, reference login values and other login values of the two login logs; Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the other login values corresponding to the other login feature.
2. The method according to claim 1, It is characterized in that According to the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, according to other login values corresponding to the other login feature, determining an evaluation value of the other login feature, including: Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to the specified other login values.
3. The method according to claim 2, It is characterized in that According to the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, according to the number ratio of the reference login values corresponding to the specified other login values, determining the evaluation value of the other login feature, including: Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the ratio of the number of reference login values corresponding to the specified other login values according to the number of reference login values corresponding to the specified other login values and the total number of log records in the deduplicated login log; Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the proportion of the number of reference login values corresponding to the specified other login values.
4. The method according to any one of claims 2 or 3, It is characterized in that The specified other login values include any one or more of the following values: a first other login value and a second other login value; The first other registered values are one or more other registered values with the largest number of corresponding reference registered values; The second other registered values are other registered values whose number of corresponding reference registered values exceeds a predetermined value.
5. The method according to claim 1, It is characterized in that Get the user's login log, including: Get the target user's identification number; Searching for a login log related to the target user according to the identity identification number of the target user as the login log of the user; Determining the type of user in the login log according to the evaluation value of each target login value includes: According to the correspondence between the target login value and the target feature, the evaluation value of each target feature is determined according to the evaluation value of each target login value; According to the evaluation value of each target feature, the type of target user is determined.
6. The method according to claim 5, It is characterized in that According to the evaluation value of each target feature, the type of target user is determined, including: Obtain the historical operation records of the target user; The type of the target user is determined based on the evaluation value of each target feature of the target user and the historical operation record of the target user.
7. The method according to claim 1, It is characterized in that Get the user's login log, including: Obtain the login logs generated by the target server within a predetermined time; Determining the type of user in the login log according to the evaluation value of each target login value includes: Determining the type of each target login value according to the evaluation value of the target login value; The type of the target user in the login log is determined according to the type of each target login value and the target login value of the target user in the login log.
8. The method according to claim 7, It is characterized in that According to the type of each target login value and the target login value of the target user in the login log, the type of the target user in the login log is determined, including: Obtain the historical operation records of each target user respectively; The type of each target user is determined according to the type of each target login value, the target login value of the target user in the login log, and the historical operation record of the target user.
9. The method according to any one of claims 5 to 8, It is characterized in that Also includes: Determine the service strategy for the target user based on the correspondence between the type of the target user and the service strategy; Provide services to target users according to the determined service strategy.
10. The method according to claim 9, It is characterized in that Determine the service strategy for target users based on the relationship between the target user type and the service strategy, including: Obtain service requests issued by target users; A service policy for the target user is determined according to the type of the service request and the type of the target user.
11. A user type identification device, It is characterized in that include: The first acquisition module is used to obtain the user's login log; A first determination module is used to determine, based on the user's login log, for any other login feature under each target login value of any target login feature in the login log, according to the other login values corresponding to the other login feature, an evaluation value of the other login feature; A first input module is used for inputting the evaluation values of each other login feature associated with each target login value of any target login feature in the login log according to the user's login log, into the target login feature evaluation model to obtain the evaluation value of the target login value; A second determination module is used to determine the type of user in the login log according to the evaluation value of each target login value, and the type of user includes a normal user and an abnormal user; The first determining module is further configured to: For any target login feature in any two login logs, determine whether to deduplicate the two login logs by comparing the target login values, reference login values and other login values of the two login logs; Based on the deduplicated login log, for any other login feature under each target login value of any target login feature in the deduplicated login log, determine the evaluation value of the other login feature according to the other login values corresponding to the other login feature.
12. An electronic device, It is characterized in that include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the user type identification method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the user type identification method according to any one of claims 1 to 10 are executed.
