Data processing method, device, system and equipment
By receiving the risk identification results and characteristic data from the server, the risk identification model is initialized and trained and parameters updated, which solves the problem of poor risk identification results caused by small amounts and poor quality of data in online banks and other enterprises, and improves the accuracy of risk identification. and protected data security.
Patent Information
- Application Number
- CN202210429444.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-22
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-04-22
AI Technical Summary
In the existing technology, due to the small amount and poor quality of user sample data and risk label data in online banks and other enterprises, the risk identification model obtained by training has poor risk identification effect and low accuracy. Therefore, a risk identification model that can improve the risk identification model is needed. Solutions that identify performance and accuracy.
By receiving the risk identification results for the first user from the server, initial training and parameter updates are performed based on the pre-trained risk identification model to form a pre-trained risk identification model to improve the risk identification effect and accuracy. Specific steps include: receiving the risk identification results from the server, initializing and training the second risk identification model based on the first user's characteristic data and risk identification results, and updating the parameters of the model using the second user's characteristic data and risk identification results to form Models for risk identification.
It improves the risk identification effect and accuracy of the risk identification model, ensures that the server's private data does not leave the domain, protects data security, and makes the model more in line with the client's risk identification needs.
Smart Images

Figure CN114819614B_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of data processing technology, and in particular to a data processing method, device, system and equipment. Background Art
[0002] With the rapid development of computer technology, the number of users of enterprises that provide resource transfer services to users, such as online banking, has increased dramatically, and the data risks faced by enterprises are also increasing. In order to reduce data risks, enterprises can conduct risk identification by building risk identification models. For example, enterprises can train risk identification models based on locally stored user sample data and risk labels, and conduct risk identification based on the trained risk identification model.
[0003] However, enterprises such as online banks may have a small amount of user sample data and risk labels and poor data quality, which will lead to poor risk identification effect and low risk identification accuracy of the trained risk identification model. Therefore, a solution is needed to improve the risk identification effect and risk identification accuracy of the risk identification model. Summary of the invention
[0004] The purpose of the embodiments of this specification is to provide a data processing method, device, system and equipment to provide a solution that can improve the risk identification effect and risk identification accuracy of the risk identification model.
[0005] In order to implement the above technical solution, the embodiments of this specification are implemented as follows:
[0006] In a first aspect, a data processing method comprises: receiving a risk identification result of a first user from a server, wherein the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; initializing training a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training; performing parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0007] In a second aspect, an embodiment of the present specification provides a data processing method, including: when it is detected that a target user triggers the execution of a target business, obtaining first feature data of the target user; inputting the first feature data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, the pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user and the risk identification result of the second user, the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; based on the target risk identification result, determining whether there is a risk in triggering the execution of the target business.
[0008] In a third aspect, an embodiment of the present specification provides a data processing system, comprising a server and a client, wherein: the client is used to send a user identifier of a first user to the server; the server is used to obtain a risk identification result of the first user based on the user identifier, the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on a pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; the client is used to initialize training of a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user returned by the server, to obtain a second risk identification model after initialization training, and based on the feature data of the second user and the risk identification result of the second user, to perform parameter update processing on the second risk identification model after initialization training, to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0009] In a fourth aspect, an embodiment of the present specification provides a data processing device, comprising: a result receiving module, used to receive a risk identification result of a first user from a server, wherein the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on a pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; a first training module, used to initialize training of a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user, to obtain a second risk identification model after initialization training; a second training module, used to perform parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user, to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0010] In a fifth aspect, an embodiment of the present specification provides a data processing device, comprising: a data acquisition module, for acquiring first feature data of the target user when it is detected that the target user triggers the execution of a target business; a result acquisition module, for inputting the first feature data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user, and the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; a risk determination module, for determining whether there is a risk in triggering the execution of the target business based on the target risk identification result.
[0011] In a sixth aspect, an embodiment of the present specification provides a data processing device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to: receive a risk identification result for a first user from a server, wherein the risk identification result for the first user is obtained by the server performing risk identification on a first feature data of the first user based on a pre-trained first risk identification model, wherein the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; initialize training of a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training; perform parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0012] In the seventh aspect, an embodiment of the present specification provides a data processing device, comprising: a processor; and a memory arranged to store computer executable instructions, wherein the executable instructions, when executed, cause the processor to: upon detecting that the target user triggers the execution of the target business, obtain the first feature data of the target user; input the first feature data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user, wherein the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; based on the target risk identification result, determine whether there is a risk in triggering the execution of the target business.
[0013] In an eighth aspect, an embodiment of the present specification provides a storage medium, wherein the storage medium is used to store computer executable instructions, and the executable instructions implement the following process when executed: receiving a risk identification result for a first user from a server, wherein the risk identification result for the first user is obtained by the server performing risk identification on the first feature data of the first user based on a pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; initializing training a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training; performing parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0014] In the ninth aspect, an embodiment of the present specification provides a storage medium, which is used to store computer-executable instructions, and the executable instructions implement the following process when executed: when it is detected that a target user triggers the execution of a target business, obtain the first feature data of the target user; input the first feature data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, the pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user, the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; based on the target risk identification result, determine whether there is a risk in triggering the execution of the target business. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0016] Figure 1A A flowchart of a data processing method embodiment of this specification;
[0017] Figure 1BA schematic diagram of a processing process of a data processing method in this specification;
[0018] Figure 2 A processing diagram of another data processing method of the present specification;
[0019] Figure 3 This is a schematic diagram of the initialization training and parameter updating process of a second risk identification model in this specification;
[0020] Figure 4A A flowchart of another data processing method embodiment of the present specification;
[0021] Figure 4B A processing diagram of another data processing method of the present specification;
[0022] Figure 5 A processing diagram of another data processing method of the present specification;
[0023] Figure 6 A schematic diagram of a data processing system for this specification;
[0024] Figure 7 A schematic diagram of the structure of another data processing device embodiment of the present specification;
[0025] Figure 8 A schematic diagram of the structure of another data processing device embodiment of the present specification;
[0026] Fig. 9 This is a structural schematic diagram of a data processing device in this specification. DETAILED DESCRIPTION
[0027] The embodiments of this specification provide a data processing method, apparatus, system and device.
[0028] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0029] Embodiment 1
[0030] like Figure 1A and 1BAs shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a client, and the client can be a server or a terminal device, wherein the server can be an independent server or a server cluster composed of multiple servers, and the terminal device can be a device such as a personal computer, or a mobile terminal device such as a mobile phone or a tablet computer. The method can specifically include the following steps:
[0031] In S102, a risk identification result for the first user is received from the service end.
[0032] Among them, the risk identification result of the first user can be obtained by the server side performing risk identification on the first feature data of the first user based on a pre-trained first risk identification model. The first user can be a historical user who uses any service provided by the client. The first feature data of the first user can be the attribute information (such as gender, age, region, etc.) and behavior information (such as transfer behavior, call behavior, etc.) of the first user stored by the server. For example, the first user can be any one or more users who have used the resource transfer service provided by the client to transfer money in the past month. The pre-trained first risk identification model can be obtained by training the server side based on a preset first number of user feature data (including user attribute information, behavior information and other feature data). The first risk identification model can be a model for risk identification constructed based on a preset deep learning algorithm. The preset first number can be greater than a preset sample number threshold. For example, the pre-trained first risk identification model can be obtained by the server side training a risk identification model constructed by a deep neural network (DNN) algorithm based on 1,000 user feature data.
[0033] In implementation, with the rapid development of computer technology, the number of users of enterprises that provide resource transfer services to users, such as online banks, has increased dramatically, and the data risks faced by enterprises are also increasing. In order to reduce data risks, enterprises can perform risk identification processing by constructing risk identification models. For example, an enterprise can train a risk identification model based on locally stored user sample data and risk labels, and perform risk identification processing based on the trained risk identification model. However, enterprises such as online banks may have a small amount of user sample data and risk labels, and poor data quality, which will result in poor risk identification effect of the risk identification model obtained by training, and low risk identification accuracy. Therefore, a solution that can improve the risk identification effect and risk identification accuracy of the risk identification model is needed. To this end, the embodiments of this specification provide a technical solution that can solve the above-mentioned problems. For details, please refer to the following content.
[0034] Taking the client used by an institution that can provide resource transfer services to users as an example, since different institutions have different user private data, and the user private data owned by each institution may have small data volume and poor data quality, in order to enable the locally used risk identification model (i.e., the second risk identification model) to achieve better risk identification effects, data interaction can be performed with a server with a large amount of data and strong data processing capabilities to update the model parameters of the locally used risk identification model.
[0035] The client can construct a first sample data set for training a second risk identification model, which may include user identifiers and corresponding feature data of multiple users. The client can send the user identifiers in the first sample data set to the server, and the server can determine whether there is a user and feature data corresponding to the user identifier on the server based on the user identifier. If there is a user and feature data corresponding to the user identifier, the user can be determined as the first user, and the feature data of the user can be determined as the first feature data of the first user. Then, the server can input the first feature data of the first user into the pre-trained first risk identification model to obtain a risk identification result for the first user, and the server can return the risk identification result for the first user to the client.
[0036] The client may perform update screening processing on the first sample data set based on the received risk identification result of the first user to obtain a target sample data set consisting of the second feature data of the first user and the risk identification result of the first user.
[0037] For example, the client may construct a first sample data set based on user data acquired within a preset model training cycle. For example, the client may construct a first sample data set based on user data that has used resource transfer services in the past half month. Specifically, the constructed first sample data set may include feature data of user 1 and user identification of user 1, feature data of user 2 and user identification of user 2. The client may send user identifications of user 1 and user 2 to the server. If the server only stores feature data of user 2, user 2 may be determined as the first user. The server may determine the risk identification result for user 2 based on the stored first feature data of user 2 and the pre-trained first risk identification model, and return the risk identification result of user 2 to the client. The client may determine the feature data of user 2 in the first sample data set as the second feature data of user 2, and construct a target sample data set based on the second feature data of user 2 and the risk identification result of user 2 determined by the server.
[0038] In S104, based on the second feature data of the first user and the risk identification result of the first user, the preset second risk identification model is initialized and trained to obtain the initialized and trained second risk identification model.
[0039] Among them, the second risk identification model can be a model for risk identification built based on a preset deep learning algorithm. The model structure of the second risk identification model can be the same as or different from the first risk identification model. For example, the first risk identification model can be a model built based on a decision tree algorithm, and the second risk identification model can also be a model built based on a decision tree algorithm, or the second risk identification model can also be a model built based on a neural network algorithm.
[0040] In implementation, the data in the target sample data set may be input into a preset second risk identification model for initialization training to obtain a second risk identification model after initialization training.
[0041] In this way, since the risk identification result of the first user is obtained based on the first risk identification model pre-trained on the server side, and the first risk identification model pre-trained on the server side is trained based on the preset first number of user feature data, the risk identification effect of the pre-trained first risk identification model is better, and the preset second risk identification model is initialized and trained based on the risk identification result of the first user, the risk identification effect of the second risk identification model can be improved with the assistance of the first risk identification model. In addition, during the training process, the private data of the server side can also achieve the purpose of not leaving the domain, that is, the data security of the private data of the server side can be protected.
[0042] In S106, based on the feature data of the second user and the risk identification result of the second user, the parameters of the second risk identification model after initial training are updated to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0043] The second user may include the first user, and the risk identification result of the second user may be a risk identification result determined manually or in other ways based on the feature data of the second user.
[0044] During implementation, the parameters of the second risk identification model after initial training can be fine-tuned based on the feature data of the second user and the risk identification results of the second user, so that the risk identification effect of the pre-trained second risk identification model is more consistent with the risk identification requirements of the client.
[0045] As described in S102 above, the client can construct a first sample data set, and determine a target sample data set containing the second feature data of the first user and the risk identification result of the first user based on the risk identification result of the first user and the first sample data set returned by the server. In addition, the client can also construct a second sample data set containing the feature data of the second user and the risk identification result of the second user based on the first sample data set. For example, the client can obtain the risk identification result corresponding to the feature data of the user in the first sample data set (the risk identification result can be the risk identification result determined by the client based on manual methods, etc.), and construct a second sample data set based on the feature data of the user in the first sample data set and the determined risk identification result. The user in the second sample data set is the second user.
[0046] By inputting the characteristic data of the second user and the risk identification result of the second user into the second risk identification model after initialization training for parameter updating processing, a pre-trained second risk identification model can be obtained.
[0047] In addition, when the model structures of the first risk identification model and the second risk identification model are different, the second risk identification model can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification results of the first user. That is, the second risk identification model only relies on publicly interactive information (i.e., the risk identification results of the first user) during the initialization training process, and does not need to introduce and rely on other additional data during the parameter update process and the subsequent risk identification process. The second risk identification model can be trained and deployed in the case of complete data isolation, and does not rely on a complex underlying data interaction framework. On the basis of protecting the security of private data, the risk identification effect of the second risk identification model is improved.
[0048] An embodiment of the present specification provides a data processing method, which receives a risk identification result of a first user from a server, wherein the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, wherein the pre-trained first risk identification model is obtained by training the server based on a preset first number of user feature data, and initializes training on a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training, and performs parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model. In this way, since the server only returns the risk identification result of the first user to the client, and there is no need to send the first feature data of the first user to the client, the private data of the server can be kept within the domain, thereby ensuring the security of the private data. At the same time, the client can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and update the parameters of the second risk identification model after initial training based on the locally stored feature data and risk identification results of the second user, so that the pre-trained second risk identification model can better meet the local risk identification needs of the client, thereby improving the risk identification effect of the pre-trained second risk identification model.
[0049] Embodiment 2
[0050] like Figure 2 As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a client, and the client can be a server or a terminal device, wherein the server can be an independent server or a server cluster composed of multiple servers, and the terminal device can be a device such as a personal computer, or a mobile terminal device such as a mobile phone or a tablet computer. The method can specifically include the following steps:
[0051] In S102, a risk identification result for the first user is received from the service end.
[0052] Among them, the risk identification result of the first user can be obtained by the server performing risk identification on the first feature data of the first user based on a pre-trained first risk identification model, and the pre-trained first risk identification model can be trained by the server based on a preset first number of user feature data.
[0053] In S202, based on the second feature data of the first user, the risk identification result of the first user, and the first loss function, the preset second risk identification model is initialized and trained to obtain the second risk identification model after initialization and training.
[0054] The risk identification result of the first user may include a risk score, and the first loss function may be a mean square error loss function.
[0055] In S204, based on the feature data of the second user, the risk classification label of the second user, and the second loss function, the parameters of the second risk identification model after initialization training are updated to obtain a pre-trained second risk identification model.
[0056] The risk identification result of the second user may include a risk classification label, and the second loss function may be a cross entropy loss function.
[0057] In implementation, since the amount of data and data processing capabilities of the server may be better than those of the client, the first risk identification model constructed by the server may have a different model structure from the second risk identification model, and the resulting risk identification structure may be different. For example, the risk identification result of the first user obtained by the first risk identification model constructed by the server may be a more complex continuous risk score (such as a risk score that may be any value from 0 to 1), while the risk identification result of the second user determined locally by the client may be a simpler binary risk classification label (such as a 0, 1 label, i.e., a label of 0 may represent a risk-free user, and a label of 1 may represent a risky user). Therefore, different loss functions may be set for the initialization training process and the parameter update process.
[0058] For example, Figure 3 As shown, the second risk identification model may include a feature extraction layer and a fully connected layer. Taking the second risk identification model as a model built based on convolutional neural networks (CNN) as an example, the second risk identification model may include a convolutional layer, a pooling layer and a fully connected layer, wherein the convolutional layer and the pooling layer are the feature extraction layer.
[0059] The client can input the second feature data of the first user into the second risk identification model to obtain the predicted risk score of the first user, and initialize the second risk identification model according to the risk score of the first user determined by the server based on the first feature data of the first user and the first risk identification model (i.e., the risk identification result of the first user) and the mean square error loss function to obtain the second risk model after initialization training.
[0060] The characteristic data of the second user is input into the second risk model after initialization training to obtain the predicted risk type of the second user. Based on the risk classification label of the second user and the cross entropy loss function, the parameters of the second risk identification model after initialization training are updated to obtain the pre-trained second risk identification model.
[0061] In addition, in order to maintain the stability of the second risk model, the adjustment range of the feature extraction layer and the fully connected layer parameters of the second risk model can be determined according to the size of the sample. The specific processing process can refer to the following steps 1 to 2:
[0062] Step 1: Based on the data volume of the second user and a preset quantity threshold, determine a first parameter update amplitude for the feature extraction layer and a second parameter update amplitude for the fully connected layer.
[0063] The first parameter update amplitude is smaller than the second parameter update amplitude.
[0064] In implementation, for example, when the number of second users is less than a preset threshold, the parameters of the feature extraction layer of the second risk model after initialization training can be maintained without being updated, and only the parameters of the fully connected layer of the second risk identification model after initialization training can be updated; when the number of second users is not less than the preset threshold, the feature extraction layer of the second risk model after initialization training can be controlled by a regularized loss function to be updated based on the first parameter update amplitude, and the parameters of the fully connected layer of the second risk identification model after initialization training can be normally updated based on the first parameter update amplitude, wherein, in order to maintain the stability of the second risk identification model, the first parameter update amplitude can be smaller than the second parameter update amplitude.
[0065] Step two, based on the first parameter update amplitude, the second parameter update amplitude, the characteristic data of the second user, the risk classification label of the second user, and the second loss function, the parameters of the second risk identification model after initialization training are updated to obtain a pre-trained second risk identification model.
[0066] In implementation, assuming that the preset number threshold is 100, when the number of second users is less than 100, the parameters of the feature extraction layer of the second risk identification model after initialization training can be maintained without being updated, and only the parameters of the fully connected layer are updated based on the second parameter update amplitude to obtain the pre-trained second risk identification model; when the number of second users is not less than 100 (that is, the amount of training sample data on the client is large), the parameters of the feature extraction layer of the second risk identification model after initialization training can be fine-tuned based on the first parameter update amplitude, and the parameters of the fully connected layer can be updated based on the second parameter update amplitude to obtain the pre-trained second risk identification model.
[0067] In addition, there may be multiple methods for determining the first parameter update range and the second parameter update range, which may vary according to different actual application scenarios, and the embodiments of this specification do not specifically limit this.
[0068] In S206, based on a preset data processing cycle, a detection process is performed to determine whether the pre-trained second risk identification model meets a preset risk identification requirement.
[0069] In implementation, for example, the pre-trained second risk identification model can be detected and processed every half month to see whether it meets the preset risk identification requirements. There can be multiple specific detection and processing methods. For example, the accuracy of risk identification based on the pre-trained second risk identification model in the past half month can be obtained. If the accuracy is less than the preset accuracy threshold, it can be considered that the pre-trained second risk identification model does not meet the preset risk identification requirements. Alternatively, it can be determined whether the pre-trained second risk identification model meets the preset risk identification requirements within the preset data processing cycle based on changes in the usage scenarios of the pre-trained second risk identification model. For example, when the usage scenario of the pre-trained second risk identification model is converted from a resource transfer scenario to an identity identification scenario, it can be considered that the pre-trained second risk identification model does not meet the preset risk identification requirements.
[0070] The above-mentioned method of detecting whether the pre-trained second risk identification model meets the preset risk identification requirements is an optional and feasible detection method. In actual application scenarios, there may be a variety of different detection methods, which may vary according to the actual application scenarios. The embodiments of this specification do not make specific limitations on this.
[0071] In S208, when it is detected that the pre-trained second risk identification model does not meet the preset risk identification requirement, the pre-trained second risk identification model is updated based on the feature data of the third user.
[0072] In implementation, in actual applications, the processing methods of the above S208 can be various. The following provides an optional implementation method, which can be specifically referred to the following steps 1 to 4:
[0073] Step 1: Input the feature data of the third user into the pre-trained second risk identification model to obtain the risk identification result of the third user.
[0074] Step 2: When the model structure of the pre-trained second risk identification model changes, the second risk identification model after the model structure change is determined as the third risk identification model.
[0075] Step three: Based on the feature data of the third user and the risk identification result of the third user, the third risk identification model is initialized and trained to obtain the third risk identification model after initialization and training.
[0076] During implementation, since the fraudulent means of malicious third parties are updated at a fast speed, in order to improve the accuracy of risk identification, the model structure of the second risk identification model can be updated (for example, the pre-trained second risk model can be a risk identification model constructed based on a neural network algorithm, and the second risk identification model after the model structure changes can be a risk identification model constructed based on a decision tree). In order to enable the second risk identification model after the model structure changes to retain the risk identification ability of the second risk identification model before the model structure changes, the third risk identification model (the second risk identification model after the model structure changes) can be initialized and trained based on the feature data of the third user and the risk identification results of the third user to obtain the initialized trained third risk identification model. In this way, the initialized trained third risk identification model can learn the risk identification ability of the pre-trained second risk identification model.
[0077] Step four, based on the characteristic data of the fourth user and the risk identification result of the fourth user, the parameters of the third risk identification model after initialization training are updated to obtain a pre-trained third risk identification model, and the pre-trained third risk identification model is determined as the pre-trained second risk identification model.
[0078] In implementation, the process of performing parameter updating processing on the third risk identification model after initialization training can refer to the above-mentioned process of performing parameter updating processing on the second risk identification model after initialization training, which will not be repeated here.
[0079] An embodiment of the present specification provides a data processing method, which receives a risk identification result of a first user from a server, wherein the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, wherein the pre-trained first risk identification model is obtained by training the server based on a preset first number of user feature data, and initializes training on a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training, and performs parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model. In this way, since the server only returns the risk identification result of the first user to the client, and there is no need to send the first feature data of the first user to the client, the private data of the server can be kept within the domain, thereby ensuring the security of the private data. At the same time, the client can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and update the parameters of the second risk identification model after initial training based on the locally stored feature data and risk identification results of the second user, so that the pre-trained second risk identification model can better meet the local risk identification needs of the client, thereby improving the risk identification effect of the pre-trained second risk identification model.
[0080] Embodiment 3
[0081] like Figure 4A and Figure 4B As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a client, and the client can be a server or a terminal device, wherein the server can be an independent server or a server cluster composed of multiple servers, and the terminal device can be a device such as a personal computer, or a mobile terminal device such as a mobile phone or a tablet computer. The method can specifically include the following steps:
[0082] In S402, when it is detected that the target user triggers the execution of the target service, first characteristic data of the target user is obtained.
[0083] Among them, the target service can be any service that the client can provide to the user. For example, the target service can be a resource transfer service, an identity authentication service, etc. The first characteristic data of the target user can include the first user's attribute information (such as gender, age, region, etc.), behavior information (such as transfer behavior, call behavior, etc.), etc.
[0084] In implementation, taking the client as an example, the target service may be a resource transfer service. The target user may trigger the start of a resource transfer application installed in the client and trigger the start of the resource transfer service (i.e., the target service). When the client detects that the target user triggers the execution of the resource transfer service, the client may obtain the target user's attribute information and resource transfer behavior information (such as resource transfer quantity, resource transfer time, resource transfer object, etc.).
[0085] In S404, the first characteristic data of the target user is input into a pre-trained second risk identification model to obtain a target risk identification result of the target user.
[0086] Among them, the pre-trained second risk identification model can be trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user and the risk identification result of the second user. The risk identification result of the first user can be obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model. The pre-trained first risk identification model can be trained by the server based on a preset first number of user feature data.
[0087] During implementation, the first feature data such as the target user's attribute information and resource transfer behavior information (such as resource transfer quantity, resource transfer time, resource transfer object, etc.) can be input into a pre-trained second risk identification model to obtain the target risk identification result of the target user.
[0088] In S406, based on the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business.
[0089] In implementation, if it is determined that there is a risk in triggering the execution of the target business based on the target risk identification result, a preset alarm message can be output to the target user and the execution of the target business can be stopped.
[0090] An embodiment of the present specification provides a data processing method, which, when it is detected that a target user triggers the execution of a target business, obtains first feature data of the target user, inputs the first feature data of the target user into a pre-trained second risk identification model, and obtains a target risk identification result of the target user. The pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user. The risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model. The pre-trained first risk identification model is trained by the server based on a preset first number of user feature data. Based on the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business. Because when the client trains the second risk model, in addition to the second feature data of the first user, the feature data of the second user and the risk identification result of the second user locally on the client, only the risk identification result of the first user provided by the server is used, so the private data of the server can be kept within the domain, thereby ensuring the security of the private data. In this way, the client can learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and make the pre-trained second risk identification model more in line with the local risk identification needs of the client based on the locally stored feature data of the second user and the risk identification result of the second user, thereby improving the risk identification effect of the pre-trained second risk identification model and improving the accuracy of risk detection for triggering the execution of target business for target users.
[0091] Embodiment 4
[0092] like Figure 5 As shown, the embodiment of this specification provides a data processing method, the execution subject of the method can be a client, and the client can be a server or a terminal device, wherein the server can be an independent server or a server cluster composed of multiple servers, and the terminal device can be a device such as a personal computer, or a mobile terminal device such as a mobile phone or a tablet computer. The method can specifically include the following steps:
[0093] In S402, when it is detected that the target user triggers the execution of the target service, first characteristic data of the target user is obtained.
[0094] In S404, the first characteristic data of the target user is input into a pre-trained second risk identification model to obtain a target risk identification result of the target user.
[0095] In S502, the user identification of the target user is sent to the server, and a first risk identification result of the target user returned by the server is received.
[0096] The first risk identification result of the target user may be obtained by the server performing risk identification on the second feature data of the target user based on a pre-trained first risk identification model.
[0097] In S504, based on the first risk identification result and the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business.
[0098] In implementation, since the data volume and data processing capability of the server may be superior to those of the client, the client may also send the user identification of the target user to the server and receive the first risk identification result of the target user returned by the server.
[0099] In addition, the model results output by the first risk identification model constructed by the server may be different from the model results of the second risk identification model. For example, the first risk identification result of the first risk identification model constructed by the server may be a more complex continuous risk score (such as a risk score that may be any value from 0 to 1), while the target risk identification result determined locally by the client may be a simpler binary risk classification label (such as a 0, 1 label, i.e., a label of 0 can represent a risk-free user, and a label of 1 can represent a risky user). Therefore, the risk score of the target user and the risk classification label can be combined to determine whether there is a risk in triggering the execution of the target business. The specific risk determination method can select different determination methods according to different actual application scenarios, and the embodiments of this specification do not specifically limit this.
[0100] An embodiment of the present specification provides a data processing method, which, when it is detected that a target user triggers the execution of a target business, obtains first feature data of the target user, inputs the first feature data of the target user into a pre-trained second risk identification model, and obtains a target risk identification result of the target user. The pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user. The risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model. The pre-trained first risk identification model is trained by the server based on a preset first number of user feature data. Based on the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business. Because when the client trains the second risk model, in addition to the second feature data of the first user, the feature data of the second user and the risk identification result of the second user locally on the client, only the risk identification result of the first user provided by the server is used, so the private data of the server can be kept within the domain, thereby ensuring the security of the private data. In this way, the client can learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and make the pre-trained second risk identification model more in line with the local risk identification needs of the client based on the locally stored feature data of the second user and the risk identification result of the second user, thereby improving the risk identification effect of the pre-trained second risk identification model and improving the accuracy of risk detection for triggering the execution of target business for target users.
[0101] Embodiment 5
[0102] The present invention provides a data processing system, which includes a server and a client.
[0103] The client may be used to send the user identification of the first user to the server.
[0104] The server can be used to obtain the risk identification result of the first user based on the user identifier. The risk identification result of the first user can be obtained by the server performing risk identification on the first feature data of the first user based on a pre-trained first risk identification model. The pre-trained first risk identification model can be trained by the server based on a preset first number of user feature data.
[0105] The client can be used to initialize the training of a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user returned by the server to obtain the second risk identification model after initialization training, and based on the feature data of the second user and the risk identification result of the second user, perform parameter update processing on the second risk identification model after initialization training to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0106] For example, Figure 6 As shown, there can be multiple servers and clients in the data processing system. Taking risk user identification in a resource transfer scenario as an example, assuming that the client and multiple servers respectively store characteristic data of several users (such as resource transfer behavior information, etc.), the client can send the user identifiers of multiple first users stored locally to multiple servers respectively. The server can obtain the first characteristic data of the first user stored locally based on the received user identifier of the first user, and determine the risk identification result of the first user based on the first risk identification model pre-trained by the server, and return it to the client.
[0107] The client then initializes training and updates parameters of the preset second risk identification model based on the second feature data of the first user, the risk identification result of the first user returned by the server, the feature data of the second user, and the risk identification result of the second user (the specific processing process can be referred to the processing process in the above-mentioned embodiments one to two), and obtains a pre-trained second risk identification model.
[0108] In addition, there may be multiple servers in the data processing system, and the client may receive risk identification results for the same first user from multiple servers, for example, Figure 6 As shown, the client can receive the risk identification result of the first user 1 determined by the server 1 based on the first feature data 1 of the first user stored locally and the pre-trained first risk identification model 1. The client can also receive the risk identification result of the first user 1 determined by the server 2 based on the first feature data 2 of the first user stored locally and the pre-trained first risk identification model 2. The client can determine the risk identification result of the first user 1 based on the risk identification result of the first user 1 returned by the server 1 and the risk identification result of the first user 1 returned by the server 2.
[0109] For example, the client can determine the risk identification result of the first user based on the corresponding preset weight value of the server and the risk identification result of the first user returned by the server. Specifically, assuming that the preset weight of server 1 is 0.8, the risk identification result of the first user 1 returned by server 1 is a risk score of 0.8, the preset weight of server 2 is 0.7, and the risk identification result of the first user 1 returned by server 1 is a risk score of 0.75, then the risk identification result of the first user can be (0.8*0.8+0.7*0.75) / 2=0.58.
[0110] The above-mentioned method for determining the risk identification result of the first user is an optional and feasible determination method. In actual application scenarios, there may be a variety of different determination methods. For example, the risk identification result of the first user may be determined based on the risk control priority of the server, etc. Different determination methods can be selected according to different actual application scenarios. The embodiments of this specification do not specifically limit this.
[0111] In addition, when the client detects that the target user triggers the execution of the target business, it can obtain the first feature data of the target user and input the first feature data of the target user into a pre-trained second risk identification model to obtain a target risk identification result for the target user.
[0112] The client can send the user identification of the target user to the server, and receive the first risk identification result of the target user returned by the server. The first risk identification result of the target user can be obtained by the server performing risk identification on the second feature data of the target user based on the pre-trained first risk identification model.
[0113] Finally, the client may determine whether there is a risk in triggering the execution of the target business based on the first risk identification result and the target risk identification result.
[0114] In this way, the second risk identification model can migrate the risk identification results on the server side through distillation learning, and the risk identification capability learning of the first risk identification model on the server side can be applied to the client, avoiding the problem of privacy data interaction in practical applications. In addition, the client can also perform real-time risk identification through the pre-trained second risk identification model, avoiding the prevention and control loopholes that exist in risk identification through data interaction (such as risk identification through blacklist interaction).
[0115] The embodiments of this specification provide a data processing system. Since the server only returns the risk identification result of the first user to the client, and there is no need to send the first feature data of the first user to the client, the private data of the server can be kept within the domain, thereby ensuring the security of the private data. At the same time, the client can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and update the parameters of the second risk identification model after initial training based on the feature data and risk identification result of the second user stored locally, so that the pre-trained second risk identification model can better meet the local risk identification needs of the client, thereby improving the risk identification effect of the pre-trained second risk identification model.
[0116] Embodiment 6
[0117] The above is a data processing method provided in the embodiment of this specification. Based on the same idea, the embodiment of this specification also provides a data processing device, such as Figure 7 shown.
[0118] The data processing device comprises: a result receiving module 701, a first training module 702 and a second training module 703, wherein:
[0119] A result receiving module 701 is used to receive a risk identification result of a first user from a server, where the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, where the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data;
[0120] A first training module 702 is used to perform initialization training on a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training;
[0121] The second training module 703 is used to perform parameter update processing on the second risk identification model after the initialization training based on the feature data of the second user and the risk identification result of the second user, so as to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0122] In the embodiment of this specification, the risk identification result of the first user includes a risk score, and the first training module 702 is used to:
[0123] Based on the second feature data of the first user, the risk identification result of the first user, and the first loss function, initializing the training of the preset second risk identification model to obtain the second risk identification model after initialization training;
[0124] The risk identification result of the second user includes a risk classification label. The second training module 1103 is used to:
[0125] Based on the feature data of the second user, the risk classification label of the second user, and the second loss function, performing parameter update processing on the second risk identification model after the initialization training to obtain the pre-trained second risk identification model;
[0126] The first loss function is a mean square error loss function, and the second loss function is a cross entropy loss function.
[0127] In the embodiment of this specification, the second risk identification model includes a feature extraction layer and a fully connected layer, and the second training module 703 is used to:
[0128] Determine, based on the data volume of the second user and a preset quantity threshold, a first parameter update amplitude for the feature extraction layer and a second parameter update amplitude for the fully connected layer, wherein the first parameter update amplitude is smaller than the second parameter update amplitude;
[0129] Based on the first parameter update amplitude, the second parameter update amplitude, the characteristic data of the second user, the risk classification label of the second user, and the second loss function, the parameters of the second risk identification model after the initialization training are updated to obtain the pre-trained second risk identification model.
[0130] In the embodiment of this specification, the device further includes:
[0131] A model detection module, used to detect whether the pre-trained second risk identification model meets the preset risk identification requirements based on a preset data processing cycle;
[0132] The model updating module is used to update the pre-trained second risk identification model based on the feature data of the third user when it is detected that the pre-trained second risk identification model does not meet the preset risk identification requirements.
[0133] In the embodiment of this specification, the model updating module is used to:
[0134] Inputting the characteristic data of the third user into the pre-trained second risk identification model to obtain a risk identification result of the third user;
[0135] In the case where the model structure of the pre-trained second risk identification model changes, determining the second risk identification model after the model structure changes as the third risk identification model;
[0136] Based on the feature data of the third user and the risk identification result of the third user, initializing the training of the third risk identification model to obtain the third risk identification model after initialization training;
[0137] Based on the characteristic data of the fourth user and the risk identification result of the fourth user, the parameters of the third risk identification model after the initialization training are updated to obtain a pre-trained third risk identification model, and the pre-trained third risk identification model is determined as the pre-trained second risk identification model.
[0138] An embodiment of the present specification provides a data processing device, which receives a risk identification result of a first user from a server, wherein the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, wherein the pre-trained first risk identification model is obtained by training the server based on a preset first number of user feature data, and initializes training on a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain a second risk identification model after initialization training, and performs parameter update processing on the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain the pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model. In this way, since the server only returns the risk identification result of the first user to the client, and there is no need to send the first feature data of the first user to the client, the private data of the server can be kept within the domain, thereby ensuring the security of the private data. At the same time, the client can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and update the parameters of the second risk identification model after initial training based on the locally stored feature data and risk identification results of the second user, so that the pre-trained second risk identification model can better meet the local risk identification needs of the client, thereby improving the risk identification effect of the pre-trained second risk identification model.
[0139] Embodiment 7
[0140] Based on the same idea, the embodiment of this specification also provides a data processing device, such as Figure 8 shown.
[0141] The data processing device includes: a data acquisition module 801, a result acquisition module 802 and a risk determination module 803, wherein:
[0142] The data acquisition module 801 is used to acquire the first characteristic data of the target user when it is detected that the target user triggers the execution of the target service;
[0143] A result acquisition module 802 is used to input the first feature data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user, and the risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data;
[0144] The risk determination module 803 is used to determine whether there is a risk in triggering the execution of the target business based on the target risk identification result.
[0145] In the embodiment of this specification, the risk determination module 803 is used to:
[0146] Sending the user identification of the target user to the server, and receiving a first risk identification result of the target user returned by the server, wherein the first risk identification result of the target user is obtained by the server performing risk identification on the second feature data of the target user based on the pre-trained first risk identification model;
[0147] Based on the first risk identification result and the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business.
[0148] An embodiment of the present specification provides a data processing device, which, when detecting that a target user triggers the execution of a target business, obtains first feature data of the target user, inputs the first feature data of the target user into a pre-trained second risk identification model, and obtains a target risk identification result of the target user. The pre-trained second risk identification model is trained based on the second feature data of the first user, the risk identification result of the first user, the feature data of the second user, and the risk identification result of the second user. The risk identification result of the first user is obtained by the server performing risk identification on the first feature data of the first user based on the pre-trained first risk identification model. The pre-trained first risk identification model is trained by the server based on a preset first number of user feature data. Based on the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business. Because when the client trains the second risk model, in addition to the second feature data of the first user, the feature data of the second user and the risk identification result of the second user locally on the client, only the risk identification result of the first user provided by the server is used, so the private data of the server can be kept within the domain, thereby ensuring the security of the private data. In this way, the client can learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and make the pre-trained second risk identification model more in line with the local risk identification needs of the client based on the locally stored feature data of the second user and the risk identification result of the second user, thereby improving the risk identification effect of the pre-trained second risk identification model and improving the accuracy of risk detection for triggering the execution of target business for target users.
[0149] Embodiment 8
[0150] Based on the same idea, the embodiment of this specification also provides a data processing device, such as Fig. 9 shown.
[0151] The data processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 901 and memory 902, and the memory 902 may store one or more storage applications or data. Among them, the memory 902 may be a short-term storage or a persistent storage. The application stored in the memory 902 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the data processing device. Furthermore, the processor 901 may be configured to communicate with the memory 902 and execute a series of computer executable instructions in the memory 902 on the data processing device. The data processing device may also include one or more power supplies 903, one or more wired or wireless network interfaces 904, one or more input and output interfaces 905, and one or more keyboards 906.
[0152] Specifically in this embodiment, the data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions in the data processing device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:
[0153] Receive a risk identification result for a first user from a server, where the risk identification result for the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, where the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data;
[0154] Based on the second feature data of the first user and the risk identification result of the first user, initializing training is performed on a preset second risk identification model to obtain a second risk identification model after initialization training;
[0155] Based on the feature data of the second user and the risk identification result of the second user, the parameters of the second risk identification model after the initial training are updated to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
[0156] Optionally, the risk identification result of the first user includes a risk score, and the initialization training of a preset second risk identification model based on the feature data of the first user and the risk identification result of the first user to obtain the second risk identification model after initialization training includes:
[0157] Based on the second feature data of the first user, the risk identification result of the first user, and the first loss function, initializing the training of the preset second risk identification model to obtain the second risk identification model after initialization training;
[0158] The risk identification result of the second user includes a risk classification label, and the parameter updating process of the second risk identification model after the initialization training is performed based on the feature data of the second user and the risk identification result of the second user to obtain the pre-trained second risk identification model includes:
[0159] Based on the feature data of the second user, the risk classification label of the second user, and the second loss function, performing parameter update processing on the second risk identification model after the initialization training to obtain the pre-trained second risk identification model;
[0160] The first loss function is a mean square error loss function, and the second loss function is a cross entropy loss function.
[0161] Optionally, the second risk identification model includes a feature extraction layer and a fully connected layer, and the parameter update processing is performed on the second risk identification model after the initialization training based on the feature data of the second user, the risk classification label of the second user, and the second loss function to obtain the pre-trained second risk identification model, including:
[0162] Determine, based on the data volume of the second user and a preset quantity threshold, a first parameter update amplitude for the feature extraction layer and a second parameter update amplitude for the fully connected layer, wherein the first parameter update amplitude is smaller than the second parameter update amplitude;
[0163] Based on the first parameter update amplitude, the second parameter update amplitude, the characteristic data of the second user, the risk classification label of the second user, and the second loss function, the parameters of the second risk identification model after the initialization training are updated to obtain the pre-trained second risk identification model.
[0164] Optionally, the method further comprises:
[0165] Based on a preset data processing cycle, detecting whether the pre-trained second risk identification model meets the preset risk identification requirements;
[0166] When it is detected that the pre-trained second risk identification model does not meet the preset risk identification requirement, the pre-trained second risk identification model is updated based on the feature data of the third user.
[0167] Optionally, the updating of the pre-trained second risk identification model based on the feature data of the third user and the risk identification result of the third user includes:
[0168] Inputting the characteristic data of the third user into the pre-trained second risk identification model to obtain a risk identification result of the third user;
[0169] In the case where the model structure of the pre-trained second risk identification model changes, determining the second risk identification model after the model structure changes as the third risk identification model;
[0170] Based on the feature data of the third user and the risk identification result of the third user, initializing the training of the third risk identification model to obtain the third risk identification model after initialization training;
[0171] Based on the characteristic data of the fourth user and the risk identification result of the fourth user, the parameters of the third risk identification model after the initialization training are updated to obtain a pre-trained third risk identification model, and the pre-trained third risk identification model is determined as the pre-trained second risk identification model.
[0172] In addition, the data processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data processing device, and the one or more programs configured to be executed by one or more processors include computer-executable instructions for performing the following:
[0173] When it is detected that the target user triggers the execution of the target service, obtaining first characteristic data of the target user;
[0174] Input the first characteristic data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second characteristic data of the first user, the risk identification result of the first user, the characteristic data of the second user, and the risk identification result of the second user, and the risk identification result of the first user is obtained by the server performing risk identification on the first characteristic data of the first user based on the pre-trained first risk identification model, and the pre-trained first risk identification model is trained by the server based on a preset first number of user characteristic data;
[0175] Based on the target risk identification result, determine whether there is a risk in triggering the execution of the target business.
[0176] Optionally, the determining whether there is a risk in triggering the execution of the target service based on the risk identification result of the target user includes:
[0177] Sending the user identification of the target user to the server, and receiving a first risk identification result of the target user returned by the server, wherein the first risk identification result of the target user is obtained by the server performing risk identification on the second feature data of the target user based on the pre-trained first risk identification model;
[0178] Based on the first risk identification result and the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business.
[0179] The embodiments of this specification provide a data processing device. Since the server only returns the risk identification result of the first user to the client, and there is no need to send the first feature data of the first user to the client, the private data of the server can be kept within the domain, thereby ensuring the security of the private data. At the same time, the client can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and update the parameters of the second risk identification model after initial training based on the feature data and risk identification result of the second user stored locally, so that the pre-trained second risk identification model can better meet the local risk identification needs of the client, thereby improving the risk identification effect of the pre-trained second risk identification model.
[0180] Embodiment 9
[0181] The embodiments of this specification also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0182] The embodiments of this specification provide a computer-readable storage medium. Since the server only returns the risk identification result of the first user to the client, and there is no need to send the first feature data of the first user to the client, the private data of the server can be kept within the domain, thereby ensuring the security of the private data. At the same time, the client can also learn the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user, and update the parameters of the second risk identification model after initial training based on the feature data and risk identification result of the second user stored locally, so that the pre-trained second risk identification model can better meet the local risk identification needs of the client, thereby improving the risk identification effect of the pre-trained second risk identification model.
[0183] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0184] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0185] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0186] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0187] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing one or more embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0188] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0189] The embodiments of this specification are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.
[0190] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0191] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0192] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0193] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0194] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0195] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0196] It should be understood by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, one or more embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0197] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0198] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0199] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A data processing method, comprising: Receive a risk identification result for a first user from a server, where the risk identification result for the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, where the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; Based on the second feature data of the first user and the risk identification result of the first user, a preset second risk identification model is initialized and trained to obtain a second risk identification model after initialization and training, wherein the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; Based on the feature data of the second user and the risk identification result of the second user, the parameters of the second risk identification model after the initial training are updated to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
2. According to the method of claim 1, the risk identification result of the first user includes a risk score, and the initialization training of a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user to obtain the second risk identification model after initialization training comprises: Based on the second feature data of the first user, the risk identification result of the first user, and the first loss function, initializing the training of the preset second risk identification model to obtain the second risk identification model after initialization training; The risk identification result of the second user includes a risk classification label, and the parameter updating process of the second risk identification model after the initialization training is performed based on the feature data of the second user and the risk identification result of the second user to obtain the pre-trained second risk identification model includes: Based on the feature data of the second user, the risk classification label of the second user, and the second loss function, performing parameter update processing on the second risk identification model after the initialization training to obtain the pre-trained second risk identification model; The first loss function is a mean square error loss function, and the second loss function is a cross entropy loss function.
3. According to the method of claim 2, the second risk identification model comprises a feature extraction layer and a fully connected layer, and the parameter updating process is performed on the second risk identification model after the initialization training based on the feature data of the second user, the risk classification label of the second user, and the second loss function to obtain the pre-trained second risk identification model, comprising: Determine, based on the data volume of the second user and a preset quantity threshold, a first parameter update amplitude for the feature extraction layer and a second parameter update amplitude for the fully connected layer, wherein the first parameter update amplitude is smaller than the second parameter update amplitude; Based on the first parameter update amplitude, the second parameter update amplitude, the characteristic data of the second user, the risk classification label of the second user, and the second loss function, the parameters of the second risk identification model after the initialization training are updated to obtain the pre-trained second risk identification model.
4. The method according to claim 1, further comprising: Based on a preset data processing cycle, detecting whether the pre-trained second risk identification model meets the preset risk identification requirements; When it is detected that the pre-trained second risk identification model does not meet the preset risk identification requirement, the pre-trained second risk identification model is updated based on the feature data of the third user.
5. The method according to claim 4, wherein the updating process of the pre-trained second risk identification model based on the feature data of the third user and the risk identification result of the third user comprises: Inputting the characteristic data of the third user into the pre-trained second risk identification model to obtain a risk identification result of the third user; In the case where the model structure of the pre-trained second risk identification model changes, determining the second risk identification model after the model structure changes as the third risk identification model; Based on the feature data of the third user and the risk identification result of the third user, initializing the training of the third risk identification model to obtain the third risk identification model after initialization training; Based on the characteristic data of the fourth user and the risk identification result of the fourth user, the parameters of the third risk identification model after the initialization training are updated to obtain a pre-trained third risk identification model, and the pre-trained third risk identification model is determined as the pre-trained second risk identification model.
6. A data processing method, comprising: When it is detected that the target user triggers the execution of the target service, obtaining first characteristic data of the target user; Inputting the first characteristic data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second characteristic data of the first user, the risk identification result of the first user, the characteristic data of the second user, and the risk identification result of the second user, the risk identification result of the first user is obtained by the server performing risk identification on the first characteristic data of the first user based on the pre-trained first risk identification model, the pre-trained first risk identification model is trained by the server based on a preset first number of user characteristic data, the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; Based on the target risk identification result, determine whether there is a risk in triggering the execution of the target business.
7. The method according to claim 6, wherein determining whether there is a risk in triggering the execution of the target business based on the risk identification result of the target user comprises: Sending the user identification of the target user to the server, and receiving a first risk identification result of the target user returned by the server, wherein the first risk identification result of the target user is obtained by the server performing risk identification on the second feature data of the target user based on the pre-trained first risk identification model; Based on the first risk identification result and the target risk identification result, it is determined whether there is a risk in triggering the execution of the target business.
8. A data processing system, comprising a server and a client, wherein: The client is used to send the user identification of the first user to the server; The server is used to obtain a risk identification result of the first user based on the user identifier, where the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, where the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; The client is used to initialize the training of a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user returned by the server to obtain the second risk identification model after initialization training, and to update the parameters of the second risk identification model after initialization training based on the feature data of the second user and the risk identification result of the second user to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model. The second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user.
9. A data processing device, comprising: A result receiving module, used for receiving a risk identification result of a first user from a server, wherein the risk identification result of the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, wherein the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; a first training module, configured to perform initialization training on a preset second risk identification model based on the second feature data of the first user and the risk identification result of the first user, to obtain a second risk identification model after initialization training, wherein the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; The second training module is used to update the parameters of the second risk identification model after the initialization training based on the feature data of the second user and the risk identification result of the second user, so as to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
10. A data processing device, comprising: A data acquisition module, configured to acquire first characteristic data of a target user when it is detected that the target user triggers execution of a target service; a result acquisition module, for inputting the first characteristic data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second characteristic data of the first user, the risk identification result of the first user, the characteristic data of the second user, and the risk identification result of the second user, the risk identification result of the first user is obtained by the server performing risk identification on the first characteristic data of the first user based on the pre-trained first risk identification model, the pre-trained first risk identification model is trained by the server based on a preset first number of user characteristic data, the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; The risk determination module is used to determine whether there is a risk in triggering the execution of the target business based on the target risk identification result.
11. A data processing device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receive a risk identification result for a first user from a server, where the risk identification result for the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, where the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; Based on the second feature data of the first user and the risk identification result of the first user, a preset second risk identification model is initialized and trained to obtain a second risk identification model after initialization and training, wherein the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; Based on the feature data of the second user and the risk identification result of the second user, the parameters of the second risk identification model after the initial training are updated to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
12. A data processing device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: When it is detected that the target user triggers the execution of the target service, obtaining first characteristic data of the target user; Inputting the first characteristic data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second characteristic data of the first user, the risk identification result of the first user, the characteristic data of the second user, and the risk identification result of the second user, the risk identification result of the first user is obtained by the server performing risk identification on the first characteristic data of the first user based on the pre-trained first risk identification model, the pre-trained first risk identification model is trained by the server based on a preset first number of user characteristic data, the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; Based on the target risk identification result, determine whether there is a risk in triggering the execution of the target business.
13. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: Receive a risk identification result for a first user from a server, where the risk identification result for the first user is obtained by the server performing risk identification on first feature data of the first user based on a pre-trained first risk identification model, where the pre-trained first risk identification model is trained by the server based on a preset first number of user feature data; Based on the second feature data of the first user and the risk identification result of the first user, a preset second risk identification model is initialized and trained to obtain a second risk identification model after initialization and training, wherein the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; Based on the feature data of the second user and the risk identification result of the second user, the parameters of the second risk identification model after the initial training are updated to obtain a pre-trained second risk identification model, so as to perform risk identification processing on the user based on the pre-trained second risk identification model.
14. A storage medium for storing computer executable instructions, wherein the executable instructions implement the following process when executed: When it is detected that the target user triggers the execution of the target service, obtaining first characteristic data of the target user; Inputting the first characteristic data of the target user into a pre-trained second risk identification model to obtain a target risk identification result of the target user, wherein the pre-trained second risk identification model is trained based on the second characteristic data of the first user, the risk identification result of the first user, the characteristic data of the second user, and the risk identification result of the second user, the risk identification result of the first user is obtained by the server performing risk identification on the first characteristic data of the first user based on the pre-trained first risk identification model, the pre-trained first risk identification model is trained by the server based on a preset first number of user characteristic data, the second risk identification model is a risk identification model of the client, and the second risk identification model is a model obtained by learning the risk identification ability of the first risk identification model with the assistance of the risk identification result of the first user; Based on the target risk identification result, determine whether there is a risk in triggering the execution of the target business.
