A method, device and equipment for constructing a risk assessment model
By building a risk assessment model through incremental learning among financial institutions, we solve the problem of compliance risks in traditional risk control modeling, achieve efficient and safe risk assessment model construction, and reduce compliance risks and economic costs.
Patent Information
- Application Number
- CN202111171644.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-12-25
AI Technical Summary
Traditional risk control modeling methods can easily lead to compliance risks when exchanging data between financial institutions, especially due to privacy leaks and legal and regulatory constraints caused by data going out of the domain. It is difficult for existing technologies to build universal risks while ensuring compliance. Evaluate the model.
Through the method of incremental learning between different institutions, specific algorithms that support incremental learning are used to conduct local training on the samples of each institution, and a risk assessment model that integrates the sample information of each institution is constructed to avoid data going out of the domain, using blockchain. Privacy protection and model storage.
While ensuring that the data does not leave the domain, the model training time overhead is shortened, network performance requirements are reduced, compliance risks are avoided, and data coverage is improved and economic costs are reduced.
Smart Images

Figure CN113947471B
Abstract
Description
Technical Field
[0001] The present application relates to the field of risk compliance technology, and in particular to a method, device and equipment for constructing a risk assessment model. Background Art
[0002] Compliance risks exist widely in all aspects of financial institutions' business and management. In the Internet industry, compliance risks can refer to the risks caused by failure to comply with national laws, regulations, policies, industry practices or service level agreements during the operation or internal management of an enterprise.
[0003] Risk control can include risk management and risk control. Risk management refers to the management process of minimizing risk in a project or enterprise in a certain risk environment. Risk control refers to the various measures and methods taken by risk managers to eliminate or reduce the possibility of various risk events, or reduce the losses caused by risk events. In the Internet financial industry, risk control can include the control of all possible risk events, involving personnel operation risks, business operation risks, technical operation risks and risks brought by external events.
[0004] The traditional risk control modeling method is the scorecard model. Modelers need to aggregate the data samples of the institutions involved in the modeling and build models after local aggregation. This requires the data in each institution to be out of the domain before modeling can be completed. This modeling behavior is very likely to cause compliance risks.
[0005] Therefore, there is an urgent need to provide a solution for establishing a risk assessment model to address the compliance risks caused by modeling. Summary of the invention
[0006] The embodiments of this specification provide a method and device for building a risk assessment model to solve the problem of data out of domain causing violations in existing modeling methods.
[0007] To solve the above technical problems, the embodiments of this specification are implemented as follows:
[0008] An embodiment of this specification provides a method for constructing a risk assessment model, the method being applied to a first server of a first institution, the method comprising:
[0009] Acquire a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in a device of the second institution;
[0010] According to the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0011] An embodiment of the present specification provides a device for constructing a risk assessment model, the device is applied to a first server of a first institution, and the device includes:
[0012] A risk assessment model acquisition module, used to acquire a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in a device of the second institution;
[0013] A model updating module is used to update the first parameter in the risk assessment model according to the second sample data in the first institution to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0014] An embodiment of this specification provides a device for constructing a risk assessment model, including:
[0015] at least one processor; and,
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
[0018] Acquire a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in a device of the second institution;
[0019] According to the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0020] An embodiment of the present specification provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement a method for constructing a risk assessment model.
[0021] An embodiment of this specification realizes the following beneficial effects: a risk assessment model obtained by training the second server of the second institution; the risk assessment model is obtained by training based on the first sample data in the second institution; the first sample data is only allowed to be used in the equipment of the second institution; according to the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution. Using the above method, when constructing a risk assessment model, only the data within the institution is relied on in a single iteration, and there is no need to frequently exchange data on the network, which can greatly shorten the time cost of model training. At the same time, the incremental learning method is adopted in different institutions to construct the risk assessment model while ensuring that the data does not go out of the domain, which can avoid the compliance risks caused by data going out of the domain when constructing the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0023] Figure 1 This is a schematic diagram of the overall scheme of the method for constructing a risk assessment model in the embodiments of this specification;
[0024] Figure 2 A flowchart of a method for constructing a risk assessment model provided in an embodiment of this specification;
[0025] Figure 3 A swimming lane diagram of a method for constructing a risk assessment model provided in an embodiment of this specification;
[0026] Figure 4 It is a schematic diagram of a device for constructing a risk assessment model provided in an embodiment of this specification. DETAILED DESCRIPTION
[0027] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this description, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.
[0028] "Compliance risk" refers to the risk that a bank may suffer legal sanctions or regulatory penalties, significant financial losses or reputational losses due to its failure to comply with laws, regulations, regulatory requirements, rules, relevant guidelines formulated by self-regulatory organizations, and codes of conduct that have been applied to the bank's own business activities. Compliance risk is widely present in all aspects of financial institutions' business and management. In the Internet industry, compliance risk can refer to the risk caused by failure to comply with national laws, regulations, policies, industry examples or service level agreements during the operation or internal management of an enterprise.
[0029] Risk Assessment refers to the work of quantitatively evaluating the impact and possibility of loss caused by a risk event on people's lives, lives, property, etc. before or after the risk event occurs (but not yet ended). In other words, risk assessment is to quantitatively evaluate the possible degree of impact or loss caused by an event or thing.
[0030] From the perspective of information security, risk assessment is an assessment of the threats, weaknesses, impacts, and the possibility of risks caused by the combined effects of information assets (i.e., the information set of an event or thing). As the basis of risk management, risk assessment is an important way for organizations to determine information security needs and is part of the process of planning the organization's information security management system. Conducting compliance risk assessment can give full play to the role of compliance risk assessment in risk management.
[0031] Compliance risk management refers to the cyclical process in which an enterprise proactively avoids violations, proactively discovers and takes appropriate measures to correct violations that have occurred, and continuously improves relevant systems and corresponding practices.
[0032] In the prior art, taking the credit risk control scenario as an example, it is necessary to use samples from multiple credit institutions in the same scenario to build a risk assessment model. For example, when a third-party risk control company plans to develop a general application scoring model for bank credit card customers, the model development process will use credit data related to credit cards of multiple banks. Modelers need to aggregate samples from institutions involved in the modeling and perform data cleaning, feature matching, model development, model calibration, and model testing. Therefore, financial institutions are required to output the identity information, loan information, and other data of the borrowing customers to the external modeling environment, that is, data out of the domain. Borrowers' information will circulate between different institutions, causing user information leakage.
[0033] As regulatory authorities gradually strengthen the protection of citizens' personal privacy data, the existing modeling methods obviously have serious compliance risks. Many laws and regulations have been issued intensively to systematically improve my country's legal and regulatory system for personal information privacy protection from many aspects. Under the strong constraints of relevant laws, financial institutions shall not share user privacy data and financial activity data with third-party institutions without the direct authorization of individual users. Therefore, the traditional model of data aggregation and integration within third-party companies has fallen into an unsustainable dilemma.
[0034] In the existing technology, the principle of federated learning is used for model development. The model training process is completely completed by a pre-set program, and the model developers cannot intervene in the development process. Therefore, it is not friendly to core work such as feature engineering and parameter tuning, and cannot fully mine the information of modeling samples; during the model training process, a large amount of data will be exchanged on the network, so there are strict requirements on network performance, and the time cost of the training process is much greater than that of conventional training; third-party companies that provide federated learning platform services are required to participate, so the economic and time costs of model development are high.
[0035] In addition, there are also solutions in the prior art for incremental learning of models in a single institution based on continuously updated data in the network. However, this method can often only obtain data from one institution for model training, with low data coverage, and the trained risk assessment model can only be used to conduct risk assessment on the data of the institution, and cannot be used to conduct risk assessment on the data of other institutions. In the prior art, once a general risk assessment model needs to be trained, it needs to be constructed using data from multiple institutions in the same application scenario, which will result in user data being exported to other institutions, leading to violations.
[0036] Based on this, this solution provides a solution for establishing a risk assessment model, which uses a specific algorithm that supports incremental learning to perform local training in samples from different institutions in turn, and finally obtains a model that integrates the sample information of each institution, which can meet the dual needs of business and compliance.
[0037] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0038] Figure 1 Schematic diagram of the overall scheme of the method for constructing a risk assessment model in the embodiments of this specification. Figure 1 As shown, institution 1 uses the sample data in institution 1 to initialize the model and trains to obtain model 1. Institution 2 updates the parameters of model 1 based on the sample data of this institution, and the cycle continues. Institution M uses the sample data in institution M to update the parameters based on the model in the previous step to obtain the updated model M. It should be noted that Figure 1 The attached figure shows that each institution continues to conduct local training on the model trained by the previous institution based on the data in its own institution, and obtains a model with updated parameters. It is not that each institution trains separately to obtain a model. Instead, the institution continuously and incrementally iterates the model based on the data in its own institution to obtain a model that finally integrates the sample data of each institution. For example: Institution 1 uses the sample data in its own institution to train the model to obtain Model 1, determines that the parameter estimation value A corresponding to Model 1 is 0.5, puts Model 1 into Institution 2, uses the sample data in Institution 2 to update the parameters of Model 1, and continues to optimize the parameter A to obtain Model 2, and the parameter estimation value A' is 0.55; and so on, Institution N uses the user data in Institution N to continue to train the model N-1 output by the previous institution to obtain Model n, and finally obtains Model N that integrates the sample data of each institution.
[0039] Next, a method for constructing a risk assessment model provided in an embodiment of the specification is specifically described with reference to the accompanying drawings:
[0040] Figure 2 A flowchart of a method for building a risk assessment model provided in an embodiment of this specification. From a program perspective, the executor of the process can be a program or application client installed on an application server. In this embodiment, the executor can be the first server of the first organization. It should be noted that the "first" in the "first server and the first organization" mentioned here is only used to distinguish between different organizations or different servers, and does not represent a specific meaning. In this embodiment, when building a model, the first server of the first organization needs to continue to build the model based on the model built by the previous organization.
[0041] like Figure 2 As shown, the process may include the following steps:
[0042] Step 210: Obtain a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in the equipment of the second institution.
[0043] It should be noted that the second organization may represent another organization different from the first organization. Specifically, the process of training the model based on the data in the second organization is completed by the second server deployed in the second organization.
[0044] The risk assessment model in the above steps may refer to a model trained by the second server in the second institution based on sample data in the second institution. The risk assessment model may be used to perform risk assessment on the second institution.
[0045] When training the risk assessment model, the second institution will not obtain data from other institutions, but only train based on the data in its own institution. In a single iteration, it only relies on the data within the second institution, and there is no need to frequently exchange data on the network.
[0046] Step 220: Based on the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0047] When training the model, the server of the first institution will not obtain data from the second institution, but the server of the first institution will continue training based on the risk assessment model trained by the second institution.
[0048] The first server performs basic training on the risk assessment model trained by the second server according to the second sample data in the first institution to obtain an updated risk assessment model, which can perform risk assessment on the data in the first institution and the second institution.
[0049] For example, there are institutions A, B, and C. The sample data in institution A is data 1, the sample data in institution B is data 2, and the sample data in institution C is data 3. The server in institution A uses data 1 to train and obtain risk assessment model 1. Institution B can obtain risk assessment model 1. The server in institution B uses data 2 to continue training risk assessment model 1, which actually uses data 2 to update the parameters in risk assessment model 1 and obtains updated model 2. Institution C can obtain risk assessment model 2. The server in institution C uses data 3 to continue training risk assessment model 2, which actually uses data 3 to update the parameters in risk assessment model 2 and obtains updated risk assessment model 3. Risk assessment model 3 can perform risk assessment on the data in institutions A, B, and C.
[0050] It should be noted that the above method can be understood as: during the risk assessment model training process, the optimization objective function of the risk assessment model is decomposed into single or batch samples, and these different batches of samples are contributed by different institutions. The traditional "data moves, model does not move" is transformed into "data does not move, model moves", and the high risk of data out of the domain is transformed into no risk of model out of the domain.
[0051] In addition, the first institution in the above steps can represent one institution or multiple institutions. For example, when it is necessary to train a risk assessment model that can be used for multiple banking institutions, the first institution can be one of the banks, and the data in the bank is only allowed to be processed in this institution. When it is necessary to train a risk assessment model that can be used for financial institutions, the first institution can be a type of institution, for example, the first institution can be multiple banks. However, at this time, unless there is a special security agreement, the data in each bank is only used within the bank.
[0052] It should be understood that the order of some steps in the methods described in one or more embodiments of this specification can be interchanged according to actual needs, or some steps can be omitted or deleted.
[0053] Figure 2The method in the embodiment of the present invention is to obtain a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on the first sample data in the second institution; the first sample data is only allowed to be used in the equipment of the second institution; according to the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution. By adopting the above method, when constructing a risk assessment model, only the data within the institution is relied on in a single iteration, and there is no need to frequently exchange data on the network, which can greatly shorten the time cost of model training. At the same time, the incremental learning method is adopted in different institutions to construct the risk assessment model while ensuring that the data does not go out of the domain, which can avoid the compliance risks caused by data going out of the domain when constructing the model.
[0054] based on Figure 2 The method, the examples of this specification also provide some specific implementation plans of the method, which are described below.
[0055] Optional, above Figure 2 The method may also include:
[0056] The updated risk assessment model is sent to a third institution; the third institution updates the second parameter in the updated risk assessment model according to the third sample data in the institution to obtain a further updated risk assessment model.
[0057] The model trained by the second institution can be sent to the third institution for further training. It should be noted that in actual applications, when it is necessary to train a risk assessment model that is common in financial institutions, training samples can be selected. For example, if it is necessary to train a risk assessment model that is common in financial institutions, data from banks, securities institutions, insurance institutions, trust institutions, fund institutions, etc. can be selected for model training. If the risk assessment model to be trained is only required to be applicable between banks, data from each bank can be selected as training data for the model.
[0058] For this embodiment, after the second institution trains the updated risk assessment model, the third institution trains the updated risk assessment model based on the data in the third institution. In the actual training process, the second parameter in the updated risk assessment model can be updated.
[0059] It should be noted that the model training process requires the calculation of the model parameters. The model training process can be understood as the continuous updating of the model parameters using new data until the scoring accuracy of the updated risk assessment model meets the preset accuracy.
[0060] In the process of building a risk assessment model, model construction is divided into a model training process and a model testing process. In theory, the model should be trained in all corresponding institutions to eventually obtain a trained model. However, in practical applications, it is impossible to truly traverse all institutions. Therefore, when training the model, the institutions for training the model can be selected to ensure data coverage as much as possible. For the selected institutions, each institution can update the model parameters based on the previous institution, and finally obtain a trained risk assessment model.
[0061] After obtaining the trained risk assessment model, the model needs to be tested and the performance of the model needs to be determined. Specifically, when testing the model, the updated risk assessment model can be input into each institution for local testing. The trained risk assessment model is then substituted into the test samples of each institution in turn for testing and evaluation of the model performance. When it is found that the performance of the model on samples of some institutions does not meet expectations, it is fine-tuned on the current institution until the performance of the model on samples of all institutions meets expectations. Specifically, the following steps may be included:
[0062] For any institution, input the data in the institution into the risk assessment model after the update again, and obtain the prediction result of the risk assessment model after the update again;
[0063] Calculating the prediction accuracy of the risk assessment model after the update according to the prediction result;
[0064] Determine whether the prediction accuracy of the risk assessment model after the re-update reaches the preset accuracy corresponding to any one of the institutions, and obtain a determination result;
[0065] When the judgment result indicates that the prediction accuracy of the risk assessment model after the re-update reaches the preset accuracy corresponding to any one of the institutions, it is determined that the risk assessment model after the re-update passes the test of any one of the institutions.
[0066] Optionally, the determining whether the prediction accuracy of the risk assessment model after the re-update reaches a preset accuracy corresponding to any one institution, after obtaining the determination result, may further include:
[0067] When the prediction accuracy of the risk assessment model after the re-update does not reach the preset accuracy corresponding to any one institution, the sample data in any one institution is used to train the risk assessment model after the re-update, and the parameters in the risk assessment model after the re-update are tuned until the prediction accuracy of the risk assessment model after the re-update meets the preset value corresponding to any one institution, so as to obtain the tuned risk assessment model.
[0068] It should be noted that each institution can have a corresponding prediction accuracy when training the risk assessment model based on its own institution. For example, the institutions participating in the model training are institutions 1-5, among which institution 1 requires the prediction accuracy of the model trained by its own institution to reach 90%, institution 2 requires the prediction accuracy of the model trained by its own institution to reach 95%, ..., institution 5 requires the prediction accuracy of the model trained by its own institution to reach 99%. When each institution uses the data in its own institution to train the model, it needs to continuously update the parameters of the model until the trained model meets the preset accuracy of the institution.
[0069] Through the above method, when each institution trains the model, the data is only iterated and used in the institution, and will not be used for model training with other institutions, thus avoiding data out of domain. Since the model itself does not contain any user information, user data will not be exported to other institutions during the process of building the model, which does not violate relevant regulations.
[0070] In one embodiment, the training process of the risk assessment model in this solution can be implemented in conjunction with blockchain, and the results of each institution training the risk assessment model locally can be stored in the blockchain system in a privacy-preserving manner.
[0071] In the embodiments of this specification, when each institution uses the data within the institution for local training, the risk assessment model obtained through training can be saved in the blockchain system. When other institutions need to continue to update the risk assessment model using the data of the institution, they can obtain the risk assessment model trained by the previous institution from the blockchain system. After the risk assessment model is updated using the data of the institution, the updated risk assessment model can also be encrypted and uploaded to the blockchain system for storage. Among them, in order to further ensure its security, the risk assessment model stored in the blockchain system can be an encrypted model, and other institutions need to decrypt it after obtaining the model to ensure data security during the operation.
[0072] In practical applications, in order to prove the effectiveness of risk assessment model training, after each institution completes the training, it can prove to other institutions that the trained model is trained by the institution using the data in the institution. Specifically, this requirement can be achieved by generating a verifiable claim (VC). VC is also an important application in DID. The VC can be stored in the blockchain platform. In this solution, multiple institutions need to use the data in the institution for local training and finally obtain the required risk assessment model. Each institution will train a model using the data in the institution, so the model trained by each institution can carry version information. For example, the content of VC can include the digital signature of the institution that trained the model and the version information corresponding to the model. At this time, the verifiable claim can prove that the model of the version information is the model trained by the institution, but whether the sample data in the institution is used, it is also necessary to check the corresponding data identifier. Therefore, when any institution trains a certain version of the model, in addition to storing the verifiable claim in the blockchain system, it can also store the data identifier of the sample data used when training the model in the blockchain system. Each institution can create a distributed digital identity and a distributed digital identity document (DID Doc) of each institution through a distributed identity identification proxy service (DIS) for managing the identity of the institution, and the DID and DID Doc of each institution can be stored in the blockchain platform. Therefore, in the embodiment of this specification, the data identification of the sample data can be stored in the DID document (DID Doc).
[0073] When an institution updates the risk assessment model obtained by the previous institution, in addition to obtaining the risk assessment model from the previous institution, it can also verify the corresponding VC and the data identifier of the sample data used in training through the blockchain. Specifically, an institution can obtain the public key in the DID Doc from the blockchain, and when verifying the output result of the previous institution, it also uses the corresponding public key to verify the signature of the VC sent by the previous institution, thereby confirming that the VC is issued by the previous institution and is complete, that is, it has not been tampered with. In this way, based on the tamper-proof characteristics of the blockchain platform and the credibility of the signing agency, the recognition of the authenticity and effectiveness of the risk assessment model can be improved.
[0074] It should be noted that there is interaction between each institution and the blockchain system. Each institution can upload the trained risk assessment model and other generated result data to the blockchain system for storage, and can also obtain the result data uploaded by other institutions stored in the blockchain system.
[0075] Privacy protection can be achieved through a variety of technologies, such as cryptography (such as homomorphic encryption or zero-knowledge proof), hardware privacy technology and network isolation technology. Typical hardware privacy protection technologies include Trusted Execution Environment (TEE).
[0076] For example, blockchain nodes can all use TEE to implement a secure execution environment for blockchain transactions. TEE is a trusted execution environment based on the security extension of CPU hardware and completely isolated from the outside. At present, the industry pays great attention to the TEE solution. Almost all mainstream chip and software alliances have their own TEE solutions, such as TPM (Trusted Platform Module) in software and Intel SGX (Software Guard Extensions), ARM Trustzone and AMD PSP (Platform Security Processor) in hardware. TEE can play the role of a hardware black box. The code and data executed in TEE cannot be peeped even at the operating system layer. They can only be operated through the pre-defined interfaces in the code. In terms of efficiency, due to the black box nature of TEE, the calculation in TEE is plaintext data, not the complex cryptographic calculations in homomorphic encryption, and the efficiency of the calculation process is almost lost. Therefore, by deploying the TEE environment on the blockchain node, the privacy requirements in the blockchain scenario can be largely met with relatively small performance loss, thereby ensuring the privacy of the data.
[0077] In the embodiments of this specification, when each institution uses the data in the institution to perform local training on the risk assessment model, it can use the privacy computing method to process it, which can ensure that secure and reliable computing is performed without leaking the institution's data. Therefore, the training process of the risk assessment model can be executed in the TEE, thereby ensuring the security and reliability of the model training process.
[0078] By combining the training process of the risk assessment model with the blockchain system through the above method, the security and reliability of the training process and the credibility of the training results can be guaranteed, and the security of the data during the training process can also be guaranteed.
[0079] Optionally, the risk assessment model may be a logistic regression model; and obtaining the risk assessment model trained by the second server of the second institution may specifically include:
[0080] Determining a first parameter in the risk assessment model sent by the second institution;
[0081] The updating of the first parameter in the risk assessment model according to the second sample data in the first institution to obtain an updated risk assessment model may specifically include:
[0082] The logistic regression model is trained according to the first parameter and the second sample data to obtain an updated risk assessment model.
[0083] It should be noted that the Logistic Regression (LR) model can be understood as applying a logical function on the basis of linear regression, which is equivalent to y=f(x), indicating the relationship between the independent variable x and the dependent variable y. For example, taking the credit scenario as an example, X is the user's relevant data, such as: user basic information, user credit data, and user historical risk data. Y is the observed value, which can indicate whether the institution under inspection has risks. By constructing a linear regression model, it is possible to predict whether the data in the institution has risks based on the input user data.
[0084] Optionally, determining the first parameter in the risk assessment model sent by the second institution may specifically include:
[0085] Based on the first sample data in the second institution, a first parameter of the risk assessment model is determined using maximum likelihood estimation.
[0086] Optionally, updating the first parameter in the risk assessment model according to the second sample data in the first institution may specifically include:
[0087] According to the second sample data, the first parameter is updated using a gradient ascent method.
[0088] Maximum Likelihood (ML), also known as maximum likelihood estimation, is a theoretical point estimation method. When n groups of sample observations are randomly selected from the model population, the most reasonable parameter estimator should maximize the probability of extracting the n groups of sample observations from the model.
[0089] In machine learning algorithms, when minimizing the loss function, the gradient descent method can be used to obtain the minimized loss function and the corresponding parameter values. Conversely, if the maximum loss function is required, it can be obtained through the gradient ascent method.
[0090] It should be noted that in this solution, modeling is based on incremental learning. Therefore, any model that supports incremental learning algorithms can be applied to the embodiments of this solution. For example: deep learning models, neural network models, etc. Local training is performed in samples from different institutions in turn using specific algorithms that support incremental learning, and finally a risk assessment model that integrates sample information from various institutions is obtained. In each training, the samples of the current institution can be substituted into the formula for estimating model parameters to further optimize the existing parameters.
[0091] Take the construction methods of logistic regression model and neural network model as examples to illustrate:
[0092] Method 1: Build a logistic regression model.
[0093] The model solves the optimal parameters by maximizing the log-likelihood function using the gradient ascent method. When optimizing the log-likelihood function, the gradient of the log-likelihood function on the parameter to be updated can be decomposed into the contribution of a single sample, so the new sample can be used independently to update the current parameter during the parameter update process.
[0094] For example, in solving the parameters of the logistic regression model using the maximum likelihood estimation method and solving the parameters of the feedforward neural network using back propagation, both are based on the gradient ascent (descent) method, and the gradient can be decomposed into the sum of the components of any group of samples, that is, the gradient is additive to the samples. The additivity of the gradient to the samples can be used to implement the modeling process of the model based on incremental learning in different institutions. The specific process steps can be as follows:
[0095] Assume that there are N institutions participating in the modeling, and the sample sets are: {X1,Y1},{X2,Y2},…,{X N ,Y N},
[0096] Among them, the sample set of the i-th institution is:
[0097]
[0098]
[0099] Among them, X i ,Y i are the independent variable dataset and dependent variable dataset provided by the i-th institution, m i Indicates that the i-th institution has a total of m isamples, and p represents the number of independent variables.
[0100] The incremental learning process based on the logistic regression model is as follows:
[0101] Step 1: Based on the samples X1 and Y1 of the first institution, build a logistic regression model and obtain the coefficient estimates of the regression model. in represents the b-th variable X obtained based on the sample training of the first institution b The estimated value of the coefficient of .
[0102] Step 2: Among N institutions, traverse from the second institution to the Nth institution, and the k value traverses from 1 to K, using the following formula:
[0103]
[0104]
[0105] When ||β k+1 -β (k) ||<∈ terminates the traversal of k, and sets β (i) =β (k) .
[0106] Among them, in the training of the i-th institution, the initial parameters of the MLE optimization method are is the estimated value of βb obtained by the model in the sample of the i-1th institution, b ranges from 0 to p; K is set to a large constant, such as 1000000; ∈ is set to a small constant, such as 10 -5 ; h is the learning step size, which can be set to a smaller constant, such as 10 -3 , or you can use cross-validation or other parameter adjustment methods to get the optimal h; the operator ||*|| represents the 2-norm of the vector, for example x i is the i-th component of vector x.
[0107] Step 3: Repeat step 2 until β becomes stable. At this time, each time step 2 is repeated, i accumulates from 1 to N, that is, the sample of the first institution needs to be included in the iteration.
[0108] Method 2: Build a neural network model.
[0109] The neural network model can be a model that estimates parameters based on the back propagation method and is used for incremental learning modeling of the risk control model. The basic principle can be to decompose the loss function into the sum of the loss functions of different sub-data sets.
[0110] For example, let's take a fully connected feedforward neural network with 3 input layer nodes, 1 hidden layer (2 nodes), and 1 output layer node as an example:
[0111] The relationship between the input layer, hidden layer, and output layer can be:
[0112]
[0113]
[0114]
[0115] Among them, x1, x2, x3 are independent variables, h1, h2 are hidden layer nodes and receive information from x1, x2, x3, and then input to the output layer node o after transformation through the activation function, and then output after another step of transformation through the activation function. The activation functions of h1, h2, o are F1, F2 and F3, the subscript i represents the i-th independent sample, b * Represents the bias term.
[0116] Assume that the activation function F * Differentiable and the derivative function is f * In the scenario of regression tasks (such as predicting the amount of default loss), the mean square error function can be used as the loss function, which is:
[0117]
[0118] In such a model, the gradient descent method combined with the back propagation method (BP algorithm) can be used to solve the parameters.
[0119] Through the above method, a model supporting incremental learning algorithm can be built on the samples of institution 1 to determine the estimated values of each parameter of the model, the gradient of the loss function or log-likelihood function on each parameter, and other institutions can update the model parameters based on the model obtained by this institution to complete the construction of the risk assessment model.
[0120] Optionally, in actual application scenarios, this solution can be applied in application scenarios where risk control is required, such as risk control in credit institutions or risk control in financial insurance institutions. Therefore, the first institution and the second institution in the above embodiment may belong to credit institutions; the sample data collected from each credit institution may at least include basic user data, credit data and risk data in the first institution. Among them, the basic user data may include the user's name, gender, age, occupation, place of origin, ID number and other information. Credit data may be the user's loan record, which may specifically include loan time, mortgage information, guarantee information, loan amount, loan term, number of loans and other information. Risk data may include historical risk labels, such as user's credit risk, macro policy risk, internal operational risk and liquidity risk. It should be noted that these data are all user-related data. In order to ensure their compliance, these data can only be used within the institution that stores user data, and the institution cannot be transmitted to other institutions for use through the network or other means. Similarly, the first institution and the second institution may also belong to financial insurance institutions; in this case, the basic user data in the institution may include the user's gender, age, date of birth, location, occupation type, annual disposable income, social security status, loan status, living habits, family status, etc. Insurance data may include policy information, insurance type, insurance period, insurance liability type, and insurance premiums, etc. Risk data may include historical risk tags, such as: insurance fraud risk.
[0121] Taking financial insurance institutions as an example, the first institution used to train the initial risk assessment model can continuously iterate and train based on the user data, insurance data and risk data in the institution to obtain the initial risk assessment model. Then other financial insurance institutions use the data in the institution for local training based on this model, thereby updating the risk assessment model. In a single iteration of model training, only the data within the institution is relied on, and there is no need to frequently exchange data on the network. Therefore, there are no strong requirements for network performance and the time cost of model training can be greatly shortened. At the same time, model developers can deeply intervene in the process of model training and can deeply explore the performance of the data. In the algorithm that supports incremental learning, the model in one or more embodiments of this specification is not inferior to the existing model in terms of model accuracy. At the same time, it can avoid compliance risks caused by data out of the domain during model training.
[0122] In addition, in the actual model building process, different institutions may have different data formats for the stored data. Therefore, when building a model based on these data, in order to improve the efficiency of model building, the data format of the training data can be preset. The preset data format can be the data format required for risk assessment model training. When each institution conducts local training based on its own data, it can first convert the data into the required data format and then build the model. Specifically, the following steps can be adopted:
[0123] Before updating the first parameter in the risk assessment model according to the second sample data in the first institution to obtain the updated risk assessment model, the method may further include:
[0124] Acquire the data format of the second sample data;
[0125] The data format of the second sample data is converted according to a preset data format.
[0126] The method in the above embodiment can be combined with the following Figure 3 To explain:
[0127] Figure 3 A swimming lane diagram of a method for constructing a risk assessment model provided in an embodiment of this specification.
[0128] like Figure 3 As shown, taking the risk assessment model of training and evaluating credit institutions as an example, the relevant subjects of this method include the first institution, the second institution, and the third institution. It should be noted that when executing the steps, it is executed by the servers in each institution, and the number of institutions is also selected according to the actual situation. Figure 3 In order to simplify the description of this solution, the organization is directly described as the execution subject of each process, and only the interaction between three organizations is listed, which does not limit the protection scope of the solution. The specific implementation process is as follows:
[0129] In the process of constructing the risk assessment model, the input data is the second sample data in the first institution, and the sample data may include user basic data, credit data and risk data.
[0130] The first institution solves the parameters of the model based on the input second sample data to obtain the risk assessment model 1.
[0131] Determine whether the scoring accuracy of the risk assessment model meets the first preset accuracy corresponding to the first institution. If not, continue to use the sample data in this institution to update the parameters in the model until the scoring accuracy of the risk assessment model meets the first preset accuracy corresponding to the first institution. If satisfied, send the risk assessment model 1 to the second institution.
[0132] The second institution updates the parameters of risk assessment model 1 according to the first sample data in the institution, and obtains the updated risk assessment model 2. The scoring accuracy of risk assessment model 2 also needs to meet the second preset accuracy corresponding to institution 2. After meeting the second preset accuracy, risk assessment model 2 is sent to the third institution, and so on, until all institutions are traversed. For example, there are N institutions in total. Institution N is trained on the basis of model N-1 input by the previous institution to obtain model N. The scoring accuracy of model N meets the Nth preset accuracy corresponding to the Nth institution. Model N is brought into the first institution-Nth institution again for local testing. After the test is successful, the process ends and the final target risk assessment model is output.
[0133] Through the above method, the following technical effects can be achieved:
[0134] 1) In a single iteration of model training, only the data within the organization is relied upon, and there is no need to frequently exchange data on the network. Therefore, there is no strong requirement for network performance and the time cost of model training can be greatly shortened.
[0135] 2) Model developers can deeply intervene in the model training process and deeply explore the performance of the data.
[0136] 3) Decompose the optimization objective function in model training into single or batch samples, and these different batches of samples are contributed by different institutions. Transform the traditional "data moves, model does not move" into "data does not move, model moves", and transform the high risk of data out of the domain into no risk of model out of the domain.
[0137] 4) The model itself does not contain any information about the user, so the risk assessment model can be exported from the institutions involved in model training to the external environment on the basis of complying with relevant laws and regulations.
[0138] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. The device may include:
[0139] A risk assessment model acquisition module, used to acquire a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in a device of the second institution;
[0140] A model updating module is used to update the first parameter in the risk assessment model according to the second sample data in the first institution to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0141] Based on the above device, the examples of this specification also provide some specific implementation plans of the method, which are described below.
[0142] Optionally, the device may further include:
[0143] The model sending module is used to send the updated risk assessment model to a third institution; the third institution updates the second parameter in the updated risk assessment model according to the third sample data in the institution to obtain a further updated risk assessment model.
[0144] Optionally, the scoring accuracy of the risk assessment model after the further update meets the preset accuracy.
[0145] Optionally, the device may further include:
[0146] The model testing module is used to input the updated risk assessment model into various institutions for local testing.
[0147] Optionally, the model testing module may specifically include:
[0148] A prediction result determination unit, for any one institution, inputting the data in the institution into the risk assessment model after the re-update, to obtain the prediction result of the risk assessment model after the re-update;
[0149] A prediction accuracy calculation unit, used to calculate the prediction accuracy of the risk assessment model after the update according to the prediction result;
[0150] A judgment unit, used to judge whether the prediction accuracy of the risk assessment model after the re-update reaches the preset accuracy corresponding to any one of the institutions, and obtain a judgment result;
[0151] The test pass determination unit is used to determine whether the risk assessment model after being updated again has passed the test of any one institution when the judgment result indicates that the prediction accuracy of the risk assessment model after being updated again has reached the preset accuracy corresponding to any one institution.
[0152] Optionally, the model testing module may further include:
[0153] A test and tuning unit is used to train the risk assessment model after the re-update when the prediction accuracy of the risk assessment model after the re-update does not reach the preset accuracy corresponding to any one institution, and to tune the parameters in the risk assessment model after the re-update, until the prediction accuracy of the risk assessment model after the re-update meets the preset value corresponding to any one institution, so as to obtain a tuned risk assessment model.
[0154] Optionally, the risk assessment model is a logistic regression model; the risk assessment model acquisition module may specifically include:
[0155] A first parameter determination unit, used to determine a first parameter in the risk assessment model sent by the second institution;
[0156] The model updating module specifically includes:
[0157] An updating unit is used to train the logistic regression model according to the first parameter and the second sample data to obtain an updated risk assessment model.
[0158] Optionally, the device may further include:
[0159] A data format acquisition module, used to acquire the data format of the second sample data;
[0160] The data format conversion module is used to convert the data format of the second sample data according to a preset data format.
[0161] Optionally, the first parameter determination unit may be specifically configured to:
[0162] Based on the first sample data in the second institution, a first parameter of the risk assessment model is determined using maximum likelihood estimation.
[0163] Optionally, the model updating module may be specifically used for:
[0164] According to the second sample data, the first parameter is updated using a gradient ascent method.
[0165] Optionally, the risk assessment model acquisition module may specifically include:
[0166] The risk assessment model acquisition unit is used to obtain the encrypted risk assessment model from the blockchain system and decrypt it.
[0167] Optionally, the device may further include:
[0168] The risk assessment model storage module is used to encrypt the updated risk assessment model and upload it to the blockchain system for storage.
[0169] Optionally, the device may further include:
[0170] A first verifiable statement acquisition module is used to obtain a first verifiable statement indicating that the risk assessment model is trained by the second institution using the first sample data; the first verifiable statement includes at least the digital signature of the second institution and the version information of the risk assessment model, and the blockchain system also stores a data identifier of the first sample data corresponding to the version information.
[0171] Optionally, the device may further include:
[0172] A second verifiable statement generating module is used to generate a second verifiable statement, wherein the second verifiable statement is used to indicate that the updated risk assessment model is trained by the first institution using the second sample data; the second verifiable statement at least includes the digital signature of the first institution and the version information of the updated risk assessment model.
[0173] Optionally, the device may further include:
[0174] A saving module is used to send the second verifiable statement and the data identifier of the second sample data corresponding to the version information of the updated risk assessment model to the blockchain system for saving.
[0175] Optionally, the device may further include:
[0176] The trusted operating system loading module is used to preload the trusted operating system to provide an operating environment for the first server and the second server to execute the training model process.
[0177] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.
[0178] Figure 4 Schematic diagram of a device for constructing a risk assessment model provided in the embodiment of this specification. Figure 4 As shown, the device 400 may include:
[0179] at least one processor 410; and,
[0180] A memory 430 is communicatively connected to the at least one processor; wherein,
[0181] The memory 430 stores instructions 420 executable by the at least one processor 410. The instructions are executed by the at least one processor 410 to enable the at least one processor 410 to:
[0182] Acquire a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in a device of the second institution;
[0183] According to the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0184] Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the following method:
[0185] Acquire a risk assessment model trained by a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is only allowed to be used in a device of the second institution;
[0186] According to the second sample data in the first institution, the first parameter in the risk assessment model is updated to obtain an updated risk assessment model; the second sample data is only allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
[0187] Each embodiment in this specification is described in a progressive manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. Figure 4 As for the device for constructing the risk assessment model shown, 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.
[0188] 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.
[0189] 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, AtmelAT91SAM, 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.
[0190] 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.
[0191] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0192] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention 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.
[0193] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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 generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0194] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0195] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0196] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0197] 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.
[0198] 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 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.
[0199] 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.
[0200] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0201] The present application 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. The present application 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.
[0202] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for constructing a risk assessment model, the method being applied to a first server of a first institution, the method comprising: Obtaining a risk assessment model of a second server of a second institution; The risk assessment model is obtained by training based on the first sample data in the second institution; The first sample data is allowed to be used in the equipment of the second institution; Obtaining a first verifiable statement indicating that the risk assessment model is trained by the second institution using the first sample data; Obtain the public key in the document of the distributed digital identity; verifying the first verifiable statement using the public key; After the first verifiable statement is verified, the first parameter in the risk assessment model is updated according to the second sample data in the first institution to obtain an updated risk assessment model; The second sample data is allowed to be used in the equipment of the first institution; The updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
2. The method according to claim 1, further comprising: sending the updated risk assessment model to a third institution; The third institution updates the second parameter in the updated risk assessment model according to the third sample data in the third institution to obtain a further updated risk assessment model.
3. According to the method of claim 2, the scoring accuracy of the risk assessment model after the further update meets the preset accuracy.
4. The method according to claim 2, after obtaining the risk assessment model after being updated again, further comprises: The updated risk assessment model is input into various institutions for local testing.
5. The method according to claim 4, wherein the step of inputting the updated risk assessment model into each institution for local testing comprises: For any institution, input the data in the institution into the risk assessment model after the update again, and obtain the prediction result of the risk assessment model after the update again; Calculating the prediction accuracy of the risk assessment model after the update according to the prediction result; Determine whether the prediction accuracy of the risk assessment model after the re-update reaches the preset accuracy corresponding to any one of the institutions, and obtain a determination result; When the judgment result indicates that the prediction accuracy of the risk assessment model after the re-update reaches the preset accuracy corresponding to any one of the institutions, it is determined that the risk assessment model after the re-update passes the test of any one of the institutions.
6. According to the method of claim 1, the step of obtaining the risk assessment model trained by the second server of the second institution specifically comprises: Obtain the encrypted risk assessment model from the blockchain system and decrypt it.
7. The method according to claim 6, after updating the first parameter in the risk assessment model according to the second sample data in the first institution to obtain the updated risk assessment model, further comprises: The updated risk assessment model is encrypted and uploaded to the blockchain system for storage.
8. The method according to claim 6, after obtaining the risk assessment model trained by the second server of the second institution, further comprises: Obtaining a first verifiable statement indicating that the risk assessment model is trained by the second institution using the first sample data; The first verifiable statement includes at least the digital signature of the second institution and the version information of the risk assessment model, and the blockchain system also stores a data identifier of the first sample data corresponding to the version information.
9. The method according to claim 6, after updating the first parameter in the risk assessment model according to the second sample data in the first institution to obtain the updated risk assessment model, further comprises: Generate a second verifiable statement, wherein the second verifiable statement is used to indicate that the updated risk assessment model is trained by the first institution using the second sample data; the second verifiable statement includes at least the digital signature of the first institution and the version information of the updated risk assessment model.
10. The method according to claim 8, before updating the first parameter in the risk assessment model according to the second sample data in the first institution to obtain the updated risk assessment model, further comprises: Obtaining a public key in a document of a distributed digital identity from the blockchain system; verifying the first verifiable statement using the public key; After the first verifiable statement is verified, the first parameter in the risk assessment model is updated according to the second sample data in the first institution to obtain an updated risk assessment model.
11. The method according to claim 9, after generating the second verifiable statement, further comprising: The second verifiable statement and the data identifier of the second sample data corresponding to the version information of the updated risk assessment model are sent to the blockchain system for storage; the encrypted updated risk assessment model is also stored in the blockchain system.
12. The method according to claim 1, further comprising: A trusted operating system is preloaded to provide an operating environment for the first server and the second server to execute the training model process.
13. The method according to claim 5, wherein the step of determining whether the prediction accuracy of the risk assessment model after the re-update reaches the preset accuracy corresponding to any one of the institutions, after obtaining the determination result, further comprises: When the prediction accuracy of the risk assessment model after being updated again does not reach the preset accuracy corresponding to any one of the institutions, the sample data in any one of the institutions is used to train the risk assessment model after being updated again, and the parameters in the risk assessment model after being updated again are tuned until the prediction accuracy of the risk assessment model after being updated again meets the preset value corresponding to any one of the institutions, so as to obtain the tuned risk assessment model.
14. The method according to claim 1, wherein the risk assessment model is a logistic regression model; The step of obtaining the risk assessment model trained by the second server of the second institution specifically includes: Determining a first parameter in the risk assessment model sent by the second institution; The updating of the first parameter in the risk assessment model according to the second sample data in the first institution to obtain an updated risk assessment model specifically includes: The logistic regression model is trained according to the first parameter and the second sample data to obtain an updated risk assessment model.
15. The method according to claim 1, wherein the first institution and the second institution are credit institutions; The second sample data includes at least basic user data, credit data and risk data in the first institution.
16. The method according to claim 1, wherein the first institution and the second institution are financial insurance institutions; The second sample data includes at least basic user data, insurance data and risk data in the second institution.
17. The method according to claim 1, before updating the first parameter in the risk assessment model according to the second sample data in the first institution to obtain the updated risk assessment model, further comprises: Acquire the data format of the second sample data; The data format of the second sample data is converted according to a preset data format.
18. The method according to claim 14, wherein determining the first parameter in the risk assessment model sent by the second institution comprises: Based on the first sample data in the second institution, a first parameter of the risk assessment model is determined using maximum likelihood estimation.
19. The method according to claim 1, wherein updating the first parameter in the risk assessment model according to the second sample data in the first institution specifically comprises: According to the second sample data, the first parameter is updated using a gradient ascent method.
20. A device for constructing a risk assessment model, the device being applied to a first server of a first institution, the device comprising: A risk assessment model acquisition module, used to acquire a risk assessment model of a second server of a second institution; The risk assessment model is obtained by training based on the first sample data in the second institution; The first sample data is allowed to be used in the device of the second institution; obtaining a first verifiable statement indicating that the risk assessment model is trained by the second institution using the first sample data; obtaining a public key in a document of a distributed digital identity; verifying the first verifiable statement using the public key; A model updating module, configured to update a first parameter in the risk assessment model according to second sample data in the first institution after the first verifiable statement is verified, so as to obtain an updated risk assessment model; The second sample data is allowed to be used in the equipment of the first institution; The updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
21. The device according to claim 20, wherein the risk assessment model acquisition module specifically comprises: The risk assessment model acquisition unit is used to obtain the encrypted risk assessment model from the blockchain system and decrypt it.
22. The device according to claim 21, further comprising: A first verifiable statement acquisition module, used to acquire a first verifiable statement indicating that the risk assessment model is trained by the second institution using the first sample data; The first verifiable statement includes at least the digital signature of the second institution and the version information of the risk assessment model, and the blockchain system also stores a data identifier of the first sample data corresponding to the version information.
23. The device according to claim 22, further comprising: A second verifiable statement generating module is used to generate a second verifiable statement, wherein the second verifiable statement is used to indicate that the updated risk assessment model is trained by the first institution using the second sample data; the second verifiable statement at least includes the digital signature of the first institution and the version information of the updated risk assessment model.
24. A device for constructing a risk assessment model, comprising: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to: Obtain a risk assessment model of a second server of a second institution; the risk assessment model is trained based on first sample data in the second institution; the first sample data is allowed to be used in the equipment of the second institution; obtain a first verifiable statement indicating that the risk assessment model is trained by the second institution using the first sample data; obtain a public key in a document of a distributed digital identity; use the public key to verify the first verifiable statement; after the first verifiable statement is verified, update the first parameter in the risk assessment model based on the second sample data in the first institution to obtain an updated risk assessment model; the second sample data is allowed to be used in the equipment of the first institution; the updated risk assessment model is used to perform risk assessment on the data of the first institution and the second institution.
25. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method for constructing a risk assessment model according to any one of claims 1 to 19.
