Abnormal transaction object identification method and device, computer equipment and storage medium
By acquiring and processing multi-dimensional characteristic information of transaction objects and identifying them as abnormal transaction objects, the problem of low identification accuracy in the existing technology is solved and higher identification accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202310350122.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-15
AI Technical Summary
The existing technology has low accuracy when identifying abnormal transaction objects, and it is difficult to effectively identify abnormal transaction behaviors, especially when the transaction volume is huge and the characteristics of abnormal transactions are constantly changing.
By obtaining the descriptive feature information of the transaction object to be detected in multiple information dimensions, the feature types are determined as continuous and discrete features, and feature processing is performed based on these feature types to generate feature vectors. Finally, the object classification model is used to classify the transaction objects. Classify and determine whether it is an abnormal transaction object or a normal transaction object.
It improves the identification accuracy of abnormal transaction objects, enhances the multi-dimensional description and feature type processing of transaction objects, and ensures the reliability and accuracy of classification results.
Smart Images

Figure CN118780809A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment and storage medium for identifying abnormal transaction objects. Background Art
[0002] With the development of computer technology and the increase of unstable factors in the global financial environment, various abnormal trading behaviors in the transaction process are becoming more and more serious. Abnormal trading is a behavior of legalizing illegal income, which mainly refers to disguising and concealing the source and nature of illegal income and the transaction income generated by it through various means to make it legal in form. Therefore, the identification of abnormal transaction objects is of great significance to the control of the financial system.
[0003] At present, experts in related fields usually establish corresponding rule models. However, due to the huge transaction volume and the constant replacement of abnormal transaction feature vectors of different abnormal transaction objects, the accuracy of identifying abnormal transaction objects through rule models is poor, resulting in low accuracy in identifying abnormal transaction objects. Therefore, how to improve the accuracy of identifying abnormal transaction objects is an urgent problem to be solved. Summary of the invention
[0004] Based on this, it is necessary to provide a method, apparatus, computer device and storage medium for identifying abnormal transaction objects that can improve the accuracy of identifying abnormal transaction objects in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for identifying abnormal transaction objects. The method comprises:
[0006] Acquire a transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension;
[0007] Determine the feature type corresponding to each descriptive feature information, the feature type at least includes: continuous feature and discrete feature;
[0008] Based on the feature types respectively corresponding to the respective descriptive feature information, feature processing is performed on the respective descriptive feature information to obtain the feature vectors respectively corresponding to the respective descriptive feature information;
[0009] Based on each feature vector, the transaction object to be detected is classified to determine the object classification result, and the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
[0010] In a second aspect, the present application also provides a device for identifying abnormal transaction objects. The device includes:
[0011] An acquisition module is used to acquire the transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension;
[0012] A feature type determination module is used to determine the feature type corresponding to each descriptive feature information, and the feature type includes at least: continuous feature and discrete feature;
[0013] A feature vector acquisition module is used to perform feature processing on each descriptive feature information based on the feature type corresponding to each descriptive feature information, so as to obtain a feature vector corresponding to each descriptive feature information;
[0014] The object classification module is used to classify the transaction object to be detected based on each feature vector to determine the object classification result. The object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
[0015] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0016] Acquire a transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension;
[0017] Determine the feature type corresponding to each descriptive feature information, the feature type at least includes: continuous feature and discrete feature;
[0018] Based on the feature types respectively corresponding to the respective descriptive feature information, feature processing is performed on the respective descriptive feature information to obtain the feature vectors respectively corresponding to the respective descriptive feature information;
[0019] Based on each feature vector, the transaction object to be detected is classified to determine the object classification result, and the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0021] Acquire a transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension;
[0022] Determine the feature type corresponding to each descriptive feature information, the feature type at least includes: continuous feature and discrete feature;
[0023] Based on the feature types respectively corresponding to the respective descriptive feature information, feature processing is performed on the respective descriptive feature information to obtain the feature vectors respectively corresponding to the respective descriptive feature information;
[0024] Based on each feature vector, the transaction object to be detected is classified to determine the object classification result, and the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
[0025] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0026] Acquire a transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension;
[0027] Determine the feature type corresponding to each descriptive feature information, the feature type at least includes: continuous feature and discrete feature;
[0028] Based on the feature types respectively corresponding to the respective descriptive feature information, feature processing is performed on the respective descriptive feature information to obtain the feature vectors respectively corresponding to the respective descriptive feature information;
[0029] Based on each feature vector, the transaction object to be detected is classified to determine the object classification result, and the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
[0030] The above-mentioned abnormal transaction object identification method, device, computer equipment, storage medium and computer program product first obtain the transaction object to be detected, and obtain the descriptive feature information of the transaction object to be detected in multiple information dimensions, and the multiple information dimensions at least include: transaction information dimension and transaction object information dimension. Then determine the feature type corresponding to each descriptive feature information, the feature type at least includes: continuous feature and discrete feature, and based on the feature type corresponding to each descriptive feature information, perform feature processing on each descriptive feature information to obtain the feature vector corresponding to each descriptive feature information, and finally classify the transaction object to be detected based on each feature vector to determine the object classification result, and the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or, the transaction object to be detected is a normal transaction object. Through the descriptive feature information under multiple information dimensions, the transaction object to be detected can be described comprehensively from multiple information dimensions, and the feature type of each descriptive feature information can be further determined. Therefore, in the process of changing the features of the descriptive feature information, the feature characteristics of different feature types such as continuous features and discrete features are specifically considered, so that the obtained feature vector can more conform to and more accurately describe the corresponding descriptive feature information. Therefore, in the process of classifying the transaction object, not only the feature information that comprehensively describes the transaction object to be detected from multiple information dimensions is considered, but also the feature characteristics of different feature types such as continuous features and discrete features can be considered, that is, the transaction object can be classified from the feature vectors under multiple information dimensions and in combination with the feature characteristics of different feature types, thereby improving the reliability of the classification result, ensuring the reliability of the result of determining that the transaction object to be detected is an abnormal transaction object, thereby improving the accuracy of identifying abnormal transaction objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 A diagram of an application environment of a method for identifying an abnormal transaction object in an embodiment;
[0032] Figure 2 A schematic diagram of a flow chart of a method for identifying an abnormal transaction object in one embodiment;
[0033] Figure 3 is a schematic diagram of information dimensions in one embodiment;
[0034] Figure 4 is a schematic diagram of describing feature information under various information dimensions in an embodiment;
[0035] Figure 5 A schematic diagram of a partial process of obtaining a feature vector in one embodiment;
[0036] Figure 6 A partial schematic diagram of a process for obtaining a feature vector in another embodiment;
[0037] Figure 7 is a schematic diagram of a process of obtaining each first characteristic vector in an embodiment;
[0038] Figure 8 A partial flow chart of a method for identifying an abnormal transaction object in one embodiment;
[0039] Fig. 9 A partial flow chart of a method for identifying abnormal transaction objects using a memory object classification model in one embodiment;
[0040] Fig.10 is a schematic diagram of the structure of a Transformer Block in one embodiment;
[0041] Fig.11 A partial flow chart of a method for acquiring an object classification model in one embodiment;
[0042] Fig.12 A schematic diagram of a partial flow chart of obtaining a sample set of an object in one embodiment;
[0043] Fig.13 A schematic diagram of a partial flow chart of obtaining a sample set of an object in another embodiment;
[0044] Fig.14 A schematic diagram of a portion of a flow chart for updating model parameters of an initial object classification model in one embodiment;
[0045] Fig.15 A partial flow chart of a method for acquiring an object classification model in another embodiment;
[0046] Fig.16 is a schematic diagram of a cosine attenuation curve in one embodiment;
[0047] Fig.17 A complete flow chart of a method for identifying an abnormal transaction object in one embodiment;
[0048] Fig.18 is a structural block diagram of a device for identifying abnormal transaction objects in one embodiment;
[0049] Fig.19 is a structural block diagram of a device for identifying abnormal transaction objects in another embodiment;
[0050] Fig. 20 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0052] The method for identifying abnormal transaction objects provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other servers.
[0053] Specifically, taking the application to the server 104 as an example, the server 104 first obtains the transaction object to be detected, and obtains the descriptive feature information of the transaction object to be detected under multiple information dimensions, and the multiple information dimensions at least include: transaction information dimension and transaction object information dimension. Then determine the feature type corresponding to each descriptive feature information, and the feature type at least includes: continuous feature and discrete feature, so that in the feature encoding process, based on the feature type corresponding to each descriptive feature information, feature processing is performed on each descriptive feature information to obtain the feature vector corresponding to each descriptive feature information. Finally, based on each feature vector, the transaction object to be detected is classified to determine the object classification result, and the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object. Therefore, in the process of classifying transaction objects, server 104 not only takes into account the feature information that comprehensively describes the transaction object to be detected in multiple information dimensions, but also takes into account the feature characteristics of different feature types such as continuous features and discrete features. That is, it can classify transaction objects from feature vectors under multiple information dimensions and in combination with the feature characteristics of different feature types. This can improve the reliability of the classification results, ensure the reliability of the result of determining that the transaction object to be detected is an abnormal transaction object, and thus improve the accuracy of identifying abnormal transaction objects.
[0054] Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster composed of multiple servers. The identification method of abnormal transaction objects provided in the embodiment of the present application can be applied to various scenarios, including but not limited to cloud technology, and artificial intelligence.
[0055] Furthermore, since the method for identifying abnormal transaction objects provided in the embodiment of the present application can classify objects through an object classification model, artificial intelligence (AI) technology is involved. The AI technology will be briefly described below. AI is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.
[0056] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0057] The method for identifying abnormal transaction objects provided in the embodiment of the present application involves machine learning in AI technology, which is described in detail below:
[0058] In one embodiment, Figure 2 As shown, a method for identifying abnormal transaction objects is provided. This embodiment uses the method applied to a server as an example for illustration. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0059] Step 202: Acquire the transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension.
[0060] Among them, the transaction object to be detected is the transaction object to be detected whether it is an abnormal transaction object. The multiple information dimensions at least include: transaction information dimension and transaction object information dimension, and the transaction information dimension at least includes: transaction information dimension of a single transaction, and transaction information comparison dimension of multiple transactions. Similarly, the transaction object information dimension at least includes: information dimension of the transaction initiator object, information dimension of the transaction recipient object, and information comparison dimension between the transaction initiator object and the transaction recipient object. Specifically, Figure 3 As shown, the multiple information dimensions include at least: a transaction information dimension of a single transaction, a transaction information comparison dimension of multiple transactions, an information dimension of a transaction initiating object, an information dimension of a transaction receiving object, and an information comparison dimension between a transaction initiating object and a transaction receiving object.
[0061] Based on this, the descriptive feature information is the descriptive feature information based on the corresponding information dimension, that is, the descriptive feature information may at least include: the descriptive feature information of the transaction information dimension, and the descriptive feature information of the transaction object information dimension. And based on the multiple information dimensions of the above examples, it can be known that the descriptive feature information of the transaction information dimension may at least include: the descriptive feature information of the transaction information dimension of a single transaction, and the descriptive feature information of the transaction information comparison dimension of multiple transactions. Similarly, the descriptive feature information of the transaction object information dimension may at least include: the descriptive feature information of the information dimension of the transaction initiator object, the descriptive feature information of the information dimension of the transaction recipient object, and the descriptive feature information of the information comparison dimension of the transaction initiator object and the transaction recipient object.
[0062] For ease of understanding, Figure 4 As shown, for the transaction information dimension of a single transaction, the descriptive feature information 402 of the transaction information dimension of a single transaction may at least include: transaction value information of a single transaction, transaction scenario information of a single transaction, transaction channel information of a single transaction, and transaction time information of a single transaction, etc. Similarly, for the transaction information comparison dimension of multiple transactions, the descriptive feature information of the transaction information comparison dimension of multiple transactions may at least include: the difference between the transaction value information of two transactions, the difference between the transaction scenario information of the two transactions, the difference between the transaction channel information of the two transactions, the time span between the transaction time information of the two transactions, etc. In this embodiment, the two transactions may be the Lth transaction and the L+1th transaction, or the Lth transaction and the L+2th transaction, where L is a positive integer greater than or equal to 1, and is not specifically limited here.
[0063] Secondly, for the information dimension of the transaction initiating object, the descriptive feature information 404 of the information dimension of the transaction initiating object includes at least: object attribute information, account attribute information, social attribute information, location information, and historical transaction information. Similarly, for the information dimension of the transaction receiving object, the descriptive feature information 406 of the information dimension of the transaction receiving object includes at least: object attribute information, account attribute information, social attribute information, location information, and historical transaction information. It can also be considered that when the transaction receiving object is a merchant, the descriptive feature information 406 can also include merchant descriptive feature information, etc., which is not limited here. Then, the descriptive feature information of the information comparison dimension of the transaction initiating object and the transaction receiving object can be described by comparing multiple descriptive feature information such as object attribute information, account attribute information, social attribute information, location information, and historical transaction information, which is not limited here.
[0064] It should be noted that the object-related information (including but not limited to user device information, user personal information, object attribute information, account attribute information, social attribute information, location information, and historical transaction information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0065] Specifically, the server obtains the transaction object to be detected. The server can obtain the stored transaction object to be detected from the data storage system, or obtain the transaction object to be detected in real time through communication interaction with the terminal. For example, if it is applied to real-time abnormal transaction object identification scenarios, such as large-value numerical transactions, real-time abnormal transaction object identification is required, then the server can initiate large-value numerical transactions or receive large-value numerical transactions. The object is determined as the transaction object to be detected. Or, if it is applied to scenarios such as abnormal transaction tracing, such as determining that the objects involved in the abnormal transaction need to be identified after the abnormal transaction occurs, the server can determine the objects involved in the abnormal transaction from the data storage system and determine them as the transaction objects to be detected.
[0066] Furthermore, the server obtains descriptive feature information of the transaction object to be detected under multiple information dimensions. That is, the server obtains descriptive feature information of the transaction object to be detected at least from the transaction information dimension and the transaction object information dimension. And the server can specifically extract information from multiple transaction behaviors of the transaction object to be detected within a preset time interval to obtain descriptive feature information under multiple information dimensions. For example, the server can determine multiple transaction behaviors of the transaction object to be detected within 3 days, 7 days or 15 days to obtain, and then analyze and extract multiple information dimensions of the multiple transaction behaviors, so as to obtain descriptive feature information under multiple information dimensions.
[0067] Optionally, the server may also obtain a preset number of multiple transaction behaviors, and then extract information from the preset number of multiple transaction behaviors to obtain descriptive feature information under multiple information dimensions. For example, the server may determine that the transaction object to be detected obtains 40, 60, or 80 transaction behaviors, and then analyzes and extracts multiple information dimensions from the multiple transaction behaviors to obtain descriptive feature information under multiple information dimensions.
[0068] It can be understood that the acquired transaction behaviors are multiple consecutive transaction behaviors with similar time before the moment of determining the transaction object to be detected. Taking a preset number of 60 transaction behaviors as an example, if it is applied to the real-time abnormal transaction object identification scenario, then after the server determines the transaction object to be detected at the first moment, it can obtain the 60 transaction behaviors of the transaction object to be detected before the first moment, and obtain descriptive feature information under multiple information dimensions based on the 60 transaction behaviors before the first moment. Alternatively, if it is applied to scenarios such as abnormal transaction tracing, such as determining that the abnormal transaction occurs at the second moment, then the server can obtain the 60 transaction behaviors of the transaction object to be detected before the second moment, and obtain descriptive feature information under multiple information dimensions based on the 60 transaction behaviors before the second moment.
[0069] Step 204: determine the feature type corresponding to each descriptive feature information, and the feature type at least includes: continuous feature and discrete feature.
[0070] Among them, the feature types include at least: continuous features and discrete features. Discrete features refer to feature information that can be listed one by one in a certain order and usually takes integer values. For example, the descriptive feature information such as the age of the object and the gender of the object are all discrete features. Therefore, the descriptive feature information of the feature type of discrete features is usually obtained based on counting methods. Secondly, the descriptive feature information that can take any value within a certain interval is a continuous feature, that is, the value of the continuous feature is continuous, and two adjacent values can be divided infinitely. For example, the descriptive feature information such as the measured height of the object and the measured height of the object are all continuous features, and the descriptive feature information of the feature type of continuous features is usually obtained based on measurement or measurement methods.
[0071] Specifically, the server determines the feature type corresponding to each descriptive feature information, that is, the server determines the feature type corresponding to each descriptive feature information based on the statistical acquisition method and specific description method of each descriptive feature information. For example, the description information of the transaction object to be detected specifically includes: the transaction scene information of a certain transaction is an offline supermarket, the transaction time information of a certain transaction is X year X month X day X hour X minute, the gender of the transaction object to be detected is female, and the transaction object to be detected is in Province A. It can be seen that the description information "the transaction scene information of a certain transaction is an offline supermarket", "the gender of the transaction object to be detected is female", and "the transaction object to be detected is in Province A" are all discrete features, while the description information "the transaction time information of a certain transaction is X year X month X day X hour X minute" is a continuous feature.
[0072] Step 206 : Based on the feature types corresponding to the respective description feature information, feature processing is performed on the respective description feature information to obtain feature vectors corresponding to the respective description feature information.
[0073] The feature processing includes at least: embedding mapping processing and standardization processing, and different feature types correspond to different feature processing methods. Specifically, the server performs feature processing on each descriptive feature information based on the feature type corresponding to each descriptive feature information, so as to obtain a feature vector corresponding to each descriptive feature information. That is, the server performs feature processing on each descriptive feature information based on different feature processing methods for different feature types, so as to obtain a feature vector corresponding to each descriptive feature information.
[0074] For example, the descriptive feature information of the transaction object to be detected obtained by the server includes: descriptive feature information A1, descriptive feature information A2 and descriptive feature information A3. Then, the server first determines the feature types corresponding to the descriptive feature information A1 to the descriptive feature information A3, and then based on the feature processing methods corresponding to the different feature types, performs feature processing on the descriptive feature information A1 to the descriptive feature information A3, respectively, to obtain the feature vector B1 corresponding to the descriptive feature information A1, the feature vector B2 corresponding to the descriptive feature information A2, and the feature vector B3 corresponding to the descriptive feature information A3.
[0075] Step 208 , classifying the transaction object to be detected based on each feature vector to determine an object classification result, where the object classification result is used to describe whether the transaction object to be detected is an abnormal transaction object or a normal transaction object.
[0076] The object classification result is used to describe whether the transaction object to be detected is an abnormal transaction object or a normal transaction object. Specifically, the server classifies the transaction object to be detected based on each feature vector to determine the object classification result. That is, the server classifies the transaction object to be detected based on each feature vector, and specifically obtains the probability that the transaction object to be detected belongs to an abnormal transaction object, and then compares the probability that the transaction object to be detected belongs to an abnormal transaction object with the abnormal probability threshold to determine the final object classification result.
[0077] Furthermore, the aforementioned abnormal probability threshold may be 50%, 55%, 60%, etc. Taking the abnormal probability threshold of 60% as an example, if the server classifies the transaction object to be detected based on each feature vector, and obtains a probability of 50% that the transaction object to be detected is an abnormal transaction object, then the object classification result can be determined to describe: the transaction object to be detected is a normal transaction object. Alternatively, if the server classifies the transaction object to be detected based on each feature vector, and obtains a probability of 80% that the transaction object to be detected is an abnormal transaction object, then the object classification result can be determined to describe: the transaction object to be detected is an abnormal transaction object.
[0078] In practical applications, taking the application in the real-time abnormal transaction object identification scenario as an example, if the object classification result is used to describe the transaction object to be detected as an abnormal transaction object, that is, the abnormal transaction object is identified, the transaction conducted by the transaction object to be detected can be directly limited to avoid the generation of abnormal transaction risks. It should be understood that all examples in this embodiment are used to understand this solution, and should not be understood as specific limitations of this solution.
[0079] In the above-mentioned method for identifying abnormal transaction objects, the transaction object to be detected can be described comprehensively from multiple information dimensions through the descriptive feature information under multiple information dimensions, and the feature type of each descriptive feature information can be further determined. Therefore, in the process of changing the features of the descriptive feature information, the feature characteristics of different feature types such as continuous features and discrete features are specifically considered, so that the obtained feature vector can more conform to and more accurately describe the corresponding descriptive feature information. Therefore, in the process of classifying the transaction object, not only the feature information that comprehensively describes the transaction object to be detected from multiple information dimensions is considered, but also the feature characteristics of different feature types such as continuous features and discrete features can be considered, that is, the transaction object can be classified from the feature vectors under multiple information dimensions and in combination with the feature characteristics of different feature types, thereby improving the reliability of the classification result, ensuring the reliability of the result of determining that the transaction object to be detected is an abnormal transaction object, thereby improving the accuracy of identifying abnormal transaction objects.
[0080] In one embodiment, Figure 5 As shown, discrete features specifically include: low-order discrete features and high-order discrete features.
[0081] Among them, the low-order discrete feature is specifically the descriptive feature information whose total number of information attributes is less than the attribute threshold, and conversely, the high-order discrete feature is specifically the descriptive feature information whose total number of information attributes is greater than or equal to the attribute threshold, and the total number of information attributes of the high-order discrete feature is greater than the total number of information attributes of the low-order discrete feature. The aforementioned attribute threshold can be a positive integer greater than 1 such as 3, 4, 5 and 6, which needs to be determined based on actual conditions and application requirements.
[0082] Based on this, the server can determine that the feature type describing the feature information is a discrete feature F1. At this time, the total number of information attributes included in the description feature information can be counted, that is, count(distinct(F1)) is calculated, and then the size between count(distinct(F1)) and the attribute threshold is determined. Taking the attribute threshold of 5 as an example, if count(distinct(F1)) is less than 5, it is determined that the description feature information is specifically a low-order discrete feature. On the contrary, if count(distinct(F1)) is greater than or equal to, it is determined that the description feature information is specifically a high-order discrete feature.
[0083] For ease of understanding, the following describes how to count the total number of information attributes included in the feature information (distinct (F1)). The server first performs deduplication processing on the information attributes included in the feature information, and then counts the number of deduplication-processed information attributes. If the discrete feature F1 is specifically [1, 1, 2, 2, 3, 3, 4], the discrete feature F1 is first deduplicated to obtain distinct (F1) = [1, 2, 3, 4], and then the number of deduplication-processed information attributes is counted, that is, the number of different information attributes in distinct (F1) is counted. There are 4 different information attributes, 1, 2, 3, 4, in distinct (F1) = [1, 2, 3, 4]. Therefore, count (distinct (F1)) = 4.
[0084] And in actual applications, the "gender of the transaction object to be detected" and the "location information of the transaction object to be detected" are both discrete features, but because the information attributes of the "gender of the transaction object to be detected" only include male, female and transgender, at this time, the "gender of the transaction object to be detected" is a low-order discrete feature. And the "location information of the transaction object to be detected" is based on different division methods, and the information attributes can be multiple countries, multiple provinces or multiple urban areas, so the "location information of the transaction object to be detected" is a high-order discrete feature. It should be understood that the above examples are used to understand this solution, and should not be understood as specific limitations of this solution.
[0085] Based on this, based on the feature types corresponding to each descriptive feature information, feature processing is performed on each descriptive feature information to obtain feature vectors corresponding to each descriptive feature information, including:
[0086] Step 502, determining the descriptive feature information whose feature type is a high-order discrete feature as the first descriptive feature information to be processed, determining the descriptive feature information whose feature type is a continuous feature as the second descriptive feature information to be processed, and determining the descriptive feature information whose feature type is a low-order discrete feature as the third descriptive feature information to be processed.
[0087] Specifically, after the feature types corresponding to each descriptive feature information are respectively obtained, the server can obtain the descriptive feature information of the high-order discrete feature, the descriptive feature information of the low-order discrete feature, and the descriptive feature information of the continuous feature, thereby further dividing the descriptive feature information of different feature types. That is, the server determines the descriptive feature information of the feature type of the high-order discrete feature as the first descriptive feature information to be processed, determines the descriptive feature information of the feature type of the continuous feature as the second descriptive feature information to be processed, and determines the descriptive feature information of the feature type of the low-order discrete feature as the third descriptive feature information to be processed.
[0088] Step 504, feature processing is performed on each first descriptive feature information to be processed, each second descriptive feature information to be processed, and each third descriptive feature information to be processed, respectively, to obtain a first feature vector corresponding to each first descriptive feature information to be processed, a second feature vector corresponding to each second descriptive feature information to be processed, and a third feature vector corresponding to each third descriptive feature information to be processed.
[0089] Specifically, the server performs feature processing on each first descriptive feature information to be processed to obtain a first feature vector corresponding to each first descriptive feature information to be processed, so the first feature vector is a feature vector obtained by a high-order discrete feature corresponding to feature processing method. Similarly, the server performs feature processing on each second descriptive feature information to be processed to obtain a second feature vector corresponding to each second descriptive feature information to be processed, so the second feature vector is a feature vector obtained by a continuous feature corresponding to feature processing method. And the server performs feature processing on each third descriptive feature information to be processed to obtain a third feature vector corresponding to each third descriptive feature information to be processed, so the third feature vector is a feature vector obtained by a low-order discrete feature corresponding to feature processing method.
[0090] In this embodiment, the descriptive feature information is further divided based on the feature types that are not passed, so that the server can accurately process the descriptive feature information based on different feature types and different feature processing methods, and further enable the obtained feature vector to more conform to and more accurately describe the corresponding descriptive feature information, thereby improving the reliability and accuracy of the feature vector. Classification based on reliability and accuracy of feature vectors can also further improve the accuracy of identifying abnormal transaction objects.
[0091] In the above-mentioned embodiment, the server can perform feature processing on each descriptive feature information based on different feature processing methods for different feature types. The following will further introduce the specific implementation methods for performing feature processing on different feature types respectively: In one embodiment, Figure 6 As shown, feature processing is performed on each first description feature information to be processed, each second description feature information to be processed, and each third description feature information to be processed, respectively, to obtain a first feature vector corresponding to each first description feature information to be processed, a second feature vector corresponding to each second description feature information to be processed, and a third feature vector corresponding to each third description feature information to be processed, including:
[0092] Step 602: Perform embedding mapping processing on each first to-be-processed description feature information to obtain each first feature vector.
[0093] Specifically, the server performs embedding and mapping processing on each first to-be-processed description feature information to obtain each first feature vector. That is, the server performs embedding and mapping processing on each first to-be-processed description feature information through feature embedding (Embeddin) to obtain each first feature vector.
[0094] Step 604: Standardize each second to-be-processed descriptive feature information to obtain each second feature vector.
[0095] Specifically, the server performs standardization processing on each second to-be-processed description feature information to obtain each second feature vector. That is, the server first scales each second to-be-processed description feature information to second description feature information with a mean of 0 and a variance of 1, and then performs feature engineering processing on each second description feature information to obtain each second feature vector.
[0096] The aforementioned feature engineering process at least includes: data cleaning, normalization, feature encoding and feature extraction, etc. Data cleaning is mainly used to fill in missing values of feature information and encode noise. Normalization is mainly used to unify the data range of feature information and accelerate gradient descent. Feature encoding is used to describe feature information in a digital way, and feature extraction is used to eliminate redundant features and retain only relatively important features.
[0097] Step 606: Encode each third to-be-processed description feature information to obtain each third feature vector.
[0098] Specifically, the server encodes each third to-be-processed descriptive feature information to obtain each third feature vector. That is, the server performs One-Hot Encoding on each third to-be-processed descriptive feature information to obtain each third feature vector. In the process of encoding each descriptive feature information, similar steps such as data cleaning, normalization, feature encoding, and feature extraction can be performed through the feature engineering process introduced in the aforementioned embodiment, which is not limited here.
[0099] Based on this, based on each feature vector, the specific process of classifying the transaction object to be detected is: splicing each first feature vector, each second feature vector and each third feature vector to obtain the spliced feature vector, and then classifying the transaction object to be detected based on the spliced feature vector.
[0100] In this embodiment, by embedding and mapping each first to-be-processed descriptive feature information, standardizing each second to-be-processed descriptive feature information, and encoding each third to-be-processed descriptive feature information, a specific feature processing method is provided to ensure the feasibility of obtaining a feature vector. Secondly, the embedding and mapping processing method enables the obtained first feature vector to more comprehensively and completely describe high-order discrete features, and the standardization processing enables the different information attributes in the obtained second feature vector to have equal weights, thereby further ensuring the reliability of the feature vector finally obtained. Classification based on the reliability feature vector can also further improve the reliability of identifying abnormal transaction objects.
[0101] The specific method of embedding and mapping each first to-be-processed description feature information will be described in detail below. Figure 7 As shown, each first feature information to be processed is embedded and mapped to obtain each first feature vector, including
[0102] Step 702, embedding and mapping processing is performed on each first to-be-processed description feature information through K feature embedding layers in the object classification model to obtain each first feature vector.
[0103] Among them, K is the total number of first description feature information to be processed, and the batch size of the feature embedding layer is the highest order among the feature orders corresponding to each first description feature information to be processed.
[0104] Specifically, the server embeds and maps each first descriptive feature information to be processed through the K feature embedding layers in the object classification model to obtain each first feature vector. That is, the server determines the number of feature embedding layers (K) in the object classification model through the total number of first descriptive feature information to be processed. For example, the first descriptive feature information to be processed includes first descriptive feature information to be processed C1, first descriptive feature information to be processed C2, first descriptive feature information to be processed C3 and first descriptive feature information to be processed C4, then K is 4. That is, the server embeds and maps the first descriptive feature information C1 to the first descriptive feature information C4 through the 4 feature embedding layers in the object classification model to obtain the first feature vectors corresponding to the first descriptive feature information C1 to the first descriptive feature information C4 respectively.
[0105] Furthermore, the batch size of each feature embedding layer in the K feature embedding layers is the same, that is, in the K feature embedding layers [N×M], N is the batch size and M is the dimension of the mapping vector. The aforementioned M is generally set to a multiple of 4 according to scenario requirements and application experience, that is, M can be: 4, 8, 16, 32, 64, etc. The batch size N is the highest order in the feature order corresponding to each first description feature information to be processed, that is, each first description feature information to be processed has a corresponding feature order, and the feature order is the number of non-repeated information attributes in the first description feature information to be processed. For example: the first description feature information to be processed is specifically [1, 1, 2, 2, 3, 3, 4, 4, 5, 6, 7], that is, there are 6 different information attributes 1, 2, 3, 4, 5, 6, 7 in the first description feature information to be processed, that is, the feature order of the first description feature information to be processed is 7.
[0106] Based on this, the feature orders corresponding to the first to-be-processed descriptive feature information are counted, and the highest order in the feature orders is determined as the batch size of the feature embedding layer. For example, the feature order corresponding to the first to-be-processed descriptive feature information C1 is 7, the feature order corresponding to the first to-be-processed descriptive feature information C2 is 12, and the feature order corresponding to the first to-be-processed descriptive feature information C3 is 8. It can be determined that the feature order of 12 is the highest order, so the batch size N of the feature embedding layer is specifically 12. It can be seen that the server inputs the K first to-be-processed descriptive feature information into the feature embedding layer for mapping, and then uses the K [1×M] first feature vectors shared by the K feature embedding layers, and then splices each first feature vector, each second feature vector, and each third feature vector based on the method described in the aforementioned embodiment to perform subsequent classification steps.
[0107] In this embodiment, each first piece of descriptive feature information to be processed is embedded and mapped through multiple feature embedding layers in the object classification model. Since the number of feature embedding layers and the specific batch size need to be determined based on the feature order and specific quantity of each first piece of descriptive feature information to be processed, high-order features can be more accurately combined and reduced in dimension, thereby providing a reliable first feature vector for the subsequent identification of abnormal transaction objects.
[0108] It can be seen from the above embodiments that the present application essentially requires feature processing and object classification through a model obtained through deep learning, which is described in detail below: In one embodiment, Figure 8 As shown, based on the feature types corresponding to the respective description feature information, feature processing is performed on the respective description feature information to obtain the feature vectors corresponding to the respective description feature information, including:
[0109] Step 802: Based on each feature type, feature processing is performed on each descriptive feature information through an object classification model to obtain each feature vector.
[0110] The object classification model is trained based on positive object samples and negative object samples obtained after downsampling. The positive object samples are abnormal transaction object samples, and the negative object samples are normal transaction object samples. The aforementioned downsampling can be a random sampling process of the initial negative object samples, or after clustering the attribute information of each initial object sample, sampling from clusters with higher similarity or higher positive-negative sample ratio. Downsampling is mainly used to avoid the problem of inter-class imbalance between positive and negative samples.
[0111] Specifically, the server performs feature processing on each descriptive feature information based on each feature type, specifically through the object classification model, to obtain each feature vector. In a manner similar to the aforementioned embodiment, that is, the server performs embedding mapping processing on each first descriptive feature information to be processed through K feature embedding layers in the object classification model based on each feature type to obtain each first feature vector, and then performs standardization processing on each second descriptive feature information to be processed through the object classification model to obtain each second feature vector, and performs encoding processing on each third descriptive feature information to be processed through the object classification model to obtain each third feature vector, which will not be repeated here.
[0112] Based on this, based on each feature vector, the transaction object to be detected is classified to determine the object classification result, including:
[0113] Step 804: Based on each feature vector, classify the transaction object to be detected by using an object classification model to determine an object classification result.
[0114] Specifically, the server classifies the transaction object to be detected based on each feature vector through an object classification model in a manner similar to the aforementioned embodiment, so that the object classification model outputs the probability that the transaction object to be detected belongs to an abnormal transaction object, and then compares the probability that the transaction object to be detected belongs to an abnormal transaction object with the abnormal probability threshold to determine the final object classification result, which will not be repeated here.
[0115] For ease of understanding, Fig. 9As shown, after obtaining the descriptive characteristic information 901 of the transaction object to be detected under multiple information dimensions, the feature type 902 corresponding to each descriptive characteristic information is first determined, and then the descriptive characteristic information 901 is further divided into the first descriptive characteristic information to be processed 903, the second descriptive characteristic information to be processed 904, and the third descriptive characteristic information to be processed 905 according to the feature type 902. Based on this, the front end of the object classification model 906 designs K [N×M] feature embedding layers 907, and each first to-be-processed description feature information 903 is embedded and mapped through the feature embedding layer 907 to obtain each first feature vector 908, and then each second to-be-processed description feature information 904 is standardized to obtain each second feature vector 909, and each third to-be-processed description feature information 905 is encoded through the object classification model to obtain each third feature vector 910, and then the first feature vector 908, each second feature vector 909 and each third feature vector 910 are spliced, and then the spliced first feature vector 908 to each third feature vector 910 are processed through the Transformer Block 911, and the processed features are input to the average pooling (global average The average pooling layer 912 can reduce the dimensionality of the 3D tensor to a 2D tensor, that is, introduce a global perspective in the sequence dimension, so as to fuse the feature vectors, and finally input the features after the average pooling processing to the fully connected layer 913, so as to output the probability that the transaction object to be detected belongs to an abnormal transaction object through the fully connected layer 913.
[0116] Furthermore, the object classification model specifically includes three series-connected Transformer Blocks, and the specific structure of each Transformer Block is as follows: Fig.10As shown, it includes a multi-head attention layer 1002, a residual and normalization (Add&Norm) layer 1004, a forward propagation (Feed Forward) layer 1006 and a residual and normalization (Add&Norm) layer 1008. The Multi-Head Attention layer 1002 can capture the correlation coefficients between feature information in multiple dimensions. The Add&Norm layer 1004 and the Add&Norm layer 1008 are composed of two parts: residual (Add) and normalization (Norm). Add specifically represents residual connection (Residual Connection), and Add is specifically used to prevent network degradation. Norm specifically represents layer normalization (Layer Normalization), and Norm is specifically used to normalize the activation value of each layer. And the Feed Forward layer 1006 is specifically a two-layer fully connected layer, the activation function of the first layer is Relu, and the second layer does not use an activation function.
[0117] It should be understood that all examples in this embodiment are used to understand the present solution and should not be understood as specific limitations of the present solution.
[0118] In this embodiment, the feasibility of feature processing and object classification can be guaranteed by the object classification model, and the object classification model is trained based on positive object samples and negative object samples obtained after downsampling. The downsampling process can avoid the inter-class imbalance problem between positive and negative samples, thereby ensuring the reliability of the object classification model and improving the reliability of classification through the object classification model.
[0119] The specific method for obtaining the object classification model is described in detail below: In one embodiment, Fig.11 As shown, the method for obtaining the object classification model includes:
[0120] Step 1102, obtaining an object sample set, and obtaining descriptive feature information samples of each object sample in the object sample set under each information dimension, wherein the object sample set includes positive object samples and negative object samples.
[0121] The object sample set includes positive object samples and negative object samples, the positive object samples are abnormal transaction object samples, the negative object samples are normal transaction object samples, and the negative object samples in the object sample set are obtained by downsampling the initial negative object samples. Secondly, the description feature information sample is similar to the description feature information, which will not be repeated here.
[0122] Specifically, the server first obtains an object sample set. The server can directly obtain the object sample set obtained by the completed downsampling process from the data storage system, or the server can first obtain the initial object sample set, which includes multiple initial positive object samples and multiple initial negative object samples. Since the normal transaction object samples with normal transaction behaviors account for the majority, there will be an extreme inter-class imbalance problem. In order to improve the learning performance of the object classification model, the server specifically performs downsampling processing on the multiple initial negative object samples in the initial object sample set to obtain the object sample set. Furthermore, based on the method of the aforementioned embodiment, the server obtains the descriptive feature information samples of each object sample in the object sample set under each information dimension based on multiple information dimensions, which will not be repeated here.
[0123] Step 1104 , determining the feature sample type corresponding to each descriptive feature information sample of each object sample.
[0124] Among them, the feature sample types include at least: continuous features and discrete features, and the discrete features specifically include: low-order discrete features and high-order discrete features. The specific feature sample types are similar to the feature types introduced in the above-mentioned embodiments. Specifically, the server determines the feature sample type corresponding to each descriptive feature information sample of each object sample through a method similar to the above-mentioned embodiment for each object sample, so it will not be repeated here.
[0125] Step 1106, based on the feature sample type corresponding to each descriptive feature information sample of each object sample, feature processing is performed on each descriptive feature information sample of each object sample through the initial object classification model to obtain a feature sample vector corresponding to each descriptive feature information sample of each object sample.
[0126] The feature processing includes at least: embedding mapping processing and standardization processing, and different feature types correspond to different feature processing methods. Specifically, for each object sample, the server performs feature processing on each descriptive feature information sample of each object sample through the initial object classification model, and outputs the feature sample vector corresponding to each descriptive feature information sample of each object sample through the initial object classification model.
[0127] Further, it can be known from the aforementioned embodiments that the initial object classification model can determine the descriptive feature information samples whose feature sample types are high-order discrete features as the first descriptive feature information samples to be processed, determine the descriptive feature information samples whose feature sample types are continuous features as the second descriptive feature information samples to be processed, and determine the descriptive feature information samples whose feature sample types are low-order discrete features as the third descriptive feature information samples to be processed. Then, each first descriptive feature information sample to be processed is embedded and mapped to obtain each first feature sample vector, each second descriptive feature information sample to be processed is standardized to obtain each second feature sample vector, and each third descriptive feature information sample to be processed is encoded to obtain each third feature sample vector. The specific processing method is similar to that of the aforementioned embodiments and will not be repeated here.
[0128] Step 1108: Based on the feature sample vectors corresponding to each descriptive feature information sample of each object sample, the predicted object classification results corresponding to each object sample are output through the initial object classification model.
[0129] Further, based on the above-mentioned embodiments, the server can obtain the first feature sample vector, each second feature sample vector and each third feature sample vector after feature processing. At this time, the server splices each first feature sample vector, each second feature sample vector and each third feature sample vector, and classifies the feature sample vector obtained after splicing through the initial object classification model, outputs the probability that each object sample belongs to an abnormal transaction object, and uses the predicted object classification result corresponding to each object sample. The specific processing method is similar to the above-mentioned embodiment and will not be repeated here.
[0130] Step 1110, updating the model parameters of the initial object classification model according to each predicted object classification result to obtain an object classification model.
[0131] Specifically, the server updates the model parameters of the initial object classification model through each predicted object classification result to obtain the object classification model. That is, the server calculates the loss value through each predicted object classification result, and updates the model parameters of the initial object classification model through the loss value.
[0132] Therefore, the server can judge whether the loss function of the initial object classification model has reached the convergence condition according to the calculated loss value. If the convergence condition is not reached, the model parameters of the initial object classification model are adjusted using the loss value. Based on this, until the loss function of the initial object classification model reaches the convergence condition, the object classification model is obtained according to the model parameters obtained after the model parameters of the initial object classification model are adjusted for the last time. In actual applications, the initial object classification model obtained through training is used to classify the transaction objects to be detected to determine the object classification result.
[0133] In this embodiment, the problem of inter-class imbalance between positive and negative samples can be avoided through downsampling processing, thereby ensuring the reliability of the object classification model. The object classification model obtained through relatively balanced inter-class samples has the ability to distinguish between normal transaction objects and abnormal transaction objects, further ensuring the robustness and reliability of the object classification model obtained, thereby improving the reliability of classification through the object classification model.
[0134] The following describes in detail how to obtain an object sample set by downsampling: In one embodiment, Fig.12 As shown, obtain an object sample set, including:
[0135] Step 1202, obtaining a plurality of initial positive object samples and a plurality of initial negative object samples, each object sample having corresponding object description information, and the object description information at least includes: object attribute information and object transaction information.
[0136] The object description information at least includes: object attribute information and object transaction information. Specifically, the server can obtain multiple initial positive object samples and multiple initial negative object samples stored in the data storage system, or obtain the initial positive object samples and initial negative object samples after annotation through communication interaction with the terminal. The method of obtaining the initial object samples is not limited here.
[0137] Step 1204 , clustering the initial positive object samples and the initial negative object samples based on the information of each object sample to obtain a plurality of object sample clusters.
[0138] Among them, the object sample clustering cluster includes at least one initial positive object sample and at least one initial negative object sample. And the similarity between the object sample information of the initial object samples in the same object sample clustering cluster is greater than the similarity between the object sample information of the initial object samples in different object sample clustering clusters. Since the clustering goal in this embodiment is to make the points within the class close enough and the points between the classes far enough, the clustering method is specifically the K-means clustering algorithm, and in practical applications, a K-means clustering derivative algorithm based on can also be used, such as the K-Means++ clustering algorithm, the K-Medians clustering algorithm, etc., which are not limited here. And the similarity in this embodiment is specifically the Euclidean distance.
[0139] Specifically, the server calculates the similarity between the object sample information of each initial object sample, and then performs K-means clustering based on the object sample information of each initial object sample to obtain multiple object sample clusters. That is, the server randomly determines multiple initial positive object samples as cluster centroids, and then for each initial object sample (including initial positive object samples and initial negative object samples), the cluster centroid with the largest similarity (i.e., the closest) is determined through the similarity between the object sample information of each initial object sample, thereby obtaining the object sample cluster to be updated, and for the similarity between the initial object samples included in each object sample cluster to be updated, the cluster centroid corresponding to the object sample cluster to be updated is updated, and the aforementioned steps are repeated until convergence, and the object sample cluster can be obtained.
[0140] For example, the server obtains initial positive object samples D1 to D10, and initial negative object samples E1 to E200, and obtains object sample cluster F1, object sample cluster F2, and object sample cluster F3 through clustering. Based on this, object sample cluster F1 may include initial positive object samples D1 to D3, and initial negative object samples E1 to E50, object sample cluster F2 may include initial positive object samples D4 to D6, and initial negative object samples E51 to E120, and object sample cluster F3 may include initial positive object samples D7 to D10, and initial negative object samples E121 to E200.
[0141] Step 1206 , calculating the positive object sample ratio between the number of positive object samples of each initial positive object sample and the number of negative object samples of each initial negative object sample in each object sample cluster.
[0142] Among them, the number of positive object samples is the total number of initial positive object samples in the object sample cluster, and similarly, the number of negative object samples is the total number of initial negative object samples in the object sample cluster. And the positive-negative object sample ratio is used to describe: the ratio between the number of positive object samples and the number of negative object samples.
[0143] Specifically, the server performs statistics on the number of positive and negative samples for each object sample cluster to determine the total number of initial positive object samples (i.e., the number of positive object samples) in each object sample cluster, and the total number of initial negative object samples (i.e., the number of negative object samples) in each object sample cluster. Based on the example of the above steps, further examples are given. Since the object sample cluster F1 can include initial positive object samples D1 to initial positive object samples D3, and initial negative object samples E1 to E50, that is, the total number of initial positive object samples in the object sample cluster F1 is 3, and the total number of initial negative object samples is 50, it can be known that the number of positive object samples in the object sample cluster F1 is 3, and the number of negative object samples is 50.
[0144] Similarly, the object sample cluster F2 may include initial positive object samples D4 to initial positive object samples D6, and initial negative object samples E51 to E120, so the number of positive object samples in the object sample cluster F2 is 3, and the number of negative object samples is 70. And the object sample cluster F3 may include initial positive object samples D7 to initial positive object samples D10, and initial negative object samples E121 to E200, so the number of positive object samples in the object sample cluster F3 is 4, and the number of negative object samples is 80.
[0145] Further, the server calculates the ratio between the number of positive object samples and the number of negative object samples in each object sample cluster to determine the ratio of positive and negative object samples, that is, the ratio of positive and negative object samples in the object sample cluster = the number of positive object samples / the ratio of positive and negative object samples. Exemplarily, based on the above example, the number of positive object samples in the object sample cluster F1 is 3, and the number of negative object samples is 50, so the ratio of positive and negative object samples in the object sample cluster F1 is 3 / 50. Similarly, the number of positive object samples in the object sample cluster F2 is 3, and the number of negative object samples is 70, so the ratio of positive and negative object samples in the object sample cluster F2 is 3 / 70. The number of positive object samples in the object sample cluster F3 is 4, and the number of negative object samples is 80, so the ratio of positive and negative object samples in the object sample cluster F3 is 4 / 80.
[0146] It can be seen that the ratio of positive and negative object samples in the object sample cluster can also describe: the similarity between the object sample information of the initial positive object sample and the object sample information of the initial negative object sample in the same object sample cluster, that is, the higher the ratio of positive and negative object samples, the higher the similarity between the object sample information of the initial negative object sample and the object sample information of the initial positive object sample. The lower the ratio of positive and negative object samples, the lower the similarity between the object sample information of the initial negative object sample and the object sample information of the initial positive object sample.
[0147] Step 1208 , downsampling the multiple initial negative object samples according to the ratio of positive and negative object samples in each object sample cluster, and determining the initial negative object samples after downsampling as negative object samples, and determining the multiple initial positive object samples as positive object samples.
[0148] Specifically, the server performs downsampling processing on multiple initial negative object samples based on the ratio of positive and negative object samples in each object sample clustering cluster to reduce the total number of initial negative object samples, and then determines the initial negative object samples after the downsampling processing as negative object samples, and determines the multiple initial positive object samples initially obtained as positive object samples. Downsampling processing on multiple initial negative object samples can be: based on the ratio of positive and negative object samples in each object sample clustering cluster, the server selects some object sample clustering clusters from the multiple object sample clustering clusters obtained by clustering, and determines the initial negative object samples in the selected object sample clustering clusters as negative object samples. Alternatively, in actual applications, the server can also directly randomly sample the initial negative object samples in each object sample clustering cluster, so as to determine the initial negative object samples obtained by random sampling as negative object samples.
[0149] It can be understood that all examples in this embodiment are used to understand the present solution and should not be understood as specific limitations of the present solution.
[0150] In this embodiment, the ratio of positive and negative object samples can also be used to describe: the similarity between the object sample information of the initial positive object sample and the object sample information of the initial negative object sample in the same object sample cluster. Therefore, based on the similarity of the object sample information of the positive and negative object samples, the model can better learn the ability to distinguish between positive and negative object samples during the training process, further ensuring the robustness and reliability of the obtained object classification model, thereby improving the reliability of classification through the object classification model.
[0151] In one embodiment, Fig.13 As shown, downsampling is performed on multiple initial negative object samples according to the ratio of positive and negative object samples in each object sample cluster, and the initial negative object samples after downsampling are determined as negative object samples, including:
[0152] Step 1302 , sorting each object sample cluster according to the ratio of positive and negative object samples in each object sample cluster to obtain a cluster sorting result.
[0153] The cluster sorting result may be: the result obtained by sorting each object sample cluster according to the ratio of positive and negative object samples in the cluster from large to small, or the result obtained by sorting each object sample cluster according to the ratio of positive and negative object samples in the cluster from small to large. Specifically, the server sorts each object sample cluster according to the ratio of positive and negative object samples in each object sample cluster to obtain the cluster sorting result.
[0154] Exemplarily, based on the example of the above steps, the ratio of positive and negative object samples in object sample cluster F1 is 3 / 50, the ratio of positive and negative object samples in object sample cluster F2 is 3 / 70, and the ratio of positive and negative object samples in object sample cluster F3 is 4 / 80. Based on this, if the positive and negative object sample ratios of each object sample cluster are sorted from large to small, the clustering cluster sorting result is: object sample cluster F1, object sample cluster F3, object sample cluster F2. Conversely, if the positive and negative object sample ratios of each object sample cluster are sorted from small to large, the clustering cluster sorting result is: object sample cluster F2, object sample cluster F3, object sample cluster F1.
[0155] Step 1304 : Based on the cluster sorting result, multiple target clusters are selected from each object sample cluster.
[0156] Among them, the ratio of positive and negative object samples of each target cluster is greater than the ratio of positive and negative object samples of the object sample cluster that is not selected as the target cluster. Specifically, based on the cluster sorting result, the server selects the object sample cluster with a larger ratio of positive and negative object samples from each object sample cluster as the target cluster. If the cluster sorting result is: the result obtained by sorting the positive and negative object sample ratios of each object sample cluster from large to small, then the server uses the object sample cluster at the front in the cluster sorting result as the target cluster. Conversely, if the cluster sorting result is: the result obtained by sorting the positive and negative object sample ratios of each object sample cluster from small to large, then the server uses the object sample cluster at the back in the cluster sorting result as the target cluster.
[0157] For example, the ratio of positive and negative object samples in object sample cluster F1 is 3 / 50, the ratio of positive and negative object samples in object sample cluster F2 is 3 / 70, and the ratio of positive and negative object samples in object sample cluster F3 is 4 / 80. , and the ratio of positive and negative object samples in object sample cluster F3 is 4 / 80, and the cluster sorting result is: object sample cluster F1, object sample cluster F3, object sample cluster F2, at this time, the server can determine object sample cluster F1 and object sample cluster F3 as target clusters.
[0158] Step 1306: determine the initial negative object samples in each target cluster as negative object samples.
[0159] Specifically, the server determines the initial negative object samples in each target cluster as negative object samples. For example, based on the above example, the server can determine the object sample cluster F1 and the object sample cluster F3 as the target cluster, and the object sample cluster F1 includes the initial positive object samples D1 to the initial positive object samples D3, and the initial negative object samples E1 to E50, and the object sample cluster F3 includes the initial positive object samples D7 to the initial positive object samples D10, and the initial negative object samples E121 to E200, then the server can select the initial negative object samples E1 to E50, and the initial negative object samples E121 to E200 as negative object samples.
[0160] It is understandable that, in practical applications, the server may further perform random sampling screening on the initial negative object samples in each target cluster, and determine the initial negative object samples obtained by random sampling screening as negative object samples. It should be understood that all examples in this embodiment are used to understand this solution, and should not be understood as specific limitations of this solution.
[0161] In this embodiment, since the ratio of positive and negative object samples in each target cluster is greater than the ratio of positive and negative object samples in the object sample cluster that is not selected as the target cluster, that is, the similarity between the positive and negative object samples in the target cluster is higher, the negative object samples that are more similar to the positive and negative object samples are included in the training process, so that the model pays more attention to the negative object samples that are difficult to identify, and further enables the model to better learn the ability to distinguish between positive and negative object samples during the training process, further ensuring the robustness and reliability of the obtained object classification model, thereby improving the reliability of classification through the object classification model.
[0162] In one embodiment, Fig.14 As shown, the model parameters of the initial object classification model are updated through the classification results of each predicted object, including:
[0163] Step 1402, configure the weight value and the focus parameter, the weight value is used to increase the weight of the positive sample, and the focus parameter is used to adjust the proportion of the easy-to-classify samples to reduce the weight.
[0164] Considering that there is still a certain imbalance between the positive object samples and the negative object samples after screening, and the imbalance in the number of positive and negative samples usually affects the effect of the classification algorithm. Therefore, this embodiment specifically uses the FocalLoss loss function as the loss function of the object classification model, so that the object classification model pays more attention to the positive samples that are difficult to identify. Specifically, the server configures the weight value and the focus parameter. Among them, the weight value is used to increase the weight of the positive sample, and the focus parameter is used to adjust the proportion of the easy-to-classify samples to lower the weight, and the weight value is specifically α in the Focal Loss loss function. t , the focus parameter is specifically γ (i.e. focusing parameter) in the Focal Loss loss function, and γ ≥ 0.
[0165] Step 1404: Update the model parameters of the initial object classification model based on the weight values, the focus parameters, and the classification results of each predicted object.
[0166] Specifically, the server calculates the loss value based on the weight value, the focus parameter, and the classification results of each predicted object, and updates the model parameters of the initial object classification model through the loss value. The calculation method of the aforementioned loss value can be performed as follows:
[0167] FL(p t )=-α t (1-p t ) γ log(p t ); (1)
[0168] Among them, FL(p t ) represents the loss value, α t represents the weight value, γ represents the focus parameter, (1-p t ) γ represents the modulation factor, p t represents the classification result of the predicted object. The modulation coefficient is used to reduce the weight of the easy-to-classify samples. t can be set to 2, and γ can be set to 0.25.
[0169] Therefore, the server can determine whether the loss function of the initial object classification model has reached the convergence condition according to the loss value calculated by formula (1). If the convergence condition has not been reached, the server can use the loss value to adjust the model parameters of the initial object classification model. Based on this, until the loss function of the initial object classification model reaches the convergence condition, the object classification model is obtained according to the model parameters obtained after the model parameters of the initial object classification model are adjusted for the last time.
[0170] In this embodiment, the weight of the positive sample is increased by the weight value, and the proportion of the weight of the easy-to-classify samples is adjusted by the focus parameter, so that the initial object classification model pays more attention to the positive object samples that are difficult to identify, and the weight of the easy-to-classify samples is reduced by the modulation coefficient when calculating the loss value, so that the model focuses more on the difficult-to-classify samples during training, so that the model can better learn how to more accurately distinguish between positive and negative object samples during the training process, further ensuring the robustness and reliability of the obtained object classification model, and then improving the reliability of classification by the object classification model.
[0171] In one embodiment, Fig.15 As shown, the method for obtaining the object classification model also includes:
[0172] Step 1502 : In the process of updating the model parameters of the initial object classification model, the learning rate of updating the model parameters of the initial object classification model in one iteration is recorded.
[0173] The learning rate of an iterative update is cosine decayed with the learning rate of the previous iterative update. Specifically, when the server calculates the loss value through each predicted object classification result and updates the model parameters of the initial object classification model with the loss value obtained in each iterative update, it also records the learning rate when the model parameters of the initial object classification model are updated in one iteration. The aforementioned learning rate is a hyperparameter that guides how to use the gradient of the loss function to adjust the network weights.
[0174] Step 1504: adjust the learning rate of one iterative update, and perform the next model parameter update based on the adjusted learning rate of one iterative update.
[0175] The adjusted learning rate of an iterative update is cosine decayed with the learning rate of an iterative update. Specifically, the server performs a cosine decay adjustment on the learning rate recorded during each iterative update, and performs the next model parameter update based on the adjusted learning rate of the iterative update.
[0176] For example, the learning rate recorded in the first iterative update is learning rate G1, then the learning rate G1 is adjusted by cosine decay to obtain learning rate G2, and then the second iterative update is based on learning rate G2. After the second iterative update is completed, the learning rate G2 is adjusted by cosine decay to obtain learning rate G3, and then the third iterative update is based on learning rate G3, and so on. At this time, the learning rates G1, G2, and G3 until the end of training show cosine decay. Based on this, that is, in the process of updating the model parameters of the initial object classification model, the cosine decay of the iterative update is as follows: Fig.16 As shown in Figure 2, as the number of iterations increases, the learning rate can be expressed as Fig.16The cosine decay curve is shown.
[0177] In this embodiment, as the number of training iterations increases, the learning rate with cosine decay can enable the object classification model to avoid local optimality, thereby achieving a more detailed global optimality, and can also reach the minimum loss value more quickly, thereby ensuring the reliability and training efficiency of the obtained object classification model, thereby improving the reliability of classification through the object classification model.
[0178] Based on the detailed description of the above embodiments, the complete process of the method for identifying abnormal transaction objects in the embodiments of the present application will be described below. In one embodiment, Fig.17 As shown, a method for identifying abnormal transaction objects is provided. This embodiment uses the method applied to a server as an example for illustration. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0179] Step 1701: Acquire multiple initial positive object samples and multiple initial negative object samples.
[0180] Each object sample has corresponding object description information, and the object description information includes at least object attribute information and object transaction information. Specifically, the server can obtain multiple initial positive object samples and multiple initial negative object samples stored in the data storage system, or obtain the initial positive object samples and initial negative object samples obtained after annotation through communication interaction with the terminal. The method of obtaining the initial object samples is not limited here.
[0181] Step 1702: clustering the initial positive object samples and the initial negative object samples based on the information of each object sample to obtain a plurality of object sample clusters.
[0182] Among them, the object sample clustering cluster includes at least one initial positive object sample and at least one initial negative object sample. And the similarity between the object sample information of the initial object samples in the same object sample clustering cluster is greater than the similarity between the object sample information of the initial object samples in different object sample clustering clusters. Since the clustering goal in this embodiment is to make the points within the class close enough and the points between the classes far enough, the clustering method is specifically the K-means clustering algorithm, and in practical applications, a K-means clustering derivative algorithm based on can also be used, such as the K-Means++ clustering algorithm, the K-Medians clustering algorithm, etc., which are not limited here. And the similarity in this embodiment is specifically the Euclidean distance.
[0183] Specifically, the server calculates the similarity between the object sample information of each initial object sample, and then performs K-means clustering based on the object sample information of each initial object sample to obtain a plurality of object sample clusters.
[0184] Step 1703 , calculating the positive object sample ratio between the number of positive object samples of each initial positive object sample and the number of negative object samples of each initial negative object sample in each object sample cluster.
[0185] Among them, the number of positive object samples is the total number of initial positive object samples in the object sample cluster, and similarly, the number of negative object samples is the total number of initial negative object samples in the object sample cluster. And the positive-negative object sample ratio is used to describe: the ratio between the number of positive object samples and the number of negative object samples.
[0186] Specifically, the server counts the number of positive and negative samples for each object sample cluster to determine the total number of initial positive object samples (i.e., the number of positive object samples) in each object sample cluster, and the total number of initial negative object samples (i.e., the number of negative object samples) in each object sample cluster. Further, the server calculates the ratio between the number of positive object samples and the number of negative object samples in each object sample cluster to determine the positive-negative object sample ratio, i.e., the positive-negative object sample ratio of the object sample cluster = the number of positive object samples / the positive-negative object sample ratio.
[0187] Step 1704 , sorting each object sample cluster according to the ratio of positive and negative object samples in each object sample cluster to obtain a cluster sorting result.
[0188] The cluster sorting result may be: the result obtained by sorting each object sample cluster according to the ratio of positive and negative object samples in the cluster from large to small, or the result obtained by sorting each object sample cluster according to the ratio of positive and negative object samples in the cluster from small to large. Specifically, the server sorts each object sample cluster according to the ratio of positive and negative object samples in each object sample cluster to obtain the cluster sorting result.
[0189] Step 1705 : Based on the cluster sorting result, multiple target clusters are selected from each object sample cluster.
[0190] Among them, the ratio of positive and negative object samples of each target cluster is greater than the ratio of positive and negative object samples of the object sample cluster that is not selected as the target cluster. Specifically, based on the cluster sorting result, the server selects the object sample cluster with a larger ratio of positive and negative object samples from each object sample cluster as the target cluster. If the cluster sorting result is: the result obtained by sorting the positive and negative object sample ratios of each object sample cluster from large to small, then the server uses the object sample cluster at the front in the cluster sorting result as the target cluster. Conversely, if the cluster sorting result is: the result obtained by sorting the positive and negative object sample ratios of each object sample cluster from small to large, then the server uses the object sample cluster at the back in the cluster sorting result as the target cluster.
[0191] Step 1706: determine the initial negative object samples in each target cluster as negative object samples, and determine multiple initial positive object samples as positive object samples.
[0192] Specifically, the server determines the initial negative object samples in each target cluster as negative object samples, and determines multiple initial positive object samples as positive object samples. It is understandable that in actual applications, the server can also determine the initial negative object samples in each target cluster and the initial negative object samples obtained by random sampling as negative object samples.
[0193] Step 1707: Determine the feature sample type corresponding to each descriptive feature information sample of each object sample.
[0194] Among them, the feature sample types include at least: continuous features and discrete features, and the discrete features specifically include: low-order discrete features and high-order discrete features. The specific feature sample types are similar to the feature types introduced in the above embodiment. Specifically, the server determines the feature sample type corresponding to each descriptive feature information sample of each object sample through a method similar to the above embodiment for each object sample.
[0195] Step 1708, based on the feature sample type corresponding to each descriptive feature information sample of each object sample, feature processing is performed on each descriptive feature information sample of each object sample through the initial object classification model to obtain a feature sample vector corresponding to each descriptive feature information sample of each object sample.
[0196] The feature processing includes at least: embedding mapping processing and standardization processing, and different feature types correspond to different feature processing methods. Specifically, for each object sample, the server performs feature processing on each descriptive feature information sample of each object sample through the initial object classification model, and outputs the feature sample vector corresponding to each descriptive feature information sample of each object sample through the initial object classification model.
[0197] Step 1709: Based on the feature sample vectors corresponding to each descriptive feature information sample of each object sample, the predicted object classification results corresponding to each object sample are output through the initial object classification model.
[0198] The predicted object classification result is used to describe whether the object sample is an abnormal transaction object or a normal transaction object. Specifically, the server outputs the probability that each object sample belongs to an abnormal transaction object through the initial object classification model, and then compares the probability that each object sample belongs to an abnormal transaction object with the abnormal probability threshold to determine the predicted object classification result corresponding to each object sample.
[0199] Step 1710, configure weight values and focus parameters.
[0200] Considering that there is still a certain imbalance between the positive object samples and the negative object samples after screening, and the imbalance in the number of positive and negative samples usually affects the effect of the classification algorithm. Therefore, this embodiment specifically uses the FocalLoss loss function as the loss function of the object classification model, so that the object classification model pays more attention to the positive samples that are difficult to identify. Specifically, the server configures the weight value and the focus parameter. Among them, the weight value is used to increase the weight of the positive sample, and the focus parameter is used to adjust the proportion of the easy-to-classify samples to lower the weight, and the weight value is specifically α in the Focal Loss loss function. t , the focus parameter is specifically γ (i.e. focusing parameter) in the Focal Loss loss function, and γ ≥ 0.
[0201] Step 1711, updating the model parameters of the initial object classification model based on the weight values, the focus parameters, and the classification results of each predicted object.
[0202] Specifically, the server calculates a loss value based on the weight value, the focus parameter, and each predicted object classification result, and updates the model parameters of the initial object classification model through the loss value.
[0203] Step 1712, in the process of updating the model parameters of the initial object classification model, record the learning rate when the model parameters of the initial object classification model are updated in one iteration; adjust the learning rate of the one iterative update, and update the model parameters for the next time based on the adjusted learning rate of the one iterative update to obtain the object classification model.
[0204] The learning rate of an iterative update is cosine decayed with the learning rate of the previous iterative update. Specifically, when the server calculates the loss value through each predicted object classification result and updates the model parameters of the initial object classification model with the loss value obtained in each iterative update, it also records the learning rate when the model parameters of the initial object classification model are updated in one iteration. The aforementioned learning rate is a hyperparameter that guides how to use the gradient of the loss function to adjust the network weights.
[0205] Furthermore, the server performs a cosine decay adjustment on the learning rate recorded during each iterative update, and performs the next model parameter update based on the adjusted iterative updated learning rate. The learning rate of an iterative update after adjustment is cosine decayed with the learning rate of an iterative update. Finally, until the loss function of the initial object classification model reaches the convergence condition, the object classification model is obtained according to the model parameters obtained after the model parameters of the initial object classification model are adjusted for the last time.
[0206] Step 1713, obtaining the transaction object to be detected, and obtaining descriptive feature information of the transaction object to be detected in multiple information dimensions.
[0207] Among them, the transaction object to be detected is the transaction object to be detected whether it is an abnormal transaction object. The multiple information dimensions at least include: transaction information dimension and transaction object information dimension, and the transaction information dimension at least includes: transaction information dimension of a single transaction, and transaction information comparison dimension of multiple transactions. Similarly, the transaction object information dimension at least includes: information dimension of the transaction initiator object, information dimension of the transaction recipient object, and information comparison dimension of the transaction initiator object and the transaction recipient object. Based on this, the descriptive feature information is the descriptive feature information based on the corresponding information dimension, that is, the descriptive feature information can at least include: descriptive feature information of the transaction information dimension, and descriptive feature information of the transaction object information dimension.
[0208] Specifically, the server obtains the transaction object to be detected. The server may obtain the stored transaction object to be detected from the data storage system, or may obtain the transaction object to be detected in real time through communication interaction with the terminal. Further, the server obtains descriptive feature information of the transaction object to be detected under multiple information dimensions. That is, the server obtains the descriptive feature information of the transaction object to be detected at least from the transaction information dimension and the transaction object information dimension.
[0209] Step 1714, determining the feature type corresponding to each descriptive feature information.
[0210] Specifically, the server determines the feature type corresponding to each descriptive feature information, that is, the server determines the feature type corresponding to each descriptive feature information based on the statistical acquisition method and specific description manner of each descriptive feature information.
[0211] Step 1715 , based on the feature types corresponding to the respective descriptive feature information, feature processing is performed on the respective descriptive feature information through the object classification model to obtain feature vectors corresponding to the respective descriptive feature information.
[0212] The feature processing includes at least: embedding mapping processing and standardization processing, and different feature types correspond to different feature processing methods. Specifically, based on the feature types corresponding to each descriptive feature information, the server performs feature processing on each descriptive feature information through the object classification model obtained in the above steps to obtain feature vectors corresponding to each descriptive feature information. That is, the server performs feature processing on each descriptive feature information using different feature processing methods for different feature types through the object classification model to obtain feature vectors corresponding to each descriptive feature information.
[0213] Step 1716: Based on each feature vector, classify the transaction object to be detected by using an object classification model to determine an object classification result.
[0214] The object classification result is used to describe whether the transaction object to be detected is an abnormal transaction object or a normal transaction object. Specifically, based on each feature vector, the transaction object to be detected is classified by an object classification model to determine the object classification result. That is, the server classifies the transaction object to be detected based on each feature vector, and specifically obtains the probability that the transaction object to be detected belongs to an abnormal transaction object through the object classification model, and then compares the probability that the transaction object to be detected belongs to an abnormal transaction object with the abnormal probability threshold to determine the final object classification result.
[0215] It should be understood that the specific implementations of steps 1701 to 1716 are similar to those of the aforementioned embodiments and will not be repeated here.
[0216] It should be understood that, although the steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0217] Based on the same inventive concept, the embodiment of the present application also provides an abnormal transaction object identification device for implementing the abnormal transaction object identification method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for identifying one or more abnormal transaction objects provided below can refer to the limitations of the abnormal transaction object identification method above, and will not be repeated here.
[0218] In one embodiment, Fig.18 As shown, a device for identifying abnormal transaction objects is provided, including: an acquisition module 1802, a feature type determination module 1804, a feature vector acquisition module 1806 and an object classification module 1808, wherein:
[0219] The acquisition module 1802 is used to acquire the transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, where the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension;
[0220] The feature type determination module 1804 is used to determine the feature type corresponding to each descriptive feature information, and the feature type at least includes: continuous feature and discrete feature;
[0221] The feature vector acquisition module 1806 is used to perform feature processing on each descriptive feature information based on the feature type corresponding to each descriptive feature information, so as to obtain the feature vector corresponding to each descriptive feature information;
[0222] The object classification module 1808 is used to classify the transaction object to be detected based on each feature vector to determine the object classification result. The object classification result is used to describe whether the transaction object to be detected is an abnormal transaction object or a normal transaction object.
[0223] In one embodiment, the discrete features specifically include: low-order discrete features and high-order discrete features;
[0224] The feature vector acquisition module 1806 is specifically used to determine the descriptive feature information whose feature type is a high-order discrete feature as the first descriptive feature information to be processed, determine the descriptive feature information whose feature type is a continuous feature as the second descriptive feature information to be processed, and determine the descriptive feature information whose feature type is a low-order discrete feature as the third descriptive feature information to be processed; perform feature processing on each first descriptive feature information to be processed, each second descriptive feature information to be processed, and each third descriptive feature information to be processed, respectively, to obtain a first feature vector corresponding to each first descriptive feature information to be processed, a second feature vector corresponding to each second descriptive feature information to be processed, and a third feature vector corresponding to each third descriptive feature information to be processed.
[0225] In one embodiment, the feature vector acquisition module 1806 is specifically used to perform embedding mapping processing on each first piece of descriptive feature information to be processed to obtain each first feature vector; perform standardization processing on each second piece of descriptive feature information to be processed to obtain each second feature vector; perform encoding processing on each third piece of descriptive feature information to be processed to obtain each third feature vector.
[0226] In one embodiment, the feature vector acquisition module 1806 is specifically used to perform embedding mapping processing on each first descriptive feature information to be processed through K feature embedding layers in the object classification model to obtain each first feature vector; wherein K is the total number of first descriptive feature information to be processed, and the batch size of the feature embedding layer is the highest order among the feature orders corresponding to each first descriptive feature information to be processed.
[0227] In one embodiment, the feature vector acquisition module 1806 is specifically used to perform feature processing on each descriptive feature information through an object classification model based on each feature type to obtain each feature vector;
[0228] The object classification module 1808 is specifically used to classify the transaction objects to be detected based on each feature vector through an object classification model to determine the object classification result; wherein the object classification model is trained based on positive object samples and negative object samples obtained after downsampling, the positive object samples are abnormal transaction object samples, and the negative object samples are normal transaction object samples.
[0229] In one embodiment, Fig.19 As shown, the device for identifying abnormal transaction objects further includes a model acquisition module 1902;
[0230] The model acquisition module 1902 is used to obtain an object sample set, and obtain descriptive feature information samples of each object sample in the object sample set under each information dimension, wherein the object sample set includes positive object samples and negative object samples; determine the feature sample type corresponding to each descriptive feature information sample of each object sample; based on the feature sample type corresponding to each descriptive feature information sample of each object sample, perform feature processing on each descriptive feature information sample of each object sample through an initial object classification model to obtain a feature sample vector corresponding to each descriptive feature information sample of each object sample; based on the feature sample vector corresponding to each descriptive feature information sample of each object sample, output a predicted object classification result corresponding to each object sample through the initial object classification model; and update the model parameters of the initial object classification model through each predicted object classification result to obtain an object classification model.
[0231] In one embodiment, the model acquisition module 1902 is specifically used to obtain multiple initial positive object samples and multiple initial negative object samples, each object sample has corresponding object description information, and the object description information at least includes: object attribute information and object transaction information; based on each object sample information, the initial positive object samples and the initial negative object samples are clustered to obtain multiple object sample clusters; the number of positive object samples of each initial positive object sample in each object sample cluster and the ratio of positive and negative object samples to the number of negative object samples of each initial negative object sample are calculated; according to the positive and negative object sample ratio of each object sample cluster, the multiple initial negative object samples are downsampled, and the initial negative object samples after the downsampling are determined as negative object samples, and the multiple initial positive object samples are determined as positive object samples.
[0232] In one embodiment, the model acquisition module 1902 is specifically used to sort each object sample cluster cluster according to the ratio of positive and negative object samples in each object sample cluster cluster to obtain a cluster cluster sorting result; based on the cluster cluster sorting result, select multiple target cluster clusters from each object sample cluster cluster; determine the initial negative object sample in each target cluster cluster as a negative object sample.
[0233] In one embodiment, the model acquisition module 1902 is specifically used to configure weight values and focus parameters. The weight values are used to increase the weights of positive samples, and the focus parameters are used to adjust the proportion of lowering the weights of easy-to-classify samples; the model parameters of the initial object classification model are updated based on the weight values, focus parameters, and the classification results of each predicted object.
[0234] In one embodiment, the model acquisition module 1902 is specifically used to record the learning rate of an iterative update of the model parameters of the initial object classification model during the process of updating the model parameters of the initial object classification model; adjust the learning rate of the iterative update, and perform the next model parameter update based on the adjusted learning rate of the iterative update; wherein the adjusted learning rate of the iterative update has a cosine decay with the learning rate of the iterative update.
[0235] Each module in the above-mentioned abnormal transaction object identification device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0236] In one embodiment, a computer device is provided. The computer device may be a server or a terminal. In this embodiment, the computer device is described as a server. The internal structure diagram thereof may be as follows: Fig. 20 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store descriptive feature information and object samples and other data under multiple information dimensions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for identifying abnormal transaction objects is implemented.
[0237] Those skilled in the art will understand that Fig. 20 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0238] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0239] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0240] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0241] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0242] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0243] The technical feature information of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical feature information in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical feature information, they should be considered to be within the scope of this specification.
[0244] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for identifying abnormal transaction objects, characterized in that: include: Acquire a transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, wherein the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension; Determine the feature type corresponding to each of the descriptive feature information, wherein the feature type includes at least: a continuous feature and a discrete feature; Based on the feature types respectively corresponding to the respective description feature information, feature processing is performed on the respective description feature information to obtain feature vectors respectively corresponding to the respective description feature information; Based on each of the feature vectors, the transaction object to be detected is classified to determine an object classification result, wherein the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
2. The method according to claim 1, characterized in that The discrete features specifically include: low-order discrete features and high-order discrete features; The performing feature processing on each of the descriptive feature information based on the feature type corresponding to each of the descriptive feature information to obtain a feature vector corresponding to each of the descriptive feature information includes: Determine the descriptive feature information whose feature type is the high-order discrete feature as the first descriptive feature information to be processed, determine the descriptive feature information whose feature type is the continuous feature as the second descriptive feature information to be processed, and determine the descriptive feature information whose feature type is the low-order discrete feature as the third descriptive feature information to be processed; Feature processing is performed on each of the first to-be-processed descriptive feature information, each of the second to-be-processed descriptive feature information, and each of the third to-be-processed descriptive feature information, respectively, to obtain a first feature vector corresponding to each of the first to-be-processed descriptive feature information, a second feature vector corresponding to each of the second to-be-processed descriptive feature information, and a third feature vector corresponding to each of the third to-be-processed descriptive feature information.
3. The method according to claim 2, characterized in that The feature processing is performed on each of the first to-be-processed description feature information, each of the second to-be-processed description feature information, and each of the third to-be-processed description feature information, respectively, to obtain a first feature vector corresponding to each of the first to-be-processed description feature information, a second feature vector corresponding to each of the second to-be-processed description feature information, and a third feature vector corresponding to each of the third to-be-processed description feature information, including: Performing embedding mapping processing on each of the first to-be-processed description feature information to obtain each of the first feature vectors; Performing standardization processing on each of the second to-be-processed descriptive feature information to obtain each of the second feature vectors; Each of the third to-be-processed description feature information is encoded to obtain each of the third feature vectors.
4. The method according to claim 3, characterized in that The embedding and mapping processing is performed on each of the first to-be-processed description feature information to obtain each of the first feature vectors, including: Performing embedding mapping processing on each of the first to-be-processed descriptive feature information through K feature embedding layers in the object classification model to obtain each of the first feature vectors; Among them, K is the total number of the first descriptive feature information to be processed, and the batch size of the feature embedding layer is the highest order among the feature orders corresponding to each of the first descriptive feature information to be processed.
5. The method according to claim 1, characterized in that The performing feature processing on each of the descriptive feature information based on the feature type corresponding to each of the descriptive feature information to obtain a feature vector corresponding to each of the descriptive feature information includes: Based on each of the feature types, feature processing is performed on each of the descriptive feature information through an object classification model to obtain each of the feature vectors; The classifying the transaction object to be detected based on each of the feature vectors to determine the object classification result includes: Based on each of the feature vectors, classify the transaction object to be detected by using the object classification model to determine an object classification result; The object classification model is trained based on positive object samples and negative object samples obtained after downsampling, the positive object samples are abnormal transaction object samples, and the negative object samples are normal transaction object samples.
6. The method according to claim 5, characterized in that The method for acquiring the object classification model includes: Acquire an object sample set, and acquire descriptive feature information samples of each object sample in the object sample set under each information dimension, wherein the object sample set includes the positive object samples and the negative object samples; Determine the feature sample type corresponding to each of the descriptive feature information samples of each of the object samples; Based on the feature sample type respectively corresponding to each of the descriptive feature information samples of each of the object samples, feature processing is performed on each of the descriptive feature information samples of each of the object samples through an initial object classification model to obtain a feature sample vector respectively corresponding to each of the descriptive feature information samples of each of the object samples; Based on the feature sample vectors respectively corresponding to each of the descriptive feature information samples of the object samples, outputting the predicted object classification results respectively corresponding to each of the object samples through the initial object classification model; The model parameters of the initial object classification model are updated according to each of the predicted object classification results to obtain the object classification model.
7. The method according to claim 6, characterized in that The obtaining of the object sample set comprises: Acquire a plurality of initial positive object samples and a plurality of initial negative object samples, each object sample having corresponding object description information, the object description information at least including: object attribute information and object transaction information; Based on the object sample information, clustering the initial positive object samples and the initial negative object samples to obtain a plurality of object sample clusters; Calculate the number of positive object samples of each initial positive object sample and the ratio of positive object samples to negative object samples of each initial negative object sample in each object sample cluster; The multiple initial negative object samples are downsampled according to the ratio of positive and negative object samples in each object sample cluster, and the initial negative object samples after the downsampling process are determined as the negative object samples, and the multiple initial positive object samples are determined as the positive object samples.
8. The method according to claim 7, characterized in that The downsampling process is performed on the multiple initial negative object samples according to the ratio of positive and negative object samples in each object sample cluster, and the initial negative object samples after the downsampling process are determined as the negative object samples, including: Sorting each of the object sample clusters according to the ratio of positive and negative object samples in each object sample cluster to obtain a cluster sorting result; Based on the cluster ranking result, selecting a plurality of target clusters from each of the object sample clusters; The initial negative object samples in each of the target clusters are determined as the negative object samples.
9. The method according to claim 6, characterized in that The updating of the model parameters of the initial object classification model by each of the predicted object classification results comprises: Configure weight values and focus parameters, wherein the weight values are used to increase the weight of positive samples, and the focus parameters are used to adjust the proportion of easy-to-classify samples to reduce the weight; Model parameters of the initial object classification model are updated based on the weight values, the focus parameters, and each of the predicted object classification results.
10. The method according to claim 6, characterized in that The method further comprises: In the process of updating the model parameters of the initial object classification model, recording a learning rate when the model parameters of the initial object classification model are updated once in an iteration; Adjust the learning rate of one iterative update, and update the model parameters for the next time based on the adjusted learning rate of one iterative update; The adjusted learning rate of one iterative update is cosine-decayed with respect to the learning rate of one iterative update.
11. A device for identifying abnormal transaction objects, characterized in that: The device comprises: An acquisition module, used to acquire a transaction object to be detected, and acquire descriptive feature information of the transaction object to be detected in multiple information dimensions, wherein the multiple information dimensions at least include: a transaction information dimension and a transaction object information dimension; A feature type determination module, used to determine the feature type corresponding to each of the descriptive feature information, wherein the feature type includes at least: a continuous feature and a discrete feature; A feature vector acquisition module, used for performing feature processing on each of the descriptive feature information based on the feature type corresponding to each of the descriptive feature information, so as to obtain a feature vector corresponding to each of the descriptive feature information; The object classification module is used to classify the transaction object to be detected based on each of the feature vectors to determine an object classification result, wherein the object classification result is used to describe: the transaction object to be detected is an abnormal transaction object, or the transaction object to be detected is a normal transaction object.
12. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
