User classification method and device based on transaction data, medium and equipment

By identifying users and related users of the same transaction object in online transactions and calculating business similarity, the problem of low efficiency in identifying risky users in the existing technology is solved, and efficient user classification and risk judgment are achieved.

CN118628248APending Publication Date: 2024-09-10ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410853853.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

When existing technology identifies risky users in online transactions, the method based on media relationships is inefficient and requires a large amount of calculation, making it difficult to meet the judgment needs under a huge amount of transaction data.

Method used

By receiving the transaction data set, it determines the relevant users who have traded with the same transaction object, calculates the business similarity between users, performs clustering to obtain user classification results, and reduces unnecessary consumption of computing resources.

Benefits of technology

It improves the efficiency of user category classification, reduces the waste of computing resources, and improves the efficiency of judging risky users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628248A
    Figure CN118628248A
Patent Text Reader

Abstract

The invention discloses a user classification method and device based on transaction data, a medium and equipment, after a server receives a transaction data set containing transaction data of each user, for each user, according to the transaction data set, a user who transacts with the user in at least one transaction object is determined as a related user, and the related user is classified according to the transaction data set. And then, according to transaction data in the transaction data set, determining the business similarity between the user and the related user corresponding to the user, and according to the business similarity between each user and the corresponding related user, obtaining a classification result for each user. According to the method, the user who has transacted with the user in the same transaction object is limited as the related user, and only the business similarity between the user and the corresponding related user is calculated, so that the consumption of calculation resources is greatly reduced, and the efficiency of classifying the users based on the business similarity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of risk management, and in particular to a user classification method, device, medium and equipment based on transaction data. Background Art

[0002] With the development of information technology, the number of transactions based on the Internet has increased. Today, the amount of transaction data generated on the Internet every day is becoming increasingly large. If we want to effectively control online transactions, capital risk control management is an indispensable part.

[0003] The control of online transactions mainly focuses on how to identify users with higher transaction risks through the performance of different users in transactions, that is, identifying risky users, and then preventing these risky users from trading. In the past, the media involved in transactions by risky users (including registered mobile phone numbers, ID numbers, network addresses, or mobile phone models, etc.) were often similar. Therefore, it is possible to determine whether a transaction event was initiated by a risky user based on the media relationship corresponding to different transaction events. For example, if a mobile phone number is determined to be used by a risky user, any user who performs a transaction operation using that mobile phone number can be considered a risky user.

[0004] Although medium relationships can be used to determine to a certain extent whether a user is a risky user, over time, risky users gradually begin to avoid conducting a large number of transactions through the same medium, which leads to a gradual decrease in the accuracy of risk identification based on medium relationships.

[0005] Through analysis, it was found that according to the transaction records of risky users, it is possible to effectively discover that the transaction behaviors of different risky users are highly similar when they conduct multiple transactions. Based on this discovery, a new risk identification method was conceived, that is, through the user's transaction records, the similarity of the transaction records between each two users is compared, and then the users are divided into several groups according to the similarity of the transaction records between the users, and then the several groups are classified to determine which groups belong to the risky user group.

[0006] However, this judgment method based on user transaction records has high requirements for the amount of computation, and often requires traversing the similarities between the transaction records corresponding to all users. For usage scenarios with a small number of users, it can still meet the needs of the scenario, but for the increasingly large amount of transaction data, the amount of computation required for this judgment method is extremely large. Taking 100,000 users as an example, if the similarity between the transaction records corresponding to each two users is to be calculated in a traversal form, the amount of computation is as high as billions, which directly affects the efficiency of judging whether a user is a risky user.

[0007] Therefore, how to effectively improve the efficiency of user classification is an urgent problem to be solved. Summary of the invention

[0008] This specification provides a user classification method, device, medium and equipment based on transaction data to partially solve the above-mentioned problems existing in the prior art.

[0009] This manual adopts the following technical solutions:

[0010] This specification provides a user classification method based on transaction data, the method comprising:

[0011] Receiving a transaction data set, wherein the transaction data set includes historical transaction data of each user;

[0012] For each user, according to the transaction data set, determine users who have conducted transactions with the user at least on the same transaction object as the related users corresponding to the user;

[0013] For each user, determining the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set;

[0014] The users are clustered according to the business similarity between each user and the corresponding related users to obtain classification results for the users.

[0015] Optionally, for each user, determining the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set specifically includes:

[0016] For each user, determining a set of common objects that the user and the user corresponding to the user have traded together based on the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set;

[0017] The business similarity between the user and the related users corresponding to the user is determined according to the common object set.

[0018] Optionally, determining the business similarity between the user and the user corresponding to the user according to the common object set specifically includes:

[0019] Determine the transaction behavior sequence corresponding to the user according to the transaction sequence between the user and each transaction object in the common object set, and determine the transaction behavior sequence corresponding to the user's corresponding related user according to the transaction sequence between the user and each transaction object in the transaction object set;

[0020] The business similarity between the user and the related users corresponding to the user is determined according to the transaction behavior sequence corresponding to the user and the transaction behavior sequence of the related users corresponding to the user.

[0021] Optionally, before determining the business similarity between the user and the user corresponding to the user according to the common object set, the method further includes:

[0022] Determine, according to the transaction data of the user in the transaction data set and the transaction data of the related users corresponding to the user in the transaction data set, a set of all transaction objects traded by the user and the related users corresponding to the user as a full object set;

[0023] Determining the business similarity between the user and the user corresponding to the user according to the common object set specifically includes:

[0024] The business similarity between the user and the related users corresponding to the user is determined according to the number of transaction objects included in the common object set and the number of transaction objects included in the full object set.

[0025] Optionally, clustering the users according to the business similarity between each user and the corresponding related users to obtain classification results for the users specifically includes:

[0026] Clustering the users according to the business similarity between each user and the corresponding related users to obtain initial user clusters;

[0027] For each initial user cluster, determining a clustering degree corresponding to the initial user cluster according to a sum of business similarities between at least one user included in the initial user cluster and corresponding related users of the at least one user in the initial user cluster;

[0028] With the goal of maximizing the clustering degree corresponding to each initial user cluster, each initial user cluster is adjusted to obtain each target user cluster;

[0029] According to the target user clusters, a classification result for each user is obtained.

[0030] Optionally, clustering the users according to the business similarity between each user and the corresponding related users to obtain classification results for the users specifically includes:

[0031] Clustering each user according to the business similarity between each user and the corresponding related users to obtain target user clusters;

[0032] For each target user cluster, the transaction data of each user included in the target user cluster is input into a preset classification model to determine the user group category corresponding to the target user cluster;

[0033] According to the user group category corresponding to each target user cluster, a classification result for each user is obtained.

[0034] Optionally, the method further comprises:

[0035] Business risk control is performed based on the classification results.

[0036] This specification provides a user classification device based on transaction data, including:

[0037] A receiving module, configured to receive a transaction data set, wherein the transaction data set includes historical transaction data of each user;

[0038] A first determination module is used to determine, for each user, based on the transaction data set, users who have conducted transactions with the user at least on the same transaction object as the related users corresponding to the user;

[0039] A second determination module is used to determine, for each user, the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set;

[0040] The classification module is used to cluster the users according to the business similarity between each user and the corresponding related users, so as to obtain the classification results for the users.

[0041] Optionally, the second determination module is specifically used to determine, for each user, a set of common objects that the user and the user's corresponding related users have traded together based on the transaction data of the user in the transaction data set and the transaction data of the user's corresponding related users in the transaction data set; and determine the business similarity between the user and the user's corresponding related users based on the common object set.

[0042] Optionally, the second determination module is specifically used to determine the transaction behavior sequence corresponding to the user according to the transaction sequence between the user and each transaction object in the common object set, and to determine the transaction behavior sequence of the user's corresponding related users according to the transaction sequence between the related users corresponding to the user and each transaction object in the transaction object set; determine the business similarity between the user and the user's corresponding related users according to the transaction behavior sequence corresponding to the user and the transaction behavior sequence of the user's corresponding related users.

[0043] Optionally, the device further comprises:

[0044] A third determination module is specifically configured to determine, based on the transaction data of the user in the transaction data set and the transaction data of the corresponding user in the transaction data set, a set of all transaction objects traded by the user and the corresponding user as a full object set;

[0045] The second determination module is specifically configured to determine the business similarity between the user and the corresponding related users of the user according to the number of transaction objects included in the common object set and the number of transaction objects included in the full object set.

[0046] Optionally, the classification module is specifically used to cluster the users according to the business similarity between each user and their corresponding related users to obtain initial user clusters; for each initial user cluster, determine the clustering degree corresponding to the initial user cluster according to the sum of the business similarities between at least one user included in the initial user cluster and the corresponding related users of the at least one user in the initial user cluster; with the goal of maximizing the clustering degree corresponding to each initial user cluster, adjust each initial user cluster to obtain target user clusters; and obtain classification results for each user based on the target user clusters.

[0047] Optionally, the classification module is specifically used to cluster the users according to the business similarity between each user and their corresponding related users to obtain target user clusters; for each target user cluster, input the transaction data of each user contained in the target user cluster into a preset classification model to determine the user group category corresponding to the target user cluster; and obtain the classification results for each user according to the user group category corresponding to each target user cluster.

[0048] Optionally, the device further comprises:

[0049] The execution module is specifically used to execute business risk control according to the classification results.

[0050] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned user classification method based on transaction data is implemented.

[0051] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned user classification method based on transaction data when executing the program.

[0052] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0053] In a user classification method based on transaction data provided in the present specification, after receiving a transaction data set containing the historical transaction data of each user, the server determines, for each user, users who have conducted transactions with the user on at least the same transaction object based on the transaction data set, as related users corresponding to the user, and then determines the business similarity between the user and the related users corresponding to the user based on the transaction data set of the user and the transaction data of the related users corresponding to the user in the transaction data set, and then clusters the users based on the business similarity between each user and their respective related users to obtain a classification result for each user.

[0054] It can be seen from the above method that before calculating the business similarity between users through transaction data, this specification limits the users who have conducted transactions with the user on the same transaction object as related users, and only calculates the business similarity between the user and the corresponding related users. This greatly reduces the computing resources required for calculating the business similarity between users through transaction data, thereby improving the efficiency of classifying users based on business similarity. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The exemplary embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification.

[0056] In the figure:

[0057] Figure 1 A flowchart of a user classification method based on transaction data in this specification;

[0058] Figure 2 A schematic diagram of a user cluster provided in this specification;

[0059] Figure 3 A schematic diagram of the fund risk control process provided in this manual;

[0060] Figure 4 A schematic diagram of a recommendation for information provided in this manual;

[0061] Figure 5 A schematic diagram of a user classification device based on transaction data provided in this specification;

[0062] Figure 6 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0064] At present, the volume of transactions based on the Internet is increasing. To date, the daily transaction data volume of online transactions has reached an extremely large amount. With the increase in transaction volume, it is inevitable that there are some risky users among the users who conduct transactions, such as users who steal other people's credit cards and other high-risk users. Therefore, if we want to achieve effective management and control of online transactions, risk control management of funds, that is, fund risk control, is essential.

[0065] In the past, capital risk control mainly judged whether a user was a risky user based on the medium involved in the user's transaction. In addition to judging based on the medium involved in the user's transaction, there was also a judgment method that traversed the similarity between the transaction objects corresponding to each two users. However, with the further escalation of risk control confrontation, the demand for efficient judgment of risky users has been further improved. However, although the traversal judgment method can accurately judge whether a user is a risky user, its calculation level is also extremely large because it needs to traverse and calculate the similarity between the transaction objects corresponding to each two users. In addition, for users with extremely low similarity between the two corresponding transaction objects, the similarity between the transaction objects corresponding to the two users will also be calculated. This invalid calculation affects the efficiency of judging risky users and is difficult to meet the demand for judgment efficiency of capital risk control.

[0066] As mentioned above, judging whether a user is a risky user by traversing the similarity between the transaction users corresponding to each two users has high usability. However, the traversal nature of the judgment method leads to low efficiency in judging whether a user is a risky user, which is difficult to meet the efficiency requirements of fund risk control.

[0067] Based on this, this specification provides a user classification method based on transaction data, which effectively improves the efficiency of classifying user categories.

[0068] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0069] Figure 1 The following is a flow chart of a user classification method based on transaction data in this specification. The user classification method based on transaction data specifically includes the following steps:

[0070] S101: Receive a transaction data set.

[0071] The present specification provides a user classification method based on transaction data, the execution subject of which can be a terminal device such as a laptop computer, a desktop computer, or a client installed in the terminal device, or a server. For the sake of ease of description, the following only takes the server as an example of the execution subject to illustrate a user classification method based on transaction data provided in this specification.

[0072] The server that needs to classify user categories can classify user categories according to the user's historical transaction data. First, the server needs to obtain a transaction data set containing each user's historical transaction data. Among them, this historical transaction data is not limited by any time range in this manual, and can be set to any time range. For example, the transaction data set is all transaction data collected on a certain platform within a time range. It can be collected every two hours, or every twenty-four hours, etc., depending on the capital risk control requirements of the business in actual application.

[0073] The transaction data set contains every transaction data in history, and each transaction data record the user's identification information and the transaction object involved. For example: User A trades with Merchant 1, User A trades with Merchant 2, User B trades with Merchant 3, User B trades with Merchant 1, User C trades with Merchant 3, and User C trades with Merchant 2. This is an extremely simple transaction data set, in which each transaction data contains corresponding users and transaction objects.

[0074] It should be noted that for e-commerce platforms, merchants are the transaction objects of users. However, for some businesses with relatively free transactions, there is no clear distinction between the two parties of the transaction. For example, for second-hand trading platforms, users can trade directly with each other, and for such businesses, users can be regarded as a special transaction object. It can be seen that for each transaction data, the transaction parties corresponding to the transaction data can be divided into users and transaction objects according to the nature of the actual business.

[0075] S102: For each user, according to the transaction data set, determine users who have conducted transactions with the user at least on the same transaction object as the related users corresponding to the user.

[0076] After receiving the transaction data set, the server can determine the business similarity between every two users based on the transaction data set, and thus classify the user categories corresponding to the users. However, if the business similarity is obtained by directly traversing the similarity between the transaction objects corresponding to every two users, there will often be a large number of business similarities with low values ​​in the calculated business similarities, and these business similarities with low values ​​do not have sufficient reference value, which leads to a waste of computing resources in the traversal nature of calculating business similarities, thereby reducing the efficiency of classifying user categories.

[0077] Therefore, before calculating the business similarity between different users, it is possible to first determine which users have a correlation relationship, so that only calculations are performed for every two users with a correlation relationship, thereby improving the efficiency of classifying user categories.

[0078] After receiving the transaction data set, the server can determine the related users corresponding to each user according to the transaction data set. For each user, the server can determine the users who have conducted transactions with the user at least with the same transaction object according to the transaction data set as the related users corresponding to the user. For a user who has conducted transactions with multiple transaction objects, if another user has conducted transactions with any transaction object that the user has traded with, the two users can be regarded as two users with a related relationship. For two users who do not have the related relationship mentioned here, there is no need to calculate the business similarity of the two users.

[0079] Next, the transaction data set described in step S101 will be used to explain how the relevant users are determined:

[0080] Continuing with the above example, taking user A as an example, user A and user B have both conducted transactions with merchant one, and user A and user C have both conducted transactions with merchant two. It can be determined that there is a correlation between user A and user B, and there is a correlation between user A and user C.

[0081] From the above examples, it can be seen that related users actually reflect a mutual relationship, so two users with a related relationship can be regarded as corresponding related users. From another perspective, for each transaction object, every two users among all users who have traded with the transaction object can be regarded as users with a related relationship.

[0082] It should be noted that, in the present specification, the determination of users and related users corresponding to users is that two users who trade with the same trading object have a related relationship and are related users to each other. However, in actual applications, two users who trade with two, three, or more of the same trading objects at the same time can also be regarded as two users who have a related relationship and are related users to each other.

[0083] S103: For each user, determine the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set.

[0084] After determining the related users corresponding to each user, the server can determine the business similarity between the user and the related users corresponding to the user based on the transaction data of the user in the transaction data set and the transaction data of the related users corresponding to the user in the transaction data set. That is, for every two users with a related relationship, the business similarity between the two users is determined based on the transaction data set.

[0085] For two users with a related relationship, the business similarity between the two users represents the similarity of the trading habits of the two users. Specifically, the business similarity can be determined by the number of transaction objects that the two users have traded together. The more transaction objects the two users have traded together, the higher the business similarity between the two users.

[0086] If the number of transaction objects traded by two users is to be determined, it is necessary to first determine the transaction objects traded by each of the two users based on the transaction data in the transaction data set, and then determine the transaction object set traded by the two users based on the transaction objects traded by the two users, as the common object set corresponding to the two users. Then, the server can determine the business similarity between the two users based on the number of transaction objects in the common object set.

[0087] Continuing with the above example, taking user A and user B who have a related relationship as an example, the transaction data about user A's transactions in the transaction data set include: user A's transactions with merchant 1, user A's transactions with merchant 2; the transaction data about user B's transactions in the transaction data set include: user B's transactions with merchant 3, user B's transactions with merchant 1; it can be determined that the transaction objects that user A has traded include merchant 1 and merchant 2, and the transaction objects that user B has traded include merchant 1 and merchant 3. Then the common object set corresponding to user A and user B includes: merchant 1. According to the number of transaction objects in the common object set corresponding to user A and user B, the business similarity between user A and user B can be determined.

[0088] In addition to the above-mentioned method of determining business similarity, the server can also determine the business similarity between two users in other ways. For example, the server can determine the common object set and the full object set corresponding to the two related users, and then determine the business similarity between the two users based on the number of transaction objects contained in the common object set corresponding to the two users and the number of transaction objects contained in the full object set corresponding to the two users. The greater the ratio of the number of transaction objects contained in the common object set corresponding to the two users to the number of transaction objects contained in the full object set corresponding to the two users, the higher the business similarity between the two users. Among them, the full object set corresponding to the two related users is determined based on the transaction data of each of the two users in the transaction data set, and is a set of all transaction objects that the two users have traded, which does not contain duplicate transaction objects.

[0089] Continuing with the above example, before determining the common object set between user A and user B, the server can also determine the full object set corresponding to the two users. The full object set corresponding to user A and user B includes: transaction object 1, transaction object 2, and transaction object 3. Furthermore, the server can determine the business similarity between the user and the corresponding related users based on the ratio between the number of transaction objects included in the common object set corresponding to user A and user B and the number of transaction objects included in the full object set corresponding to user A and user B.

[0090] It should be noted that for two users with a correlation, the business similarity can also be determined by other factors. Specifically, if the business similarity is to be determined by other factors, it is necessary to obtain one or more data corresponding to each transaction data when collecting each transaction data to determine the transaction data set, so as to determine the business similarity based on these data. The data corresponding to the transaction data can be of various types, for example, the transaction time corresponding to the transaction data, the transaction commodity corresponding to the transaction data, the transaction amount corresponding to the transaction data, etc.

[0091] Next, the process of determining the business similarity according to the transaction time corresponding to each transaction data is described: when receiving the transaction data set, the server also needs to identify the transaction time field corresponding to each transaction data in the transaction data set to sort the transaction data in the transaction data set in time order. Then, for two users with a related relationship, the transaction behavior sequences corresponding to the two users are determined respectively according to the time sequence, and the business similarity between the user and the user corresponding to the user is determined according to the transaction behavior sequences corresponding to the two users.

[0092] The business similarity between two users can be determined by converting the transaction behavior sequence into a vector and then calculating the similarity between the vectors corresponding to the two users.

[0093] For example, after the server sorts each transaction data in the transaction data set according to the transaction time sequence corresponding to each transaction data, it can be determined that: user A's transaction with transaction object 1 precedes user A's transaction with transaction object 2, and user B's transaction with transaction object 1 precedes user B's transaction with transaction object 3. Then, the transaction behavior sequence corresponding to user A is {transaction object 1; transaction object 2}, and the transaction behavior sequence corresponding to user B is {transaction object 1; transaction object 3}. The transaction behavior sequences corresponding to user A and user B are converted into vectors respectively, and then the similarity of the two vectors is calculated, and the obtained similarity can be used as the business similarity between user A and user B.

[0094] It should be noted that this specification does not specifically limit the method for determining business similarity, and it can be adjusted according to the richness of the data in the transaction data set received by the server.

[0095] S104: Clustering each user according to the business similarity between each user and the corresponding related user to obtain a classification result for each user.

[0096] After determining the business similarity between each user and the corresponding related users, the server can cluster the users to obtain a classification result for each user.

[0097] For clustering of each user, a method for clustering such as a connectivity graph or a fast community discovery algorithm (Fast Unfolding of Communities in Large Networks, Louvain) can be used. Of course, other methods that can be used for clustering can also be used. This specification does not make specific limitations. For ease of understanding, a method for classifying users by clustering user clusters will be described below. Specifically:

[0098] The server can cluster each user according to the business similarity between each user and their corresponding related users to obtain each initial user cluster, and then for each initial user cluster, determine the sum of the business similarities between at least one user included in the initial user cluster and at least one user's corresponding related user in the initial user cluster as the clustering degree corresponding to the initial user cluster. Figure 2 , the clustering degree corresponding to the user cluster is explained.

[0099] Figure 2A schematic diagram of a user cluster provided in this specification.

[0100] Figure 2 The user cluster shown in FIG. 1 includes five users: user E, user F, user G, user H, and user I. Figure 2 The value on the connecting line between two users is the business similarity between the two users, among which the business similarity between user E and user F is 0.4, the business similarity between user E and user I is 0.4, the business similarity between user F and user G is 0.4, the business similarity between user F and user I is 0.8, the business similarity between user G and user H is 0.4, the business similarity between user G and user I is 0.4, and the business similarity between user H and user I is 0.8. This user cluster contains a total of seven users and the business similarities between the corresponding related users in this user cluster, and their sum can be used as the clustering degree corresponding to the user cluster.

[0101] After determining the clustering degree corresponding to each initial user cluster, the server can maximize the clustering degree corresponding to each initial user cluster, transfer users between different initial user clusters, adjust each initial user cluster, obtain each target user cluster, and then obtain a classification result for each user based on each target user cluster, wherein each user in each user cluster belongs to the same user group.

[0102] Next, the process of the server determining the clustering degree corresponding to each initial user cluster and adjusting each initial user cluster will be described:

[0103] The server can initially treat each user as an independent user cluster. Then, for each user, according to the maximum value of the business similarity between the user and the corresponding related users, the user and the user with the highest business similarity are clustered, so as to obtain an initial user cluster containing the user and the user with the greatest business similarity with the user. According to this operation mode, the server can obtain several initial user clusters. After determining each initial user cluster, the server can maximize the clustering degree corresponding to each initial user cluster as the goal, and transfer the user between different user clusters. For each user, if the clustering degree of the initial user cluster increases more than the clustering degree of the user cluster before the transfer after the user is transferred to any initial user cluster, the user is transferred to the initial user cluster with the largest increase in clustering degree. Through this transfer method, each initial user cluster is adjusted multiple times to obtain each target user cluster, and then the classification result for each user is obtained according to each target user cluster. After the server clusters each user according to the business similarity between each user and the corresponding related users to obtain each target user cluster, it can input the transaction data of each user contained in the target user cluster into the preset classification model for each target user cluster to determine the user group category corresponding to the target user cluster. After the classification model determines the user group category corresponding to each target user cluster according to the input data, for the target user cluster, the user category corresponding to each user in the target user cluster is the user category corresponding to the user group category corresponding to the target user cluster. For example, if the user group category corresponding to a target user cluster is a tourist user category, all users in the target user cluster can be regarded as tourist users. That is, according to the user group category corresponding to each target user cluster, the classification result for each user is obtained.

[0104] For the training of the classification model, it is necessary to first obtain several user samples of known user categories, and then for each user sample, input the transaction data of the user sample into the classification model to be trained, and use the user category output by the classification model as the predicted category corresponding to the user sample, and minimize the predicted category and actual category corresponding to the user as the optimization goal, and then the classification model can be trained. Of course, other training methods can be used to train the classification model, and this manual only provides a feasible model training method.

[0105] After determining the classification results for each user, the server can perform corresponding business risk control measures for the classified risky user data, such as stopping transactions, freezing funds, uploading risky user data to the security department, etc. Figure 3 shown.

[0106] Figure 3 A schematic diagram of the fund risk control process provided in this manual.

[0107] After collecting the transaction data of each user, the server clusters each user according to their transaction data, obtains the user group category to which each user belongs, and marks the risky user group. In this way, whenever a transaction request is received from a user, it can be detected whether the user belongs to the marked user group. If so, the transaction is stopped immediately. Otherwise, the transaction is considered to be relatively safe and the corresponding transaction processing is performed.

[0108] It can be seen from the above method that, before calculating the business similarity between users through transaction data, the server limits users who have conducted transactions with the user on the same transaction object as related users, and only calculates the business similarity between the user and the corresponding related users, which greatly reduces the required computing resources for calculating the business similarity between users through transaction data, thereby improving the efficiency of classifying each user based on business similarity, effectively improving the efficiency of classifying user categories, and improving the efficiency of subsequent business risk control based on the user categories corresponding to each classified user. Of course, after obtaining the classification results for each user, the server can also provide the user category information of each user to other terminals, servers, or other devices, so that other devices can perform other operations based on the user category information.

[0109] Next, we will combine Figure 4 How to perform an information recommendation method based on the classified user categories corresponding to each user is described.

[0110] Figure 4 This is a schematic diagram of information recommendations provided in this manual.

[0111] After the server determines the user category of each user based on the transaction data of each user, whenever the user wants to browse products, the device used by the user sends a product information access request to the server. After receiving the user's product information access request, the server finds the user group to which the user belongs among the determined user groups, and then determines the recommended products for the user based on the browsing records of each user in the user group to which the user belongs, and then recommends the determined recommended products to the user for the user to browse. The user information obtained by the server is authorized by the user.

[0112] The above is a user classification method based on transaction data provided by one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding user classification device based on transaction data, such as Figure 5 shown.

[0113] Figure 5 A schematic diagram of a user classification device based on transaction data provided in this specification specifically includes:

[0114] A receiving module 501 is used to receive a transaction data set, wherein the transaction data set includes historical transaction data of each user;

[0115] A first determining module 502 is used to determine, for each user, based on the transaction data set, users who have conducted transactions with the user at least on the same transaction object as the related users corresponding to the user;

[0116] A second determination module 503 is used to determine, for each user, the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set;

[0117] The classification module 504 is used to cluster the users according to the service similarity between each user and the corresponding related users, so as to obtain the classification results for the users.

[0118] Optionally, the second determination module 503 is specifically used to determine, for each user, a set of common objects that the user and the user's corresponding related users have traded together based on the transaction data of the user in the transaction data set and the transaction data of the user's corresponding related users in the transaction data set; and determine the business similarity between the user and the user's corresponding related users based on the common object set.

[0119] Optionally, the second determination module 503 is specifically used to determine the transaction behavior sequence corresponding to the user according to the transaction sequence between the user and each transaction object in the common object set, and to determine the transaction behavior sequence of the related users corresponding to the user according to the transaction sequence between the related users corresponding to the user and each transaction object in the transaction object set; determine the business similarity between the user and the related users corresponding to the user according to the transaction behavior sequence corresponding to the user and the transaction behavior sequence of the related users corresponding to the user.

[0120] Optionally, the device further comprises:

[0121] The third determination module 505 is specifically configured to determine, based on the transaction data of the user in the transaction data set and the transaction data of the corresponding user in the transaction data set, a set of all transaction objects traded by the user and the corresponding user as a full object set;

[0122] The second determination module 503 is specifically configured to determine the business similarity between the user and the user's corresponding related users according to the number of transaction objects included in the common object set and the number of transaction objects included in the full object set.

[0123] Optionally, the classification module 504 is specifically used to cluster the users according to the business similarity between each user and their corresponding related users to obtain initial user clusters; for each initial user cluster, determine the clustering degree corresponding to the initial user cluster according to the sum of the business similarities between at least one user included in the initial user cluster and the corresponding related users of the at least one user in the initial user cluster; with the goal of maximizing the clustering degree corresponding to each initial user cluster, adjust each initial user cluster to obtain target user clusters; and obtain a classification result for each user according to the target user clusters.

[0124] Optionally, the classification module 504 is specifically used to cluster the users according to the business similarity between each user and their corresponding related users to obtain target user clusters; for each target user cluster, input the transaction data of each user contained in the target user cluster into a preset classification model to determine the user group category corresponding to the target user cluster; and obtain the classification results for each user according to the user group category corresponding to each target user cluster.

[0125] Optionally, the device further comprises:

[0126] The execution module 506 is specifically used to execute business risk control according to the classification result.

[0127] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A user classification method based on transaction data is provided.

[0128] This manual also provides Figure 6 The schematic structure diagram of the electronic device shown in FIG. Figure 6 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The user classification method based on transaction data. Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0129] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0130] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0131] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0132] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0133] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0134] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0135] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0137] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0138] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0139] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0140] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0141] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0143] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0144] The above description is only an embodiment of this specification and is not intended to limit this specification. For those skilled in the art, this specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification should be included in the scope of the claims of this application.

Claims

1. A user classification method based on transaction data, the method include: Receiving a transaction data set, wherein the transaction data set includes historical transaction data of each user; For each user, according to the transaction data set, determine users who have conducted transactions with the user at least on the same transaction object as the related users corresponding to the user; For each user, determining the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set; The users are clustered according to the business similarity between each user and the corresponding related users to obtain classification results for the users.

2. The method according to claim 1, for each user, determining the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set, specifically include: For each user, determining a set of common objects that the user and the user corresponding to the user have traded together based on the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set; The business similarity between the user and the related users corresponding to the user is determined according to the common object set.

3. The method according to claim 2, wherein the business similarity between the user and the user corresponding to the user is determined according to the common object set, specifically include: Determine the transaction behavior sequence corresponding to the user according to the transaction sequence between the user and each transaction object in the common object set, and determine the transaction behavior sequence corresponding to the user's corresponding related user according to the transaction sequence between the user and each transaction object in the transaction object set; The business similarity between the user and the related users corresponding to the user is determined according to the transaction behavior sequence corresponding to the user and the transaction behavior sequence of the related users corresponding to the user.

4. The method according to claim 2, before determining the business similarity between the user and the user corresponding to the user according to the common object set, the method further include: Determine, according to the transaction data of the user in the transaction data set and the transaction data of the related users corresponding to the user in the transaction data set, a set of all transaction objects traded by the user and the related users corresponding to the user as a full object set; Determining the business similarity between the user and the user corresponding to the user according to the common object set specifically includes: The business similarity between the user and the related users corresponding to the user is determined according to the number of transaction objects included in the common object set and the number of transaction objects included in the full object set.

5. The method according to claim 1, clustering each user according to the business similarity between each user and the corresponding related users to obtain the classification result for each user, specifically include: Clustering the users according to the business similarity between each user and the corresponding related users to obtain initial user clusters; For each initial user cluster, determining a clustering degree corresponding to the initial user cluster according to a sum of business similarities between at least one user included in the initial user cluster and corresponding related users of the at least one user in the initial user cluster; With the goal of maximizing the clustering degree corresponding to each initial user cluster, each initial user cluster is adjusted to obtain each target user cluster; According to the target user clusters, a classification result for each user is obtained.

6. The method according to claim 1, clustering each user according to the business similarity between each user and the corresponding related users to obtain the classification result for each user, specifically include: Clustering each user according to the business similarity between each user and the corresponding related users to obtain target user clusters; For each target user cluster, the transaction data of each user included in the target user cluster is input into a preset classification model to determine the user group category corresponding to the target user cluster; According to the user group category corresponding to each target user cluster, a classification result for each user is obtained.

7. The method of claim 1, further comprising: include: Business risk control is performed based on the classification results.

8. A user classification device based on transaction data, include: A receiving module, configured to receive a transaction data set, wherein the transaction data set includes historical transaction data of each user; A first determination module is used to determine, for each user, based on the transaction data set, users who have conducted transactions with the user at least on the same transaction object as the related users corresponding to the user; A second determination module is used to determine, for each user, the business similarity between the user and the user corresponding to the user according to the transaction data of the user in the transaction data set and the transaction data of the user corresponding to the user in the transaction data set; The classification module is used to cluster the users according to the business similarity between each user and the corresponding related users, so as to obtain the classification results for the users.

9. In the device as described in claim 8, the second determination module is specifically used to determine, for each user, a set of common objects that the user and the user's corresponding related users have traded together based on the transaction data of the user in the transaction data set and the transaction data of the user's corresponding related users in the transaction data set; and determine the business similarity between the user and the user's corresponding related users based on the common object set.

10. In the device as described in claim 9, the second determination module is specifically used to determine the transaction behavior sequence corresponding to the user according to the transaction sequence between the user and each transaction object in the common object set, and to determine the transaction behavior sequence of the user's corresponding related users according to the transaction sequence between the related users corresponding to the user and each transaction object in the transaction object set; determine the business similarity between the user and the user's corresponding related users according to the transaction behavior sequence corresponding to the user and the transaction behavior sequence of the user's corresponding related users.

11. The device according to claim 9, further comprising: include: A third determination module is specifically configured to determine, based on the transaction data of the user in the transaction data set and the transaction data of the corresponding user in the transaction data set, a set of all transaction objects traded by the user and the corresponding user as a full object set; The second determination module is specifically configured to determine the business similarity between the user and the corresponding related users of the user according to the number of transaction objects included in the common object set and the number of transaction objects included in the full object set.

12. In the device as described in claim 8, the classification module is specifically used to cluster the users according to the business similarity between each user and their corresponding related users to obtain each initial user cluster; for each initial user cluster, determine the clustering degree corresponding to the initial user cluster according to the sum of the business similarities between at least one user included in the initial user cluster and the corresponding related users of the at least one user in the initial user cluster; with the goal of maximizing the clustering degree corresponding to each initial user cluster, adjust each initial user cluster to obtain each target user cluster; and obtain a classification result for each user according to each target user cluster.

13. In the device as described in claim 8, the classification module is specifically used to cluster the users according to the business similarity between each user and the corresponding related users to obtain target user clusters; for each target user cluster, the transaction data of each user included in the target user cluster is input into a preset classification model to determine the user group category corresponding to the target user cluster; according to the user group category corresponding to each target user cluster, the classification results for each user are obtained.

14. The device according to claim 8, further comprising: include: The execution module is specifically used to execute business risk control according to the classification results.

15. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 7.

16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the program.