Risk information detection method and device and electronic equipment

Through the combination of graph neural network and autoencoder model, transaction feature information is extracted and reconstructed, and the problem of low accuracy in risk information in the detection of transaction information in the prior art is solved, and more efficient risk detection and analysis is achieved.

CN118886909APending Publication Date: 2024-11-01INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410930598.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

When the prior art detects potential risk information in transaction information, the accuracy of the detection results is low due to sparse data, imbalanced, complex transaction relationships, etc.

Method used

The graph neural network model is used to extract the transaction feature information of the target customer and input it into the autoencoder model for reconstruction. It judges whether the target customer has transaction risks through abnormal scores and error values, calculates the risk probability based on the transaction frequency and correlation degree, and optimizes the risk probability. Model parameters to improve detection performance.

Benefits of technology

It improves the accuracy and efficiency of the detection results, can effectively capture and adapt to the dynamic changes and timing dependence of transaction data, enhances the data representation ability, and mines potential associations and transaction patterns between customers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886909A_ABST
    Figure CN118886909A_ABST
Patent Text Reader

Abstract

The invention discloses a risk information detection method and device and electronic equipment, the method is applied to the field of artificial intelligence, the field of financial science and technology or other technical fields, and the method comprises the steps: obtaining target transaction information of a target customer; inputting the target transaction information into the target model, and extracting transaction feature information of the target customer; inputting the transaction feature information into an auto-encoder model, and reconstructing the transaction feature information to obtain reconstructed feature information; and predicting risk information of the target customer according to the reconstructed feature information to obtain a prediction result. Through application of the method and the device, the problem of relatively low accuracy of a detection result caused by reasons such as sparse and unbalanced data and complex transaction relationships when potential risk information in transaction information is detected in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, financial technology or other technical fields, and specifically, to a method, device and electronic equipment for detecting risk information. Background Art

[0002] Currently, with the rapid development of the Internet and mobile payment technology, banks and financial institutions are now able to provide more convenient services, but this also greatly increases the chances of fraud. Fraudsters use highly anonymous and technical means to carry out identity theft, credit card fraud, phishing attacks, etc., which have brought unprecedented challenges to the security of banking services.

[0003] In order to effectively identify and prevent these fraudulent behaviors, banks and research institutions have developed and deployed a series of detection algorithms based on big data technology. The current mainstream technical methods include anomaly detection, cluster analysis, association rule mining, graph analysis, news and event-based analysis, expert opinions and surveys, etc. However, with the advancement of technology and the continuous updating of fraud methods, the shortcomings of these algorithms have gradually been exposed. For example, data sparseness and imbalance, complex transaction relationships, dynamic time series of business, information asymmetry, overfitting, abnormal event processing and model interpretability have affected these detection algorithms to a certain extent, reducing the accuracy of the detection results.

[0004] When detecting potential risk information in transaction information in related technologies, there is a problem of low accuracy of detection results due to data sparsity and imbalance, complex transaction relationships, etc., and no effective solution has been proposed so far. Summary of the invention

[0005] The main purpose of this application is to provide a risk information detection method, device and electronic device to solve the problem of low accuracy of detection results due to data sparsity and imbalance, complex transaction relationships, etc. when detecting potential risk information in transaction information in related technologies.

[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for detecting risk information is provided, the method comprising: obtaining target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected; inputting the target transaction information into a target model, and extracting transaction feature information of the target customer, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; inputting the transaction feature information into an autoencoder model, reconstructing the transaction feature information, and obtaining reconstructed feature information; predicting the risk information of the target customer based on the reconstructed feature information, and obtaining a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk.

[0007] Furthermore, the graph neural network model includes at least the following models: a first model, a second model, and a third model. The target transaction information is input into the target model to extract the transaction feature information of the target customer, including: extracting low-level node features in the target graph through the first model, and mapping the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is graph structure data that characterizes the association relationship between the customers based on their historical transaction information; extracting deep-level node features from the first feature vector through the second model, and fusing the deep-level node features to obtain a second feature vector, wherein the deep-level node features include at least: node features, average features of neighboring nodes, and global features of the target graph; adding nonlinear features of the node features in the second feature vector through the third model to obtain a third feature vector; calculating the transaction feature information of the target customer based on the first feature vector, the second feature vector, and the third feature vector.

[0008] Furthermore, the autoencoder model at least includes: an encoder and a decoder, which predict the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, including: calculating the anomaly score of the transaction feature information through the encoder, wherein the anomaly score is used to characterize the degree of abnormality of the transaction feature information; inputting the anomaly score into the decoder, and calculating the reconstructed feature information of the transaction feature information through the decoder; calculating the error value between the transaction feature information and the reconstructed feature information; when the error value is greater than a preset threshold, determining that the target customer has a preset type of risk information, and obtaining the prediction result.

[0009] Furthermore, the historical transaction information at least includes: transaction details information, and the association relationships between the customers. After extracting the low-level node features in the target graph through the first model, the method also includes: encoding the transaction details information through the autoencoder model to obtain the feature vector representation of the customer; constructing nodes based on the customers, and constructing node features of the nodes based on the feature vector representation of the customers; constructing edges between the nodes based on the association relationships between the customers, and constructing edge features of the edges; and constructing the target graph based on the nodes, the edges, the node features, and the edge features.

[0010] Further, the transaction feature information of the target customer is calculated based on the first feature vector, the second feature vector and the third feature vector, including: calculating the model weight based on the vector dimension of the first feature vector, the vector dimension of the second feature vector and the vector dimension of the third feature vector, wherein the model weight includes at least the following information: the first weight corresponding to the first model, the second weight corresponding to the second model, and the third weight corresponding to the third model; performing weighted sum calculation on the first feature vector, the second feature vector and the third feature vector based on the model weight to obtain the transaction feature information of the target customer.

[0011] Furthermore, after predicting the risk information of the target customer based on the reconstructed characteristic information and obtaining the prediction result, the method also includes: calculating the degree of correlation between the transaction characteristic information of the target customer and the transaction characteristic information of the target object, wherein the target object is an object with transaction risks; calculating the probability that the target customer has transaction risks based on the degree of correlation, the error value and the transaction frequency of the target customer.

[0012] Furthermore, after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the method also includes: using a receiver operating characteristic curve algorithm to calculate the prediction result to obtain an evaluation result of the target model; optimizing the model parameters of the target model based on the evaluation result to obtain an optimized target model; when a risk prediction request is received, using the optimized target model to predict the risk information of the target customer.

[0013] Furthermore, obtaining target transaction information of a target customer includes: obtaining transaction data of the target customer, and performing data preprocessing on the transaction data to obtain a data set; receiving credit evaluation information of the target customer, wherein the credit evaluation information is information obtained after evaluating the credit status of the target customer; and adding the evaluation information to the data set to obtain the target transaction information.

[0014] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a risk information detection device is provided, which includes: an acquisition unit, used to acquire target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected; an extraction unit, used to input the target transaction information into a target model, and extract transaction feature information of the target customer, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; a reconstruction unit, used to input the transaction feature information into an autoencoder model, reconstruct the transaction feature information, and obtain reconstructed feature information; a first prediction unit, used to predict the risk information of the target customer based on the reconstructed feature information, and obtain a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk.

[0015] Furthermore, the graph neural network model includes at least the following models: a first model, a second model, and a third model, and the extraction unit includes: an extraction subunit, used to extract low-level node features in the target graph through the first model, and map the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is graph structure data that characterizes the association relationship between the customers based on their historical transaction information; a fusion subunit, used to extract deep-level node features from the first feature vector through the second model, and fuse the deep-level node features to obtain a second feature vector, wherein the deep-level node features include at least: node features, average features of neighboring nodes, and global features of the target graph; a processing subunit, used to increase the nonlinear features of the node features in the second feature vector through the third model to obtain a third feature vector; a first calculation subunit, used to calculate the transaction feature information of the target customer based on the first feature vector, the second feature vector and the third feature vector.

[0016] Furthermore, the autoencoder model at least includes: an encoder and a decoder, and the first prediction unit includes: a second calculation subunit, used to calculate the anomaly score of the transaction feature information through the encoder, wherein the anomaly score is used to characterize the degree of anomaly of the transaction feature information; a third calculation subunit, used to input the anomaly score into the decoder, and calculate the reconstructed feature information of the transaction feature information through the decoder; a fourth calculation subunit, used to calculate the error value between the transaction feature information and the reconstructed feature information; a determination subunit, used to determine that the target customer has a preset type of risk information when the error value is greater than a preset threshold, and obtain the prediction result.

[0017] Furthermore, the historical transaction information at least includes: transaction details information, and the association relationship between the customers. The extraction unit also includes: an encoding subunit, which is used to encode the transaction details information through the autoencoder model after extracting the low-level node features in the target graph through the first model to obtain the feature vector representation of the customer; a first construction subunit, which is used to construct nodes based on the customers, and construct node features of the nodes based on the feature vector representation of the customers; a second construction subunit, which is used to construct edges between the nodes based on the association relationship between the customers, and construct edge features of the edges; and a third construction subunit, which is used to construct the target graph based on the nodes, the edges, the node features, and the edge features.

[0018] Furthermore, the first computing subunit includes: a first computing module, used to calculate the model weight based on the vector dimension of the first feature vector, the vector dimension of the second feature vector and the vector dimension of the third feature vector, wherein the model weight includes at least the following information: the first weight corresponding to the first model, the second weight corresponding to the second model, and the third weight corresponding to the third model; a second computing module, used to perform weighted sum calculation on the first feature vector, the second feature vector and the third feature vector based on the model weight to obtain the transaction feature information of the target customer.

[0019] Furthermore, the device also includes: a first calculation unit, used to predict the risk information of the target customer based on the reconstructed characteristic information, and after obtaining the prediction result, calculate the degree of correlation between the transaction characteristic information of the target customer and the transaction characteristic information of the target object, wherein the target object is an object with transaction risks; a second calculation unit, used to calculate the probability that the target customer has transaction risks based on the degree of correlation, the error value and the transaction frequency of the target customer.

[0020] Furthermore, the device also includes: a calculation unit, which is used to predict the risk information of the target customer based on the reconstructed feature information, and after obtaining the prediction result, use the receiver operating characteristic curve algorithm to calculate the prediction result to obtain an evaluation result of the target model; an optimization unit, which is used to optimize the model parameters of the target model based on the evaluation result to obtain an optimized target model; and a second prediction unit, which is used to predict the risk information of the target customer using the optimized target model when a risk prediction request is received.

[0021] Furthermore, the acquisition unit includes: an acquisition subunit, used to acquire the transaction data of the target customer and perform data preprocessing on the transaction data to obtain a data set; a receiving subunit, used to receive credit evaluation information of the target customer, wherein the credit evaluation information is information obtained after evaluating the credit status of the target customer; and an adding subunit, used to add the evaluation information to the data set to obtain the target transaction information.

[0022] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements any of the above-mentioned risk information detection methods, and which, when executed by a processor, implements the steps of the risk information detection method described in each embodiment of the present application.

[0023] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned risk information detection methods is implemented.

[0024] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement any one of the above-mentioned risk information detection methods.

[0025] Through the present application, the following steps are adopted: obtaining target transaction information of target customers, wherein the target customers are customers whose risk information is to be detected; inputting the target transaction information into a target model, and extracting transaction feature information of the target customers, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; inputting the transaction feature information into an autoencoder model, reconstructing the transaction feature information, and obtaining reconstructed feature information; predicting the risk information of the target customer based on the reconstructed feature information, and obtaining a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk, which solves the problem of low accuracy of detection results due to data sparsity and imbalance, complex transaction relationships, and the like when detecting potential risk information in transaction information in related technologies. By extracting the transaction feature information of target customers through the trained graph neural network and reconstructing features through the autoencoder, it is possible to learn and extract useful features from customer transaction data and enhance the data representation capability, thereby representing and analyzing the complex graph structure in customer transaction data, exploring the potential connections and transaction patterns between customers, and effectively capturing and adapting to the dynamic changes and temporal dependencies of transaction data, thereby achieving the effect of improving the detection performance of the target model and improving the accuracy of the detection results of the target model. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0027] Figure 1 is a flow chart of a method for detecting risk information provided in Example 1 of the present application;

[0028] Figure 2 This is a schematic diagram of an optional risk information detection method provided in Example 1 of the present application. Figure 1 ;

[0029] Figure 3 This is a schematic diagram of an optional risk information detection method provided in Example 1 of the present application. Figure 2 ;

[0030] Figure 4 This is a schematic diagram of an optional risk information detection method provided in Example 1 of the present application. Figure 3 ;

[0031] Figure 5 is a schematic diagram of a risk information detection device provided in Embodiment 2 of the present application;

[0032] Figure 6It is a schematic diagram of an electronic device for detecting risk information provided in Example 5 of the present application. DETAILED DESCRIPTION

[0033] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0034] It should be noted that the methods and devices determined by the processing methods, devices, storage media and electronic devices of the present application documents can be used in the process of detecting potential risk information in transaction information in the financial technology field to improve the accuracy of detection results, and can also be used in any field other than the financial technology field. The application fields of the methods and devices of the processing methods, devices, storage media and electronic devices of the present application documents are not limited.

[0035] It should be noted that the user information (including but not limited to user device information, user personal information, collected data, used data, generated data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good morals are not violated, and corresponding operation portals are provided for users to choose to authorize or refuse. For example, an interface is set between this system and relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0036] It should be noted that this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.

[0037] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0039] Embodiment 1

[0040] The present invention is described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for detecting risk information provided in Example 1 of the present application. Figure 1 As shown, the method comprises the following steps:

[0041] Step S101, obtaining target transaction information of target customers, wherein the target customers are customers whose risk information is to be detected.

[0042] In the first embodiment, in order to detect whether the target customer has potential risks, it is necessary to obtain the target customer's transaction information. For example, the target customer's customer transaction data can be obtained in real time through the data interface with the financial institution's business system, including the customer's transaction records such as transfers, consumption, deposits, withdrawals, and the customer's account balance, credit card limit, overdue repayments, and other account information.

[0043] Step S102, input the target transaction information into the target model, and extract the transaction feature information of the target customer, wherein the target model is a model obtained by training the graph neural network model using the customer's historical transaction information.

[0044] In this first embodiment, in order to detect whether the target customer has potential risks, it is necessary to use the trained graph neural network (i.e., the above-mentioned target model) to extract the transaction feature information of the target customer, so that it is possible to detect whether the target customer has transaction risks based on the transaction feature information of the target customer.

[0045] Step S103: input the transaction feature information into the autoencoder model, reconstruct the transaction feature information, and obtain reconstructed feature information.

[0046] In the first embodiment, in order to improve the accuracy of the detection results of the potential risks of the target customers, the extracted transaction feature information can be input into the autoencoder model (Auto Encoder, hereinafter referred to as AE model), and the transaction feature information can be reconstructed to obtain the reconstructed feature information. The autoencoder is an artificial neural network model for unsupervised learning, which is mainly used to encode the input data into a representation form, and then reconstruct the input data according to the representation form, and minimize the difference between the input data and the reconstructed data. The autoencoder consists of two parts: an encoder and a decoder.

[0047] Step S104, predicting the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk or that the target customer does not have a transaction risk.

[0048] In the first embodiment, in order to predict whether the target customer has potential risks (i.e., the above-mentioned risk information), it is necessary to calculate based on the reconstructed features and the target customer's transaction feature information to determine whether the target customer has potential features. Risk information refers to whether the customer has fraud risk, or related information on whether the customer has fraud risk, and can also characterize the customer's other financial risks.

[0049] In summary, the risk information detection method provided in Example 1 of the present application obtains the target transaction information of the target customer, wherein the target customer is the customer whose risk information is to be detected; inputs the target transaction information into the target model, and extracts the transaction feature information of the target customer, wherein the target model is a model obtained by training the graph neural network model with the customer's historical transaction information; inputs the transaction feature information into the autoencoder model, reconstructs the transaction feature information, and obtains the reconstructed feature information; predicts the risk information of the target customer based on the reconstructed feature information, and obtains the prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk, thereby solving the problem of low accuracy of the detection result due to data sparsity and imbalance, complex transaction relationships, etc. when detecting potential risk information in transaction information in the related technology. By extracting the transaction feature information of target customers through the trained graph neural network and reconstructing features through the autoencoder, it is possible to learn and extract useful features from customer transaction data and enhance the data representation capability, thereby representing and analyzing the complex graph structure in customer transaction data, exploring the potential connections and transaction patterns between customers, and effectively capturing and adapting to the dynamic changes and temporal dependencies of transaction data, thereby achieving the effect of improving the detection performance of the target model and improving the accuracy of the detection results of the target model.

[0050] Optionally, in the risk information detection method provided in Example 1 of the present application, the above-mentioned graph neural network model includes at least the following models: a first model, a second model, and a third model. The target transaction information is input into the target model to extract the transaction feature information of the target customer, including: extracting low-level node features in the target graph through the first model, and mapping the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is graph structure data that characterizes the association relationship between customers based on their historical transaction information; extracting deep-level node features from the first feature vector through the second model, and fusing the deep-level node features to obtain a second feature vector, wherein the deep-level node features include at least: node features, average features of neighboring nodes, and global features of the target graph; adding nonlinear features of the node features in the second feature vector through the third model to obtain a third feature vector; calculating the transaction feature information of the target customer based on the first feature vector, the second feature vector, and the third feature vector.

[0051] In an optional embodiment, multiple models (ie, the first model, the second model, and the third model mentioned above) may be used to extract the transaction feature information of the target customer from the target transaction information.

[0052] First, the first model contains a network structure of a graph neural network (GNN), a graph attention network (GAT), and a linear layer (Linear). GNN and GAT are responsible for learning the local and global features of nodes from the target graph, and Linear is used to map node features to a low-dimensional space.

[0053] Then, the second model also contains GNN, GAT and Linear structures, but changes the structure and parameters of GNN and GAT, doubles the number of layers and attention heads of GNN and GAT, and is used to learn deeper and finer-grained node features from the target graph. Linear is used to map node features to low-dimensional space and to splice the original node features to fuse the current node information from multiple angles. The splicing process is shown in Formula 1.

[0054] Linear Input =Node Feature &Neighbor Feature &Graph Feature (one)

[0055] Among them, Node Feature Refers to the characteristics of the node itself, Neighbor FeatureRefers to the average characteristics of neighbor nodes, Graph Feature It refers to the global features of the entire graph, and & represents vector concatenation, which is used to fuse feature information of three dimensions. Through linear mapping features and fusion features, more relevant information can be obtained, which is conducive to improving the output capability of the model.

[0056] Secondly, the third model still contains GNN, GAT and Linear structures. The number of layers and attention heads of GNN and GAT remain the same as the second model, but the residual connection layer and normalization layer are introduced in the third model to enhance the stability and convergence of the model. Linear is used to map node features to low-dimensional space and perform nonlinear transformation on the original low-dimensional features, thereby enhancing the expressiveness of the features. The specific implementation is shown in Formula 2.

[0057] Linear Output =tanh(W*Linear Input +b)(II)

[0058] Among them, tanh represents the hyperbolic tangent function, W and b represent the weight and bias of the linear layer respectively, and Linear Input Represents the input vector of the linear layer, Linear Output Represents the output vector of the Linear layer.

[0059] Finally, the transaction feature information of the target customer is calculated based on the output vectors of the first model, the second model, and the third model, as shown in Formula 3:

[0060]

[0061] Among them, α m represents the weight of each model, H m Represents the output features of the mth model, Node Feature Indicates the transaction characteristic information of the target customers mentioned above.

[0062] By comprehensively considering the output vectors of the first model, the second model and the third model, the advantages of each model are fully utilized, the quality of node features is greatly improved, and the accuracy and efficiency of customer risk detection are improved.

[0063] Optionally, in the risk information detection method provided in Example 1 of the present application, the above-mentioned autoencoder model includes at least: an encoder and a decoder, which predicts the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, including: calculating the anomaly score of the transaction feature information through the encoder, wherein the anomaly score is used to characterize the degree of abnormality of the transaction feature information; inputting the anomaly score into the decoder, and calculating the reconstructed feature information of the transaction feature information through the decoder; calculating the error value between the transaction feature information and the reconstructed feature information; when the error value is greater than a preset threshold, determining that the target customer has a preset type of risk information, and obtaining a prediction result.

[0064] In an optional embodiment, the risk information of the target customer can be predicted by an autoencoder model. The autoencoder model includes an encoder and a decoder, wherein the encoder is used to extract anomaly scores from node features, and the decoder is used to reconstruct node features based on the anomaly scores. The calculation method of the error value between the transaction feature information and the reconstructed feature information can be shown in Formula 4:

[0065]

[0066] Where L represents the reconstruction error, that is, the error value between the above transaction feature information and the reconstructed feature information, N represents the number of nodes in the target graph, and x i represents the feature of the i-th node, x i {R} represents the reconstruction feature of the i-th node, ||x i -x i {R} || represents the Euclidean distance between the customer's transaction feature information and the reconstructed features.

[0067] Then, based on the error value between the transaction feature information and the reconstructed feature, it is determined whether the current node is significantly different from the normal node, and then the process formula 5 is used to determine whether the customer has fraudulent intentions.

[0068]

[0069] Among them, y i represents the predicted label of the i-th customer, for example, the predicted result of the target customer, L i represents the reconstruction error of the i-th node, τ represents the threshold, 1 represents fraud, and 0 represents normal. By setting a reasonable threshold, customers can be classified to determine whether the target customer has potential risks.

[0070] By calculating anomaly scores and reconstructing node features through autoencoders, normal customers and fraudulent customers can be effectively distinguished, thereby improving the accuracy and reliability of overall detection.

[0071] Optionally, in the risk information detection method provided in Example 1 of the present application, the above-mentioned historical transaction information includes at least: transaction details information, and the relationship between customers. After extracting the low-level node features in the target graph through the first model, the above-mentioned method also includes: encoding the transaction details information through an autoencoder model to obtain a feature vector representation of the customer; constructing nodes based on the customers, and constructing node features of the nodes based on the feature vector representation of the customers; constructing edges between nodes based on the relationship between customers, and constructing edge features of the edges; and constructing a target graph based on nodes, edges, node features, and edge features.

[0072] In an optional embodiment, the transaction details (e.g., the above-mentioned transaction records of the customer's transfer, consumption, deposit, withdrawal, etc., as well as the customer's account balance, credit card limit, overdue repayment and other account information) are encoded by using an autoencoder to obtain the customer's feature vector representation. According to each customer, a corresponding node is constructed, and different node types (e.g., customer, product, merchant, etc.) are defined. According to the relationship between customers (e.g., transfer, cooperation, relatives, etc.), edges, edge features and edge weights are constructed, and the customer's historical transaction data is converted into graph data to obtain the above-mentioned target graph. In addition, the sparsity and connectivity of the constructed target graph need to be analyzed to ensure the completeness and rationality of the graph.

[0073] Furthermore, in the process of constructing the target graph, it can also be adjusted according to the needs of different banking businesses and risk control, so that the constructed target graph can adapt to different business scenarios, better serve the training and prediction of the model, and improve the versatility and robustness of the model.

[0074] By using an autoencoder (AE) to reduce the dimension and compress customer transaction features, we can obtain a low-dimensional vector representation of the customer, which can reduce the complexity and redundancy of the graph, thereby reducing the dimension and scale of the graph, helping to improve the training efficiency and generalization ability of the graph neural network. At the same time, it can effectively construct and optimize the customer transaction graph, providing high-quality training samples for the subsequent graph neural network training process, thereby improving the performance and efficiency of customer risk detection and improving the accuracy of detection results.

[0075] Optionally, in the risk information detection method provided in Example 1 of the present application, the transaction feature information of the target customer is calculated based on the first feature vector, the second feature vector and the third feature vector, including: calculating the model weight based on the vector dimension of the first feature vector, the vector dimension of the second feature vector and the vector dimension of the third feature vector in the target graph, wherein the model weight includes at least the following information: the first weight corresponding to the first model, the second weight corresponding to the second model, and the third weight corresponding to the third model; performing weighted sum calculation on the first feature vector, the second feature vector and the third feature vector based on the model weight to obtain the transaction feature information of the target customer.

[0076] In an optional embodiment, the initial model weight of each model (including the first model, the second model, and the third model) may be assigned according to the vector dimension of the node feature output by the model. The calculation formula may be as shown in Formula 6:

[0077]

[0078] Among them, β i represents the initial model weight of the i-th model, d i represents the dimension of the output vector of the i-th model, and e represents the exponential function. By calculating the initial model of each model, the weight of each model is obtained. The calculation formula is shown in Formula 7.

[0079]

[0080] Among them, β i represents the weight of the i-th model, α1 represents the model weight of the first model, and N represents the number of models. Since the first model, the second model, and the third model are included in the first embodiment, the value of N is 3. It can be obtained from the formula that when the feature dimension of the model output is higher (i.e., less feature information), the corresponding model weight will become smaller, and when the feature dimension of the model output is lower (i.e., more feature information), the corresponding model weight will become larger.

[0081] Optionally, in the risk information detection method provided in Example 1 of the present application, after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the above method also includes: calculating the degree of correlation between the transaction feature information of the target customer and the transaction feature information of the target object, wherein the target object is an object with transaction risks; calculating the probability that the target customer has transaction risks based on the degree of correlation, the error value and the transaction frequency of the target customer.

[0082] In the first embodiment, the probability that the target customer has risk can be more accurately determined based on the transaction feature information of the target customer. The calculation formula can be as shown in Formula 8:

[0083] R=αL+βF+γC(VIII)

[0084] Among them, R represents the probability that the target customer is at risk, α, β, and γ are weight coefficients, L represents the error value between the above-mentioned transaction feature information and the reconstructed feature information, F represents the transaction frequency of the target customer, and C represents the similarity between the transaction feature information of the target customer and the transaction feature information of the target object with fraud risk, so as to characterize the correlation between the target customer and the target object with fraud risk.

[0085] By comprehensively considering the target customer's transaction frequency, the correlation between the target customer and the target object with fraud risk, and the target customer's transaction feature information, the probability that the target customer is at risk can be accurately calculated, so that warning information can be issued in a timely manner based on the probability that the target customer is at risk, thereby achieving the effect of improving the safety of customer property.

[0086] Optionally, in the risk information detection method provided in Example 1 of the present application, after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the above method also includes: using a receiver operating characteristic curve algorithm to calculate the prediction result to obtain an evaluation result of the target model; optimizing the model parameters of the target model based on the evaluation result to obtain an optimized target model; when a risk prediction request is received, using the optimized target model to predict the risk information of the target customer.

[0087] In the first embodiment, the prediction result of the target model can be evaluated by using a receiver operating characteristic curve algorithm (Receiver Operating Characteristic Curve, referred to as ROC curve). The evaluation process can be shown in Formula 9:

[0088]

[0089] Among them, AUC is the area under the ROC curve, N is the number of pre-set thresholds, and TPR i represents the true positive rate under the i-th threshold, FPR i It represents the false positive rate under the i-th threshold. AUC is used to evaluate the detection effect of the target model. The higher the value, the more accurate the detection result of the target model.

[0090] As the target model is continuously tested, the test results of the target model are evaluated according to the ROC curve, and the model parameters of the target model are continuously optimized according to the evaluation results. The target model can be updated in time, so that the target model can prevent and respond to fraud more effectively.

[0091] Optionally, in the risk information detection method provided in Example 1 of the present application, target transaction information of the target customer is obtained, including: obtaining transaction data of the target customer, and performing data preprocessing on the transaction data to obtain a data set; receiving credit assessment information of the target customer, wherein the credit assessment information is information obtained after evaluating the credit status of the target customer; and adding the assessment information to the data set to obtain target transaction information.

[0092] In an optional embodiment, first, the target customer's transaction data can be collected, including the target customer's transaction behavior, account status, credit score, the target customer's transfer, consumption, deposit, withdrawal and other transaction records, as well as the target customer's account balance, credit card limit, overdue repayment and other account information.

[0093] Then, the collected transaction data of target customers are preprocessed to construct a data set, where data preprocessing may include: data cleaning, data normalization, removal of invalid data such as outliers, missing values, duplicate values, standardization, normalization, discretization, etc., to make the data meet the input requirements of the target model.

[0094] Finally, by calling the data interface of a third-party credit assessment agency, the credit score data of the target customer (i.e., the credit assessment information mentioned above, where the credit assessment information reflects the credit characteristics of the target customer, such as credit history, repayment ability, and borrowing behavior) can be obtained, and the credit assessment information can be added to the dataset to provide the model with a more detailed customer portrait.

[0095] Through data collection and data preprocessing steps, high-quality customer transaction data can be obtained, providing effective and reliable data support for the subsequent training and prediction of graph neural networks and autoencoder models, thereby achieving the effect of improving the performance and efficiency of customer risk detection, and improving the accuracy of customer risk detection results.

[0096] Optionally, in the first embodiment, the process of detecting customer risk information in the present solution can be as follows: Figure 2As shown. First, collect the customer's transaction data, and perform data preprocessing operations on the customer transaction data. Construct a customer transaction graph (i.e., the target graph mentioned above) based on the processed customer transaction data, and use the autoencoder model to optimize the compressed graph features (including node features, edge features, etc.). Then, train the graph neural network and autoencoder based on the target graph, input the customer information of the risk information to be detected into the trained target graph training neural network and the trained autoencoder for risk detection, and obtain the detection results. Finally, perform risk management on the customer based on the detection results (for example, calculate the probability that the customer is at risk, and issue an alarm when the probability is greater than a preset threshold), and use the ROC curve algorithm to evaluate the detection results. Continuously optimize the target model based on the evaluation results, and use the optimized target model to detect customer risk information.

[0097] Optionally, in the first embodiment, the process of detecting customer risk information by the target model of the present solution can be as follows: Figure 3 As shown, customer transaction data is collected, and the customer's node features (i.e., the customer's transaction feature information mentioned above) are extracted through the first model, the second model, and the third model. The customer's node features are reconstructed using an autoencoder to obtain reconstructed features, and the customer is classified according to the error value between the reconstructed features and the customer's transaction feature information to obtain the detection result.

[0098] Optionally, in the first embodiment, the process of judging whether a customer has risk information through the target model can be as follows: Figure 4 First, collect customer data and perform data preprocessing operations, and then use the graph neural network in the first model (such as Figure 4 Node vectors, edge vectors, global vectors and MLP in the dashed box), graph attention networks (such as Figure 4 Node features in the dashed box, weight matrix, self-attention mechanism, attention weight, softmax, feature update, multi-head attention) and linear layers (such as Figure 4 The first eigenvector is extracted by the Linear in the second model (such as Figure 4 Node vectors, edge vectors, global vectors and MLP×2 in the dashed box), graph attention network (such as Figure 4 The node features in the dashed box, weight matrix, self-attention mechanism, attention weight, softmax, feature update, multi-head attention × 2) and linear layer extract the second feature vector, and pass the graph neural network in the third model (such as Figure 4 Node vectors, edge vectors, global vectors and MLP in the dashed box), graph attention networks (such as Figure 4 Node features in the dashed box, weight matrix, self-attention mechanism, attention weight, softmax, feature update, multi-head attention) and linear layers (such as Figure 4Then, the model weight of the first model is calculated, the model weight of the second model is calculated, and the model weight of the third model is calculated. The first feature vector, the second feature vector, and the third feature vector are weighted and fused according to the model weight of each model to obtain the customer's transaction feature information (such as Figure 4 Finally, the customer's transaction feature information is reconstructed according to the autoencoder model to obtain the reconstructed feature information, and then the error value between the reconstructed feature information and the customer's transaction feature information is calculated (such as Figure 4 ), and then judge whether the customer has fraud risk based on the error value.

[0099] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0100] Embodiment 2

[0101] The second embodiment of the present application also provides a risk information detection device. It should be noted that the risk information detection device of the second embodiment of the present application can be used to execute the risk information detection method provided in the first embodiment of the present application. The risk information detection device provided in the second embodiment of the present application is introduced below.

[0102] Figure 5 Schematic diagram of a risk information detection device according to Embodiment 2 of the present application. Figure 5 As shown, the device includes: an acquisition unit 501, an extraction unit 502, a reconstruction unit 503 and a first prediction unit 504.

[0103] Specifically, the acquisition unit 501 is used to acquire target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected.

[0104] The extraction unit 502 is used to input the target transaction information into the target model to extract the transaction feature information of the target customer, wherein the target model is a model obtained by training the graph neural network model using the customer's historical transaction information.

[0105] The reconstruction unit 503 is used to input the transaction feature information into the autoencoder model, reconstruct the transaction feature information, and obtain reconstructed feature information.

[0106] The first prediction unit 504 is used to predict the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk or that the target customer does not have a transaction risk.

[0107] The risk information detection device provided in the second embodiment of the present application obtains the target transaction information of the target customer through the acquisition unit 501, wherein the target customer is the customer whose risk information is to be detected; the extraction unit 502 inputs the target transaction information into the target model to extract the transaction feature information of the target customer, wherein the target model is a model obtained by training the graph neural network model with the customer's historical transaction information; the reconstruction unit 503 inputs the transaction feature information into the autoencoder model, reconstructs the transaction feature information, and obtains the reconstructed feature information; the first prediction unit 504 predicts the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk, which solves the problem of low accuracy of the detection result due to data sparsity and imbalance, complex transaction relationships, etc. when detecting potential risk information in transaction information in the related art. By extracting the transaction feature information of target customers through the trained graph neural network and reconstructing features through the autoencoder, it is possible to learn and extract useful features from customer transaction data and enhance the data representation capability, thereby representing and analyzing the complex graph structure in customer transaction data, exploring the potential connections and transaction patterns between customers, and effectively capturing and adapting to the dynamic changes and temporal dependencies of transaction data, thereby achieving the effect of improving the detection performance of the target model and improving the accuracy of the detection results of the target model.

[0108] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned graph neural network model includes at least the following models: a first model, a second model, and a third model, and the above-mentioned extraction unit 502 includes: an extraction subunit, used to extract low-level node features in the target graph through the first model, and map the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is a graph structure data that characterizes the association relationship between customers based on the customers' historical transaction information; a fusion subunit, used to extract deep-level node features from the first feature vector through the second model, and fuse the deep-level node features to obtain a second feature vector, wherein the deep-level node features include at least: node features, average features of neighboring nodes, and global features of the target graph; a processing subunit, used to increase the nonlinear features of the node features in the second feature vector through the third model to obtain a third feature vector; a first calculation subunit, used to calculate the transaction feature information of the target customer based on the first feature vector, the second feature vector and the third feature vector.

[0109] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned autoencoder model includes at least: an encoder, a decoder, and the above-mentioned first prediction unit 504 includes: a second calculation subunit, used to calculate the anomaly score of the transaction feature information through the encoder, wherein the anomaly score is used to characterize the degree of abnormality of the transaction feature information; a third calculation subunit, used to input the anomaly score into the decoder, and calculate the reconstructed feature information of the transaction feature information through the decoder; a fourth calculation subunit, used to calculate the error value between the transaction feature information and the reconstructed feature information; a determination subunit, used to determine that the target customer has a preset type of risk information when the error value is greater than a preset threshold, and obtain a prediction result.

[0110] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned historical transaction information at least includes: transaction details information, and the relationship between customers. The above-mentioned extraction unit 502 also includes: an encoding subunit, which is used to encode the transaction details information through an autoencoder model after extracting the low-level node features in the target graph through the first model to obtain the customer's feature vector representation; a first construction subunit, which is used to construct nodes based on customers, and construct node features of nodes based on the customer's feature vector representation; a second construction subunit, which is used to construct edges between nodes based on the relationship between customers, and construct edge features of edges; a third construction subunit, which is used to construct a target graph based on nodes, edges, node features, and edge features.

[0111] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned first calculation subunit includes: a first calculation module, used to calculate the model weight based on the vector dimension of the first feature vector, the vector dimension of the second feature vector and the vector dimension of the third feature vector, wherein the model weight includes at least the following information: the first weight corresponding to the first model, the second weight corresponding to the second model, and the third weight corresponding to the third model; a second calculation module, used to perform weighted sum calculation on the first feature vector, the second feature vector and the third feature vector based on the model weight to obtain the transaction feature information of the target customer.

[0112] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned device also includes: a first calculation unit, used to predict the risk information of the target customer based on the reconstructed characteristic information, and after obtaining the prediction result, calculate the degree of correlation between the transaction characteristic information of the target customer and the transaction characteristic information of the target object, wherein the target object is an object with transaction risks; a second calculation unit, used to calculate the probability that the target customer has transaction risks based on the degree of correlation, the error value and the transaction frequency of the target customer.

[0113] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned device also includes: a calculation unit, which is used to predict the risk information of the target customer based on the reconstructed feature information, and after obtaining the prediction result, use the receiver operating characteristic curve algorithm to calculate the prediction result to obtain an evaluation result of the target model; an optimization unit, which is used to optimize the model parameters of the target model based on the evaluation result to obtain an optimized target model; a second prediction unit, which is used to use the optimized target model to predict the risk information of the target customer when a risk prediction request is received.

[0114] Optionally, in the risk information detection device provided in Example 2 of the present application, the above-mentioned acquisition unit 501 includes: an acquisition subunit, used to acquire the transaction data of the target customer, and perform data preprocessing on the transaction data to obtain a data set; a receiving subunit, used to receive the credit assessment information of the target customer, wherein the credit assessment information is information obtained after evaluating the credit status of the target customer; and an adding subunit, used to add the assessment information to the data set to obtain target transaction information.

[0115] The risk information detection device includes a processor and a memory. The above-mentioned acquisition unit 501, extraction unit 502, reconstruction unit 503 and first prediction unit 504 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0116] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the accuracy of the detection results can be improved by adjusting the kernel parameters.

[0117] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0118] Embodiment 3 of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, a method for detecting risk information is implemented.

[0119] A fourth embodiment of the present invention provides a processor, which is used to run a program, wherein a method for detecting risk information is executed when the program is running.

[0120] like Figure 6As shown, embodiment 5 of the present invention provides an electronic device, the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: obtaining target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected; inputting the target transaction information into a target model, extracting transaction feature information of the target customer, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; inputting the transaction feature information into an autoencoder model, reconstructing the transaction feature information, and obtaining reconstructed feature information; predicting the risk information of the target customer based on the reconstructed feature information, and obtaining a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk.

[0121] When the processor executes the program, the following steps are also implemented: the above-mentioned graph neural network model includes at least the following models: a first model, a second model, and a third model. The target transaction information is input into the target model to extract the transaction feature information of the target customer, including: extracting low-level node features in the target graph through the first model, and mapping the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is graph structure data that characterizes the association relationship between customers based on their historical transaction information; extracting deep-level node features from the first feature vector through the second model, and fusing the deep-level node features to obtain a second feature vector, wherein the deep-level node features include at least: node features, average features of neighboring nodes, and global features of the target graph; adding nonlinear features of the node features in the second feature vector through the third model to obtain a third feature vector; calculating the transaction feature information of the target customer based on the first feature vector, the second feature vector, and the third feature vector.

[0122] When the processor executes the program, the following steps are also implemented: the above-mentioned autoencoder model includes at least: an encoder and a decoder, predicting the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, including: calculating the anomaly score of the transaction feature information through the encoder, wherein the anomaly score is used to characterize the degree of abnormality of the transaction feature information; inputting the anomaly score into the decoder, calculating the reconstructed feature information of the transaction feature information through the decoder; calculating the error value between the transaction feature information and the reconstructed feature information; when the error value is greater than a preset threshold, determining that the target customer has a preset type of risk information, and obtaining a prediction result.

[0123] When the processor executes the program, the following steps are also implemented: the above-mentioned historical transaction information includes at least: transaction details information, the relationship between customers. After extracting the low-level node features in the target graph through the first model, the above-mentioned method also includes: encoding the transaction details information through the autoencoder model to obtain the customer's feature vector representation; constructing nodes based on the customers, and constructing node features of the nodes based on the customer's feature vector representation; constructing edges between nodes based on the relationship between customers, and constructing edge features of the edges; constructing the target graph based on nodes, edges, node features, and edge features.

[0124] When the processor executes the program, the following steps are also implemented: calculating the transaction feature information of the target customer based on the first feature vector, the second feature vector and the third feature vector, including: calculating the model weight based on the vector dimension of the transaction feature vector of the customer in the target graph, the vector dimension of the first feature vector and the vector dimension of the second feature vector, wherein the model weight includes at least the following information: the first weight corresponding to the first model, the second weight corresponding to the second model, and the third weight corresponding to the third model; performing weighted sum calculation on the first feature vector, the second feature vector and the third feature vector based on the model weight to obtain the transaction feature information of the target customer.

[0125] When the processor executes the program, the following steps are also implemented: after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the above method also includes: calculating the degree of correlation between the transaction feature information of the target customer and the transaction feature information of the target object, wherein the target object is an object with transaction risks; calculating the probability that the target customer has transaction risks based on the degree of correlation, the error value and the transaction frequency of the target customer.

[0126] When the processor executes the program, the following steps are also implemented: after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the above method also includes: using the receiver operating characteristic curve algorithm to calculate the prediction result to obtain the evaluation result of the target model; optimizing the model parameters of the target model based on the evaluation result to obtain the optimized target model; when receiving a risk prediction request, using the optimized target model to predict the risk information of the target customer.

[0127] When the processor executes the program, the following steps are also implemented: obtaining target transaction information of the target customer, including: obtaining transaction data of the target customer, and performing data preprocessing on the transaction data to obtain a data set; receiving credit evaluation information of the target customer, wherein the credit evaluation information is information obtained after evaluating the credit status of the target customer; adding the evaluation information to the data set to obtain target transaction information.

[0128] The devices in this article can be servers, PCs, PADs, mobile phones, etc.

[0129] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that is initialized with the following method steps: obtaining target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected; inputting the target transaction information into a target model, and extracting transaction feature information of the target customer, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; inputting the transaction feature information into an autoencoder model, reconstructing the transaction feature information, and obtaining reconstructed feature information; predicting the risk information of the target customer based on the reconstructed feature information, and obtaining a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk, or that the target customer does not have a transaction risk.

[0130] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned graph neural network model includes at least the following models: a first model, a second model, and a third model. The target transaction information is input into the target model to extract the transaction feature information of the target customer, including: extracting low-level node features in the target graph through the first model, and mapping the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is graph structure data that characterizes the association relationship between customers based on the customer's historical transaction information; extracting deep-level node features from the first feature vector through the second model, and fusing the deep-level node features to obtain a second feature vector, wherein the deep-level node features include at least: node features, average features of neighboring nodes, and global features of the target graph; adding nonlinear features of the node features in the second feature vector through the third model to obtain a third feature vector; calculating the transaction feature information of the target customer based on the first feature vector, the second feature vector, and the third feature vector.

[0131] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned autoencoder model includes at least: an encoder and a decoder, predicting the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, including: calculating the anomaly score of the transaction feature information through the encoder, wherein the anomaly score is used to characterize the degree of abnormality of the transaction feature information; inputting the anomaly score into the decoder, and calculating the reconstructed feature information of the transaction feature information through the decoder; calculating the error value between the transaction feature information and the reconstructed feature information; when the error value is greater than a preset threshold, determining that the target customer has a preset type of risk information, and obtaining a prediction result.

[0132] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: the above-mentioned historical transaction information at least includes: transaction details information, the relationship between customers, and after extracting the low-level node features in the target graph through the first model, the above-mentioned method also includes: encoding the transaction details information through the autoencoder model to obtain the customer's feature vector representation; constructing nodes based on the customers, and constructing node features of the nodes based on the customer's feature vector representation; constructing edges between nodes based on the relationship between customers, and constructing edge features of the edges; constructing the target graph based on nodes, edges, node features, and edge features.

[0133] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: calculating the transaction feature information of the target customer based on the first feature vector, the second feature vector and the third feature vector, including: calculating the model weight based on the vector dimension of the transaction feature vector of the customer in the target graph, the vector dimension of the first feature vector and the vector dimension of the second feature vector, wherein the model weight includes at least the following information: the first weight corresponding to the first model, the second weight corresponding to the second model, and the third weight corresponding to the third model; performing weighted sum calculation on the first feature vector, the second feature vector and the third feature vector based on the model weight to obtain the transaction feature information of the target customer.

[0134] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the above method also includes: calculating the degree of correlation between the transaction feature information of the target customer and the transaction feature information of the target object, wherein the target object is an object with transaction risks; calculating the probability that the target customer has transaction risks based on the degree of correlation, the error value and the transaction frequency of the target customer.

[0135] When executed on a data processing device, it is also suitable for executing a program initialized with the following method steps: after predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the above method also includes: using the receiver operating characteristic curve algorithm to calculate the prediction result to obtain the evaluation result of the target model; optimizing the model parameters of the target model based on the evaluation result to obtain the optimized target model; when receiving a risk prediction request, using the optimized target model to predict the risk information of the target customer.

[0136] When executed on a data processing device, it is also suitable for executing a program that initializes the following method steps: obtaining target transaction information of a target customer, including: obtaining transaction data of the target customer, and performing data preprocessing on the transaction data to obtain a data set; receiving credit evaluation information of the target customer, wherein the credit evaluation information is information obtained after evaluating the credit status of the target customer; adding the evaluation information to the data set to obtain target transaction information.

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

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

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

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

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

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

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

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

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

[0146] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for detecting risk information, characterized in that: include: Obtaining target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected; Inputting the target transaction information into a target model to extract the transaction feature information of the target customer, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; Inputting the transaction feature information into an autoencoder model, reconstructing the transaction feature information, and obtaining reconstructed feature information; The risk information of the target customer is predicted based on the reconstructed feature information to obtain a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk or that the target customer does not have a transaction risk.

2. The method according to claim 1, characterized in that The graph neural network model includes at least the following models: a first model, a second model, and a third model. The target transaction information is input into the target model, and the transaction feature information of the target customer is extracted, including: Extracting low-level node features in the target graph in the first model and mapping the node features to a low-dimensional space to obtain a first feature vector, wherein the target graph is graph structure data representing the association relationship between the customers based on their historical transaction information; Extracting deep node features from the first feature vector through the second model, and fusing the deep node features to obtain a second feature vector, wherein the deep node features at least include: node features, average features of neighboring nodes, and global features of the target graph; Adding nonlinear features of the node features in the second feature vector through a third model to obtain a third feature vector; The transaction feature information of the target customer is calculated based on the first feature vector, the second feature vector and the third feature vector.

3. The method according to claim 1, characterized in that: The autoencoder model at least includes: an encoder and a decoder, and predicts the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, including: Calculating an anomaly score of the transaction feature information by the encoder, wherein the anomaly score is used to characterize the degree of anomaly of the transaction feature information; Inputting the anomaly score into the decoder, and calculating the reconstructed feature information of the transaction feature information through the decoder; Calculating an error value between the transaction feature information and the reconstructed feature information; When the error value is greater than a preset threshold, it is determined that the target customer has risk information of a preset type, and the prediction result is obtained.

4. The method according to claim 2, characterized in that: The historical transaction information at least includes: transaction details information, the relationship between the customers, and after extracting the low-level node features in the target graph through the first model, the method further includes: Encoding the transaction details information through the autoencoder model to obtain a feature vector representation of the customer; Constructing a node according to the customer, and constructing a node feature of the node according to a feature vector representation of the customer; constructing edges between the nodes according to the association relationship between the customers, and constructing edge features of the edges; The target graph is constructed according to the nodes, the edges, the node features, and the edge features.

5. The method according to claim 2, characterized in that: Calculating the transaction feature information of the target customer according to the first feature vector, the second feature vector and the third feature vector includes: Calculating a model weight according to the vector dimension of the first feature vector, the vector dimension of the second feature vector, and the vector dimension of the third feature vector, wherein the model weight includes at least the following information: a first weight corresponding to the first model, a second weight corresponding to the second model, and a third weight corresponding to the third model; The first feature vector, the second feature vector and the third feature vector are weightedly summed according to the model weight to obtain the transaction feature information of the target customer.

6. The method according to claim 3, characterized in that After predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the method further includes: Calculating the degree of association between the transaction characteristic information of the target customer and the transaction characteristic information of the target object, wherein the target object is an object with transaction risks; The probability that the target customer has a transaction risk is calculated according to the correlation degree, the error value and the transaction frequency of the target customer.

7. The method according to claim 1, characterized in that After predicting the risk information of the target customer based on the reconstructed feature information and obtaining the prediction result, the method further includes: Calculating the prediction result using a receiver operating characteristic curve algorithm to obtain an evaluation result of the target model; Optimizing the model parameters of the target model according to the evaluation result to obtain an optimized target model; When a risk prediction request is received, the optimized target model is used to predict the risk information of the target customer.

8. The method according to claim 1, characterized in that Obtain target transaction information of target customers, including: Acquire transaction data of the target customer, and perform data preprocessing on the transaction data to obtain a data set; Receiving credit evaluation information of the target customer, wherein the credit evaluation information is information obtained after evaluating the credit status of the target customer; The evaluation information is added to the data set to obtain the target transaction information.

9. A risk information detection device, characterized in that: include: An acquisition unit, used to acquire target transaction information of a target customer, wherein the target customer is a customer whose risk information is to be detected; An extraction unit, used to input the target transaction information into a target model to extract transaction feature information of the target customer, wherein the target model is a model obtained by training a graph neural network model using the customer's historical transaction information; A reconstruction unit, used for inputting the transaction feature information into an autoencoder model, reconstructing the transaction feature information, and obtaining reconstructed feature information; The first prediction unit is used to predict the risk information of the target customer based on the reconstructed feature information to obtain a prediction result, wherein the prediction result is used to indicate that the target customer has a transaction risk or that the target customer does not have a transaction risk.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the risk information detection method described in any one of claims 1 to 8.

Citation Information

Cited By

  • Dangerous article risk detection method, device, equipment, medium and program product

    CN120145246A