Data processing method, device, equipment and medium for federated feature engineering

By introducing trusted third parties and homomorphic encryption technology, the data in federated learning is encrypted, which solves the data security and privacy issues in federated feature engineering and achieves the security and effectiveness of data sharing and feature engineering.

CN113722744BActive Publication Date: 2024-09-24JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111078529.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-15
Publication Date
2024-09-24
Estimated Expiration
2041-09-15

AI Technical Summary

Technical Problem

In federated learning, data parties and business parties have data security and privacy issues during the feature engineering process, and cannot effectively share and utilize data, resulting in data leakage risks and limited model prediction capabilities during the feature binning process.

Method used

By introducing a trusted third party, homomorphic encryption technology is used to process sample identification and ciphertext labels, ensuring that the data is feature bucketed and parameter calculated in an encrypted state, avoiding plaintext data transmission, and ensuring data security and privacy.

Benefits of technology

It realizes the completion of feature engineering calculations on the basis of ensuring data security, improves the security of data sharing and the prediction ability of the model, avoids the risk of data leakage, and enhances the security and privacy of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113722744B
    Figure CN113722744B
Patent Text Reader

Abstract

The present disclosure provides a data processing method, device, equipment and medium for federated feature engineering, which relates to the field of deep learning. The specific implementation scheme is: receiving the first sample identification of the sample data sent by the business party, the ciphertext label corresponding to the first sample identification, and the second sample identification of the sample data sent by the data party; determining the target sample identification to be sent to the data party according to the first sample identification and the second sample identification; determining the target ciphertext label to be sent to the data party according to the ciphertext label and the target sample identification; in response to receiving the sum of the first label and the sum of the second label of each bucket calculated after the data party performs feature bucketing based on the target sample identification and the target ciphertext label, based on the target ciphertext label, the sum of the first label of each bucket and the sum of the second label, calculate and output the parameters corresponding to the target sample identification. This implementation method can improve the security in the data sharing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the fields of deep learning and data processing, and in particular to data processing methods, devices, equipment and media for federated feature engineering. Background Art

[0002] In order to solve the problems of data silos and data privacy security, the current mainstream method is to use federated learning to jointly train different data to obtain better models to solve practical problems. Federated learning is divided into horizontal federated learning, vertical federated learning, and transfer learning according to the distribution of data. Among them, vertical federated learning is widely used. For example, in financial scenarios, banks and other financial institutions contain credit labels, and e-commerce platforms have user consumption data. There is an intersection between the users of both parties. Banks can use e-commerce data to predict credit risks, but the two parties cannot share data. At this time, vertical federated learning can be used to solve such problems. Summary of the invention

[0003] The present disclosure provides a data processing method, apparatus, device and medium for federated feature engineering.

[0004] According to a first aspect, a data processing method for federated feature engineering is provided, including: receiving a first sample identifier of sample data sent by a business party, a ciphertext label corresponding to the first sample identifier, and a second sample identifier of sample data sent by a data party, the ciphertext label including a first label and a second label; determining a target sample identifier to be sent to the data party based on the first sample identifier and the second sample identifier; determining a target ciphertext label to be sent to the data party based on the ciphertext label and the target sample identifier; in response to receiving a sum of the first labels and the sum of the second labels of each bucket calculated after feature bucketing based on the target sample identifier and the target ciphertext label, calculating and outputting parameters corresponding to the target sample identifier based on the target ciphertext label, the sum of the first labels of each bucket, and the sum of the second labels.

[0005] According to a second aspect, a data processing device for federated feature engineering is provided, comprising: a data receiving unit, configured to receive a first sample identifier of sample data sent by a business party, a ciphertext label corresponding to the first sample identifier, and a second sample identifier of sample data sent by a receiving data party, the ciphertext label comprising a first label and a second label; an identifier sending unit, configured to determine a target sample identifier to send to the data party based on the first sample identifier and the second sample identifier; a label sending unit, configured to determine a target ciphertext label to send to the data party based on the ciphertext label and the target sample identifier; an information output unit, configured to calculate and output parameters corresponding to the target sample identifier based on the target ciphertext label, the sum of the first labels of each bucket, and the sum of the second labels, in response to receiving a sum of the first labels and the sum of the second labels of each bucket calculated after feature bucketing based on the target sample identifier and the target ciphertext label.

[0006] According to a third aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the at least one processor is executed to enable the at least one processor to execute the method described in the first aspect.

[0007] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to execute the method as described in the first aspect.

[0008] According to a fifth aspect, a computer program product comprises a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0009] The technology disclosed in the present invention can realize data sharing while ensuring the security of data of both parties.

[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0012] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0013] Figure 2 is a flow chart of an embodiment of a data processing method for federated feature engineering according to the present disclosure;

[0014] Figure 3 is a schematic diagram of an application scenario of the data processing method for federated feature engineering according to the present disclosure;

[0015] Figure 4 is a flow chart of another embodiment of a data processing method for federated feature engineering according to the present disclosure;

[0016] Figure 5 yes Figure 4 A schematic diagram of a three-party interaction process in the illustrated embodiment;

[0017] Figure 6 is a structural schematic diagram of an embodiment of a data processing device for federated feature engineering according to the present disclosure;

[0018] Figure 7 It is a block diagram of an electronic device used to implement the data processing method for federated feature engineering in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

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

[0021] In the process of traditional machine learning, feature engineering is an indispensable part. Common feature engineering processing methods include data preprocessing, feature selection, and feature dimension reduction. After completing data preprocessing, it is necessary to select meaningful features to train the model. Common indicators such as WOE (Weight Of Evidence) and IV (Information Value) are usually used to analyze the predictive ability of each feature for the label. In the process of calculating WOE and IV values, it is necessary to bin the data, that is, to discretize continuous variables so that the model can be iterated quickly, which can reduce the risk of model overfitting and is a commonly used data preprocessing method.

[0022] In federated feature engineering, there are usually two parties, the party with labels is the Guest (business party), and the party without labels that only provides feature data is the Host (data party). The Guest hopes to expand the feature dimension of the data through federation. During the data interaction between the two parties, there is no transmission of plaintext data, the Host cannot obtain labels, and the Guest does not know the feature values ​​of the Host, thus completing the calculation of feature engineering while ensuring the security and privacy of both parties.

[0023] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of a data processing method for federated feature engineering or a data processing device for federated feature engineering disclosed in the present invention can be applied.

[0024] like Figure 1 As shown, the system architecture 100 may include a business party 101, a third party 102, and a data party 103. The business party 101 and the third party 102, as well as the third party 102 and the data party 103, may be connected to each other through a network. The network may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0025] The business party 101 and the data party 103 may have relevant data for the same object, for example, the business party 101 may be a clothing production factory, and the data party 103 may be a clothing sales website. The third party 102 may be a party independent of the business party 101 and the data party 103, and may be a trusted party. In order to avoid data security risks that may be caused by the business party 101 and the data party 103 during the data interaction process, in this embodiment, the business party 101 and the data party 103 may both send data to the third party 102 to improve data security.

[0026] It should be noted that the business party 101, the third party 102 and the data party 103 can be hardware or software. When the business party 101, the third party 102 and the data party 103 are hardware, they can be implemented as a distributed server cluster composed of multiple electronic devices, or as a single server. When the business party 101, the third party 102 and the data party 103 are software, they can be implemented as multiple software or software modules (for example, used to provide distributed services), or as a single software or software module. No specific limitation is made here.

[0027] It should be noted that the data processing method for federated feature engineering provided in the embodiment of the present disclosure is generally performed by the third party 102. Accordingly, the data processing device for federated feature engineering is generally set in the third party 102.

[0028] It should be understood that Figure 1The number of business parties, third parties, and data parties in the embodiment is only for illustration. Any number of business parties, third parties, and data parties may be provided according to implementation requirements.

[0029] Continue to refer Figure 2 , which shows a process 200 of an embodiment of a data processing method for federated feature engineering according to the present disclosure. The data processing method for federated feature engineering of this embodiment includes the following steps:

[0030] Step 201: Receive a first sample identifier of sample data sent by a business party, a ciphertext label corresponding to the first sample identifier, and a second sample identifier of sample data sent by a data party, where the ciphertext label includes a first label and a second label.

[0031] In this embodiment, the execution subject of the data processing method for federated feature engineering (e.g. Figure 1 The third party 102 shown) can receive data from the business party and the data party respectively. Specifically, the execution subject can receive the first sample identifier of the sample data from the business party, and receive the second sample identifier of the sample data from the data party. Here, the first sample identifier and the second sample identifier are both strings used to identify the sample data. The business party and the data party can encrypt the identifier of the original sample data to obtain the first sample identifier and the second sample identifier. The encryption here can adopt homomorphic encryption. Homomorphic encryption is a form of encryption that allows people to perform specific forms of algebraic operations on ciphertext, allowing people to perform operations such as retrieval and comparison in encrypted data without decrypting the data. The execution subject can also receive a ciphertext label from the business party. Here, the ciphertext label includes a first label and a second label. The first label and identifies a positive sample, and the second label can represent a negative sample.

[0032] Step 202: Determine a target sample identifier based on the first sample identifier and the second sample identifier and send it to the data source.

[0033] In this embodiment, after receiving the first sample identifier and the second sample identifier, the execution subject can perform various processing on the first sample identifier and the second sample identifier respectively to determine the same sample identifier in the first sample identifier and the second sample identifier as the target sample identifier, and send the target sample identifier only to the data party. Specifically, the above processing can be decryption, hash operation and other processing. In this embodiment, the execution subject directly sends the target sample identifier only to the data party, which can avoid the business party's guessing of the data party's original data based on the target sample identifier, thereby improving the security of the data.

[0034] Step 203: According to the ciphertext label and the target sample identifier, a target ciphertext label is determined and sent to the data source.

[0035] After determining the target sample identifier, the execution subject can also determine the label corresponding to the target sample identifier from the above ciphertext label as the target ciphertext label. Specifically, the ciphertext label includes the correspondence between the label and the first sample identifier. According to the above correspondence, the execution subject can search the ciphertext label to determine the target ciphertext label. The above target ciphertext label is sent to the data party.

[0036] Step 204, in response to receiving the sum of the first labels and the sum of the second labels of each bucket calculated by the data party after feature bucketing based on the target sample identifier and the target ciphertext label, calculate and output the parameters corresponding to the target sample identifier based on the target ciphertext label, the sum of the first labels of each bucket, and the sum of the second labels.

[0037] After receiving the above-mentioned target sample identifier and target ciphertext label, the data party can feature bucket the original data, that is, divide the original data into multiple buckets (bins). The data in each bucket corresponds to a sample identifier. The data party can perform calculations based on the sample identifier and ciphertext label corresponding to the data in each bucket to obtain the sum of the first label and the sum of the second label of each bucket. Then, the calculated data is sent to the execution entity. After receiving the above-mentioned data, the execution entity can calculate the parameters corresponding to the target sample identifier in combination with the target ciphertext label. Specifically, the above-mentioned parameters may include WOE values ​​and IV values. The execution entity can determine the number of positive labels and the number of negative labels from the target ciphertext label. According to the calculation formula of the WOE value and the IV value, the above-mentioned parameters are calculated.

[0038] Continue to see Figure 3 , which shows a schematic diagram of an application scenario of the data processing method for federated feature engineering according to the present disclosure. Figure 3 In the application scenario, the bank 301 sends the sample ID of the user's sample data and the encrypted credit tag to the third party 302, and the e-commerce platform 303 sends the sample ID of the user's consumption data to the third party 302. After the third party 302 performs the processing of steps 201 to 204, it calculates the WOE value and IV value. And according to the above two parameter values, a meaningful feature training model is selected for credit risk prediction.

[0039] The data processing method for federated feature engineering provided by the above-mentioned embodiment of the present disclosure can improve the security of data by introducing a third party into the business party and the data party.

[0040] Continue to see Figure 4 , which shows a process 400 of another embodiment of a data processing method for federated feature engineering according to the present disclosure. Figure 4 As shown, the method of this embodiment may include the following steps:

[0041] Step 401: Receive a first sample identifier of sample data sent by a business party, a ciphertext tag corresponding to the first sample identifier, and a second sample identifier of sample data sent by a data party.

[0042] Step 402: align the first sample identifier and the second sample identifier, determine the sample identifier shared by the business party and the data party as the target sample identifier and send it to the data party.

[0043] In this embodiment, the execution subject can align the first sample identifier and the second sample identifier. Specifically, the execution subject can use an existing sample ID alignment scheme to implement it, such as encrypted sample ID alignment based on RSA encryption / decryption algorithm and hash algorithm, encrypted sample ID alignment based on Diffie-Hellman, etc. After alignment, the execution subject can determine the sample identifier shared by the first sample identifier and the second sample identifier as the target sample identifier. And send the target sample identifier to the data party.

[0044] Step 403: According to the ciphertext label and the target sample identifier, a target ciphertext label is determined and sent to the data source.

[0045] In this embodiment, the business party can generate a public-private key pair before sending the ciphertext label. And send the public key to the execution subject. Then, use the public key to encrypt the original label to obtain the ciphertext label. Here, the ciphertext label can be in the form of { <y>,<1-y>}. <y>can be called the first label, and <1-y> can be called the second label. Then, the execution subject can <y>,<1-y>} to determine the target ciphertext label, with {<y_n> ,<1-y_n>}.

[0046] Step 404: The data receiving party performs feature bucketing based on the target sample identifier and the target ciphertext label and calculates the sum of the first label and the sum of the second label of each bucket.

[0047] After receiving the target sample identifier and the target ciphertext label, the data party can perform feature bucketing and calculate the sum of the first label and the sum of the second label of each bucket. The sum of the first label can be recorded as sum(<y_bin_i> ), the sum of the second label can be recorded as sum(<1-y_bin_i>). The data provider can record {sum(<y_bin_i> ),sum(<1-y_bin_i>)} is sent to the execution entity.

[0048] Step 405: Determine the sum of positive labels and the sum of negative labels according to the target ciphertext label.

[0049] In this embodiment, the execution subject can split and count the target ciphertext label to determine the sum of samples with the same label. After analysis, the execution subject can determine the sum of positive labels and the sum of negative labels.

[0050] In some optional implementations of this embodiment, the execution entity may calculate the sum of positive labels and the sum of negative labels through the following steps:

[0051] Step 4051, determining the sum of the first label and the sum of the second label in the target ciphertext label.

[0052] Step 4052, respectively add the sum of the first labels and the randomly generated first mask, and add the sum of the second labels and the randomly generated second mask, encrypt the two sum values ​​and send them to the business party.

[0053] Step 4053: The receiving business party decrypts the two encrypted sum values ​​to obtain the first data, and determines the sum of the positive labels and the sum of the negative labels based on the first data and the first mask and the second mask.

[0054] In this implementation, the execution subject may first determine the first label and the second label in the target ciphertext label, and then calculate the sum of the first label sum(<y_n> ) and the sum of the second label sum(<1-y_n>). Then, the execution subject can randomly generate two masks, which are recorded as the first mask and<mask_a> , Second Mask<mask_b> . Add the sum of the first label and the randomly generated first mask, and add the sum of the second label and the randomly generated second mask, and encrypt with the public key to obtain the data {sum(<y_n> )+<mask_a> ,sum(<1-y_n>)+<mask_b>}. And send the above data to the business party. The business party can decrypt the above data and get Dec(sum(<y_n> )+<mask_a> ) and Dec(sum(<1-y_n>)+<mask_b> ). The business party can use the private key paired with the above public key to decrypt. Then, the business party sends the above data to the execution entity. The execution entity subtracts the corresponding first mask and second mask from the above data to obtain the sum of positive labels pos_total and the sum of negative labels neg_total.

[0055] Step 406: Determine the number of positive labels and the number of negative labels in each bucket according to the sum of the first labels and the sum of the second labels in each bucket.

[0056] In this embodiment, the execution entity can directly use the sum of the first labels of each bucket as the number of positive labels of each bucket, and use the sum of the second labels of each bucket as the number of negative labels of each bucket.

[0057] In some optional implementations of this embodiment, the execution entity may calculate the number of positive labels and the number of negative labels in each bucket through the following steps:

[0058] Step 4061, respectively add the sum of the first labels of each bucket to the randomly generated third mask, and add the sum of the second labels of each bucket to the randomly generated fourth mask, encrypt the two sum values ​​and send them to the business party.

[0059] Step 4062: The receiving business party obtains the second data after decrypting the two encrypted sum values, and determines the number of positive labels and the number of negative labels in each bucket according to the second data and the third mask and the fourth mask.

[0060] In this implementation, the executive host station may first generate a plurality of third masks and a plurality of fourth masks, which are respectively recorded as<mask_c> and<mask_d> Then, the execution entity can receive the sum of the first labels of each bucket from the data source (sum(<y_bin_i> ) and the third mask<mask_c> Add, and add the sum of the second labels of each bucket sum(<1-y_bin_i>) to the fourth mask<mask_d> Add and encrypt using the public key to get the data {sum(<y_bin_i> )+<mask_c> ,sum(<1-y_bin_i>)+<mask_d> Then, the execution subject can send the above data to the business party. After obtaining the above data, the business party can use the private key paired with the above public key to decrypt it and obtain the data Dec(sum(<y_bin_i> )+<mask_c> ) and Dec(sum(<1-y_bin_i>)+<mask_d> ). The business party can send the above data to the execution entity, and the execution entity can obtain the number of positive labels npos_i and the number of negative labels nneg_i for each bucket by subtracting the corresponding mask from the above data.

[0061] Step 407 : Calculate and output the parameters corresponding to the target sample identifier according to the sum of the positive labels, the sum of the negative labels, and the number of positive labels and the number of negative labels in each bucket.

[0062] After obtaining the sum of positive labels pos_total, the sum of negative labels neg_total, and the number of positive labels npos_i and the number of negative labels nneg_i in each bucket, the execution subject can use the above parameter values ​​to calculate the parameters corresponding to the target sample identification, such as the WOE value and the IV value.

[0063] In some optional implementations of this embodiment, the execution subject may calculate the above parameters through the following steps:

[0064] Step 4071, calculate and output the parameters corresponding to the target sample identification according to the sum of the positive labels, the sum of the negative labels, the number of positive labels and the number of negative labels in each bucket, and at least two pre-set parameters.

[0065] In the prior art, the calculation of the WOE value can be achieved by the following formula (1), and the calculation of the IV value can be achieved by the following formula (2):

[0066]

[0067]

[0068] Among them, npos i is the number of positive samples in the i-th bin, nneg i is the number of negative samples in the i-th bin, pos total is the total number of positive samples, neg total is the total number of negative samples. When the business party’s data is of the same category, pos total =0 or neg total =0, WOE value and IV value cannot be calculated. Data convenience can be used to know that the data provided by the business party is of the same category, so the data label can be inferred, which poses a risk of data leakage.

[0069] In this implementation, the above formula (1) and formula (2) can be improved to obtain formula (3) and formula (4) as follows:

[0070]

[0071]

[0072] Among them, ε and δ are both preset values, 0<ε<1, 0<δ<0.02.

[0073] Considering that there may be samples of the same category in the bins when the features are binned, and that the labels of the feature data provided by the data party may belong to the same category, formula (3) can not only not affect the WOE value under normal circumstances where WOE can be calculated, but also calculate a WOE value under special circumstances, and will not affect the subsequent calculation of the IV value. Similarly, when the total number of positive and negative samples is large enough, formula (4) can not only not affect the IV value under normal circumstances where IV can be calculated, but also calculate the IV value of δ when the labels of the feature data provided by the data party belong to the same category. Usually in practical applications, when the IV value is less than 0.02, the predictive power of the feature variable is almost zero. This can not only make it impossible for the data party to judge from the IV value that the data he provided belongs to the same category, but also indicate that the predictive power of the feature variable is extremely small, thereby achieving the purpose of not leaking the Guest party label.

[0074] In some optional implementations of this embodiment, the execution entity may output the obtained parameters to the data party, so that the business party cannot know the WOE value and IV value, thereby preventing the business party from obtaining information about the data value of the data party.

[0075] Continue to see Figure 5 , which shows a schematic diagram of the interaction process of the three parties (Guest, third party and Host) in this embodiment. Figure 5 As shown, the specific steps of federated feature engineering can be as follows:

[0076] 1. The Guest and Host transmit the encrypted sample ID to a trusted third party, which aligns the encrypted samples to obtain a sample ID shared by both parties. Encryption methods include but are not limited to asymmetric encryption, hashing algorithms, homomorphic encryption, etc. The trusted third party can distribute public keys to the Guest and Host, and the Guest and Host use the public key to encrypt the sample ID and transmit it to the trusted third party, which uses the private key to decrypt and align the samples. The Guest and Host can also perform hash operations on the sample ID and let the trusted third party calculate and compare the hash values ​​to obtain aligned samples.

[0077] 2. The trusted third party sends the aligned sample ID to the host, and the host bins the aligned sample features.

[0078] 3. The guest encrypts the label and sends it to the trusted third party, which then sends the aligned ciphertext label to the host.

[0079] 4. The trusted third party sends the aligned ciphertext positive and negative labels plus different masks to the guest for decryption, and subtracts the mask from the returned result to get the sum of the positive and negative labels.

[0080] 5. The host calculates the number of positive and negative labels of the ciphertext for each feature bucket and sends it to the trusted third party.

[0081] 6. The trusted third party adds different masks to the result of the feature bucket calculation and transmits it to the guest for decryption, and subtracts the mask from the returned result to obtain the number of positive and negative labels under each feature bucket.

[0082] 7. The trusted third party calculates the WOE and IV value based on the results of steps 4 and 6, and finally transmits the IV value of each feature to the Host for storage.

[0083] The data processing method of federated feature engineering provided by the above-mentioned embodiment of the present disclosure uses a trusted third party to align the data, and sends the aligned sample ID only to the Host. In the process of obtaining the aligned data samples and calculating the sum of the positive and negative labels, a mask is added so that the Guest cannot know the proportion of the Host's data sample labels. And when calculating the number of positive and negative labels under each feature bucket, the same method of adding a mask is used, so that the Guest cannot obtain the Host's data information. Finally, the third party calculates the WOE and IV values ​​of the features provided by the Host, ensuring that the Guest cannot obtain information about the value of the Host's data.

[0084] Further references Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a data processing device for federated feature engineering. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0085] like Figure 6 As shown, the data processing device 600 for federated feature engineering in this embodiment includes: a data receiving unit 601, an identification sending unit 602, a label sending unit 603 and an information output unit 604.

[0086] The data receiving unit 601 is configured to receive a first sample identifier of sample data sent by a business party, a ciphertext label corresponding to the first sample identifier, and a second sample identifier of sample data sent by a data receiving party, wherein the ciphertext label includes a first label and a second label.

[0087] The identification sending unit 602 is configured to determine a target sample identification according to the first sample identification and the second sample identification and send the target sample identification to the data source.

[0088] The label sending unit 603 is configured to determine a target ciphertext label according to the ciphertext label and the target sample identifier and send it to the data source.

[0089] The information output unit 604 is configured to calculate and output the parameters corresponding to the target sample identifier based on the target ciphertext label, the sum of the first labels of each bucket, and the sum of the second labels in response to receiving the sum of the first labels and the sum of the second labels of each bucket calculated by the data party after feature bucketing based on the target sample identifier and the target ciphertext label.

[0090] In some optional implementations of this embodiment, the identifier sending unit 602 may be further configured to: align the first sample identifier and the second sample identifier, determine the sample identifier shared by the business party and the data party as the target sample identifier and send it to the data party.

[0091] In some optional implementations of this embodiment, the information output unit 604 can be further configured to: determine the sum of positive labels and the sum of negative labels based on the target ciphertext label; determine the number of positive labels and the number of negative labels in each bucket based on the sum of the first labels and the sum of the second labels in each bucket; calculate and output parameters corresponding to the target sample identification based on the sum of positive labels, the sum of negative labels, and the number of positive labels and the number of negative labels in each bucket.

[0092] In some optional implementations of the present embodiment, the information output unit 604 may be further configured to: determine the sum of the first label and the sum of the second label in the target ciphertext label; respectively add the sum of the first label and the randomly generated first mask, and add the sum of the second label and the randomly generated second mask, and encrypt the two sum values ​​and send them to the business party; receive the first data obtained by decrypting the two encrypted sum values ​​by the business party, and determine the sum of the positive labels and the sum of the negative labels based on the first data and the first mask and the second mask.

[0093] In some optional implementations of the present embodiment, the information output unit 604 may be further configured to: respectively add the sum of the first labels of each bucket to a randomly generated third mask, and add the sum of the second labels of each bucket to a randomly generated fourth mask, encrypt the two sum values, and send them to the business party; receive the second data obtained after the business party decrypts the two encrypted sum values, and determine the number of positive labels and the number of negative labels of each bucket based on the second data and the third mask and the fourth mask.

[0094] In some optional implementations of this embodiment, the information output unit 604 can be further configured to calculate and output parameters corresponding to the target sample identification based on the sum of positive labels, the sum of negative labels, the number of positive labels and the number of negative labels in each bucket, and at least two pre-set parameters.

[0095] In some optional implementations of this embodiment, the information output unit 604 may be further configured to: output the at least one calculated parameter to the data party.

[0096] In some optional implementations of this embodiment, the apparatus 600 may further include: Figure 6 The encryption unit not shown in the figure is configured to: receive the public key sent by the business party; encrypt using the public key so that the business party can decrypt according to the private key paired with the public key.

[0097] It should be understood that the units 601 to 605 described in the data processing device 600 for federated feature engineering are respectively the same as those in the reference Figure 2 Therefore, the operations and features described above for the data processing method for federated feature engineering are also applicable to the device 600 and the units contained therein, and will not be described in detail here.

[0098] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0099] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0100] Figure 7 A block diagram of an electronic device 700 that performs a data processing method for federated feature engineering according to an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0101] like Figure 7 As shown, the electronic device 700 includes a processor 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a memory 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 can also be stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An I / O interface (input / output interface) 705 is also connected to the bus 704.

[0102] Multiple components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a memory 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0103] The processor 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 701 performs the various methods and processes described above, such as a data processing method for federated feature engineering. For example, in some embodiments, the data processing method for federated feature engineering may be implemented as a computer software program, which is tangibly contained in a machine-readable storage medium, such as a memory 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the processor 701, one or more steps of the data processing method for federated feature engineering described above may be performed. Alternatively, in other embodiments, the processor 701 may be configured to perform the data processing method for federated feature engineering in any other appropriate manner (e.g., by means of firmware).

[0104] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0105] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. The above program code can be packaged into a computer program product. These program codes or computer program products can be provided to a processor or controller of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the processor 701, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine, or completely on a remote machine or server.

[0106] In the context of the present disclosure, a machine-readable storage medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable storage medium may be a machine-readable signal storage medium or a machine-readable storage medium. A machine-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0107] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0108] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0109] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0110] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this document is not limited here.

[0111] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.< / y> < / y> < / y>

Claims

1. A data processing method for federated feature engineering, applied to a third party, comprising: Receiving a first sample identifier of sample data sent by a business party, a ciphertext label corresponding to the first sample identifier, and a second sample identifier of sample data sent by a data party, wherein the ciphertext label includes a first label and a second label; Determine a target sample identifier according to the first sample identifier and the second sample identifier and send it to the data party; Determine a target ciphertext label according to the ciphertext label and the target sample identifier and send it to the data party; In response to receiving the sum of the first labels and the sum of the second labels of each bucket calculated by the data party after feature bucketing based on the target sample identifier and the target ciphertext label, based on the target ciphertext label, the sum of the first labels of each bucket, the sum of the second labels and at least two pre-set parameters, calculate and output the parameters corresponding to the target sample identifier.

2. The method according to claim 1, wherein: The step of determining a target sample identifier according to the first sample identifier and the second sample identifier and sending the target sample identifier to the data party includes: The first sample identifier and the second sample identifier are aligned, and a sample identifier common to the business party and the data party is determined as a target sample identifier and sent to the data party.

3. The method according to claim 1, wherein: The calculating and outputting the parameter corresponding to the target sample identifier based on the target ciphertext label, the sum of the first label of each bucket, the sum of the second label, and at least two preset parameters includes: Determine the sum of positive labels and the sum of negative labels according to the target ciphertext labels; Determine the number of positive labels and negative labels for each bucket based on the sum of the first labels and the sum of the second labels for each bucket; According to the sum of the positive labels, the sum of the negative labels, the number of positive labels in each bucket, the number of negative labels, and at least two preset parameters, the parameter corresponding to the target sample identifier is calculated and output.

4. The method according to claim 3, wherein: The determining the sum of positive labels and the sum of negative labels according to the target ciphertext labels includes: Determine the sum of the first label and the sum of the second label in the target ciphertext label; respectively adding the sum of the first labels and the randomly generated first mask, and adding the sum of the second labels and the randomly generated second mask, encrypting the two obtained sum values ​​and sending them to the service party; Receive first data obtained by the business party decrypting the two encrypted sum values, and determine the sum of the positive labels and the sum of the negative labels according to the first data and the first mask and the second mask.

5. The method according to claim 3, wherein: The determining the number of positive labels and the number of negative labels of each bucket according to the sum of the first labels and the sum of the second labels of each bucket includes: The sum of the first labels of each bucket is added to the randomly generated third mask, and the sum of the second labels of each bucket is added to the randomly generated fourth mask, and the two obtained sum values ​​are encrypted and sent to the business party; Receive the second data obtained by the business party after decrypting the two encrypted sum values, and determine the number of positive labels and the number of negative labels in each bucket according to the second data and the third mask and the fourth mask.

6. The method according to any one of claims 1 to 5, wherein: The calculating and outputting the parameters corresponding to the target sample identifier includes: The at least one calculated parameter is output to the data party.

7. The method according to claim 4 or 5, wherein: The method further comprises: Receiving the public key sent by the business party; The public key is used for encryption, so that the business party can decrypt the information according to the private key paired with the public key.

8. A data processing device for federated feature engineering, comprising: A data receiving unit, configured to receive a first sample identifier of sample data sent by a business party, a ciphertext label corresponding to the first sample identifier, and a second sample identifier of sample data sent by a data receiving party, wherein the ciphertext label includes a first label and a second label; an identification sending unit, configured to determine a target sample identification according to the first sample identification and the second sample identification, and send the target sample identification to the data party; A label sending unit is configured to determine a target ciphertext label and send it to the data party according to the ciphertext label and the target sample identifier; The information output unit is configured to calculate and output the parameters corresponding to the target sample identifier based on the target ciphertext label, the sum of the first labels of each bucket, the sum of the second labels, and at least two pre-set parameters in response to receiving the sum of the first labels and the sum of the second labels of each bucket calculated by the data party after feature bucketing based on the target sample identifier and the target ciphertext label.

9. The device according to claim 8, wherein: The identification sending unit is further configured to: The first sample identifier and the second sample identifier are aligned, and a sample identifier common to the business party and the data party is determined as a target sample identifier and sent to the data party.

10. The device according to claim 8, wherein: The information output unit is further configured to: Determine the sum of positive labels and the sum of negative labels according to the target ciphertext labels; Determine the number of positive labels and negative labels for each bucket based on the sum of the first labels and the sum of the second labels for each bucket; According to the sum of the positive labels, the sum of the negative labels, the number of positive labels in each bucket, the number of negative labels, and at least two preset parameters, the parameter corresponding to the target sample identifier is calculated and output.

11. The device according to claim 10, wherein: The information output unit is further configured to: Determine the sum of the first label and the sum of the second label in the target ciphertext label; respectively adding the sum of the first labels and the randomly generated first mask, and adding the sum of the second labels and the randomly generated second mask, encrypting the two obtained sum values ​​and sending them to the service party; Receive first data obtained by the business party decrypting the two encrypted sum values, and determine the sum of the positive labels and the sum of the negative labels according to the first data and the first mask and the second mask.

12. The device according to claim 10, wherein: The information output unit is further configured to: The sum of the first labels of each bucket is added to the randomly generated third mask, and the sum of the second labels of each bucket is added to the randomly generated fourth mask, and the two obtained sum values ​​are encrypted and sent to the business party; Receive the second data obtained by the business party after decrypting the two encrypted sum values, and determine the number of positive labels and the number of negative labels in each bucket according to the second data and the third mask and the fourth mask.

13. The device according to any one of claims 8 to 12, wherein: The information output unit is further configured to: The at least one calculated parameter is output to the data party.

14. The device according to claim 8 or 13, wherein: The device also includes an encryption unit configured to: Receiving the public key sent by the business party; The public key is used for encryption, so that the business party can decrypt the information according to the private key paired with the public key.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method of any one of claims 1 to 7.

17. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 7.