Anti-fraud identification method, device and related equipment based on big data
Through big data methods, including the combination of isolation forest model, graph model and logistic regression model, the problem of low accuracy of existing anti-fraud models is solved and the accuracy of identifying fraud groups is improved.
Patent Information
- Application Number
- CN202111537687.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-15
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-12-15
AI Technical Summary
Existing anti-fraud models require a large amount of historical data during the construction process, including useless data, resulting in low accuracy in identifying fraud groups.
A method based on big data is adopted to obtain user information, use the isolated forest model to identify anomalies, generate a graphical model, expand community sub-network samples, calculate the proportion of abnormal users, use neural networks to extract feature data, and input it into a logistic regression model. Training to form an anti-fraud identification group case model.
The identification accuracy of fraudulent groups is improved, the amount of training data for the logistic regression model is increased through sample expansion, and the parameter accuracy is improved.
Smart Images

Figure CN114861746B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an anti-fraud identification method, device, computer equipment and storage medium based on big data. Background Art
[0002] With the rapid development of the Internet, new credit transaction methods have also emerged. Online transactions have become a part of people's lives. Anti-fraud is one of the important links in corporate credit risk management. At present, in the process of building an anti-fraud model, a large amount of historical data needs to be obtained. These historical data not only include a large amount of historical default data and fraud data, but also a lot of useless data. Using the above historical data to build an anti-fraud model will result in a low accuracy rate in identifying fraudulent groups. Summary of the invention
[0003] The embodiments of the present invention provide an anti-fraud identification method, apparatus, computer equipment and storage medium based on big data to improve the accuracy of identifying fraud gangs.
[0004] In order to solve the above technical problems, the present application embodiment provides an anti-fraud identification method based on big data, including:
[0005] Acquire user information of each user in the user group, the user information including a user identifier and an attribute feature set corresponding to the user identifier;
[0006] Inputting the user identifier, the attribute feature set and the preset abnormal attribute feature set into a trained isolation forest model, and using the trained isolation forest model to perform abnormality identification to obtain an abnormal user identifier, and using the abnormal user identifier as a high-risk user identifier;
[0007] Importing each user information into a graph database, taking all the user identifiers as nodes, connecting any two nodes that have an associated relationship with edges, and generating a graph model;
[0008] Based on the graph model and the preset data query request, a community sub-network with each of the high-risk user identifiers as a central node is obtained, and a sample of the community sub-network is expanded to obtain an expanded sample network;
[0009] Calculate the proportion of abnormal users in each node in each of the expanded sample networks as the high-risk probability;
[0010] Based on the neural network, feature extraction is performed on the expanded sample network to obtain feature data of each node as sample data;
[0011] The sample data and the high-risk probability are input into a logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model.
[0012] In order to solve the above technical problems, the embodiment of the present application further provides an anti-fraud identification device based on big data, including:
[0013] A first acquisition module is used to acquire user information of each user in the user group, wherein the user information includes a user identifier and an attribute feature set corresponding to the user identifier;
[0014] An abnormal user identification module, used to input the user identification, the attribute feature set and the preset abnormal attribute feature set into a trained isolation forest model, and use the trained isolation forest model to perform abnormal identification to obtain an abnormal user identification, and use the abnormal user identification as a high-risk user identification;
[0015] A graph model generation module, used to import each user information into a graph database, take all the user identifiers as nodes, connect any two nodes with an associated relationship with edges, and generate a graph model;
[0016] A sample expansion module, used to obtain a community sub-network with each of the high-risk user identifiers as a central node based on the graph model and a preset data query request, and perform sample expansion on the community sub-network to obtain an expanded sample network;
[0017] A calculation module, used to calculate the proportion of abnormal users in each node in each of the expanded sample networks as a high-risk probability;
[0018] A feature extraction module, used to extract features from the expanded sample network based on a neural network, and obtain feature data of each node as sample data;
[0019] The training module is used to input the sample data and the high-risk probability into the logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model.
[0020] In order to solve the above technical problems, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above anti-fraud identification method based on big data when executing the computer program.
[0021] In order to solve the above technical problems, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned anti-fraud identification method based on big data are implemented.
[0022] The anti-fraud identification method, device, computer equipment and storage medium based on big data provided by the embodiments of the present invention obtain user information of each user in a user group, wherein the user information includes a user identifier and an attribute feature set corresponding to the user identifier, inputs the user identifier, the attribute feature set and a preset abnormal attribute feature set into a trained isolation forest model, and uses the trained isolation forest model to perform abnormal identification to obtain an abnormal user identifier, and uses the abnormal user identifier as a high-risk user identifier, imports each user information into a graph database, uses all user identifiers as nodes, connects any two nodes with an associated relationship by edges, generates a graph model, obtains a community subnetwork with each high-risk user identifier as a central node based on the graph model and a preset data query request, and performs an analysis of the community subnetwork. The sample of the community sub-network is expanded to obtain the expanded sample network, and the proportion of abnormal users in each node in each expanded sample network is calculated as the high-risk probability. Based on the neural network, the feature extraction of the expanded sample network is performed to obtain the feature data of each node as the sample data. The sample data and the high-risk probability are input into the logistic regression model for training until the logistic regression model converges to obtain the anti-fraud identification group case model. The present application adopts a graph model to connect the associated user identifiers, expands the sample of the community sub-network formed with high-risk users as the center, and calculates the high-risk probability of each user identifier. By expanding the sample and increasing the sample data, it is beneficial to improve the parameter accuracy of the logistic regression model after the training is completed, thereby improving the accuracy of identifying fraudulent groups. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0024] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0025] Figure 2 It is a flowchart of an embodiment of the anti-fraud identification method based on big data of the present application;
[0026] Figure 3 It is a structural schematic diagram of an embodiment of an anti-fraud identification device based on big data according to the present application;
[0027] Figure 4 is a schematic structural diagram of an embodiment of a computer device according to the present application;
[0028] Figure 5It is a structural diagram of a decision tree in an embodiment of the anti-fraud group case model establishment method of the present application. DETAILED DESCRIPTION
[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0030] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] See also Figure 1 ,like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0033] Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages, etc.
[0034] Terminal devices 101, 102, 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3), MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) players, laptop computers and desktop computers, etc.
[0035] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0036] It should be noted that the anti-fraud identification method based on big data provided in the embodiment of the present application is executed by a server, and accordingly, the anti-fraud identification device based on big data is arranged in the server.
[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. The terminal devices 101, 102, 103 in the embodiment of the present application may specifically correspond to application systems in actual production.
[0038] See also Figure 2 , Figure 2 An anti-fraud identification method based on big data provided by an embodiment of the present invention is shown. The method is applied in Figure 1 The server in is used as an example to illustrate the details as follows:
[0039] S201: Obtain user information of each user in a user group, where the user information includes a user ID and an attribute feature set corresponding to the user ID.
[0040] Specifically, the user identifier can be one of numbers, letters or text, or a combination thereof. A user identifier represents a user, is unique and representative, and is convenient for identifying the user. The attribute feature set includes multiple attribute features, such as mobile phone number, unique identifier of the mobile phone, relationship between relatives and friends, browser cookie of the same client, etc.
[0041] When obtaining user information, legal and compliant means should be used, and when the present invention is applied, it needs to meet the application scenarios specified by corresponding laws and regulations to ensure the security of user information.
[0042] S202: Input the user identification, attribute feature set and preset abnormal attribute feature set into the trained isolation forest model, and use the trained isolation forest model to perform abnormality recognition to obtain an abnormal user identification, and use the abnormal user identification as a high-risk user identification.
[0043] Specifically, the preset abnormal attribute feature set is obtained by analyzing the attribute feature data corresponding to historical abnormal users. The isolation forest model is a fast anomaly detection method based on tree ensembles. The core idea of its anomaly detection is that "abnormal points are outliers that are easily isolated." Therefore, the isolation forest model uses random features or random thresholds to generate multiple trees until the tree reaches a certain height or until there is only one point in each leaf node, and the outliers are separated. In this application, the user identifier, attribute feature set and preset abnormal attribute feature set are imported into the trained isolation forest model, and the abnormal attribute features in the abnormal attribute feature set are used as judgment conditions. According to whether there are attribute features consistent with the abnormal attribute features in the attribute feature set, the user identifier is divided to obtain the abnormal user identifier.
[0044] S203: Import each user information into a graph database, use all user identifiers as nodes, connect any two nodes that have an associated relationship with edges, and generate a graph model.
[0045] Specifically, graph databases include but are not limited to Neo4j, Arangodb, Orientdb, etc., wherein a graph database refers to a type of NoSQL database, which is a non-relational database that applies graph theory to store relationship information between entities, for example, the relationship between people in a social network. In a graph database, each person is represented as a node, and the relationship between people is represented by nodes and edges between nodes. In this embodiment, the user identifier corresponding to each user is used as a node, and any two user identifiers with an associated relationship are connected by edges, wherein an associated relationship refers to any two user identifiers having the same attribute characteristics, such as using a common mobile phone number, using a common browser cookie, etc.
[0046] S204: Based on the graph model and the preset data query request, a community sub-network with each high-risk user identifier as a central node is obtained, and a sample of the community sub-network is expanded to obtain an expanded sample network.
[0047] Specifically, a preset data query request is generated by a client, and the preset data query request is used to query a community sub-network with each high-risk user identifier as a central node. Based on the preset data query request, an associated data query of each high-risk user identifier is performed in a graph model to obtain multiple community sub-networks. Furthermore, based on the SMOTE (Synthetic Minority Oversampling Technique) algorithm, multiple community sub-networks are oversampled to generate a specific number of expanded sample networks.
[0048] S205: Calculate the proportion of abnormal users in each node in each expanded sample network as the high-risk probability.
[0049] Specifically, the high-risk probability L is calculated according to formula (1):
[0050] (1)
[0051] In formula (1), A is the number of high-risk user identifiers directly associated with the node, and B is the number of all user identifiers directly associated with the node.
[0052] S206: Based on the neural network, feature extraction is performed on the expanded sample network to obtain feature data of each node as sample data.
[0053] Specifically, the neural network is a convolutional neural network. In the present application, the steps of constructing the convolutional neural network CNN are as follows: setting the hyperparameters and loss function of the convolutional neural network CNN, taking the community subnetwork training set and the known node classification labels as the input values of the convolutional neural network CNN, starting to train the convolutional neural network CNN, calculating the loss function according to the output of the convolutional neural network CNN and the image label, and then performing error back propagation. During the error back propagation process, the gradient direction parameter optimization method is used to realize the parameter update during the training process of the convolutional neural network CNN. After the end condition is met, the iterative training is ended to obtain the trained convolutional neural network CNN as a neural network.
[0054] S207: Input the sample data and the high-risk probability into the logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model.
[0055] Specifically, the sample data and high-risk probability are input into the logistic regression model for training until the difference between the predicted probability of the node output by the logistic regression model and the high-risk probability corresponding to the node is less than the preset threshold. The logistic regression model converges, and the model parameters of the logistic regression model are updated to obtain the anti-fraud identification group model. The preset threshold can be obtained by analyzing historical experience data. The logistic regression model can be expressed as:
[0056] y=w1×z1+w2×z2+w3×z3+...+wm×zm+b(2)
[0057] In formula (2), y is the predicted probability of the node, z1, z2, z3, ... zm, represent the m attribute features corresponding to the nodes in the sample data, w1, w2, w3, ... wm, represent the model parameters corresponding to the m attribute features, b is the model bias value, and m is a positive integer greater than 0.
[0058] In some optional implementations of this embodiment, in step S202, the preset abnormal attribute feature set includes Z abnormal attribute features, where Z is a positive integer greater than 0, the user identifier, the attribute feature set and the preset abnormal attribute feature set are input into the trained isolation forest model, and the trained isolation forest model is used to perform abnormal identification to obtain an abnormal user identifier, and the abnormal user identifier is used as a high-risk user identifier, including the following steps S2020 to S2023:
[0059] Step S2020: Generate a root node of the isolation forest model, use abnormal attribute features as judgment conditions, use the root node as the abnormal root node, and use all user identifiers and attribute features as data samples corresponding to the abnormal root node.
[0060] Step S2021: extract abnormal attribute features from a preset abnormal attribute feature set based on preset rules.
[0061] Specifically, the preset extraction rule may be set according to the importance of each abnormal attribute feature in the preset abnormal attribute feature set, wherein the importance of the abnormal attribute feature may be manually analyzed and judged according to the actual application scenario.
[0062] Step S2022: Generate a first child node and a second child node corresponding to the abnormal root node, and perform binary classification on the data sample according to the abnormal attribute characteristics to obtain a new data sample.
[0063] Specifically, based on the similarity algorithm, the similarity between the abnormal attribute features and the attribute features in the data sample is calculated to obtain a similarity value. If the similarity value is greater than a preset similarity threshold, the attribute feature is judged to be consistent with the abnormal attribute feature. Otherwise, the attribute feature is judged to be inconsistent with the abnormal attribute feature. The attribute features consistent with the abnormal attribute features and the user identifiers corresponding to the attribute features are taken as the first category of data samples, and the attribute features inconsistent with the abnormal attribute features and the user identifiers corresponding to the attribute features are taken as the second category of data samples. The first category of data samples are taken as new data samples. The similarity algorithms include but are not limited to Euclidean distance and cosine similarity.
[0064] Step S2023: take the first child node as the abnormal root node, take the new data sample as the data sample of the abnormal root node, return to "extract abnormal attribute features from the preset abnormal attribute feature set based on preset rules" and continue to execute until the preset abnormal attribute feature set is empty, and obtain a decision tree.
[0065] In order to better understand the above steps S2020 to S2023, an example is given here to further illustrate the above steps S2020 to S2023, as follows:
[0066] like Figure 5 As shown, it is assumed that all user identifiers include user identifier a, user identifier b, user identifier c and user identifier d, the attribute feature set corresponding to each user identifier includes three attribute features: identity card number, mobile phone number and browser cookie of the same client, the preset abnormal attribute feature set includes three abnormal attribute features: abnormal identity card number, abnormal mobile phone number and abnormal browser cookie of the same client, and the preset extraction rule is to first extract the abnormal identity card number from the preset abnormal attribute feature set in the order of arrangement of the abnormal identity card number, the abnormal browser cookie of the client and the abnormal mobile phone number, and then, according to whether there is an identity card number whose similarity value with the abnormal identity card number exceeds a preset threshold in the attribute feature set corresponding to the user identifier, user identifier a, user identifier b and user identifier c are taken as a group, Taking user ID d as a group, two groups are obtained, and then the abnormal browser cookie of the client is extracted for the second time from the preset abnormal attribute feature set. According to whether there is a browser cookie of the client whose similarity value with the abnormal browser cookie of the client exceeds a preset threshold in the attribute feature set corresponding to the user ID, user ID a, user ID b and user ID c are divided into two groups, {user ID a, user ID b} and {user ID c}. Finally, abnormal mobile phone numbers are extracted for the third time from the preset abnormal attribute feature set. According to whether there is a mobile phone number whose similarity value with the abnormal mobile phone number exceeds a preset threshold in the attribute feature set corresponding to the user ID, user ID b and user ID c are divided into two groups, {user ID b} and {user ID c}, and finally a decision tree is obtained.
[0067] According to the decision result of the decision tree, the abnormal user identification is obtained as the high-risk user identification.
[0068] Specifically, the decision result of the decision tree is the first child node and the second child node of the deepest layer of the decision tree, and a data sample corresponding to the first child node is obtained, and the data sample includes an abnormal user identifier.
[0069] In this embodiment, by obtaining user information of each user in the user group, the user information includes a user identifier and an attribute feature set corresponding to the user identifier, the user identifier, the attribute feature set and the preset abnormal attribute feature set are input into a trained isolation forest model, and the trained isolation forest model is used for abnormal identification to obtain an abnormal user identifier, and the abnormal user identifier is used as a high-risk user identifier, each user information is imported into a graph database, all user identifiers are used as nodes, and any two nodes with an associated relationship are connected by edges to generate a graph model, and based on the graph model and the preset data query request, a community sub-network with each high-risk user identifier as a central node is obtained, and the community sub-network is sampled and expanded to obtain an expanded Sample network, calculate the proportion of abnormal users in each node in each expanded sample network as the high-risk probability, based on the neural network, extract features of the expanded sample network, obtain feature data of each node as sample data, input the sample data and high-risk probability into the logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model. This application uses a graph model to connect the associated user identifiers, expand the sample of the community sub-network formed with high-risk users as the center, and calculate the high-risk probability of each user identifier. By expanding the sample and increasing the sample data, it is beneficial to improve the parameter accuracy of the logistic regression model after training, thereby improving the accuracy of identifying fraudulent groups.
[0070] In some optional implementations of this embodiment, in step S203, the user information is imported into a graph database, all user identifiers are used as nodes, and any two nodes with an associated relationship are connected by edges, and the generation of a graph model includes the following steps S2030 to S203:
[0071] Step S2030: Calculate the attribute feature similarity between any two nodes to obtain the attribute feature association value.
[0072] Specifically, a similarity algorithm is used to calculate the similarity of the attribute features between two nodes, wherein the similarity algorithm includes but is not limited to Euclidean distance and cosine similarity.
[0073] Step S2031: If the attribute feature association value is greater than a preset threshold, it is determined that there is an association relationship between any two nodes, and edge connections are performed to generate a graph model.
[0074] Specifically, the association relationship includes first-degree association, second-degree association...K-degree association, where K is a positive integer greater than or equal to 1, wherein first-degree association refers to a direct association between any two nodes, second-degree association refers to a second-degree indirect association between any two nodes...K-degree association refers to a K-degree indirect association between any two nodes. For example, if A and B use the same mobile phone number, and B and C use the same client browser cookie, then A and B are first-degree associated, and A and C are second-degree associated.
[0075] In this embodiment, by calculating the similarity of the attributes between any two nodes, the association relationship between the nodes is determined, and a graph model is generated based on the association relationship, which is conducive to improving the accuracy of identifying fraudulent groups.
[0076] In some optional implementations of this embodiment, in step S2030, the attribute feature similarity between any two nodes is calculated, and the attribute feature association value obtained includes:
[0077] The attribute feature sets of any two nodes are obtained as the first attribute feature set and the second attribute feature set respectively.
[0078] Specifically, assume that the attribute feature set of node A includes ID card, mobile phone number, and browser cookie of the same client as the first attribute feature set, and assume that the attribute feature set of node B includes ID card, mobile phone number, and browser cookie of the same client as the second attribute feature set.
[0079] The attribute feature similarity of the same type of attribute features in the first attribute feature set and the second attribute feature set is calculated to obtain a similarity value set.
[0080] Specifically, based on the similarity algorithm, similarity values of attribute features in the first attribute feature set and attribute features of the same type in the second attribute feature set are calculated to obtain multiple similarity values to form a similarity set.
[0081] The similarity value set is weighted and summed to obtain the attribute feature association value.
[0082] Specifically, the weight of the similarity value between attribute features is related to the importance of the attribute features, that is, the more important the attribute feature is, the higher the weight of the similarity value is, and the sum of all weights is 1. The value obtained after weighted summation is used as the attribute feature association value.
[0083] In this embodiment, by performing weighted summation on the similarity sets of any two nodes, the accuracy of the association relationship between any two nodes is improved, thereby improving the accuracy of identifying fraudulent groups.
[0084] In some optional implementations of this embodiment, in step S204, the community sub-network is sample expanded to obtain an expanded sample network, including steps S2040 to S2042:
[0085] Step S2040: Based on the Euclidean distance, the distance from each node in each community sub-network to the remaining nodes in the community sub-network is calculated to obtain the K nearest neighbor set of each node.
[0086] Specifically, Euclidean distance is a commonly used distance definition, which refers to the real distance between two points in m-dimensional space, or the natural length of a vector (i.e., the distance from the point to the origin). The Euclidean distance in two-dimensional and three-dimensional space is the actual distance between two points. In this application, the distance from each node in the community subnetwork to the remaining nodes in the community subnetwork is calculated based on the Euclidean distance. If the distance from a node to another node in the community subnetwork is less than a preset distance threshold, the other node is taken as the K nearest neighbor of the node, and the remaining K nearest neighbors of the node are obtained in the same way, and finally the K nearest neighbor set of the node is obtained.
[0087] Step S2041: Obtain at least one K nearest neighbor from the K nearest neighbor set.
[0088] Step S2042: Calculate the distance between the node and its K nearest neighbors, the node, and a preset random number to obtain an expanded sample network.
[0089] Specifically, the expanded sample network includes the expanded nodes and the original nodes in the community sub-network. The expanded sample network X is obtained according to Formula 3:
[0090] (3)
[0091] In formula (3), X is the expanded network sample, For nodes, is the distance between the node and its K nearest neighbors, where is the K nearest neighbor.
[0092] Here, it should be particularly noted that before calculating the distance between the node and the K nearest neighbors, the node and the preset random number to obtain the expanded sample network, a sampling multiplier can also be set to control the number of generated expanded nodes through the sampling multiplier.
[0093] In this embodiment, by expanding the sample of the community sub-network, the amount of sample data is increased, which is beneficial to improving the parameter accuracy of the anti-fraud identification group case model after training, thereby improving the accuracy of the model in identifying fraudulent groups.
[0094] In some optional implementations of this embodiment, for step S2042, after calculating the distance between the node and the K nearest neighbors, the node and the preset random number to obtain the expanded sample network, the following steps are further included:
[0095] Based on the encoding model, the expanded sample network is encoded to obtain an encoded sample.
[0096] Specifically, the encoding model converts human-readable data into machine-storage data (in the form of 0 and 1 data) through a preset encoding scheme, that is, converts a character stream into a byte stream. Common encoding schemes include ASCII, Latin, GBK, and UTF8, among which the preset encoding scheme is set according to the actual application.
[0097] Based on the generative adversarial network, the coded samples are expanded to obtain expanded coded samples. Based on the decoding model, the expanded coded samples are decoded to obtain decoded samples, and the decoded samples are used as new expanded sample networks.
[0098] Specifically, the generative adversarial network is constructed using the Deep&CrossNet network model, and the generative adversarial network is a pre-trained network model. The generative adversarial network is used to construct data for minority class feature data sets, and output the same constructed feature data as the corresponding minority class feature data sets. After the minority class feature data sets are constructed based on the generative adversarial network, the number of generated constructed feature data can be customized according to actual conditions. It should be noted that the constructed feature data and the minority class feature data belong to the same type of feature data, that is, the generated constructed feature data and the minority class feature data contain the same features. In the application, the minority class feature data are nodes in the community sub-network, and the generated constructed feature data are also nodes in the community sub-network.
[0099] Since the generative adversarial network is a generative adversarial network model, it is mainly composed of a generative network model and a discriminative network model. Therefore, using the Deep&CrossNet network model to build a generative adversarial network mainly refers to using the Deep&CrossNet network model to build the generative network model and the discriminative network model in the generative adversarial network. Among them, the Deep&CrossNet (DCN) network model is a cross network model. The DCN network model is a network composed of a first layer of embedding and stacking layers, a second layer of a cross network and a parallel deep network, and a third layer of combination layers. The DCN network combines the outputs of the cross network and the deep network. The DCN network model can further abstract information on the basis of retaining the original feature information, and can efficiently extract the interactions and interactive information in limited important features, without the need for artificial feature engineering or traversal search, and is easier to train than general neural networks. In addition, DCN can further abstract information on the basis of retaining the original feature information, and has better adaptability in terms of structured data. The anti-fraud identification group case model obtained by training with the expanded sample has higher recognition accuracy, which can improve the recognition accuracy of fraud gangs.
[0100] Based on the decoding model, the expanded coded samples are decoded to obtain decoded samples, and the decoded samples are used as new expanded sample networks.
[0101] Specifically, the decoding model is mainly used to map and convert the encoding scheme preset in the encoding model, converting the machine-stored data (in the form of 0, 1 data) into human-readable data, that is, converting the byte stream into a character stream.
[0102] In this embodiment, by performing sample expansion on the expanded sample network, the amount of sample data is further increased, which is beneficial to improving the parameter accuracy of the anti-fraud identification group case model after training, thereby improving the accuracy of the model in identifying fraudulent groups.
[0103] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0104] Figure 3 The principle block diagram of the anti-fraud identification device based on big data is shown in one-to-one correspondence with the anti-fraud identification method based on big data in the above-mentioned embodiment. Figure 3 As shown, the anti-fraud identification device based on big data includes a data first acquisition module 30, an abnormal user identification module 31, a graph model generation module 32, a sample expansion module 33, a calculation module 34, a feature extraction module 35 and a training module 36. The functional modules are described in detail as follows:
[0105] The first acquisition module 30 is used to acquire user information of each user in the user group, where the user information includes a user identifier and an attribute feature set corresponding to the user identifier.
[0106] The abnormal user identification module 31 is used to input the user identification, attribute feature set and preset abnormal attribute feature set into the trained isolation forest model, and use the trained isolation forest model to perform abnormal identification to obtain the abnormal user identification, and use the abnormal user identification as a high-risk user identification.
[0107] The graph model generation module 32 is used to import each user information into the graph database, take all user identifiers as nodes, connect any two nodes with an associated relationship with edges, and generate a graph model.
[0108] The sample expansion module 33 is used to obtain a community sub-network with each high-risk user identifier as a central node based on the graph model and a preset data query request, and perform sample expansion on the community sub-network to obtain an expanded sample network.
[0109] The calculation module 34 is used to calculate the proportion of abnormal users in each node in each expanded sample network as the high-risk probability.
[0110] The feature extraction module 35 is used to extract features from the expanded sample network based on the neural network, and obtain feature data of each node as sample data.
[0111] The training module 36 is used to input sample data and high-risk probabilities into the logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model.
[0112] Optionally, the abnormal user identification module 31 includes:
[0113] The determination module is used to generate the root node of the isolation forest model, take the abnormal attribute characteristics as the judgment condition, take the root node as the abnormal root node, and take all user identifiers and attribute characteristics as the data samples corresponding to the abnormal root node.
[0114] The attribute feature extraction module is used to extract abnormal attribute features from a preset abnormal attribute feature set based on preset rules.
[0115] The binary classification module is used to generate the first child node and the second child node corresponding to the abnormal root node, and to perform binary classification on the data sample according to the abnormal attribute characteristics to obtain a new data sample.
[0116] The decision tree construction module is used to take the first child node as the abnormal root node, take the new data sample as the data sample of the abnormal root node, return to "extract abnormal attribute features from a preset abnormal attribute feature set based on preset rules" and continue to execute until the preset abnormal attribute feature set is empty, thereby obtaining a decision tree.
[0117] The high-risk user identification determination module is used to obtain an abnormal user identification as a high-risk user identification according to the decision result of the decision tree.
[0118] Optionally, the graph model generation module 32 includes:
[0119] The similarity calculation module is used to calculate the attribute feature similarity between any two nodes and obtain the attribute feature association value.
[0120] The judgment module is used to determine the existence of an association relationship between any two nodes if the attribute feature association value is greater than a preset threshold, and to connect them by edges to generate a graph model.
[0121] Optionally, the similarity calculation module includes:
[0122] The second acquisition module is used to acquire the attribute feature sets of any two nodes as the first attribute feature set and the second attribute feature set respectively.
[0123] The similarity value acquisition module is used to calculate the attribute feature similarity of the same type of attribute features in the first attribute feature set and the second attribute feature set to obtain a similarity value set.
[0124] The summation module is used to perform weighted summation on the similarity value set to obtain the attribute feature association value.
[0125] Optionally, the sample expansion module 33 includes:
[0126] The distance calculation module is used to calculate the distance from each node in each community sub-network to the remaining nodes in the community sub-network based on the Euclidean distance, and obtain the K nearest neighbor set of each node.
[0127] The third acquisition module is used to acquire at least one K nearest neighbor from the K nearest neighbor set.
[0128] The expanded sample network acquisition module is used to calculate the distance between the node and the K nearest neighbors, the node and the preset random number to obtain the expanded sample network.
[0129] Optionally, the extended sample network module also includes:
[0130] The encoding module is used to encode the expanded sample network based on the encoding model to obtain an encoded sample.
[0131] The expansion module is used to expand the coding sample based on the generative adversarial network to obtain the expanded coding sample.
[0132] The decoding module is used to decode the expanded coded samples based on the decoding model to obtain decoded samples, and use the decoded samples as new expanded sample networks.
[0133] For the specific definition of the anti-fraud identification device based on big data, please refer to the definition of the anti-fraud identification method based on big data above, which will not be repeated here. Each module in the above-mentioned anti-fraud identification device based on big data can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0134] To solve the above technical problems, the present application also provides a computer device. Figure 4 , Figure 4 This is a basic structural block diagram of the computer device in this embodiment.
[0135] The computer device 4 includes a memory 41, a processor 42, and a network interface 43 that are interconnected through a system bus. It should be noted that the figure only shows a computer device 4 with components connected to the memory 41, the processor 42, and the network interface 43, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.
[0136] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0137] The memory 41 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or D interface display memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 41 can be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 can also be an external storage device of the computer device 4, such as a plug-in hard disk equipped on the computer device 4, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), etc. Of course, the memory 41 can also include both the internal storage unit of the computer device 4 and its external storage device. In this embodiment, the memory 41 is generally used to store the operating system and various application software installed on the computer device 4, such as the program code for controlling electronic files, etc. In addition, the memory 41 can also be used to temporarily store various types of data that have been output or are to be output.
[0138] The processor 42 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 42 is generally used to control the overall operation of the computer device 4. In this embodiment, the processor 42 is used to run the program code stored in the memory 41 or process data, such as running the program code for controlling the electronic file.
[0139] The network interface 43 may include a wireless network interface or a wired network interface. The network interface 43 is generally used to establish a communication connection between the computer device 4 and other electronic devices.
[0140] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores an interface display program, and the interface display program can be executed by at least one processor to enable the at least one processor to perform the steps of the anti-fraud identification method based on big data as described above.
[0141] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0142] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. An anti-fraud identification method based on big data, characterized in that: include: Acquire user information of each user in the user group, the user information including a user identifier and an attribute feature set corresponding to the user identifier; Inputting the user identifier, the attribute feature set and the preset abnormal attribute feature set into a trained isolation forest model, and using the trained isolation forest model to perform abnormality identification to obtain an abnormal user identifier, and using the abnormal user identifier as a high-risk user identifier; Importing each user information into a graph database, taking all the user identifiers as nodes, connecting any two nodes that have an associated relationship with edges, and generating a graph model; Based on the graph model and the preset data query request, a community sub-network with each of the high-risk user identifiers as a central node is obtained, and a sample of the community sub-network is expanded to obtain an expanded sample network; Calculate the proportion of abnormal users in each node in each of the expanded sample networks as the high-risk probability; Based on the neural network, feature extraction is performed on the expanded sample network to obtain feature data of each node as sample data; Inputting the sample data and the high-risk probability into a logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model; The preset abnormal attribute feature set includes Z abnormal attribute features, the user identifier, the attribute feature set and the preset abnormal attribute feature set are input into a trained isolation forest model, and the trained isolation forest model is used to perform abnormality recognition to obtain an abnormal user identifier, and the abnormal user identifier is used as a high-risk user identifier, including: Generate a root node of the isolation forest model, use the abnormal attribute feature as a judgment condition, use the root node as an abnormal root node, and use all the user identifiers and the attribute features as data samples corresponding to the abnormal root node; Based on a preset rule, extracting the abnormal attribute feature from the preset abnormal attribute feature set; Generate a first child node and a second child node corresponding to the abnormal root node, and perform binary classification on the data sample according to the abnormal attribute feature to obtain a new data sample; Taking the first child node as the abnormal root node and the new data sample as the data sample of the abnormal root node, returning to "extracting the abnormal attribute feature from the preset abnormal attribute feature set based on the preset rule" and continuing to execute until the preset abnormal attribute feature set is empty, thereby obtaining a decision tree; The first and second sub-nodes of the deepest layer of the decision tree are determined, and a data sample corresponding to the first sub-node is obtained, and an abnormal user identifier in the data sample is obtained as a high-risk user identifier.
2. The anti-fraud identification method based on big data as claimed in claim 1, characterized in that: The step of importing the user information into a graph database, taking all the user identifiers as nodes, and connecting any two nodes having an associated relationship with edges to generate a graph model includes: Calculate the attribute feature similarity between any two nodes to obtain the attribute feature association value; If the attribute feature association value is greater than a preset threshold, it is determined that there is an association relationship between any two nodes, and edge connections are performed to generate a graph model.
3. The anti-fraud identification method based on big data as claimed in claim 1, characterized in that: The calculating of the attribute feature similarity between any two nodes to obtain the attribute feature association value includes: Obtaining attribute feature sets of any two of the nodes as a first attribute feature set and a second attribute feature set respectively; Calculating attribute feature similarities of the same type of attribute features in the first attribute feature set and the second attribute feature set to obtain a similarity value set; The similarity value set is weightedly summed to obtain an attribute feature association value.
4. The anti-fraud identification method based on big data as claimed in claim 1, characterized in that: The sample expansion of the community sub-network to obtain an expanded sample network includes: Based on the Euclidean distance, the distance between each node in each of the community sub-networks and the remaining nodes in the community sub-network is calculated to obtain a K nearest neighbor set of each of the nodes; Obtain at least one K nearest neighbor from the K nearest neighbor set; The distance between the node and the K nearest neighbors, the node and a preset random number are calculated to obtain an expanded sample network.
5. The anti-fraud identification method based on big data as claimed in claim 4, characterized in that: After calculating the distance between the node and the K nearest neighbors, the node and a preset random number to obtain an expanded sample network, the method further includes: Based on the coding model, encoding the expanded sample network to obtain a coded sample; Based on a generative adversarial network, the coding sample is expanded to obtain an expanded coding sample; Based on the decoding model, the expanded coded samples are decoded to obtain decoded samples, and the decoded samples are used as new expanded sample networks. 6.An anti-fraud identification device based on big data, characterized in that: include: A first acquisition module is used to acquire user information of each user in the user group, wherein the user information includes a user identifier and an attribute feature set corresponding to the user identifier; An abnormal user identification module, used to input the user identification, the attribute feature set and the preset abnormal attribute feature set into a trained isolation forest model, and use the trained isolation forest model to perform abnormal identification to obtain an abnormal user identification, and use the abnormal user identification as a high-risk user identification; A graph model generation module, used to import each user information into a graph database, take all the user identifiers as nodes, connect any two nodes with an associated relationship with edges, and generate a graph model; A sample expansion module, used to obtain a community sub-network with each of the high-risk user identifiers as a central node based on the graph model and a preset data query request, and perform sample expansion on the community sub-network to obtain an expanded sample network; A calculation module, used to calculate the proportion of abnormal users in each node in each of the expanded sample networks as a high-risk probability; A feature extraction module, used to extract features from the expanded sample network based on a neural network, and obtain feature data of each node as sample data; A training module, used for inputting the sample data and the high-risk probability into a logistic regression model for training until the logistic regression model converges to obtain an anti-fraud identification group case model; The abnormal user identification module includes: A determination module, used to generate a root node of the isolation forest model, use the abnormal attribute feature as a judgment condition, use the root node as an abnormal root node, and use all the user identifiers and the attribute features as data samples corresponding to the abnormal root node; An attribute feature extraction module, used for extracting the abnormal attribute feature from the preset abnormal attribute feature set based on a preset rule; A binary classification module, used to generate a first child node and a second child node corresponding to the abnormal root node, and to perform binary classification on the data sample according to the abnormal attribute characteristics to obtain a new data sample; A decision tree construction module, used to use the first child node as an abnormal root node, use the new data sample as a data sample of the abnormal root node, return to "extracting the abnormal attribute feature from the preset abnormal attribute feature set based on a preset rule" and continue to execute until the preset abnormal attribute feature set is empty, thereby obtaining a decision tree; The high-risk user identification determination module is used to determine the deepest first child node and the second child node of the decision tree, obtain the data sample corresponding to the first child node, and obtain the abnormal user identification in the data sample as the high-risk user identification.
7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the big data-based anti-fraud identification method is implemented.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the anti-fraud identification method based on big data as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Anti-fraud data analysis method and system
CN108038700A
Age recognition method, device and equipment and computer readable storage medium
CN111312286A
