Label completion method, terminal, device and storage medium based on cross-validation
Through the cross-validation label completion method, the cross-validation algorithm is used to proofread labels with the encrypted prediction models of other terminals, which solves the problem of local discriminant model paranoia and inaccurate labels, improves the accuracy and security of label completion, and reduces the cost of label completion. cost.
Patent Information
- Application Number
- CN201910622809.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-10
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2039-07-10
AI Technical Summary
In existing tag completion methods, tags added through local discriminant models are prone to paranoia and inaccurate tags. Especially in highly specialized fields, the privacy of data and models makes non-encrypted distributed computing unfeasible. This leads to high cost of tag completion.
Using a label completion method based on cross-validation, the first terminal generates labels to be verified based on the first sample and the first label, and uses the cross-validation algorithm to verify with the encrypted prediction models of other terminals to ensure the accuracy and security of the labels sex.
It improves the performance of machine models and the accuracy of label completion, while ensuring data security and reducing the cost and risk of paranoia in label completion.
Smart Images

Figure CN110334815B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning technology, and in particular to a label completion method, terminal, device and storage medium based on cross-validation. Background Art
[0002] Machine learning algorithms based on supervised learning require sufficient labeled samples to train the model in order to achieve the desired effect. In real application scenarios, some (or even most) training samples are missing labels, and unlabeled samples cannot be used for model training. We usually have to abandon these samples, which not only wastes sample data, but also causes insufficient sample data for training machine learning models, thereby reducing the generalization ability of the training model.
[0003] At present, the existing technical solution is to collect more labeled samples or annotate unlabeled samples. However, the manual collection of labeled samples or sample annotation often requires professional technicians to complete, which is costly. Automatically annotating samples is an effective way to reduce labeling costs. The existing automatic sample annotation technology uses transfer learning to train a discriminant model from a data set with a large number of labeled samples, and then uses the discriminant model to determine the labels of unlabeled samples. The disadvantages of this method are: from the perspective of time cost and labor cost, it is expensive to collect a large number of labeled sample data sets; ready-made low-cost labeled samples, large data sets that can be used for transfer learning usually only exist in low-professional fields, such as animal identification, and in high-professional fields, such as medical, finance, anomaly detection, etc.
[0004] In highly professional fields, high-quality sample data is often scattered among different enterprises and organizations. Label completion can be performed using the data or models owned by each enterprise and organization through distributed computing. However, enterprises and organizations usually regard their own data and models as trade secrets, which makes non-encrypted distributed computing solutions infeasible in reality.
[0005] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0006] The main purpose of the present invention is to provide a label completion method, system, device and storage medium based on cross-validation, aiming to solve the technical problems that the labels supplemented by the local discriminant model in the existing label completion have strong bias towards the local discriminant model and the labels are inaccurate.
[0007] To achieve the above object, the present invention provides a label completion method based on cross-validation, and the label completion method based on cross-validation comprises the following steps:
[0008] The first terminal generates a to-be-proofread label corresponding to the second sample based on the first sample, the first label corresponding to the first sample, and the second sample;
[0009] The first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm.
[0010] Further, in one embodiment, the step of the first terminal generating a to-be-proofread label corresponding to the second sample based on the first sample, the first label corresponding to the first sample, and the second sample includes:
[0011] A first prediction model is obtained by training based on the first sample and the first label;
[0012] The label to be proofread is generated based on the first prediction model and the second sample.
[0013] Further, in one embodiment, the step of the first terminal determining a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm includes:
[0014] A second prediction model is obtained by training based on the first sample, the first label corresponding to the first sample, the second sample, and the label to be proofread corresponding to the second sample;
[0015] Encrypting the second prediction model based on a preset encryption algorithm, and sending the encrypted second prediction model to the second terminal in the communication system respectively;
[0016] Upon receiving the encrypted prediction model corresponding to the second terminal, generating a preset number of encrypted prediction labels based on the second sample and the encrypted prediction model;
[0017] A target label corresponding to the second sample is determined based on the encrypted predicted label.
[0018] Further, in one embodiment, the step of determining a target label corresponding to the second sample based on the encrypted predicted label includes:
[0019] Randomly obfuscate the encrypted prediction labels, and send the randomly obfuscated encrypted prediction labels to terminals corresponding to the encrypted prediction labels for decryption, so as to obtain decrypted prediction labels;
[0020] When a preset number of decrypted prediction labels are received, a target label corresponding to the second sample is determined based on each of the decrypted prediction labels.
[0021] Further, in one embodiment, when a preset number of decrypted prediction labels are received, the step of determining a target label corresponding to the second sample based on each decrypted prediction label includes:
[0022] Accumulating a first number of the decrypted predicted labels whose label values are equal to a first preset value and a second number of the predicted labels whose label values are equal to a second preset value;
[0023] A target label corresponding to the second sample is determined based on the first quantity and the second quantity.
[0024] Furthermore, in one embodiment, the label completion device based on cross-validation includes:
[0025] A prediction module, wherein the first terminal generates a to-be-proofread label corresponding to the second sample based on the first sample, the first label corresponding to the first sample, and the second sample;
[0026] The processing module is configured such that the first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm.
[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, which includes: a memory, a processor, and a cross-validation-based label completion program stored in the memory and executable on the processor, wherein the cross-validation-based label completion program, when executed by the processor, implements the steps of any of the cross-validation-based label completion methods described above.
[0028] In addition, to achieve the above-mentioned purpose, the present invention also provides a storage medium, on which a cross-validation-based label completion program is stored, and when the cross-validation-based label completion program is executed by a processor, the steps of any of the cross-validation-based label completion methods described above are implemented.
[0029] The present invention generates a label to be proofread corresponding to the second sample based on a first sample, a first label corresponding to the first sample and a second sample by a first terminal, and then the first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread and a cross-validation algorithm, thereby solving the label bias towards the local discriminant model, improving the performance of the machine model and the accuracy of label completion, and ensuring the security of data of each terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of the structure of a terminal in a hardware operating environment involved in an embodiment of the present invention;
[0031] Figure 2It is a flowchart of the first embodiment of the label completion method based on cross-validation of the present invention;
[0032] Figure 3 A schematic diagram of a label completion process in an embodiment of the present invention;
[0033] Figure 4 It is a flow chart of the second embodiment of the label completion method based on cross-validation of the present invention;
[0034] Figure 5 A schematic diagram of encryption model migration between terminals in one embodiment of the present invention;
[0035] Figure 6 A schematic diagram of generating an encrypted prediction label in one embodiment of the present invention;
[0036] Figure 7 It is a schematic diagram of a terminal t decrypting an encrypted prediction label of a sample through other terminals in one embodiment of the present invention;
[0037] Figure 8 It is a schematic diagram of functional modules of an embodiment of a label completion device based on cross-validation of the present invention.
[0038] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0040] like Figure 1 As shown, Figure 1 It is a schematic diagram of the structure of a terminal in a hardware operating environment involved in an embodiment of the present invention.
[0041] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a customer interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The customer interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional customer interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0042] Optionally, the terminal may further include a camera, a RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. Among them, sensors such as light sensors, motion sensors and other sensors are not described in detail here.
[0043] Those skilled in the art will understand that Figure 1 The system structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0044] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a client interface module, and a tag completion program based on cross-validation.
[0045] exist Figure 1 In the system shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the client interface 1003 is mainly used to connect to the client (client) and communicate data with the client; and the processor 1001 can be used to call the cross-validation-based label completion program stored in the memory 1005.
[0046] In this embodiment, the terminal includes: a memory 1005, a processor 1001, and a cross-validation-based label completion program stored in the memory 1005 and executable on the processor 1001, wherein when the processor 1001 calls the cross-validation-based label completion program stored in the memory 1005, the steps of the cross-validation-based label completion method provided in each embodiment of the present application are executed.
[0047] The present invention also provides a label completion method based on cross-validation, referring to Figure 2 , Figure 2 Schematic diagram of the flow of the first embodiment of the label completion method based on cross-validation of the present invention.
[0048] The embodiment of the present invention provides an embodiment of a label completion method based on cross-validation. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown here.
[0049] In this embodiment, the label completion method based on cross-validation includes:
[0050] Step S100: The first terminal generates a to-be-proofread label corresponding to the second sample based on a first sample, a first label corresponding to the first sample, and a second sample;
[0051] In this embodiment, the existing sample data of each terminal is divided into two categories, one is labeled sample data, and the other is unlabeled sample data. The terminal can further determine the label of the unlabeled sample data based on the labeled samples. The label is used to mark the data as normal or abnormal.
[0052] Specifically, step S100 includes:
[0053] Step S110, obtaining a first prediction model through training based on the first sample and the first label;
[0054] Step S120: generating the label to be proofread based on the first prediction model and the second sample.
[0055] In this embodiment, each terminal has a preset number of samples, and the specific number of samples is determined according to the actual situation of the communication system. The preset number of samples includes labeled samples and unlabeled sample data, wherein the labeled samples are the first samples and the unlabeled samples are the second samples.
[0056] Specifically, refer to Figure 3 , the process of determining the labels of unlabeled sample data is divided into two steps:
[0057] In the first step, each terminal uses its own first sample set to train a first prediction model f according to a preset "machine learning" algorithm. t , assuming that there are N terminals in the system, each terminal t (t = 1, 2, 3 ... N) has a labeled sample, namely the first sample and the unlabeled sample, i.e. the second sample Terminal t passes through the labeled samples and its corresponding labels, train a label model, namely the first prediction model f t .
[0058] In the second step, each terminal t passes through the model f t For unlabeled samples Label and get samples in It is a sample The corresponding set of labels to be proofread is is the label to be proofread of the kth sample.
[0059] Step S200, the first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm;
[0060] In this embodiment, since the label determined by the first prediction model is only determined based on limited local labeled samples, the accuracy is not high enough and it is easy to have a strong bias towards the local prediction model. Therefore, the label needs to be further proofread.
[0061] Specifically, the second prediction model is obtained by training the first sample and the second sample, the second prediction model is encrypted, and the encrypted second prediction model is sent to other terminals in the system. Assuming that there are N terminals in the system, each terminal will receive the second prediction model corresponding to the other N-1 terminals, and use the N-1 second prediction models to obtain encrypted prediction labels. Then, for each sample in the second sample, there are N-1 encrypted prediction labels. Next, the N-1 encrypted prediction labels are randomly obfuscated, decrypted, and other operations are performed according to the preset algorithm to obtain the decrypted N-1 prediction labels. At this time, the sample has N labels, including N-1 prediction labels and 1 label to be proofread. Then, according to the preset judgment rules, the unlabeled sample is determined. Target label
[0062] The cross-validation-based label completion method proposed in this embodiment generates a label to be proofread corresponding to the second sample based on a first sample, a first label corresponding to the first sample, and a second sample by a first terminal, and then the first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm. The cross-validation algorithm solves the problem of label bias towards the local discriminant model, improves the performance of the machine model and the accuracy of label completion, and ensures the security of data on each terminal.
[0063] Based on the first embodiment, refer to Figure 4 , a second embodiment of the label completion method based on cross-validation of the present invention is proposed. In this embodiment, step S200 includes:
[0064] Step S210, training a second prediction model based on the first sample, the first label corresponding to the first sample, the second sample, and the label to be proofread corresponding to the second sample;
[0065] In this embodiment, each terminal uses its own first sample, the first label corresponding to the first sample, the second sample, and the label to be proofread corresponding to the second sample to train the second prediction model according to the preset "machine learning" algorithm. Specifically, assuming that there are N terminals in the system, each terminal t (t = 1, 2, 3 ... N) uses all its samples to train the second prediction model. and Train the second prediction model g t , used to mark labels.
[0066] Step S220, encrypting the second prediction model based on a preset encryption algorithm, and sending the encrypted second prediction model to the second terminal in the communication system;
[0067] In this embodiment, each terminal t generates a pair of public key and private key, and then uses the public key to calculate the second prediction model g. t Encryption is performed to obtain the encrypted second prediction model [[·]] represents an encryption operation, and preferably, a homomorphic encryption algorithm can be used. Next, the encrypted second prediction model is sent to the other N-1 terminals in the communication system. In the present invention, the second terminal is used to represent any terminal in the communication system except the first terminal. Taking three terminals as an example, refer to Figure 5 , terminal 1 will are sent to terminal 2 and terminal 3 respectively, and terminal 2 sends Send to terminal 1 and terminal 3 respectively, terminal 3 will Sent to terminal 1 and terminal 2 respectively.
[0068] Step S230, upon receiving the encrypted prediction model corresponding to the second terminal, generating a preset number of encrypted prediction labels based on the second sample and the encrypted prediction model;
[0069] In this embodiment, if Figure 6 As shown, terminal t receives the encrypted second prediction model corresponding to other N-1 terminals Terminal t uses N-1 encrypted prediction models For each of its samples Label to obtain N-1 encrypted prediction labels
[0070] Step S240: determining a target label corresponding to the second sample based on the encrypted predicted label.
[0071] In this embodiment, each sample in the second sample of terminal t Using N-1 encrypted prediction models Generate N-1 encrypted prediction labels, and determine the target label corresponding to the second sample based on the encrypted prediction labels.
[0072] Specifically, step S240 includes:
[0073] Step S241, randomly obfuscating the encrypted prediction label, and sending the randomly obfuscated encrypted prediction label to the terminals corresponding to the encrypted prediction label for decryption, so as to obtain the decrypted prediction label;
[0074] In this embodiment, if Figure 7As shown, in order to ensure the security of data during transmission, the encrypted prediction labels are randomly obfuscated. The specific steps are as follows: Add random mask M t ',,get Then the randomly obfuscated encrypted tag Send to other terminal t' for decryption to obtain the decrypted label It should be noted that the N-1 encrypted prediction labels are encrypted at the terminal t', and therefore need to be sent to other terminals t' for decryption.
[0075] Step S242: upon receiving a preset number of decrypted prediction labels, determining a target label corresponding to the second sample based on each decrypted prediction label.
[0076] In this embodiment, other terminals decrypt the encrypted prediction tag and send the decrypted prediction tag to Return to terminal t. Finally, terminal t obtains N-1 decrypted prediction labels from other N-1 terminals. Remove the random mask M t ', get the label
[0077] Specifically, step S242 includes:
[0078] Step a, accumulating a first number of the decrypted predicted labels whose label values are equal to a first preset value, and a second number of the predicted labels whose label values are equal to a second preset value;
[0079] Step b: determining a target label corresponding to the second sample based on the first quantity and the second quantity.
[0080] In this embodiment, the label is used to mark whether the sample data is abnormal or normal. Each sample data owned by terminal t N candidate labels are obtained, of which N-1 candidate labels are predicted labels decrypted from other terminals. Another candidate label is terminal t through model f t For samples Labels to be proofread obtained by labeling Terminal t determines the sample based on N candidate labels by majority voting. Target label Specifically, each candidate label has only two possible values: one is normal and the other is abnormal. Furthermore, the number of normal label values and the number of abnormal label values are counted, and the majority vote is used to decide the value of each sample. The target label, that is, if the sample If more than half of the N labels are abnormal, we set the target label of the sample as abnormal, otherwise, we set the target label of the sample as normal.
[0081] The label completion method based on cross-validation proposed in this embodiment obtains a second prediction model by training based on the first sample, the first label corresponding to the first sample, the second sample, and the label to be proofread corresponding to the second sample, and then encrypts the second prediction model based on a preset encryption algorithm, and sends the encrypted second prediction model to the second terminal in the communication system, and then generates a preset number of encrypted prediction labels based on the second sample and the encrypted prediction model when receiving the encrypted prediction model corresponding to the second terminal, and finally determines the target label corresponding to the second sample based on the encrypted prediction label. By cross-validating the label to be proofread corresponding to the second sample between all terminals, the calibration of the label to be proofread is achieved, and at the same time, the bias of the label to be proofread to the local prediction model is reduced, thereby improving the accuracy of the label.
[0082] The present invention further provides a label completion device based on cross-validation, referring to Figure 8 , Figure 8 It is a schematic diagram of functional modules of an embodiment of a label completion device based on cross-validation of the present invention.
[0083] Prediction module 10, the first terminal generates a to-be-proofread label corresponding to the second sample based on the first sample, the first label corresponding to the first sample, and the second sample;
[0084] Processing module 20, the first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm.
[0085] Furthermore, the prediction module 10 is also used for:
[0086] A first prediction model is obtained by training based on the first sample and the first label;
[0087] The label to be proofread is generated based on the first prediction model and the second sample.
[0088] Furthermore, the processing module 20 is also used for:
[0089] A second prediction model is obtained by training based on the first sample, the first label corresponding to the first sample, the second sample, and the label to be proofread corresponding to the second sample;
[0090] Encrypting the second prediction model based on a preset encryption algorithm, and sending the encrypted second prediction model to the second terminal in the communication system respectively;
[0091] Upon receiving the encrypted prediction model corresponding to the second terminal, generating a preset number of encrypted prediction labels based on the second sample and the encrypted prediction model;
[0092] A target label corresponding to the second sample is determined based on the encrypted predicted label.
[0093] Furthermore, the label completion device based on cross-validation includes:
[0094] A sending module randomly obfuscates the encrypted prediction labels, and sends the randomly obfuscated encrypted prediction labels to terminals corresponding to the encrypted prediction labels for decryption, so as to obtain decrypted prediction labels;
[0095] The determination module determines, upon receiving a preset number of decrypted prediction labels, a target label corresponding to the second sample based on each decrypted prediction label.
[0096] Furthermore, the determining module is also used for:
[0097] Accumulating a first number of the decrypted predicted labels whose label values are equal to a first preset value and a second number of the predicted labels whose label values are equal to a second preset value;
[0098] A target label corresponding to the second sample is determined based on the first quantity and the second quantity.
[0099] In addition, an embodiment of the present invention further proposes a storage medium, on which a cross-validation-based label completion program is stored. When the cross-validation-based label completion program is executed by a processor, the steps of the cross-validation-based label completion method in the above-mentioned embodiments are implemented.
[0100] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0101] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0102] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for a system device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0103] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A label completion method based on cross-validation, characterized in that: Applied to a communication system, the communication system includes a plurality of terminals, and the label completion method based on cross-validation includes the following steps: The first terminal generates a to-be-proofread label corresponding to the second sample based on the first sample, the first label corresponding to the first sample, and the second sample, wherein the step of the first terminal generating the to-be-proofread label corresponding to the second sample based on the first sample, the first label corresponding to the first sample, and the second sample includes: A first prediction model is obtained by training based on the first sample and the first label; Generate the to-be-proofread label based on the first prediction model and the second sample, wherein the first sample is a labeled sample and the second sample is an unlabeled sample; The first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm, The step of the first terminal determining the target label corresponding to the second sample based on the second sample, the label to be proofread, and a cross-validation algorithm includes: A second prediction model is obtained by training based on the first sample, the first label corresponding to the first sample, the second sample, and the label to be proofread corresponding to the second sample; Encrypting the second prediction model based on a preset encryption algorithm, and sending the encrypted second prediction model to the second terminal in the communication system respectively; Upon receiving the encrypted prediction model corresponding to the second terminal, generating a preset number of encrypted prediction labels based on the second sample and the encrypted prediction model; A target label corresponding to the second sample is determined based on the encrypted predicted label.
2. The label completion method based on cross-validation according to claim 1, characterized in that: The step of determining the target label corresponding to the second sample based on the encrypted predicted label includes: Randomly obfuscate the encrypted prediction labels, and send the randomly obfuscated encrypted prediction labels to terminals corresponding to the encrypted prediction labels for decryption, so as to obtain decrypted prediction labels; When a preset number of decrypted prediction labels are received, a target label corresponding to the second sample is determined based on each of the decrypted prediction labels.
3. The label completion method based on cross-validation as claimed in claim 2, characterized in that: The step of determining the target label corresponding to the second sample based on each decrypted prediction label when receiving a preset number of decrypted prediction labels comprises: Accumulating a first number of the decrypted predicted labels whose label values are equal to a first preset value and a second number of the predicted labels whose label values are equal to a second preset value; A target label corresponding to the second sample is determined based on the first quantity and the second quantity.
4. A label completion device based on cross-validation, characterized in that: The label completion device based on cross-validation includes: A prediction module, wherein the first terminal generates a label to be proofread corresponding to the second sample based on a first sample, a first label corresponding to the first sample, and a second sample, wherein the prediction module is specifically used to obtain a first prediction model based on the first sample and the first label training; and to generate the label to be proofread based on the first prediction model and the second sample, wherein the first sample is a labeled sample and the second sample is an unlabeled sample; A processing module, wherein the first terminal determines a target label corresponding to the second sample based on the second sample, the label to be proofread and a cross-validation algorithm, and the processing module is specifically used to train a second prediction model based on the first sample, the first label corresponding to the first sample, the second sample and the label to be proofread corresponding to the second sample; encrypt the second prediction model based on a preset encryption algorithm, and send the encrypted second prediction model to the second terminal in the communication system respectively; when receiving the encrypted prediction model corresponding to the second terminal, generate a preset number of encrypted prediction labels based on the second sample and the encrypted prediction model; and determine the target label corresponding to the second sample based on the encrypted prediction label.
5. The label completion device based on cross-validation according to claim 4, characterized in that: The label completion device based on cross-validation includes: A sending module randomly obfuscates the encrypted prediction labels, and sends the randomly obfuscated encrypted prediction labels to terminals corresponding to the encrypted prediction labels for decryption, so as to obtain decrypted prediction labels; The determination module determines, upon receiving a preset number of decrypted prediction labels, a target label corresponding to the second sample based on each decrypted prediction label.
6. The label completion device based on cross-validation according to claim 5, characterized in that: The determining module is also used for: Accumulating a first number of the decrypted predicted labels whose label values are equal to a first preset value and a second number of the predicted labels whose label values are equal to a second preset value; A target label corresponding to the second sample is determined based on the first quantity and the second quantity.
7. A terminal, characterized in that: The terminal includes: a memory, a processor, and a cross-validation-based label completion program stored in the memory and executable on the processor, wherein the cross-validation-based label completion program implements the steps of the cross-validation-based label completion method as described in any one of claims 1 to 3 when executed by the processor.
8. A storage medium, characterized in that: The storage medium stores the cross-validation-based label completion program, and when the cross-validation-based label completion program is executed by the processor, the steps of the cross-validation-based label completion method according to any one of claims 1 to 3 are implemented.
