A data processing method, apparatus, electronic device, and storage medium
By obtaining and analyzing transaction records, building a transaction network, and determining the target transaction recipient, the problem of low manual review efficiency in mobile payment is solved, and more efficient and accurate identification and analysis of abnormal merchants are achieved.
Patent Information
- Application Number
- CN202410750250.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-12
AI Technical Summary
The identification and analysis of abnormal mobile payment merchants in the existing technology relies on manual review, which is susceptible to the subjective influence of experts and is inefficient, and cannot meet the needs of large-scale business scenarios.
By obtaining transaction records within a specified time range, the first transaction recipient is determined based on the transaction recipient's characteristic information and category, a transaction network is constructed, sub-networks are divided, the target transaction initiator and recipient are determined, and preset rules are applied for matching. Improve data processing efficiency and accuracy.
It improves the efficiency and accuracy of data processing, avoids unstable results caused by inconsistent evaluation standards, and quickly and accurately determines the target transaction recipient.
Smart Images

Figure CN118333620B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and in particular to a data processing method, device, electronic device and storage medium. Background Art
[0002] With the development of Internet technology, mobile payment has become a mainstream payment method. However, while mobile payment brings convenience to people, it also provides a new channel for illegal transactions. At present, the identification and analysis of abnormal merchants mainly rely on business experts to analyze the merchant's transaction details and transaction characteristics. The direct review by business experts is easily influenced by the subjective influence of experts, and the difference in the evaluation criteria of different experts will lead to poor stability of the review results. On the other hand, due to the large amount of review, the manual review method leads to low review efficiency, which is not suitable for the current business scenario requirements of large-scale mobile payment records. Summary of the invention
[0003] The present disclosure provides a data processing method, device, electronic device and storage medium to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a data processing method is provided, the method comprising: obtaining transaction records within a specified time range, the transaction records comprising a transaction initiator and a transaction recipient; determining a first transaction recipient from the transaction recipients according to feature information and categories of the transaction recipients; constructing a transaction network according to the transaction records, the nodes of the transaction network being the transaction initiator and the transaction recipient, the edge in the transaction network connecting the two nodes representing the existence of a transaction behavior between the transaction initiator and the transaction recipient; determining a target transaction initiator from the transaction initiator according to the transaction network; determining a second transaction recipient corresponding to the target transaction initiator based on a first preset rule; and determining the target transaction recipient according to the first transaction recipient and the second transaction recipient.
[0005] In one possible implementation mode, determining the first transaction recipient from the transaction recipients based on the characteristic information and the categories to which the transaction recipients belong includes: obtaining the attribute information of the transaction recipient and statistical information on the transaction status of the transaction recipient within a specified time range; determining the characteristic information of the transaction recipient based on the attribute information and the statistical information; classifying the transaction recipients according to the categories to which the transaction recipients belong; for the transaction recipients included in each category, clustering the transaction recipients according to the characteristic information of the transaction recipients to obtain clustering results; and determining the first transaction recipient based on the clustering results of each category.
[0006] In one possible implementation, determining a target transaction initiator from the transaction initiators based on the transaction network includes: dividing the transaction network into multiple sub-networks based on each transaction recipient and a transaction initiator connected to the transaction recipient; determining a transaction initiator included in each sub-network as a first transaction initiator; determining a target feature vector of the transaction initiator based on the transaction network and the multiple sub-networks; performing similarity matching between the target feature vectors of the remaining transaction initiators and the target feature vector of the first transaction initiator, and determining the remaining transaction initiators that meet a similarity threshold as second transaction initiators; and determining the target transaction initiator based on the first transaction initiator and the second transaction initiator.
[0007] In one possible implementation, determining the target feature vector of the transaction initiator based on the transaction network and multiple sub-networks includes: for each sub-network, determining a first feature vector of the transaction initiator based on the sub-network; determining a second feature vector of the transaction initiator based on the transaction network; and fusing the first feature vector of the same transaction initiator in different sub-networks and the second feature vector of the transaction initiator to obtain the target feature vector of the transaction initiator.
[0008] In one possible implementation, determining the first feature vector of the transaction initiator based on the sub-network includes: performing a random probability walk on the sub-network to generate multiple groups of neighboring sequences corresponding to the sub-network; generating a first feature vector for each node in the sub-network based on a vector generation model and the multiple groups of neighboring sequences; and determining the first feature vector corresponding to a node whose node type is the transaction initiator.
[0009] In one possible implementation, after constructing the transaction network according to the transaction records, the method further includes: pruning the transaction network according to a second preset rule.
[0010] According to a second aspect of the present disclosure, a data processing device is provided, the device comprising: an acquisition module, used to acquire transaction records within a specified time range, the transaction records including a transaction initiator and a transaction recipient; a first determination module, used to determine a first transaction recipient from the transaction recipients according to feature information and a category of the transaction recipient; a construction module, used to construct a transaction network according to the transaction records, the nodes of the transaction network being the transaction initiator and the transaction recipient, the edge in the transaction network connecting the two nodes representing the existence of a transaction behavior between the transaction initiator and the transaction recipient; a second determination module, used to determine a target transaction initiator from the transaction initiator according to the transaction network; the second determination module is further used to determine a second transaction recipient corresponding to the target transaction initiator based on a first preset rule; and a third determination module, used to determine the target transaction recipient according to the first transaction recipient and the second transaction recipient.
[0011] In one possible implementation mode, the first determination module includes: an acquisition submodule, used to acquire attribute information of the transaction recipient and statistical information of the transaction status of the transaction recipient within a specified time range; a first determination submodule, used to determine characteristic information of the transaction recipient based on the attribute information and the statistical information; a classification submodule, used to classify the transaction recipient according to the category to which the transaction recipient belongs; a processing submodule, used to cluster the transaction recipients included in each category according to the characteristic information of the transaction recipients to obtain a clustering result; and a second determination submodule, used to determine the first transaction recipient based on the clustering result of each category.
[0012] In one possible implementation mode, the second determination module includes: a division submodule, used to divide the transaction network into multiple subnetworks according to each transaction recipient and the transaction initiator connected to the transaction recipient; a third determination submodule, used to determine the transaction initiator included in each subnetwork as the first transaction initiator; a fourth determination submodule, used to determine the target feature vector of the transaction initiator according to the transaction network and the multiple subnetworks; a matching submodule, used to perform similarity matching between the target feature vectors of the remaining transaction initiators and the target feature vector of the first transaction initiator, and determine the remaining transaction initiators that meet the similarity threshold as the second transaction initiator; and a fifth determination submodule, used to determine the target transaction initiator according to the first transaction initiator and the second transaction initiator.
[0013] In one possible implementation, the fourth determination submodule is specifically used to determine, for each subnetwork, the first feature vector of the transaction initiator according to the subnetwork; determine the second feature vector of the transaction initiator according to the transaction network; and fuse the first feature vector of the same transaction initiator in different subnetworks and the second feature vector of the transaction initiator to obtain the target feature vector of the transaction initiator.
[0014] In one possible implementation, the fourth determination submodule is specifically used to perform a random probability walk on the subnetwork to generate multiple groups of neighboring sequences corresponding to the subnetwork; generate a first feature vector for each node in the subnetwork based on a vector generation model and the multiple groups of neighboring sequences; and determine the first feature vector corresponding to a node whose node type is a transaction initiator.
[0015] In one possible implementation, the device further includes: a processing module, configured to perform pruning processing on the transaction network according to a second preset rule after constructing the transaction network according to the transaction records.
[0016] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0020] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0021] The present invention discloses a data processing method, device, electronic device and storage medium, firstly obtains a transaction record within a specified time range, the transaction record includes a transaction initiator and a transaction receiver, on the transaction receiver side, determines a first transaction receiver from the transaction receiver according to the characteristic information and the category to which the transaction receiver belongs, then constructs a transaction network with the transaction initiator and the transaction receiver as nodes and the transaction behavior between the transaction initiator and the transaction receiver as edges, on the transaction initiator side, first determines a target transaction initiator from the transaction initiator according to the transaction network, and then determines a second transaction receiver corresponding to the target transaction initiator based on a first preset rule, thereby respectively determining the first transaction receiver from the transaction receiver side, determining the second transaction receiver from the transaction initiator side, and finally determining the target transaction receiver according to the first transaction receiver and the second transaction receiver. The application of this method improves the efficiency of data processing, avoids the instability of the results caused by inconsistent evaluation criteria, makes the data processing results more accurate, and determines the target transaction receiver more quickly and accurately.
[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0024] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0025] Figure 1 The following is a schematic diagram showing the implementation process of a data processing method according to an embodiment of the present disclosure. Figure 1 ;
[0026] Figure 2 The following is a schematic diagram showing the implementation process of a data processing method according to an embodiment of the present disclosure. Figure 2 ;
[0027] Figure 3 The following is a schematic diagram showing the implementation process of a data processing method according to an embodiment of the present disclosure. Figure 3 ;
[0028] Figure 4 A schematic diagram of a module of a data processing device according to an embodiment of the present disclosure is shown;
[0029] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0030] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0031] Figure 1 The following is a schematic diagram showing the implementation process of a data processing method according to an embodiment of the present disclosure. Figure 1 ,include:
[0032] Step 101, obtaining transaction records within a specified time range, where the transaction records include the transaction initiator and the transaction recipient.
[0033] Transaction records are used to record the transaction behavior of both parties. In this application, the two parties refer to the transaction initiator and the transaction recipient. In this application, the transaction initiator represents the consumer, and the transaction recipient represents the merchant. The transaction record refers to the payment or transfer behavior of the transaction initiator to the transaction recipient. The specified time range in this application can be set according to the actual situation.
[0034] Step 102: Determine a first transaction recipient from the transaction recipients according to the characteristic information and the category of the transaction recipients.
[0035] Obtain the characteristic information and category of the transaction recipient. Based on the analysis of transaction records, transaction recipients of the same category have certain similarities in transaction time, transaction frequency, and transaction quantity, while transaction recipients of different categories have large differences in the above characteristics. Therefore, the transaction recipients can be classified according to the category to which they belong. Each category is then analyzed based on the characteristic information of the transaction recipient, and the abnormal transaction recipients analyzed in each category are summarized to determine the first transaction recipient. This step is to analyze the transaction recipient on the transaction recipient side based on the characteristic information and category of the transaction recipient to determine the first transaction recipient.
[0036] Step 103, constructing a transaction network according to the transaction records, wherein the nodes of the transaction network are the transaction initiator and the transaction receiver, and the edge connecting the two nodes in the transaction network represents the existence of a transaction behavior between the transaction initiator and the transaction receiver.
[0037] A transaction network is constructed based on transaction records, where the nodes in the transaction network are the transaction parties, i.e., the transaction initiator and the transaction receiver. The edge used to connect the two nodes in the transaction network represents the transaction behavior between the nodes. Specifically, the edge in the transaction network is used to connect the transaction initiator and the transaction receiver, representing the transaction behavior between the transaction initiator and the transaction receiver. The edges in the transaction network can be directed or undirected.
[0038] Step 104: determine a target transaction initiator from among the transaction initiators according to the transaction network.
[0039] After constructing the transaction network, the transaction network is analyzed based on the transaction relationship between the transaction initiator and the transaction receiver in the transaction network, and the target transaction initiator is determined from the transaction initiators, and the target transaction initiator represents the abnormal transaction initiator.
[0040] Step 105: Determine a second transaction recipient corresponding to the target transaction initiator based on the first preset rule.
[0041] After obtaining the target transaction initiator, since there is a transaction relationship between the transaction initiator and the transaction recipient, the second transaction recipient corresponding to the target transaction initiator can be determined based on the first preset rule, and the transaction recipient that meets the first preset rule is used as the second transaction recipient, wherein the first preset rule is a rule that reflects the association nature of the target transaction initiator and the transaction recipient in terms of transaction times, transaction amounts, etc., such as using as the second transaction recipient a transaction recipient whose transaction times with the target transaction initiator are greater than the average of the total transaction times of the target transaction initiator and all transaction recipients that have transaction behaviors with it, or using as the second transaction recipient a transaction recipient whose transaction amount with the target transaction initiator accounts for a preset percentage threshold of the total transaction amount of the target transaction initiator, or using as the second transaction recipient a transaction recipient that has a transaction relationship with the target transaction recipient within a preset time, etc. This step is to determine the second transaction recipient on the transaction initiator side based on the determined target transaction initiator and according to the first preset rule that has an association relationship with the target transaction initiator in terms of transaction time, transaction amount, etc.
[0042] Step 106: Determine a target transaction recipient according to the first transaction recipient and the second transaction recipient.
[0043] The first transaction recipient is an abnormal transaction recipient determined based on the transaction recipient's side and by the transaction recipient's characteristic information. The second transaction recipient is an abnormal transaction recipient determined based on the transaction initiator's side and by the target transaction initiator. The first transaction recipient and the second transaction recipient are aggregated to obtain the target transaction recipient. For example, the first transaction recipient and the second transaction recipient can be processed by taking the union of the two to obtain the target transaction recipient.
[0044] The data processing method provided by the embodiment of the present disclosure can obtain the transaction initiator and the transaction receiver after obtaining the transaction records within a specified time range. Then, on the transaction receiver side, the first transaction receiver is determined through the characteristic information of the transaction receiver. On the transaction initiator side, the target transaction initiator is first determined through the transaction records, and then the second transaction receiver corresponding to the target transaction initiator is determined. Finally, the target transaction receiver is determined based on the first transaction receiver and the second transaction receiver. The final target transaction receiver is obtained by analyzing both the transaction receiver and the transaction initiator, which improves the efficiency of data processing, avoids unstable results caused by inconsistent evaluation criteria, and improves the accuracy of results.
[0045] In one possible implementation, Figure 2 As shown, determining the first transaction recipient from the transaction recipients according to the characteristic information and the category to which the transaction recipient belongs includes:
[0046] Step 201, obtaining attribute information of the transaction recipient and statistical information of the transaction status of the transaction recipient within a specified time range;
[0047] Step 202, determining characteristic information of the transaction recipient based on the attribute information and statistical information;
[0048] Step 203, classifying the transaction recipients according to the categories to which they belong;
[0049] Step 204: clustering the transaction recipients included in each category according to the characteristic information of the transaction recipients to obtain a clustering result;
[0050] Step 205: determine the first transaction recipient according to the clustering result of each category.
[0051] First, the attribute information of the transaction recipient and the statistical information of the transaction recipient's transaction situation within the specified time range are obtained. The attribute information can be the information registered by the transaction recipient when registering, including the registration time, category, account, contact and other information of the transaction recipient, where the category represents the transaction category of the transaction recipient, such as catering food, home furnishing, medical, retail, etc.; the statistical information refers to the statistics of the transaction situation of the transaction recipient within the specified time range, such as the total number of transactions, total transaction amount, average number of transactions per day, average transaction amount per day, number of transactions across time periods, number of days of transactions, etc. of the transaction recipient within the specified time range. Then, the attribute information of each transaction recipient and the statistical information of the transaction situation within the specified time range are summarized to obtain the characteristic information of the transaction recipient, and the summary method can be information splicing. It can be understood that since the measurement methods of different information are different, for each item in the characteristic information, the item can be normalized according to the data of all transaction recipients.
[0052] Then, the transaction recipients are classified according to the categories to which they belong. Each category represents a set of transaction recipients of the corresponding attribute category. For each category, the transaction recipients contained in the category are determined, and the transaction recipients are clustered according to the characteristic information of the transaction recipients to obtain the clustering results of the category. For example, the transaction recipients can be clustered by the K-means clustering algorithm to obtain the clustering results. According to the clustering results, the outliers that deviate from the cluster of each category are determined, and the outliers contained in the clustering results of all categories are determined as the first transaction recipient. This is because based on the analysis of transaction records, transaction recipients of the same category have certain similarities in transaction time, transaction frequency, and transaction quantity, while transaction recipients of different categories have large differences in the above characteristics. Therefore, this application classifies the transaction recipients according to their categories, and then clusters each category to finally determine the first transaction recipient. In this way, the differences in transaction characteristics of transaction recipients of different categories can be avoided. The clustering results are affected, making the clustering results more accurate, and the first transaction recipient obtained is also more accurate.
[0053] In one possible implementation, Figure 3 As shown, determining a target transaction initiator from among transaction initiators according to the transaction network includes:
[0054] Step 301, dividing the transaction network into multiple sub-networks according to each transaction recipient and the transaction initiator connected to the transaction recipient;
[0055] Step 302, determining a transaction initiator included in each sub-network as a first transaction initiator;
[0056] Step 303, determining a target feature vector of the transaction initiator according to the transaction network and the multiple sub-networks;
[0057] Step 304, performing similarity matching between the target feature vectors of the remaining transaction initiators and the target feature vector of the first transaction initiator, and determining the remaining transaction initiators that meet the similarity threshold as the second transaction initiators;
[0058] Step 305: determine a target transaction initiator according to the first transaction initiator and the second transaction initiator.
[0059] After constructing a transaction network based on transaction records, determine the node corresponding to the transaction recipient in the transaction network, and use the node of the transaction recipient as the basis for dividing the sub-network. Divide the node corresponding to each transaction recipient and the node of the transaction initiator connected to the node into a sub-network, that is, a sub-network contains a transaction recipient and a transaction initiator connected to the node. Similarly, the edges in the sub-network can be directed or undirected.
[0060] According to the multiple sub-networks after division, the node of the transaction initiator included in each sub-network is determined as the first transaction initiator, that is, the transaction initiator that has transaction behavior with each transaction recipient is determined as the first transaction initiator. The specific method of determining the first transaction initiator is to take the intersection of the nodes of the transaction initiator included in each sub-network, and the node included in the final intersection is the node corresponding to the first transaction initiator.
[0061] Then, the target feature vector of each transaction initiator is determined according to the transaction network and multiple sub-networks, and the target feature vector of the first transaction initiator is determined from the target feature vector of each transaction initiator, and the target feature vectors of the remaining transaction initiators are matched with the target feature vector of the first transaction initiator for similarity, and the remaining transaction initiators that meet the similarity threshold with the target feature vector of any transaction initiator in the first transaction initiator are determined as the second transaction initiator. This application can use cosine similarity or Euclidean distance to match the target feature vectors of the remaining transaction initiators with the target feature vector of the first transaction initiator for similarity, and the similarity threshold can also be set according to actual conditions. Finally, the first transaction initiator obtained is processed with the second transaction initiator for taking the union set to obtain the target transaction initiator, which is the abnormal transaction initiator. This is because the abnormal transaction has a transaction initiator that has transaction behaviors with multiple transaction recipients in multiple batches, and the transaction amounts are similar or the same, which is obviously different from normal transaction behaviors. Therefore, this method can make the abnormal transaction initiator determined based on the transaction initiator side more accurate and the data processing effect better.
[0062] In one possible implementation, determining a target feature vector of a transaction initiator according to a transaction network and a plurality of sub-networks includes:
[0063] For each sub-network, determining a first characteristic vector of the transaction initiator according to the sub-network;
[0064] Determine a second characteristic vector of the transaction initiator according to the transaction network;
[0065] The first feature vector of the same transaction initiator in different sub-networks and the second feature vector of the transaction initiator are merged to obtain the target feature vector of the transaction initiator.
[0066] Each sub-network is analyzed to determine the first feature vector of the transaction initiator contained in each sub-network, wherein the first feature vector represents the associated attribute of the transaction initiator in the sub-network, and then the transaction network is analyzed to determine the second feature vector of each transaction initiator in the transaction network, wherein the second feature vector represents the associated attribute of the transaction initiator in the transaction network. After that, the first feature vector and the second feature vector of each sub-network and the same node in the transaction network are merged to obtain the target feature vector of the transaction initiator. The first feature vector of the same transaction initiator in different sub-networks represents different associated attributes, so the target feature vector can contain both the associated attributes of the same transaction initiator in different sub-networks and the associated attributes of the transaction initiator in the transaction network, and the information expressed is richer, which can make the obtained target transaction initiator more accurate.
[0067] In one possible implementation, determining the first feature vector of the transaction initiator according to the sub-network includes:
[0068] Perform random probability walks on the sub-network to generate multiple groups of neighboring sequences corresponding to the sub-network;
[0069] Generate a first feature vector for each node in the sub-network according to a vector generation model and multiple sets of neighboring sequences;
[0070] Determine a first feature vector corresponding to a node whose node type is a transaction initiator.
[0071] When determining the first feature vector of the transaction initiator, firstly, a random probability walk is performed on each sub-network to generate multiple groups of neighboring sequences corresponding to the sub-network. Specifically, a random walk model can be used, such as the embedded algorithm Node2Vec algorithm, Deepwalk walk model, etc., to perform a random probability walk on the sub-network. In one embodiment, the Node2Vec algorithm is used to perform a random probability walk on the sub-network. For example, given the current node , visit the next node The probability is: ,in Represents a node, Indicates the next node , Indicates the current node , Representation Node and nodes The weight between Represents the collection of nodes contained in a subnetwork.
[0072] After obtaining multiple sets of neighboring sequences corresponding to the sub-network, the multiple sets of neighboring sequences are input into the vector generation model, and the output of the obtained vector generation model is the first feature vector of each node in the sub-network. In one embodiment, the vector generation model can be a word vector generation model Word2Vec model and a general pre-training model (GPT, General Pre-Training), etc. The first feature vector of each node in the sub-network is obtained by the vector generation model. Since the node types of the nodes in the sub-network include the transaction initiator and the transaction receiver, the first feature vector corresponding to the node whose node type is the transaction initiator is determined based on the node type of the node.
[0073] It can be understood that when determining the second eigenvector of the transaction initiator based on the transaction network, the same method as that of determining the first eigenvector of the transaction initiator can be adopted, that is, random probability walks are performed on the transaction network to generate multiple groups of neighboring sequences corresponding to the transaction network, and the second eigenvector of each node in the transaction network is generated according to the vector generation model and the multiple groups of neighboring sequences corresponding to the transaction network.
[0074] In one possible implementation, after constructing the transaction network according to the transaction records, the method further includes: pruning the transaction network according to a second preset rule.
[0075] After constructing the transaction network according to the transaction records, the transaction network can be pruned according to the second preset rule. Specifically, the second preset rule can be to delete the node corresponding to the transaction recipient whose account has been cancelled, delete the node corresponding to the transaction initiator and the transaction recipient whose time interval with the current time exceeds the preset time interval, delete the node corresponding to the transaction initiator and the transaction recipient whose transaction number is less than the preset transaction number, etc., wherein the preset time interval and the preset transaction number can be set according to the actual situation. Pruning the transaction network can delete invalid information, optimize the transaction network, and improve the data processing speed.
[0076] It is understandable that after the transaction network is divided into multiple sub-networks, each sub-network can also be pruned according to preset rules. The pruning rules for the sub-networks can be to delete the nodes corresponding to the transaction initiator whose number of consecutive transactions with the transaction recipient is less than the first preset number, delete the nodes corresponding to the transaction initiator whose number of transactions with the transaction recipient during the same period is less than the second preset number, delete the nodes corresponding to the transaction initiator whose transaction amount with the transaction recipient and the average value of the transaction amount of the transaction recipient are less than a preset percentage, etc. Similarly, pruning the sub-network can also optimize the sub-network and improve the speed of data processing.
[0077] Figure 4 A module schematic diagram of a data processing device according to an embodiment of the present disclosure is shown.
[0078] See also Figure 4 According to a second aspect of an embodiment of the present disclosure, a data processing device is provided, the device comprising: an acquisition module 401, used to acquire transaction records within a specified time range, the transaction records comprising a transaction initiator and a transaction recipient; a first determination module 402, used to determine a first transaction recipient from the transaction recipients according to feature information and a category of the transaction recipient; a construction module 403, used to construct a transaction network according to the transaction records, the nodes of the transaction network being the transaction initiator and the transaction recipient, the edge in the transaction network connecting the two nodes representing the existence of a transaction behavior between the transaction initiator and the transaction recipient; a second determination module 404, used to determine a target transaction initiator from the transaction initiator according to the transaction network; the second determination module 404, further used to determine a second transaction recipient corresponding to the target transaction initiator based on a first preset rule; a third determination module 405, used to determine the target transaction recipient according to the first transaction recipient and the second transaction recipient.
[0079] In one possible implementation, the first determination module 402 includes: an acquisition submodule 4021, used to acquire attribute information of the transaction recipient and statistical information of the transaction recipient's transaction status within a specified time range; a first determination submodule 4022, used to determine the characteristic information of the transaction recipient based on the attribute information and the statistical information; a classification submodule 4023, used to classify the transaction recipient according to the category to which the transaction recipient belongs; a processing submodule 4024, used to cluster the transaction recipients included in each category according to the characteristic information of the transaction recipients to obtain a clustering result; and a second determination submodule 4025, used to determine the first transaction recipient based on the clustering result of each category.
[0080] In one possible implementation, the second determination module 404 includes: a division submodule 4041, which is used to divide the transaction network into multiple subnetworks according to each transaction recipient and the transaction initiator that has a connection relationship with the transaction recipient; a third determination submodule 4042, which is used to determine the transaction initiator included in each subnetwork as the first transaction initiator; a fourth determination submodule 4043, which is used to determine the target feature vector of the transaction initiator according to the transaction network and the multiple subnetworks; a matching submodule 4044, which is used to perform similarity matching on the target feature vectors of the remaining transaction initiators with the target feature vector of the first transaction initiator, and determine the remaining transaction initiators that meet the similarity threshold as the second transaction initiator; and a fifth determination submodule 4045, which is used to determine the target transaction initiator according to the first transaction initiator and the second transaction initiator.
[0081] In one possible implementation, the fourth determination submodule 4043 is specifically used to determine, for each subnetwork, a first feature vector of the transaction initiator according to the subnetwork; determine a second feature vector of the transaction initiator according to the transaction network; and fuse the first feature vector of the same transaction initiator in different subnetworks and the second feature vector of the transaction initiator to obtain a target feature vector of the transaction initiator.
[0082] In one possible implementation, the fourth determination submodule 4043 is specifically used to perform random probability walks on the subnetwork to generate multiple groups of neighboring sequences corresponding to the subnetwork; generate the first feature vector of each node in the subnetwork based on the vector generation model and the multiple groups of neighboring sequences; and determine the first feature vector corresponding to the node whose node type is the transaction initiator.
[0083] In one possible implementation, the device further includes: a processing module 406, configured to perform pruning processing on the transaction network according to a second preset rule after constructing the transaction network according to the transaction records.
[0084] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0085] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0086] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0087] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0088] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as a data processing method. For example, in some embodiments, a data processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform a data processing method in any other appropriate manner (e.g., by means of firmware).
[0089] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0090] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0091] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0092] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0093] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0094] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0095] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0096] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0097] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Obtaining transaction records within a specified time range, wherein the transaction records include the transaction initiator and the transaction recipient; Determine a first transaction recipient from the transaction recipients according to the characteristic information and the category of the transaction recipients; Constructing a transaction network according to the transaction records, wherein the nodes of the transaction network are the transaction initiator and the transaction recipient, and an edge in the transaction network connecting two nodes indicates that there is a transaction behavior between the transaction initiator and the transaction recipient; Determining a target transaction initiator from among the transaction initiators according to the transaction network; Determine a second transaction recipient corresponding to the target transaction initiator based on a first preset rule; Determine a target transaction recipient according to the first transaction recipient and the second transaction recipient; The determining of the first transaction recipient from the transaction recipients according to the characteristic information and the categories to which the transaction recipients belong comprises: obtaining the attribute information of the transaction recipients and the statistical information of the transaction conditions of the transaction recipients within a specified time range; determining the characteristic information of the transaction recipients according to the attribute information and the statistical information; classifying the transaction recipients according to the categories to which the transaction recipients belong; clustering the transaction recipients included in each category according to the characteristic information of the transaction recipients to obtain clustering results; and determining the first transaction recipient according to the clustering results of each category; The method of determining a target transaction initiator from the transaction initiators according to the transaction network includes: dividing the transaction network into multiple sub-networks according to each transaction recipient and a transaction initiator connected to the transaction recipient; determining a transaction initiator included in each sub-network as a first transaction initiator; determining a target feature vector of the transaction initiator according to the transaction network and the multiple sub-networks; performing similarity matching between the target feature vectors of the remaining transaction initiators and the target feature vector of the first transaction initiator, and determining the remaining transaction initiators that meet a similarity threshold as second transaction initiators; and determining the target transaction initiator according to the first transaction initiator and the second transaction initiator.
2. The method according to claim 1, characterized in that: The step of determining the target feature vector of the transaction initiator according to the transaction network and the plurality of sub-networks includes: For each sub-network, determining a first feature vector of the transaction initiator according to the sub-network; Determine a second characteristic vector of the transaction initiator according to the transaction network; The first feature vector of the same transaction initiator in different sub-networks and the second feature vector of the transaction initiator are merged to obtain the target feature vector of the transaction initiator.
3. The method according to claim 2, characterized in that The determining the first feature vector of the transaction initiator according to the sub-network includes: Performing random probability walks on the sub-network to generate multiple groups of neighboring sequences corresponding to the sub-network; Generate a first feature vector for each node in the sub-network according to a vector generation model and the plurality of groups of neighboring sequences; Determine a first feature vector corresponding to a node whose node type is a transaction initiator.
4. The method according to claim 1, characterized in that: After constructing the transaction network according to the transaction records, the method further includes: The transaction network is pruned according to a second preset rule.
5. A data processing device, characterized in that: The device comprises: An acquisition module, used to acquire transaction records within a specified time range, wherein the transaction records include a transaction initiator and a transaction recipient; A first determining module, configured to determine a first transaction recipient from the transaction recipients according to feature information and categories of the transaction recipients; A construction module, used to construct a transaction network according to the transaction record, wherein the nodes of the transaction network are the transaction initiator and the transaction recipient, and an edge in the transaction network connecting two nodes indicates that there is a transaction behavior between the transaction initiator and the transaction recipient; A second determination module, configured to determine a target transaction initiator from among the transaction initiators according to the transaction network; The second determination module is further configured to determine a second transaction recipient corresponding to the target transaction initiator based on a first preset rule; A third determining module, configured to determine a target transaction recipient according to the first transaction recipient and the second transaction recipient; The first determination module includes: an acquisition submodule, which is used to acquire the attribute information of the transaction recipient and the statistical information of the transaction status of the transaction recipient within a specified time range; a first determination submodule, which is used to determine the characteristic information of the transaction recipient according to the attribute information and the statistical information; a classification submodule, which is used to classify the transaction recipient according to the category to which the transaction recipient belongs; a processing submodule, which is used to cluster the transaction recipients included in each category according to the characteristic information of the transaction recipients to obtain a clustering result; and a second determination submodule, which is used to determine the first transaction recipient according to the clustering result of each category; The second determination module includes: a division submodule, which is used to divide the transaction network into multiple subnetworks according to each transaction recipient and the transaction initiator that is connected to the transaction recipient; a third determination submodule, which is used to determine the transaction initiator included in each subnetwork as the first transaction initiator; a fourth determination submodule, which is used to determine the target feature vector of the transaction initiator according to the transaction network and the multiple subnetworks; a matching submodule, which is used to perform similarity matching between the target feature vectors of the remaining transaction initiators and the target feature vector of the first transaction initiator, and determine that the remaining transaction initiators that meet the similarity threshold are the second transaction initiators; and a fifth determination submodule, which is used to determine the target transaction initiator according to the first transaction initiator and the second transaction initiator.
6. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 4.
7. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-4.
Citation Information
Patent Citations
Transaction method based on clustering analysis and unsupervised learning algorithm and related product
CN116703599A
Abnormal group detection method and related equipment
CN116975757A
Transaction Anomaly Detection
US20220343329A1
Method and device for identifying social group having abnormal transaction activity
WO2019100967A1
Abnormal transaction identification method and device
WO2021068626A1
