Risk prediction method and device, computer equipment and storage medium
By determining the associated transaction objects in the online transaction application and calibrating the risk discrimination threshold of the risk prediction model, the problem of risk detection accuracy for newly added merchants is solved and the accuracy of risk detection is improved.
Patent Information
- Application Number
- CN202310246165.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-03
AI Technical Summary
In online trading applications, newly added merchants are unable to accurately conduct risk detection due to the lack of historical data, resulting in the inability to conduct risk detection on merchants more accurately.
By determining the related transaction objects associated with the target detection object in the historical transaction objects of the application, using the preset risk prediction model to predict and process the historical transaction information of the related transaction objects, calibrating the risk discrimination threshold, and using the calibrated threshold for Risk prediction of target detection objects.
The accuracy of risk detection for target detection objects is improved. Especially during the cold start period, the accuracy of prediction is significantly improved when risk detection of newly added transaction objects is performed.
Smart Images

Figure CN118586952A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a risk prediction method, apparatus, computer equipment and storage medium. Background Art
[0002] With the development of computer technology and Internet technology, people can use electronic tools such as the Internet to conduct business and trade activities around the world. For example, online trading applications can be realized through computer technology and Internet technology, and merchants can open stores on online trading platforms through online trading applications, etc. For online trading applications, risk detection of merchants is very important, because it can not only protect the interests of consumers, but also ensure the quality and reputation of their own applications. However, when a new merchant enters the online trading application, due to the lack of merchant performance samples, it is impossible to predict the risk of the merchant, which makes it impossible to accurately detect the risk of the merchant. Summary of the invention
[0003] The embodiments of the present application provide a risk prediction method, apparatus, computer device and storage medium, which can improve the accuracy of risk detection of target detection objects.
[0004] The present application embodiment provides a risk prediction method, including:
[0005] When a target detection object is detected in the application, determining an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold;
[0006] Using a risk discrimination threshold of a preset risk prediction model to predict historical transaction information of the associated transaction object, and obtaining a risk prediction result corresponding to the associated transaction object;
[0007] Calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold;
[0008] The calibrated risk discrimination threshold of the preset risk prediction model is used to perform risk prediction processing on the transaction information of the target detection object to obtain a risk prediction result of the target detection object.
[0009] Accordingly, the embodiment of the present application further provides a risk prediction device, comprising:
[0010] a determination unit, configured to, when detecting that a target detection object exists in an application, determine an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold;
[0011] A prediction unit, configured to use a risk discrimination threshold of a preset risk prediction model to perform prediction processing on the historical transaction information of the associated transaction object to obtain a risk prediction result corresponding to the associated transaction object;
[0012] A calibration unit, configured to calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object, to obtain a calibrated risk discrimination threshold;
[0013] The risk prediction unit is used to perform risk prediction processing on the transaction information of the target detection object using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object.
[0014] In one embodiment, the calibration unit may include:
[0015] An acquisition subunit, used to acquire the risk label corresponding to the historical transaction information of the associated transaction object;
[0016] A result determination subunit, configured to determine a reference risk prediction result from the risk prediction results corresponding to the plurality of associated transaction objects according to the risk label corresponding to the historical transaction information;
[0017] The replacement subunit is used to replace the risk discrimination threshold with the risk prediction information corresponding to the reference risk prediction result to obtain the calibrated risk discrimination threshold.
[0018] In one embodiment, the result determination subunit may include:
[0019] A sorting module, used to sort the risk prediction information of the plurality of associated transaction objects to obtain a sorting identifier of each risk prediction result;
[0020] A matching module, configured to match the risk tag of the historical transaction information with the risk prediction result corresponding to the historical transaction information according to the sorting identifier of the risk prediction result;
[0021] The result determination module is used to determine a reference risk prediction result according to a ranking identifier corresponding to the risk prediction result when the risk label of the historical transaction information and the risk prediction result corresponding to the historical transaction information do not match.
[0022] In one embodiment, the risk prediction unit may include:
[0023] A prediction subunit, configured to predict the transaction information of the target detection object by using the preset risk prediction model, and obtain risk prediction information corresponding to the transaction information of the target detection object;
[0024] A discriminating subunit, configured to discriminate the risk prediction information of the target detection object using the calibrated risk discrimination threshold to obtain a discrimination result;
[0025] The mapping subunit is used to perform mapping processing on the discrimination result to obtain the risk prediction result.
[0026] In one embodiment, the prediction subunit may include:
[0027] A feature extraction module, used to extract features from the transaction information of the target detection object using the preset risk prediction model to obtain feature information of the transaction information;
[0028] A pooling module, used to perform pooling processing on the feature information using the preset risk prediction model to obtain pooled feature information;
[0029] The activation module is used to activate the pooled feature information using the preset risk prediction model to obtain risk prediction information corresponding to the transaction information of the target detection object.
[0030] In one embodiment, the determining unit may include:
[0031] An information acquisition subunit, configured to acquire historical transaction information of multiple historical transaction objects of the application when a target detection object is detected in the application;
[0032] a calculation subunit, configured to respectively calculate transaction similarities between the transaction information of the target detection object and the historical transaction information of the plurality of historical transaction objects;
[0033] The object determination subunit is used to determine, according to the transaction similarity between the target object and the multiple historical transaction objects, an associated transaction object associated with the target detection object from the multiple historical transaction objects.
[0034] In one embodiment, the information acquisition subunit may include:
[0035] The first acquisition module is used to acquire the prediction time information and the transaction operation time period when the target detection object is detected in the application;
[0036] an arithmetic operation module, used for performing arithmetic operation on the predicted time information and the transaction operation time period to obtain a time reference interval;
[0037] The second acquisition module is used to acquire the historical transaction information of the multiple historical transaction objects within the time reference interval.
[0038] In one embodiment, the prediction unit may include:
[0039] A prediction subunit, configured to use the preset risk prediction model to perform prediction processing on the historical transaction information of the associated transaction object to obtain risk prediction information of the associated transaction object;
[0040] The discrimination subunit is used to use the risk discrimination threshold to discriminate the risk prediction information of the associated transaction object to obtain the risk prediction result of the associated transaction object.
[0041] In one embodiment, the risk prediction device may further include:
[0042] A model acquisition unit, used to acquire a risk detection model to be trained;
[0043] An extraction unit, configured to extract historical transaction information of the historical transaction object of the application to obtain a historical transaction information sample;
[0044] The training unit is used to train the risk detection model to be trained using the historical transaction information samples to obtain the preset risk prediction model.
[0045] In one embodiment, the extraction unit may include:
[0046] A time information acquisition subunit is used to acquire forecast time information, transaction operation time cycle and time interval information;
[0047] an arithmetic operation subunit, configured to perform arithmetic operation on the predicted time information, the transaction operation time period and the time interval information to obtain an extraction time interval;
[0048] The extraction subunit is used to extract and process the historical transaction information of multiple historical transaction objects of the application within the extraction time interval to obtain a historical transaction information sample.
[0049] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the method provided in various optional modes of the above-mentioned aspect.
[0050] Correspondingly, an embodiment of the present application also provides a storage medium, which stores instructions, and when the instructions are executed by a processor, any risk prediction method provided in the embodiments of the present application is implemented.
[0051] In the embodiment of the present application, when a target detection object is detected in an application, an associated transaction object associated with the target detection object is determined in the historical transaction objects of the application; the historical transaction information of the associated transaction object is predicted and processed using the risk discrimination threshold of a preset risk prediction model to obtain a risk prediction result corresponding to the associated transaction object; the risk discrimination threshold of the preset risk prediction model is calibrated using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold; the transaction information of the target detection object is risk predicted and processed using the calibrated risk discrimination threshold of the preset risk prediction model to obtain a risk prediction result for the target detection object, which can improve the accuracy of risk detection of the target detection object. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0053] Figure 1 is a scenario diagram of the risk prediction method provided in the embodiment of the present application;
[0054] Figure 2 It is a schematic diagram of the process of the risk prediction method provided in the embodiment of the present application;
[0055] Figure 3 This is another schematic diagram of the risk prediction method provided in the embodiment of the present application;
[0056] Figure 4 This is another scenario schematic diagram of the risk prediction method provided in the embodiment of the present application;
[0057] Figure 5 is a schematic diagram of the structure of a risk prediction device provided in an embodiment of the present application;
[0058] Figure 6 It is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. However, 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 those skilled in the art without creative work are within the scope of protection of this application.
[0060] The embodiment of the present application proposes a risk prediction method, which can be performed by a risk prediction device, and the risk prediction device can be integrated in a computer device. The computer device may include at least one of a terminal and a server. That is, the risk prediction method proposed in the embodiment of the present application can be performed by a terminal, a server, or a terminal and a server that can communicate with each other.
[0061] Among them, the terminals may include but are not limited to smart phones, tablet computers, laptops, personal computers (PCs), smart home appliances, wearable electronic devices, VR / AR devices, vehicle-mounted terminals, intelligent voice interaction devices, etc.
[0062] The server can be an intercommunication server or background server between multiple heterogeneous systems, an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, as well as big data and artificial intelligence platforms, etc.
[0063] It should be noted that the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, etc.
[0064] In one embodiment, if Figure 1The risk prediction device can be integrated on a computer device such as a terminal or a server to implement the risk prediction method proposed in the embodiment of the present application. Specifically, when the server 11 or the terminal 10 detects the presence of a target detection object in the application, the associated transaction object associated with the target detection object is determined in the historical transaction objects of the application; the historical transaction information of the associated transaction object is predicted and processed using the risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result corresponding to the associated transaction object; the risk discrimination threshold of the preset risk prediction model is calibrated using the risk prediction result corresponding to the associated transaction object to obtain the calibrated risk discrimination threshold; the transaction information of the target detection object is risk predicted and processed using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object.
[0065] The following are detailed descriptions respectively. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0066] The embodiments of the present application will be described from the perspective of a risk prediction device, which may be integrated into a computer device, which may be a server, a terminal or other device.
[0067] like Figure 2 A risk prediction method is provided, and the specific process includes:
[0068] 101. When a target detection object is detected in an application, an associated transaction object associated with the target detection object is determined in historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold.
[0069] In one embodiment, the application may include a computer program that performs one or more specific functions, runs in an interactive mode, can interact with an object of use of the application, and has a visual display interface.
[0070] For example, the application may include application software on various terminals, such as various mobile phone software (Application, APP), tablet computer application software, notebook computer application software, personal computer (PC, Personal Computer) application software, etc.
[0071] For example, applications may include browsers, video playback software, game software, and the like.
[0072] For another example, an application may also include a mini program. Among them, a mini program is an application that can be used without downloading and installing. In order to provide users with more diversified business services, developers can develop corresponding mini programs for terminal applications (such as instant messaging applications, shopping applications, email applications, etc.). The mini program can be embedded in the terminal application as a sub-application, and the corresponding business services can be provided to users by running the sub-application in the application (i.e., the corresponding mini program).
[0073] For example, the application may include an application that can perform online transactions. For example, the application may be a shopping application, a payment application, or a financial application, etc.
[0074] In one embodiment, the target detection object may include a transaction object in the application whose operating time does not meet a preset time threshold.
[0075] The operation time can be calculated from the time when the transaction object registers its identity in the application. For example, when the transaction object registers as a merchant in the shopping application, the operation time of the transaction object can be calculated.
[0076] Among them, the preset time threshold can be used to determine what type of transaction object the transaction object is. For example, the preset time threshold can be used to determine whether the transaction object is an object newly added to the application or an old object. For example, when the operation time of the transaction object in the application does not meet the preset time threshold, it can be explained that the transaction object is a newly registered transaction object in the application, and the transaction object has relatively little data in the application. Therefore, the method proposed in the embodiment of the present application can be used to perform risk detection on the transaction object. For another example, when the operation time of the transaction object in the application meets the preset time threshold, it can be explained that the transaction object is not a newly registered transaction object in the application. For example, the time threshold can be 2 months. When the registration time of the transaction object in the application is less than two months, it can be explained that the transaction object is a new transaction object. And when the registration time of the transaction object in the application is greater than two months, it can be explained whether the transaction object is a new transaction object in the transaction application.
[0077] In one embodiment, when a target detection object is detected in an application, associated transaction objects associated with the target detection object may be determined in historical transaction objects of the application, wherein the target detection object includes transaction objects whose operating time in the application does not meet a preset time threshold.
[0078] Among them, the target detection object includes a transaction object whose operation time in the application does not meet the preset time threshold, which can indicate that the target detection object is a new transaction object in the application, that is, the target detection object lacks data for risk detection in the application.
[0079] The associated transaction objects associated with the target detection object may include transaction objects with a high transaction similarity with the target detection object. The transaction similarity may include the similarity of the transaction objects in transaction information. The transaction information may be used to illustrate information related to the transaction object and the transaction behavior. For example, the transaction information may include the order quantity, order default rate, operating product range, product new frequency, etc. of the transaction object on the application.
[0080] For example, if the target detection object and the transaction object have similar operating commodity ranges, the transaction object can be a related transaction object. For another example, if the order default rate of the target detection object is similar to that of the transaction object, the transaction object can be a related transaction object.
[0081] In one embodiment, when it is detected that a target detection object exists in an application, an associated transaction object associated with the target detection object may be determined in historical transaction objects of the application.
[0082] For example, the transaction objects may be divided into a variety of different types according to the operating scope of the transaction objects. For example, the transaction objects may be divided into digital transaction objects, food transaction objects, clothing transaction objects, etc. according to the operating scope of the transaction objects. Then, the transaction-associated objects associated with the target detection object may be determined according to the operating scope of the target detection object. For example, the transaction objects having the same operating scope as the target detection object may be determined as associated transaction objects.
[0083] For another example, the associated transaction object associated with the target detection object can be determined based on the transaction similarity. Specifically, the step of "when the target detection object is detected in the application, determining the associated transaction object associated with the target detection object in the historical transaction objects of the application" may include:
[0084] When a target detection object is detected in the application, historical transaction information of multiple historical transaction objects of the application is obtained;
[0085] Calculating transaction similarities between transaction information of a target detection object and historical transaction information of multiple historical transaction objects respectively;
[0086] According to the transaction similarity between the target object and the multiple historical transaction objects, an associated transaction object associated with the target detection object is determined from the multiple historical transaction objects.
[0087] The historical transaction objects may include transaction objects whose operation time in the application meets a preset time threshold. For example, the historical transaction objects may include transaction objects whose operation time in the application is greater than a preset time threshold. For example, the historical transaction objects may include transaction objects whose operation time in the application is greater than 2 months.
[0088] The historical transaction information may include transaction information of historical transaction objects. For example, the historical transaction information may include the order quantity, order default rate, operating product range, product new frequency, etc. of the historical transaction object on the application.
[0089] In one embodiment, when the presence of a target detection object is detected in an application, historical transaction information of multiple historical transaction objects of the application may be obtained.
[0090] For example, when a target detection object is detected in an application, historical transaction information of all historical transaction objects in the application may be obtained.
[0091] For another example, in order to improve accuracy, historical transaction information of multiple historical transaction objects in the application can be obtained based on the predicted time information. Specifically, the step of "when a target detection object is detected in the application, historical transaction information of multiple historical transaction objects of the application is obtained" can include:
[0092] When a target detection object is detected in the application, the prediction time information and transaction operation time period are obtained;
[0093] Perform arithmetic operations on the forecast time information and the transaction operation time period to obtain a time reference interval;
[0094] Get historical transaction information of multiple historical transaction objects within a time reference interval.
[0095] The prediction time information may refer to the time for predicting whether the target detection object will have a risk. For example, assuming that the prediction time information is t, this solution may be to predict whether the target detection object will have a risk on day t.
[0096] The transaction operation time period may refer to the duration of the commodity operated by the target detection object. For example, the transaction operation time period may refer to the performance period of an order, that is, a period from order placement to completion may be used as a transaction event period.
[0097] In one embodiment, when the presence of a target detection object is detected in the application, the predicted time information and the transaction operation time period can be obtained. Then, the predicted time information and the transaction operation time period can be subjected to arithmetic operations to obtain a time reference interval. For example, the predicted time information and the transaction operation time period can be subjected to addition, subtraction, multiplication, division and other calculations to obtain a time reference interval. For example, assuming that the predicted time information is t days and the transaction operation time period is N days, the time reference interval can be [tNk, tN], where k is a positive integer less than N. Next, the historical transaction information of multiple historical transaction objects within the time reference interval can be obtained. For example, the historical transaction information of multiple historical transaction objects within [tNk, tN] can be obtained.
[0098] In one embodiment, after acquiring the historical transaction information of multiple historical transaction objects, the transaction similarity between the transaction information of the target detection object and the historical transaction information of the multiple historical transaction objects can be calculated respectively. There are multiple methods for calculating the transaction similarity between the transaction information of the target detection object and the historical transaction information of the multiple historical transaction objects. For example, the transaction similarity between the transaction information of the target detection object and the historical transaction information of the multiple historical transaction objects can be calculated by similarity calculation methods such as Euclidean distance or cosine distance.
[0099] In one embodiment, an associated transaction object associated with the target detection object can be determined from among the multiple historical transaction objects according to the transaction similarity between the target object and the multiple historical transaction objects. For example, the similarity between the target object and the multiple historical transaction objects can be sorted from high to low. Then, the historical transaction objects with the top transaction similarity can be selected as the associated transaction objects. For example, the historical transaction objects with the top three transaction similarities can be selected as the associated transaction objects.
[0100] In one embodiment, the embodiment of the present application can realize automated risk detection of transaction objects in the application. Therefore, when the operator wants to perform risk detection on the transaction objects in the application, the computer device can receive a risk detection start instruction. Then, the computer device can detect the transaction objects in the application according to the risk detection start instruction. When the presence of a target detection object in the application is detected, the associated transaction object associated with the target detection object can be determined in the historical transaction objects of the application. For example, the computer device can detect the transaction objects in the application according to a preset time threshold to obtain the target detection object. For example, the computer device can compare the operating time of the transaction object in the application with the preset time threshold. When the operating time of the transaction object in the application does not meet the preset time threshold, the transaction object can be determined as the target detection object.
[0101] 102. Use the risk discrimination threshold of the preset risk prediction model to predict the historical transaction information of the associated transaction object to obtain the risk prediction result corresponding to the associated transaction object.
[0102] In one embodiment, the preset risk prediction model may be an artificial intelligence model.
[0103] Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0104] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0105] Machine Learning (ML) is a multi-disciplinary interdisciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning. Among them, reinforcement learning is a field in machine learning that emphasizes how to act based on the environment to maximize expected benefits. Deep reinforcement learning combines deep learning and reinforcement learning, using deep learning technology to solve reinforcement learning problems.
[0106] For example, the preset risk prediction model can be a convolutional neural network (CNN), a deconvolutional neural network (DN), a deep neural network (DNN), a deep convolutional inverse graphics network (DCIGN), a fast region-based convolutional network (Faster Region-based Convolutional Networks, Faster RCNN), a neural network model based on Wasserstein distance or a bidirectional encoder and decoder (Bidirectional Encoder Representations from Transformers, BERT) model, an extreme gradient boosting (Exterme Gradient Boosting, XGB) binary classifier, and the like.
[0107] In one embodiment, the preset risk prediction model can be a trained model that can be directly used for risk prediction. In addition, the preset risk prediction model can be a universal risk prediction model. No matter what kind of transaction object, the preset risk prediction model can be used for detection.
[0108] In one embodiment, the risk identification threshold may be used to determine whether a risk prediction threshold exists for an associated transaction object.
[0109] For example, the preset risk prediction model can predict the risk prediction information of the associated transaction object. Then, the risk discrimination threshold can be used to discriminate the risk detection information of the associated transaction object to obtain the risk prediction result corresponding to the associated transaction object. Specifically, the step of "using the risk discrimination threshold of the preset risk prediction model to predict the historical transaction information of the associated transaction object to obtain the risk prediction result corresponding to the associated transaction object" may include:
[0110] Use the preset risk prediction model to predict the historical transaction information of the related transaction object to obtain the risk prediction information of the related transaction object;
[0111] The risk prediction information of the associated transaction objects is judged and processed using the risk discrimination threshold to obtain the risk prediction results of the associated transaction objects.
[0112] Among them, the risk prediction information can be used to illustrate the probability that the associated transaction object may have risks. For example, the risk prediction information can be a probability value or a probability score. For example, the risk prediction information can be 40%, indicating that the associated transaction object has a 40% probability of existence. For another example, the risk prediction information can be 70, indicating that the score of the associated transaction object having risks can be 70 points.
[0113] Among them, the risk prediction result can be used to indicate whether the associated transaction object really has risks. For example, the risk prediction result can be represented by "0" and "1". If the risk prediction result is "0", it can be indicated that the associated transaction object does not have risks. If the risk prediction result is "1", it can be indicated that the associated transaction object has risks.
[0114] In one embodiment, a preset risk prediction model may be used to perform prediction processing on historical transaction information of associated transaction objects to obtain risk prediction information of the associated transaction objects.
[0115] Among them, corresponding steps can be executed according to the model structure of the preset risk prediction model, so as to realize the prediction processing of the historical transaction information of the associated transaction objects and obtain the risk prediction information of the associated transaction objects.
[0116] For example, the preset risk prediction model may include a feature extraction layer, a pooling layer, and an activation layer. Therefore, the feature extraction layer of the preset risk prediction model may be used to extract features from the historical transaction information of the associated transaction object to obtain feature information of the historical transaction information. Then, the pooling layer of the preset risk prediction model may be used to perform pooling processing on the feature information of the historical transaction information to obtain pooled feature information. Then, the activation layer of the preset risk prediction model may be used to perform activation processing on the pooled feature information to obtain risk prediction information of the associated transaction object.
[0117] In one embodiment, the risk prediction information of the associated transaction object can be judged by using the risk discrimination threshold to obtain the risk prediction result of the associated transaction object. For example, the risk discrimination threshold and the risk prediction information of the associated transaction object can be compared. If the risk prediction information of the associated transaction object is less than the risk discrimination threshold, it can be said that there is no risk in the associated transaction object. If the risk prediction information of the associated transaction object is greater than or equal to the risk discrimination threshold, it can be said that there is a risk in the associated transaction object.
[0118] In one embodiment, since the preset risk prediction model can be a trained model. Therefore, the risk prediction model to be trained can be obtained, and then the risk detection model to be trained can be trained to obtain the risk detection model. Since the target detection object has no historical data, the historical transaction information of the historical transaction objects in the application can be sampled to obtain historical transaction samples. Then, the historical transaction samples can be used to train the risk detection model to be trained. Specifically, before the step of "using the risk discrimination threshold of the preset risk prediction model to predict the historical transaction information of the associated transaction objects and obtain the risk prediction results corresponding to the associated transaction objects", the method proposed in the embodiment of the present application also includes:
[0119] Obtain the risk detection model to be trained;
[0120] Extracting and processing historical transaction information of historical transaction objects of the application to obtain historical transaction information samples;
[0121] The risk detection model to be trained is trained using historical transaction information samples to obtain a preset risk prediction model.
[0122] Among them, the risk detection model to be trained may include a model whose performance does not meet the requirements and needs to be trained.
[0123] The historical transaction information samples may include the training data required for training the risk detection model to be trained.
[0124] In one embodiment, there are multiple ways to extract and process the historical transaction information of the historical transaction object of the application to obtain a historical transaction information sample.
[0125] For example, a plurality of historical transaction information of a historical transaction object may be randomly sampled to obtain a sample of the historical transaction information.
[0126] For another example, if historical transaction information from too long ago is used, the sample distribution will change, resulting in a decrease in prediction effect. In order to improve the reliability of the sample and thus improve the accuracy of model training, the generation time of historical transaction information samples can be limited. Specifically, the step of "extracting and processing the historical transaction information of the historical transaction object of the application to obtain a historical transaction information sample" may include:
[0127] Obtain forecast time information, transaction operation time cycle and time interval information;
[0128] Performing arithmetic operations on the forecast time information, the transaction operation time cycle and the time interval information to obtain the extraction time interval;
[0129] The historical transaction information of multiple historical transaction objects of the application within the extraction time interval is extracted and processed to obtain a historical transaction information sample.
[0130] The prediction time information may refer to the time for predicting whether the target detection object will have a risk. For example, assuming that the prediction time information is t, this solution may be to predict whether the target detection object will have a risk on day t.
[0131] The transaction operation time period may refer to the duration of the commodity operated by the target detection object. For example, the transaction operation time period may refer to the performance period of an order, that is, a period from order placement to completion may be used as a transaction event period.
[0132] In one embodiment, the prediction time information, the transaction operation time cycle and the time interval information can be subjected to arithmetic operation processing to obtain an extraction time interval. Then, the historical transaction information of multiple historical transaction objects of the application within the extraction time interval can be extracted to obtain a historical transaction information sample. For example, assuming that the prediction time information is t days, the transaction operation time cycle is N days, and the time interval information is a days and b days. The historical transaction information within the extraction time [tNab, tNa] can be obtained as a historical transaction information sample.
[0133] In one embodiment, the risk detection model to be trained can be trained using historical transaction information samples to obtain a preset risk prediction model. For example, the risk detection model to be trained can be used to perform risk prediction on the historical transaction information samples to obtain the risk prediction results corresponding to the historical transaction information samples. Then, the sample labels of the historical transaction information samples and the loss information of the risk prediction results can be calculated. Then, the model parameters of the risk detection model to be trained can be adjusted according to the loss information to obtain the preset risk prediction model. Among them, the sample label can refer to the real risk result of the historical transaction information sample. Among them, there are multiple ways to calculate the sample label of the historical transaction information sample and the loss information of the risk prediction results. For example, the sample label of the historical transaction information sample and the loss information of the risk prediction results can be calculated using the cross entropy loss function. For another example, the sample label of the historical transaction information sample and the loss information of the risk prediction results can be calculated using the norm function.
[0134] 103. Calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction results corresponding to the associated transaction objects to obtain the calibrated risk discrimination threshold.
[0135] In one embodiment, the preset risk prediction model is obtained by training using historical transaction information samples. However, the sample distribution of the historical transaction information samples and the information distribution of the transaction information of the target detection object may be different. Therefore, the risk discrimination threshold of the preset risk prediction model can be calibrated to obtain a calibrated risk discrimination threshold. By calibrating the risk discrimination threshold, the calibrated risk discrimination threshold can be made closer to the actual distribution of transaction information, thereby improving the accuracy of risk detection.
[0136] In one embodiment, the calibrated risk discrimination threshold may be determined in the risk prediction information of the associated transaction object according to the risk prediction result of the associated transaction object.
[0137] For example, the step of “calibrating the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain the calibrated risk discrimination threshold” may include:
[0138] Obtain risk labels corresponding to historical transaction information of associated transaction objects;
[0139] According to the risk labels corresponding to the historical transaction information, a reference risk prediction result is determined from the risk prediction results corresponding to the multiple associated transaction objects;
[0140] The risk prediction information corresponding to the reference risk prediction result replaces the risk discrimination threshold to obtain the calibrated risk discrimination threshold.
[0141] The risk label may refer to the actual risk result of the associated transaction object. For example, the risk label may indicate whether there is actually a risk in the associated transaction object.
[0142] In one embodiment, the risk label corresponding to the historical transaction information of the associated transaction object may be obtained. Then, the reference risk prediction result may be determined from the risk prediction results corresponding to the multiple associated transaction objects according to the risk label corresponding to the historical transaction information. For example, the risk label of the historical transaction information and the reference risk prediction result may be matched. Then, the reference risk prediction result may be determined from the risk prediction results of the associated transaction object according to the matching result. Then, the risk prediction information corresponding to the reference risk prediction result may be replaced with the risk discrimination threshold to obtain the calibrated risk discrimination threshold.
[0143] For example, suppose there are M related transaction objects, where M is a positive integer. According to the risk label corresponding to the historical transaction information, the risk prediction result of the Hth related transaction object among the M related transaction objects can be determined as the reference risk prediction result. Then, the risk prediction information of the Hth related transaction object can be determined as the calibrated risk discrimination threshold. Where H is a positive integer less than M.
[0144] In one embodiment, in order to improve efficiency, the risk detection information of the associated transaction objects may be sorted, and then the sorted risk detection information is subjected to label matching to determine the reference risk prediction result.
[0145] Specifically, the step of “determining a reference risk prediction result from risk prediction results corresponding to multiple associated transaction objects according to the risk label corresponding to the historical transaction information” may include:
[0146] Sorting the risk prediction information of multiple related transaction objects to obtain a ranking mark of each risk prediction result;
[0147] According to the ranking mark of the risk prediction result, the risk label of the historical transaction information and the risk prediction result corresponding to the historical transaction information are matched;
[0148] When the risk label of the historical transaction information and the risk prediction result corresponding to the historical transaction information do not match, the reference risk prediction result is determined according to the sorting identifier corresponding to the risk prediction result.
[0149] In one embodiment, the risk prediction information of multiple related transaction objects is sorted to obtain a sorting identifier for each risk prediction result. For example, the risk prediction information of multiple related transaction objects can be sorted from high to low to obtain a sorting identifier for each risk prediction result. Among them, the sorting identifier of the risk prediction result can be used to illustrate the sorting order of the related transaction objects. For example, if the sorting identifier of the related transaction object is "1", the risk prediction information of the related transaction object is the largest. For another example, if the sorting identifier of the related transaction object is "2", the risk prediction information of the related transaction object is ranked second.
[0150] In one embodiment, the risk tags of the historical transaction information and the risk prediction results corresponding to the historical transaction information are matched according to the ranking identifiers of the risk prediction results.
[0151] Among them, matching the risk label of historical transaction information with the risk prediction result corresponding to the historical transaction information may refer to determining whether the risk prediction information corresponding to the historical transaction information and the risk label of the historical transaction information are consistent. For example, if the risk label of the historical transaction information is "there is a risk", and the risk prediction result corresponding to the historical transaction information is "there is a risk", it can be said that the risk prediction information corresponding to the historical transaction information and the risk label of the historical transaction information are consistent. If the risk label of the historical transaction information is "there is a risk", and the risk prediction result corresponding to the historical transaction information is "there is no risk", it can be said that the risk prediction information corresponding to the historical transaction information and the risk label of the historical transaction information are inconsistent.
[0152] In one embodiment, the risk tag of the historical transaction information and the risk prediction result corresponding to the historical transaction information may be matched according to the sorting mark of the risk prediction result. For example, the risk tag of the historical transaction information and the risk prediction result corresponding to the historical transaction information may be matched in order according to the sorting mark of the risk prediction result. For example, if the sorting mark corresponding to the risk prediction result is 1, the risk tag of the historical transaction information and the risk prediction result corresponding to the historical transaction information will be matched first. Then, the risk tag of the historical transaction information with the sorting mark of 2 and the risk prediction result corresponding to the historical transaction information will be matched.
[0153] In one embodiment, according to the sorting identifier, when the risk tag of the historical transaction information and the risk prediction result corresponding to the historical transaction information do not match, the reference risk prediction result can be determined according to the sorting identifier corresponding to the risk prediction result. For example, assuming that there are M associated transaction objects, if the risk tag of the historical transaction information of the H+1th associated transaction object and the risk prediction result corresponding to the historical transaction information do not match, the risk prediction result of the Hth associated transaction object can be determined as the reference risk prediction result.
[0154] For another example, the risk prediction information of the associated transaction objects is sorted in descending order from high to low. For the historical transaction information of the associated transaction objects, the risk labels corresponding to the historical transaction information are known. In the historical transaction information of the associated transaction objects, the amount of risk labels equal to 1 is the default sample size, assuming it is P. In the sorted risk prediction information, the probability ranked in the Nth row is the calibrated risk discrimination threshold.
[0155] 104. Perform risk prediction processing on the transaction information of the target detection object using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object.
[0156] In one embodiment, after obtaining the calibrated risk discrimination threshold, the calibrated risk discrimination threshold can be used to replace the original risk discrimination threshold of the preset risk prediction model. Then, the calibrated risk discrimination threshold of the preset risk prediction model can be used to perform risk prediction processing on the transaction information of the target detection object to obtain the risk prediction result of the target detection object.
[0157] Specifically, the step of “performing risk prediction processing on the transaction information of the target detection object using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object” may include:
[0158] Using a preset risk prediction model to predict the transaction information of the target detection object, and obtaining risk prediction information corresponding to the transaction information of the target detection object;
[0159] Using the calibrated risk discrimination threshold to discriminate the risk prediction information of the target detection object to obtain a discrimination result;
[0160] The discrimination results are mapped to obtain risk prediction results.
[0161] In one embodiment, the transaction information of the target detection object can be predicted using a preset risk prediction model to obtain risk prediction information corresponding to the transaction information of the target detection object. Specifically, the step of "predicting the transaction information of the target detection object using a preset risk prediction model to obtain risk prediction information corresponding to the transaction information of the target detection object" may include:
[0162] Using a preset risk prediction model to extract features from the transaction information of the target detection object, and obtain feature information of the transaction information;
[0163] Using a preset risk prediction model to perform pooling processing on the feature information, obtaining pooled feature information;
[0164] The preset risk prediction model is used to activate the pooled feature information to obtain the risk prediction information corresponding to the transaction information of the target detection object.
[0165] In one embodiment, the preset risk prediction model can be used to extract features from the transaction information of the target detection object to obtain feature information of the transaction information. For example, the preset risk prediction model can include multiple feature extraction layers, each of which is composed of a convolution kernel. The convolution kernel in the feature extraction layer can be used to perform a convolution operation on the transaction information of the target detection object to obtain feature information of the transaction information.
[0166] In one embodiment, the feature information may be pooled using a preset risk prediction model to obtain pooled feature information. For example, the feature information may be pooled using a pooling layer in a preset risk prediction model to obtain pooled feature information. For example, the pooling layer may be a maximum pooling layer or an average pooling layer. For example, the feature information may be pooled using an average pooling layer in a preset risk prediction model to obtain pooled feature information.
[0167] In one embodiment, the pooled feature information may be activated using a preset risk prediction model to obtain risk prediction information corresponding to the transaction information of the target detection object. For example, the pooled feature information may be activated using an activation function such as a Sigmoid function, a Tanh function, or a Relu function to obtain risk prediction information corresponding to the transaction information of the target detection object.
[0168] In one embodiment, the risk prediction information of the target detection object can be discriminated using the calibrated risk discrimination threshold to obtain a discrimination result. Then, the discrimination result is mapped to obtain a risk detection result. For example, the calibrated risk discrimination threshold and the risk detection information of the target detection object can be compared. If the risk prediction information of the target detection object is less than the calibrated risk discrimination threshold, it can be said that there is no risk for the target detection object, and therefore, a risk prediction result that there is no risk for the target detection object can be generated. If the risk prediction information of the target detection object is greater than or equal to the calibrated risk discrimination threshold, it can be said that there is a risk for the target detection object, and therefore, a risk prediction result that there is a risk for the target detection object can be generated.
[0169] In one embodiment, for example, the application may be a shopping application, and the transaction object may be a merchant in the shopping application. In the management of the shopping application, it is necessary to warn the merchant of the risk level. Among them, default rate prediction is a way to warn of risks in advance. The formula for calculating the merchant's daily default rate is: the number of defaulted orders in completed orders / the total number of completed orders. Among them, the denominator is generally a known quantity, while the numerator is generally an unknown quantity. Therefore, the numerator can be predicted to obtain a default rate prediction. The default rate can be used to know the merchant's risk level. Through the method proposed in the embodiment of the present application, the order default rate of merchants newly added to the application can be predicted, thereby calculating the risk level of the new merchant.
[0170] For example, Table 1 and Table 2 are the prediction error statistics for Merchant 1 and Merchant 2, which are simulated as new merchants entering the merchant in November and in the period from November to December. Prediction error = |predicted default rate-actual default rate| / actual default rate. Among them, "Merchant a-direct migration" means: the prediction effect of using existing technology to predict the risk of randomly selecting historical merchant a that already exists in the application, and the meanings of other fields are similar.
[0171] As can be seen from Table 1 and Table 2, simulating "Merchant 1" and "Merchant 2" as new merchants can basically achieve a smaller prediction error than randomly selecting existing merchants for direct migration. Table 2 shows the instability of randomly selecting merchant migration. When merchant c is randomly selected, the prediction error is very large.
[0172] Model November December This program 0.1868 0.1430 Merchant a-Direct Migration 0.2820 0.2568 Merchant b-direct migration 0.4678 0.4654 Merchant c-direct migration 0.2490 0.1799
[0173] Table 1 Comparison of the effects of simulating new access to merchant 1
[0174] Model November December This program 0.1836 0.2030 Merchant a-Direct Migration 0.2328 0.1952 Merchant b-direct migration 0.2046 0.2112 Merchant c-direct migration 0.8109 0.8580
[0175] Table 2 Comparison of the effects of simulating new access to merchant 2
[0176] It can be seen from Table 1 and Table 2 that this solution has a good prediction effect for merchants during the cold start period (the initial stage of merchant access).
[0177] In one embodiment, the method proposed in the embodiment of the present application can realize risk detection of newly added transaction objects in the application, that is, risk detection of transaction objects in the cold start period can be performed. For historical transaction objects in the application, supervised learning methods can be used to predict risks for historical transaction objects.
[0178] In one embodiment, it should be noted that it is understandable that in the specific implementation of the present application, when the above embodiments of the present application are applied to specific products or technologies, the transaction information and other related data of the transaction object need to be licensed or agreed by the transaction object, and the collection, use and processing of the relevant data need to comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0179] In an embodiment of the present application, when a target detection object is detected in an application, an associated transaction object associated with the target detection object is determined in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operating time in the application does not meet the preset time threshold; the historical transaction information of the associated transaction object is predicted and processed using the risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result corresponding to the associated transaction object; the risk discrimination threshold of the preset risk prediction model is calibrated using the risk prediction result corresponding to the associated transaction object to obtain the calibrated risk discrimination threshold; the transaction information of the target detection object is risk predicted and processed using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object. The embodiment of the present application can solve the problem of risk detection for transaction objects in the cold start period. The embodiment of the present application can make the calibrated risk discrimination threshold and the distribution of transaction information of the target detection object fit by calibrating the risk discrimination threshold of the preset risk prediction model, so that there will be no deviation in discriminating the transaction information of the target detection object using the calibrated risk discrimination threshold, thereby improving the accuracy of risk prediction. In addition, the implementation of this application can facilitate multiple target detection objects that are newly applied to reuse the same preset risk prediction model for risk prediction, thus realizing the universality of the preset risk prediction model. By automatically calibrating the risk discrimination thresholds corresponding to different target detection objects, not only can the prediction effect be improved by using the latest samples, but also the complex operations caused by manual maintenance of the model can be avoided.
[0180] According to the method described in the above embodiment, the following is further described in detail with examples.
[0181] The embodiment of the present application will take the risk prediction method integrated on a server as an example to introduce the method of the embodiment of the present application.
[0182] In one embodiment, if Figure 3 As shown in FIG. 1 , a risk prediction method is shown in FIG. 1 , and the specific process is as follows:
[0183] 201. When the server detects that there is a target detection object in the application, the server determines an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold.
[0184] In one embodiment, for example, the application may be a shopping application, and the transaction object may be a merchant in the shopping application. In the management of the shopping application, it is necessary to warn the merchant of the risk level. Among them, the default rate prediction is a way to warn of risks in advance. The merchant's daily default rate calculation formula is: the number of defaulted orders in the completed orders / the total number of completed orders. Among them, the denominator is generally a known quantity, and the numerator is generally an unknown quantity. Therefore, the numerator can be predicted to obtain a default rate prediction. The risk level of the merchant can be known through the default rate.
[0185] In one embodiment, the target detection object may include a newly registered merchant in the shopping application. For a newly registered merchant in the application, since there is no historical data of the merchant, it is impossible to accurately predict the risk of the merchant. Therefore, the associated transaction object associated with the target detection object can be determined in the historical transaction objects of the application. For example, a merchant similar to the target detection object can be found.
[0186] For example, Figure 4 As shown in the figure, it is the process time relationship diagram of this solution. The top timeline represents the situation of newly connected merchants, and the second timeline represents merchants that already exist in the application. For newly connected merchants, the prediction goal is to achieve the default rate prediction "Nb days in advance" for the orders completed b days before t (b>a), that is, it is hoped that the default rate level of this batch of orders N days before t can be predicted. It can be seen that the order has an N-day performance period. For the orders completed on tb days, the actual default rate level can only be calculated N days later (t-b+N days).
[0187] In one embodiment, since the merchant's short-term (a-day) pending order rate level on day ta is known at the prediction point on day t, based on the idea that "merchants with similar short-term default rate levels also have similar default rate levels on the final N days", the absolute difference distance between "the a-day pending order rate of the newly connected merchant" and "the a-day pending order rate of the existing merchant" is calculated. The smaller the absolute difference distance, the more similar the merchants are considered. From the existing merchants, 2 to 3 merchants with the smallest absolute difference in the a-day pending order rate are selected as similar merchants to the newly connected merchants.
[0188] In one embodiment, after similar merchants are determined, historical transaction information of similar merchants within a [tNk, tN] day interval may be obtained.
[0189] 202. The server uses the risk discrimination threshold of the preset risk prediction model to predict the historical transaction information of the associated transaction object to obtain the risk prediction result corresponding to the associated transaction object.
[0190] In one embodiment, the preset risk prediction model can score the historical transaction information of the associated transaction object to obtain the risk prediction information of the associated transaction object. Then, the risk prediction information of the associated transaction object can be compared with the risk discrimination threshold to obtain the risk prediction result of the associated transaction object.
[0191] In one embodiment, before using a preset risk prediction model to predict historical transaction information of an associated transaction object, a training set may be generated, and then the training set may be used to train the risk prediction model to be trained to obtain a preset risk prediction model. Since there are no performance (label) samples of newly connected merchants in history, samples can only be taken from existing merchants. Using samples from too long ago will cause the prediction effect to decay due to changes in sample distribution, so the most recent labeled samples should be used as the training set as much as possible. For example, Figure 4 As shown in the figure, when predicting on day t, the most recent labeled samples that can be obtained are from the completed orders on day tN (Explanation: Since the samples have a performance period of N days, the samples on day tN can only be labeled after N days, that is, on day t). Therefore, the training set is composed of labeled samples sampled from the existing merchants on day tN.
[0192] 203. The server calibrates the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold.
[0193] For example, the risk prediction information of the associated transaction objects is sorted in descending order from high to low. For the historical transaction information of the associated transaction objects, the risk labels corresponding to the historical transaction information are known. In the historical transaction information of the associated transaction objects, the amount of risk labels equal to 1 is the default sample size, assuming it is P. In the sorted risk prediction information, the probability ranked in the Nth row is the calibrated risk discrimination threshold.
[0194] 204. The server performs risk prediction processing on the transaction information of the target detection object using the calibrated risk discrimination threshold of the preset risk prediction model to obtain a risk prediction result of the target detection object.
[0195] For example, the transaction information of the target detection object is scored using a preset risk prediction model to obtain the risk prediction information of the target detection object. Then, the calibrated risk discrimination threshold and the risk prediction information of the target detection object can be compared to obtain a risk prediction result. For example, if the risk prediction information of the target detection object is greater than the calibrated risk discrimination threshold, the transaction information (order) of the target detection object can be regarded as a default order, thereby calculating the default order volume (the numerator in the default rate calculation formula). Then, the formula: default order volume / (known) total completed order volume can be used to estimate the default rate level of the newly connected merchant, thereby knowing the risk level of the newly connected merchant.
[0196] In an embodiment of the present application, when the server detects the presence of a target detection object in an application, it determines the associated transaction objects associated with the target detection object in the historical transaction objects of the application, wherein the target detection objects include transaction objects whose operating time in the application does not meet a preset time threshold; the server uses a risk discrimination threshold of a preset risk prediction model to predict the historical transaction information of the associated transaction objects, and obtains a risk prediction result corresponding to the associated transaction objects; the server uses the risk prediction result corresponding to the associated transaction objects to calibrate the risk discrimination threshold of the preset risk prediction model, and obtains a calibrated risk discrimination threshold; the server uses the calibrated risk discrimination threshold of the preset risk prediction model to perform risk prediction on the transaction information of the target detection object, and obtains a risk prediction result for the target detection object, which can improve the accuracy of risk detection of the target detection object.
[0197] In order to better implement the risk prediction method provided in the embodiment of the present application, a risk prediction device is also provided in one embodiment, and the risk prediction device can be integrated into a computer device. The meanings of the terms are the same as those in the above-mentioned risk prediction method, and the specific implementation details can refer to the description in the method embodiment.
[0198] In one embodiment, a risk prediction device is provided, which can be integrated into a computer device, such as Figure 5 As shown, the risk prediction device includes: a determination unit 301, a prediction unit 302, a calibration unit 303 and a risk prediction unit 304, which are specifically as follows:
[0199] The determining unit 301 is configured to, when detecting that a target detection object exists in an application, determine an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold;
[0200] The prediction unit 302 is used to predict the historical transaction information of the associated transaction object by using the risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result corresponding to the associated transaction object;
[0201] A calibration unit 303 is used to calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold;
[0202] The risk prediction unit 304 is used to perform risk prediction processing on the transaction information of the target detection object using the calibrated risk discrimination threshold of the preset risk prediction model to obtain a risk prediction result of the target detection object.
[0203] In one embodiment, the calibration unit 303 may include:
[0204] An acquisition subunit, used to acquire the risk label corresponding to the historical transaction information of the associated transaction object;
[0205] A result determination subunit, configured to determine a reference risk prediction result from the risk prediction results corresponding to the plurality of associated transaction objects according to the risk label corresponding to the historical transaction information;
[0206] The replacement subunit is used to replace the risk discrimination threshold with the risk prediction information corresponding to the reference risk prediction result to obtain the calibrated risk discrimination threshold.
[0207] In one embodiment, the result determination subunit may include:
[0208] A sorting module, used to sort the risk prediction information of the plurality of associated transaction objects to obtain a sorting identifier of each risk prediction result;
[0209] A matching module, configured to match the risk tag of the historical transaction information with the risk prediction result corresponding to the historical transaction information according to the sorting identifier of the risk prediction result;
[0210] The result determination module is used to determine a reference risk prediction result according to a ranking identifier corresponding to the risk prediction result when the risk label of the historical transaction information and the risk prediction result corresponding to the historical transaction information do not match.
[0211] In one embodiment, the risk prediction unit 304 may include:
[0212] A prediction subunit, configured to predict the transaction information of the target detection object by using the preset risk prediction model, and obtain risk prediction information corresponding to the transaction information of the target detection object;
[0213] A discriminating subunit, configured to discriminate the risk prediction information of the target detection object using the calibrated risk discrimination threshold to obtain a discrimination result;
[0214] The mapping subunit is used to perform mapping processing on the discrimination result to obtain the risk prediction result.
[0215] In one embodiment, the prediction subunit may include:
[0216] A feature extraction module, used to extract features from the transaction information of the target detection object using the preset risk prediction model to obtain feature information of the transaction information;
[0217] A pooling module, used to perform pooling processing on the feature information using the preset risk prediction model to obtain pooled feature information;
[0218] The activation module is used to activate the pooled feature information using the preset risk prediction model to obtain risk prediction information corresponding to the transaction information of the target detection object.
[0219] In one embodiment, the determining unit 301 may include:
[0220] An information acquisition subunit, configured to acquire historical transaction information of multiple historical transaction objects of the application when a target detection object is detected in the application;
[0221] a calculation subunit, configured to respectively calculate transaction similarities between the transaction information of the target detection object and the historical transaction information of the plurality of historical transaction objects;
[0222] The object determination subunit is used to determine, according to the transaction similarity between the target object and the multiple historical transaction objects, an associated transaction object associated with the target detection object from the multiple historical transaction objects.
[0223] In one embodiment, the information acquisition subunit may include:
[0224] The first acquisition module is used to acquire the prediction time information and the transaction operation time period when the target detection object is detected in the application;
[0225] an arithmetic operation module, used for performing arithmetic operation on the predicted time information and the transaction operation time period to obtain a time reference interval;
[0226] The second acquisition module is used to acquire the historical transaction information of the multiple historical transaction objects within the time reference interval.
[0227] In one embodiment, the prediction unit 302 may include:
[0228] A prediction subunit, configured to use the preset risk prediction model to perform prediction processing on the historical transaction information of the associated transaction object to obtain risk prediction information of the associated transaction object;
[0229] The discrimination subunit is used to use the risk discrimination threshold to discriminate the risk prediction information of the associated transaction object to obtain the risk prediction result of the associated transaction object.
[0230] In one embodiment, the risk prediction device may further include:
[0231] A model acquisition unit, used to acquire a risk detection model to be trained;
[0232] An extraction unit, configured to extract historical transaction information of the historical transaction object of the application to obtain a historical transaction information sample;
[0233] The training unit is used to train the risk detection model to be trained using the historical transaction information samples to obtain the preset risk prediction model.
[0234] In one embodiment, the extraction unit may include:
[0235] A time information acquisition subunit is used to acquire forecast time information, transaction operation time cycle and time interval information;
[0236] an arithmetic operation subunit, configured to perform arithmetic operation on the predicted time information, the transaction operation time period and the time interval information to obtain an extraction time interval;
[0237] The extraction subunit is used to extract and process the historical transaction information of multiple historical transaction objects of the application within the extraction time interval to obtain a historical transaction information sample.
[0238] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can refer to the previous method embodiments, which will not be repeated here.
[0239] The above-mentioned risk prediction device can improve the accuracy of risk prediction for the target detection object.
[0240] The present application also provides a computer device, which may include a terminal or a server. For example, the computer device may be used as a risk prediction terminal, which may be a mobile phone, a tablet computer, etc.; for another example, the computer device may be a server, such as a risk prediction server. Figure 6 As shown, it shows a schematic diagram of the structure of the terminal involved in the embodiment of the present application, specifically:
[0241] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 6 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. Among them:
[0242] The processor 401 is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the computer device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0243] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0244] The computer device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. The power supply 403 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0245] The computer device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0246] Although not shown, the computer device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 401 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby realizing various functions, as follows:
[0247] When a target detection object is detected in the application, determining an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold;
[0248] Using a risk discrimination threshold of a preset risk prediction model to predict historical transaction information of the associated transaction object, and obtaining a risk prediction result corresponding to the associated transaction object;
[0249] Calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold;
[0250] The calibrated risk discrimination threshold of the preset risk prediction model is used to perform risk prediction processing on the transaction information of the target detection object to obtain a risk prediction result of the target detection object.
[0251] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0252] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations in the above-mentioned embodiments.
[0253] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0254] To this end, the present application also provides a storage medium in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any risk prediction method provided in the present application. For example, the computer program can execute the following steps:
[0255] When a target detection object is detected in the application, determining an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold;
[0256] Using a risk discrimination threshold of a preset risk prediction model to predict historical transaction information of the associated transaction object, and obtaining a risk prediction result corresponding to the associated transaction object;
[0257] Calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold;
[0258] The calibrated risk discrimination threshold of the preset risk prediction model is used to perform risk prediction processing on the transaction information of the target detection object to obtain a risk prediction result of the target detection object.
[0259] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0260] Since the computer program stored in the storage medium can execute the steps in any risk prediction method provided in the embodiments of the present application, the beneficial effects that can be achieved by any risk prediction method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0261] The above is a detailed introduction to a risk prediction method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A risk prediction method, It is characterized in that include: When a target detection object is detected in the application, determining an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold; Using a risk discrimination threshold of a preset risk prediction model to predict historical transaction information of the associated transaction object, and obtaining a risk prediction result corresponding to the associated transaction object; Calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object to obtain a calibrated risk discrimination threshold; The calibrated risk discrimination threshold of the preset risk prediction model is used to perform risk prediction processing on the transaction information of the target detection object to obtain a risk prediction result of the target detection object.
2. The method according to claim 1, It is characterized in that The step of calibrating the risk discrimination threshold of the preset risk prediction model by using the risk prediction result corresponding to the associated transaction object to obtain the calibrated risk discrimination threshold includes: Obtain risk labels corresponding to historical transaction information of multiple related transaction objects; Determining a reference risk prediction result from the risk prediction results corresponding to the plurality of associated transaction objects according to the risk label corresponding to the historical transaction information; The risk prediction information corresponding to the reference risk prediction result replaces the risk discrimination threshold to obtain the calibrated risk discrimination threshold.
3. The method according to claim 2, It is characterized in that The step of determining a reference risk prediction result from the risk prediction results corresponding to the plurality of associated transaction objects according to the risk label corresponding to the historical transaction information includes: Sorting the risk prediction information of the plurality of associated transaction objects to obtain a sorting identifier of each risk prediction result; According to the ranking mark of the risk prediction result, matching the risk tag of the historical transaction information with the risk prediction result corresponding to the historical transaction information; When the risk tag of the historical transaction information and the risk prediction result corresponding to the historical transaction information do not match, a reference risk prediction result is determined according to a ranking identifier corresponding to the risk prediction result.
4. The method according to claim 1, It is characterized in that The step of performing risk prediction processing on the transaction information of the target detection object by using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object includes: Using the preset risk prediction model to predict the transaction information of the target detection object, and obtaining risk prediction information corresponding to the transaction information of the target detection object; Using the calibrated risk discrimination threshold to discriminate the risk prediction information of the target detection object to obtain a discrimination result; The discrimination result is mapped to obtain the risk prediction result.
5. The method according to claim 4, It is characterized in that The using the preset risk prediction model to predict the transaction information of the target detection object to obtain risk prediction information corresponding to the transaction information of the target detection object includes: Using the preset risk prediction model to extract features from the transaction information of the target detection object to obtain feature information of the transaction information; Using the preset risk prediction model to perform pooling processing on the feature information to obtain pooled feature information; The preset risk prediction model is used to activate the pooled feature information to obtain risk prediction information corresponding to the transaction information of the target detection object.
6. The method according to claim 1, It is characterized in that When the target detection object is detected in the application, determining the associated transaction object associated with the target detection object in the historical transaction objects of the application includes: When a target detection object is detected in the application, historical transaction information of multiple historical transaction objects of the application is obtained; respectively calculating transaction similarities between the transaction information of the target detection object and the historical transaction information of the plurality of historical transaction objects; According to the transaction similarity between the target object and the multiple historical transaction objects, an associated transaction object associated with the target detection object is determined from the multiple historical transaction objects.
7. The method according to claim 6, It is characterized in that When the target detection object is detected in the application, acquiring historical transaction information of multiple historical transaction objects of the application includes: When a target detection object is detected in the application, the prediction time information and transaction operation time period are obtained; Performing arithmetic operation on the predicted time information and the transaction operation time period to obtain a time reference interval; Acquire historical transaction information of the multiple historical transaction objects within the time reference interval.
8. The method according to claim 1, It is characterized in that The method of using the risk discrimination threshold of the preset risk prediction model to predict the historical transaction information of the associated transaction object to obtain the risk prediction result corresponding to the associated transaction object includes: Using the preset risk prediction model to predict the historical transaction information of the associated transaction object to obtain risk prediction information of the associated transaction object; The risk prediction information of the associated transaction object is judged by using the risk judgment threshold to obtain the risk prediction result of the associated transaction object.
9. The method according to claim 1, It is characterized in that Before predicting and processing the historical transaction information of the associated transaction object by using the risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result corresponding to the associated transaction object, the method further includes: Obtain the risk detection model to be trained; Extracting and processing historical transaction information of the historical transaction object of the application to obtain a historical transaction information sample; The risk detection model to be trained is trained using the historical transaction information samples to obtain the preset risk prediction model.
10. The method according to claim 9, It is characterized in that The extracting and processing the historical transaction information of the historical transaction object of the application to obtain a historical transaction information sample includes: Obtain forecast time information, transaction operation time cycle and time interval information; Performing arithmetic operations on the predicted time information, the transaction operation time period and the time interval information to obtain an extraction time interval; The historical transaction information of the multiple historical transaction objects of the application within the extraction time interval is extracted to obtain a historical transaction information sample.
11. A risk prediction device, It is characterized in that include: a determination unit, configured to, when detecting that a target detection object exists in an application, determine an associated transaction object associated with the target detection object in the historical transaction objects of the application, wherein the target detection object includes a transaction object whose operation time in the application does not meet a preset time threshold; A prediction unit, configured to use a risk discrimination threshold of a preset risk prediction model to perform prediction processing on the historical transaction information of the associated transaction object to obtain a risk prediction result corresponding to the associated transaction object; A calibration unit, configured to calibrate the risk discrimination threshold of the preset risk prediction model using the risk prediction result corresponding to the associated transaction object, to obtain a calibrated risk discrimination threshold; The risk prediction unit is used to perform risk prediction processing on the transaction information of the target detection object using the calibrated risk discrimination threshold of the preset risk prediction model to obtain the risk prediction result of the target detection object.
12. A computer device, It is characterized in that It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the operations in the risk prediction method described in any one of claims 1 to 10.
13. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the risk prediction method described in any one of claims 1 to 10.
14. A computer program product comprising a computer program or instructions, It is characterized in that When the computer program or instruction is executed by a processor, the steps in the risk prediction method described in any one of claims 1 to 10 are implemented.
Citation Information
Cited By
Transaction risk early warning control method and device based on risk measurement model
CN119809642A
Transaction risk early warning control method and device based on risk measurement model
CN119809642B
