Privacy intersection method and apparatus, electronic device, and storage medium
By using local and global thresholding methods and updating matching results based on attribute relevance, the problem of recall and precision in privacy-preserving intersection methods with error and missing data is solved, achieving efficient data intersection.
Patent Information
- Application Number
- CN202211462300.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-11-21
AI Technical Summary
Existing privacy-preserving intersection methods suffer from low recall and precision when faced with data that has a certain error rate and missing rate, and cannot effectively handle data quality issues.
Matching is performed using local and global thresholding methods, and the matching results are updated based on the correlation between attributes. Data processing is performed on the missing error rate of each attribute, including initial matching, updated matching, and final intersection.
It improves fault tolerance and recall, ensures accuracy and scalability in the face of data quality issues, and significantly improves recall and precision.
Smart Images

Figure CN115758411B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a privacy-preserving intersection method, apparatus, electronic device, and storage medium. Background Technology
[0002] Private set intersection (PSI), also known as credential stuffing, can be understood as determining the intersection of data among multiple parties while protecting privacy. PSI is often central to multi-party collaborative training of machine learning algorithms and multi-borrowing transactions. However, with the ever-increasing volume of data and the existence of real-world data quality issues such as spelling errors and reversed order, the scalability and fault tolerance of PSI methods face challenges.
[0003] Most existing technologies are only suitable for exact matching, and a match is considered successful only if all records match exactly. They are ineffective for data with a certain error rate or missing data rate. When data quality issues exist, recall decreases, significantly reducing the practical value of the technology.
[0004] Therefore, there is an urgent need for a privacy-preserving intersection method that is scalable and fault-tolerant. Summary of the Invention
[0005] This invention provides a privacy intersection method, apparatus, electronic device, and storage medium to address the shortcomings of low scalability and fault tolerance in existing privacy intersection methods.
[0006] This invention provides a privacy-preserving intersection method, comprising:
[0007] Obtaining private data from all parties;
[0008] Based on the local threshold of each attribute, the attribute values of each attribute in the privacy data of each party are matched to obtain the initial matching result of each attribute. The local threshold is determined based on the missing error rate of the corresponding attribute.
[0009] Based on the attribute relationships between the attributes, the initial matching results of the attributes are updated to obtain the updated matching results of the attributes.
[0010] Based on a global threshold and the update matching results of each attribute, privacy intersection is performed on the privacy data of each party. The global threshold is determined based on the missing error rate of each attribute.
[0011] According to the privacy intersection method provided by the present invention, the step of matching the attribute values of each attribute in the privacy data of each party based on the local threshold of each attribute to obtain the initial matching result of each attribute includes:
[0012] The attribute values of each attribute are matched in the privacy data of each party to obtain the initial matching rate of each attribute;
[0013] The initial matching rate and local threshold of each attribute are matched to obtain the initial matching result of each attribute. The initial matching result includes successful matching, failed matching, or candidate matching.
[0014] According to the privacy intersection method provided by the present invention, the step of matching the attribute values of each attribute in the privacy data of each party to obtain the initial matching rate of each attribute includes:
[0015] The attribute values of each attribute in the privacy data of each party are matched to obtain the matching results of each attribute in each party;
[0016] Based on the number of parties and the matching results of each attribute in each party, the initial matching rate of each attribute is obtained.
[0017] According to the privacy intersection method provided by the present invention, updating the initial matching results of each attribute based on the attribute relationships between the attributes to obtain updated matching results of each attribute includes:
[0018] Based on the attribute relationship between the candidate matching attributes and the successfully matched attributes, the initial matching result of the candidate matching attributes is updated to obtain the updated matching result of each attribute.
[0019] According to the privacy intersection method provided by the present invention, updating the initial matching result of the candidate matching attribute based on the attribute relationship between the candidate matching attribute and the successfully matched attribute includes:
[0020] The initial matching result of the candidate matching attribute is updated based on the attribute correlation between the candidate matching attribute and the successfully matched attribute, and the local threshold of the successfully matched attribute.
[0021] According to the privacy intersection method provided by the present invention, the privacy intersection of the privacy data of the parties based on a global threshold and the update matching results of each attribute includes:
[0022] Based on the update matching results of each attribute, the update matching rate of each attribute is determined;
[0023] Based on the update matching rate and the number of attributes, the global matching rate of the privacy data of each party is determined;
[0024] Based on the global threshold and the global matching rate, privacy intersection is performed on the privacy data of the parties.
[0025] According to the privacy intersection method provided by the present invention, obtaining the privacy data of each party includes:
[0026] The system receives encrypted attributes sent by each party, finds the intersection of the encrypted attributes, obtains the attribute intersection of the parties, and returns it to each party so that the parties can perform data alignment and block segmentation based on the attribute intersection.
[0027] The privacy data sent by the parties is obtained by encrypting the aligned and segmented data based on key pairs.
[0028] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the privacy intersection method as described above.
[0029] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the privacy intersection method as described above.
[0030] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the privacy intersection method as described above.
[0031] The privacy-preserving intersection method, apparatus, electronic device, and storage medium provided by this invention, for data with a certain error rate and missing rate, effectively reduce the loss of true matching records due to data quality issues by using local thresholds for matching, thereby improving fault tolerance and ultimately increasing recall. Furthermore, by updating the matching results based on the correlation between attributes and performing privacy-preserving intersection based on the updated matching results and a global threshold, precision can be guaranteed. The method provided by this invention has good scalability and significantly improves recall while maintaining accuracy. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0033] Figure 1 This is a flowchart illustrating the privacy-preserving intersection method provided by the present invention;
[0034] Figure 2 This is a flowchart illustrating step 120 in the privacy intersection method provided by the present invention;
[0035] Figure 3 This is a flowchart illustrating the initial matching rate determination method provided by the present invention;
[0036] Figure 4 This is a flowchart illustrating step 140 in the privacy intersection method provided by the present invention;
[0037] Figure 5 This is a flowchart illustrating step 110 in the privacy intersection method provided by the present invention;
[0038] Figure 6 This is a schematic diagram of the data encryption process provided by the present invention;
[0039] Figure 7 This is a schematic diagram of the privacy intersection device provided by the present invention;
[0040] Figure 8 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0041] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0042] Most existing privacy-preserving intersection techniques perform exact matching or similarity calculations on the privacy data of each party, and a match is considered successful only if all records match completely. They are ineffective for data with a certain error rate or missing data. When data quality issues exist, the recall rate decreases, significantly reducing its practical application value.
[0043] To address the aforementioned issues, this invention provides a privacy-preserving intersection method. This method can be applied to identify the same entity in the real world from multiple data sources while protecting privacy. For example, it can be used as a preliminary step in longitudinal federated learning to find common data samples from multiple vendors before joint computation, without exposing the unique samples of each vendor.
[0044] The technical concept of this method is to determine the local threshold of the corresponding attribute and the global threshold of all attributes based on the missing error rate of each attribute in the privacy data of each party. On this basis, the attribute values of each attribute in the privacy data of each party are matched based on the local threshold to obtain the initial matching result of each attribute. Based on the attribute relationship between each attribute, the initial matching result is updated to obtain the updated matching result of each attribute. Finally, privacy intersection is performed based on the global threshold and the updated matching result of each attribute.
[0045] This method targets data with quality issues, specifically data with a certain error rate and missing data rate. By employing local thresholds, it effectively reduces the loss of true matching records due to data quality problems, improving fault tolerance and thus recall. By updating the matching results based on the correlation between attributes and performing privacy-preserving intersection based on the updated matching results and the global threshold, precision can be guaranteed. The method provided by this invention has good scalability and significantly improves recall while maintaining accuracy.
[0046] The technical solution of the privacy intersection method of the present invention will be described in detail below with reference to the accompanying drawings. Figure 1 This is a flowchart illustrating the privacy-preserving intersection method provided by the present invention, as follows: Figure 1 As shown, the method may include the following steps:
[0047] Step 110: Obtain privacy data from all parties.
[0048] Specifically, the privacy data of each party refers to the data that needs to be subject to privacy intersection. Each party refers to the data holder holding the business data. To ensure data security, the entity executing the privacy intersection method can be a third party other than the parties, such as a server. The server can be deployed on a cloud platform or a node in a blockchain. This embodiment of the invention does not specifically limit this.
[0049] Each party encrypts its own business data and sends it to the server, which then obtains the privacy data of each party. This privacy data can be determined based on the specific business scenario, and may specifically include user data such as user ID, phone number, and address.
[0050] Before sending their respective privacy data to the server, each party can preprocess the data. This preprocessing can include: each party agreeing on common matching attributes based on the data source, and then aligning the data according to these common matching attributes. Furthermore, to further improve the matching efficiency of subsequent privacy intersection calculations, the data can be segmented according to the types of common attributes (e.g., gender can be divided into male and female, with only two categories), thus reducing the number of subsequent matching operations.
[0051] Subsequently, all parties encrypted the preprocessed data and sent the encrypted data to the server.
[0052] Step 120: Based on the local threshold of each attribute, match the attribute values of each attribute in the privacy data of each party to obtain the initial matching results of each attribute. The local threshold is determined based on the missing error rate of the corresponding attribute.
[0053] Specifically, after receiving the privacy data from all parties, the server can use Cartesian operations to generate candidate records. Assuming there are 5 parties, one data point can be selected from each of the 5 parties, resulting in 5 candidate records. The server then compares and matches each data point in the candidate records to determine whether the 5 records represent the same entity. If the 5 records represent the same entity, then the 5 records constitute the intersection of the parties.
[0054] Here, "attributes" refers to the attributes contained in the privacy data of each party. These are usually common attributes of all parties, meaning attributes that are present in the data of all parties. Taking user data as an example, specific attributes may include name, phone number, gender, age, etc.
[0055] As data volumes increase, various quality issues often arise, such as spelling errors, reversed order, and missing data. In exact matching schemes, data with these quality issues is typically deemed a failed match because it cannot be fully matched, resulting in low recall and precision, and reducing the practical application value of the data.
[0056] In this embodiment of the invention, the missing error rate of each attribute can be obtained through statistical analysis of a large amount of data. The missing error rate of any attribute reflects the probability of missing and incorrect attribute values. Therefore, the local threshold of each attribute can be determined based on the missing error rate of the corresponding attribute. Specifically, the local threshold of the attribute can be obtained by subtracting the missing error rate of the corresponding attribute from 1. For example, if the missing error rate of name is 0.1, then the local threshold of name is 0.9; if the missing error rate of email is 0.2, then the local threshold of email is 0.8.
[0057] Therefore, the initial matching results can be obtained by matching the attribute values of each attribute in the privacy data of each party based on the local threshold of each attribute. Even in the case of missing or erroneous data, it will not be directly judged as a matching failure. For example, it can enter the candidate matching to further improve the fault tolerance of the method, reduce the loss of real matching results, and improve the data recall rate.
[0058] Step 130: Based on the attribute relationships between attributes, update the initial matching results of each attribute to obtain the updated matching results of each attribute.
[0059] Specifically, considering the possibility of missing or incorrect data for each attribute, in order to improve the accuracy of data matching, the initial matching results of each attribute can be updated based on the attribute relationships between them.
[0060] The relationships between attributes can be determined based on their corresponding attribute values. Before this, the common attribute values of each record in the data source can be converted into a bit array consisting of 0s and 1s. This converted bit array represents the record to some extent and protects its privacy; the bit array will then represent each record in subsequent matching.
[0061] The relationship between attributes can be determined based on the similarity between the bit arrays corresponding to each attribute. The greater the similarity between the bit arrays corresponding to each pair of attributes, the greater the correlation between the two attributes and the smaller the difference between the matching results of the two attributes. Conversely, the smaller the similarity between the bit arrays corresponding to each pair of attributes, the smaller the correlation between the two attributes and the greater the difference between the matching results of the two attributes.
[0062] Therefore, based on the initial matching results, the initial matching results of each attribute can be updated according to the attribute relationships between each attribute to obtain the updated matching results of each attribute.
[0063] Step 140: Based on the global threshold and the update matching results of each attribute, perform privacy intersection on the privacy data of each party. The global threshold is determined based on the missing error rate of each attribute.
[0064] Specifically, the global threshold is determined based on the missing error rate of all public attributes in the privacy data of each party. This can be achieved by averaging the local thresholds of each attribute. After obtaining the updated matching results for each attribute in step 130, privacy intersection can be performed on the privacy data of each party based on the global threshold. For example, the global matching rate can be calculated based on the updated matching results of each attribute. If the global matching rate is greater than or equal to the global threshold, the match is successful, and the intersection of the privacy data of each party is obtained; otherwise, if the global matching rate is less than the global threshold, the match fails, and the next set of data is used for rematching until the matching is complete.
[0065] The method provided in this invention, for data with a certain error rate and missing rate, effectively reduces the loss of true matching records due to data quality issues by using local threshold matching, thereby improving the fault tolerance rate and ultimately increasing the recall rate. Furthermore, by updating the matching results based on the correlation between various attributes and performing privacy-preserving intersection based on the updated matching results and the global threshold, the precision rate can be guaranteed. The method provided in this invention has good scalability and significantly improves the recall rate while maintaining accuracy.
[0066] Based on the above embodiments, Figure 2 This is a flowchart illustrating step 120 of the privacy intersection method provided by the present invention, as follows: Figure 2 As shown, step 120 specifically includes:
[0067] Step 121: Match the attribute values of each attribute in the privacy data of each party to obtain the initial matching rate of each attribute;
[0068] Step 122: Match the initial matching rate and local threshold of each attribute to obtain the initial matching result of each attribute. The initial matching result includes successful matching, failed matching, or candidate matching.
[0069] Specifically, considering that an exact match is considered successful only if it is a perfect match, otherwise it is considered a failure, in this embodiment, the initial match rate of each attribute reflects the initial matching status of the attribute value in the privacy data of each party. The initial match rate is a probability value between 0 and 1. The higher the initial match rate, the greater the probability of the attribute matching successfully; conversely, the lower the initial match rate, the lower the probability of the attribute matching successfully. It is understandable that using the initial match rate instead of exact match can further improve the fault tolerance rate, effectively reduce the loss of real matching records due to data quality issues, and thus improve the recall rate.
[0070] After obtaining the initial matching rate for each attribute, the initial matching rate of each attribute can be matched with the local threshold to obtain the initial matching result for each attribute. Specifically, the initial matching rate of each attribute can be compared with the local threshold. For any attribute, if the initial matching rate of the attribute is equal to 1, the initial matching result of the attribute is determined to be a successful match; if the initial matching rate of the attribute is less than 1 but greater than or equal to the local threshold, the initial matching result of the attribute is determined to be a candidate match; if the initial matching rate of the attribute is less than the local threshold, the initial matching result of the attribute is determined to be a failed match.
[0071] For example, if the initial match rate of the phone number attribute is 1, then the initial match result of the phone number attribute is considered a successful match; if the initial match rate of the email address attribute is 0.4, and the local threshold for the email address attribute is 0.8, then the initial match rate of the email address attribute is less than the local threshold, and the initial match result of the email address attribute is considered a failed match; if the initial match rate of the address address attribute is 0.8, and the local threshold for the address address attribute is 0.7, then the initial match result of the address address attribute is considered a candidate match.
[0072] The method provided in this invention determines the initial matching result of each attribute by using an initial matching rate and a local threshold. Compared with the exact matching method, it can further improve the fault tolerance rate, effectively reduce the loss of real matching records due to data quality issues, and thus improve the recall rate.
[0073] Based on any of the above embodiments Figure 3 This is a flowchart illustrating the initial matching rate determination method provided by the present invention, as shown below. Figure 3 As shown, step 121 specifically includes:
[0074] Step 121-1: Match the attribute values of each attribute in the privacy data of each party to obtain the matching results of each attribute in each party;
[0075] Step 121-2: Based on the number of each party and the matching results of each attribute in each party, obtain the initial matching rate of each attribute.
[0076] Specifically, to obtain the initial matching rate, the attribute values of each attribute in the privacy data of each party can be matched, and the average of the matching results can be calculated.
[0077] The matching result of each attribute can be represented by 0 or 1. For any attribute, the attribute value of any party is matched with the attribute values of other parties. If the attribute matches successfully, the matching result of the parties is 1, and if the attribute does not match, the matching result of the parties is 0.
[0078] After obtaining the matching results for each attribute across all parties, the matching results for each attribute across all parties can be averaged according to the number of parties to obtain the initial matching rate for each attribute. For example, if there are 5 parties in total, assuming the matching result for the telephone attribute across all parties is (1, 1, 1, 1, 1), then the initial matching rate for the telephone attribute is (1+1+1+1+1) / 5 = 1; assuming the matching result for the email attribute across all parties is (0, 1, 1, 0, 0), then the initial matching rate for the email attribute is (0+1+1+0+0) / 5 = 0.4.
[0079] Based on any of the above embodiments, step 130 specifically includes:
[0080] Step 131: Based on the attribute relationship between the candidate matching attributes and the successfully matched attributes in each attribute, update the initial matching result of the candidate matching attributes to obtain the updated matching result of each attribute.
[0081] Specifically, in order to improve the fault tolerance and recall rate, in step 122, the attributes that are likely to be true matches are entered into the candidate matching. On this basis, in order to further improve the precision rate, when updating the initial matching results of each attribute, only the initial matching results of the candidate matching attributes can be updated.
[0082] It should be noted that the candidate matching attribute here is the attribute that is a candidate match in the initial matching result, and the successful matching attribute is the attribute that is a successful match in the initial matching result.
[0083] Considering that the initial matching rate of a candidate matching attribute is greater than its local threshold but less than 1, meaning that the attribute may be a true successful match or a true failed match, to improve precision, the initial matching result of the candidate matching attribute can be updated based on the attribute relationship between the candidate matching attribute and the successfully matched attribute. The updated matching result obtained is either a successful match or a failed match. The attribute relationship here can be understood as attribute correlation.
[0084] The greater the correlation between a candidate matching attribute and a successfully matched attribute, the greater the probability that the candidate matching attribute will be updated to a successfully matched attribute. Conversely, the smaller the correlation between a candidate matching attribute and a successfully matched attribute, the smaller the probability that the candidate matching attribute will be updated to a successfully matched attribute.
[0085] The method provided in this invention updates the initial matching result of candidate matching attributes based on the attribute relationship between candidate matching attributes and successfully matched attributes, which can further improve the accuracy of matching and increase the precision rate.
[0086] Based on any of the above embodiments, step 131 specifically includes:
[0087] The initial matching results of the candidate matching attributes are updated based on the attribute correlation between the candidate matching attributes and the successfully matched attributes, as well as the local threshold of the successfully matched attributes.
[0088] Specifically, the attribute relationship between candidate matching attributes and successfully matched attributes can be measured by attribute relevance, which can be calculated using a similarity calculation function.
[0089] For example, based on the matching results of each attribute in each party, the attribute values of each attribute in the privacy data of each party can be converted into discrete values represented by 0 and 1. The discrete value corresponding to the candidate matching attribute can be represented as (1, 1, 1, 1, 0), and the discrete value corresponding to the successfully matched attribute can be represented as (1, 1, 1, 1, 1). When calculating the similarity between multiple bit arrays, the similarity calculation function can be used to obtain the attribute correlation between the candidate matching attribute and the successfully matched attribute.
[0090] For example, Euclidean distance can be used to calculate the correlation of attributes, and the calculation formula can be expressed as follows:
[0091]
[0092] In the formula, x i Let y represent the value of the i-th attribute in attribute x. i This represents the value of the i-th attribute in attribute y.
[0093] It should be noted that when there are multiple candidate matching attributes and multiple successfully matched attributes, it is necessary to calculate the similarity between each candidate matching attribute and all successfully matched attributes to obtain the similarity between each candidate matching attribute and the successfully matched attributes. Based on this, the obtained similarity is compared with the local threshold of all successfully matched attributes, and the initial matching result of the candidate matching attribute is updated based on the comparison result.
[0094] For any candidate matching attribute, if the calculated attribute relevance is less than the local threshold of the successfully matched attribute, the initial matching information of the candidate matching attribute is updated to match failure; if the attribute relevance is greater than or equal to the local threshold of the successfully matched attribute, the initial matching information of the candidate matching attribute is updated to match success, thus obtaining the updated matching results for each attribute.
[0095] The method provided in this invention improves matching accuracy by calculating the similarity between candidate matching attributes and successfully matched attributes to obtain attribute relevance, and updating candidate matching attributes based on attribute relevance and local thresholds of successfully matched attributes.
[0096] Based on any of the above embodiments Figure 4 This is a flowchart illustrating step 140 of the privacy intersection method provided by the present invention, as follows: Figure 4 As shown, step 140 specifically includes:
[0097] Step 141: Based on the update matching results of each attribute, determine the update matching rate of each attribute;
[0098] Step 142: Determine the global matching rate of each party's privacy data based on the update matching rate and the number of attributes.
[0099] Step 143: Based on the global threshold and global matching rate, perform privacy intersection on the privacy data of each party.
[0100] Specifically, after obtaining the updated matching results for each attribute, the updated matching rate for each attribute can be obtained based on the updated matching results. If the updated matching result of a candidate matching attribute is a successful match, then the updated matching rate of that candidate matching attribute is 1; if the updated matching result of a candidate matching attribute is a failed match, then the updated matching rate of that candidate matching attribute is 0.
[0101] Based on this, the global matching rate of each party's privacy data can be determined according to the update matching rate of each attribute and the number of attributes. The formula can be expressed as follows:
[0102]
[0103] In the formula, f1 and f2 are the number of participants matched for the corresponding attributes, and n is the number of attributes involved in the matching.
[0104] The global threshold here can be determined by the following formula:
[0105]
[0106] In the formula, T d Here, n is the global threshold, n is the number of attributes involved in the matching, and a is the global threshold. i Let be the missing error rate of the i-th attribute.
[0107] After obtaining the global matching rate and the global threshold, the two can be compared. If the global matching rate is greater than or equal to the global threshold, the match is considered successful, and the data intersection of all parties is obtained; otherwise, if the global matching rate is less than the global threshold, the match is considered unsuccessful, and the next round of matching continues.
[0108] The method provided in this invention performs privacy intersection on the privacy data of each party based on the global matching rate and the global threshold, which can further improve the matching accuracy for data with quality problems.
[0109] Based on any of the above embodiments Figure 5 This is a flowchart illustrating step 110 of the privacy intersection method provided by the present invention, as follows: Figure 5 As shown, step 110 specifically includes:
[0110] Step 111: Receive the encrypted attributes sent by each party, find the intersection of the encrypted attributes, obtain the attribute intersection of each party, and return it to each party so that the parties can perform data alignment and block division based on the attribute intersection;
[0111] Step 112: Receive privacy data sent by each party. The privacy data is obtained by each party encrypting the aligned and segmented data based on the key pair.
[0112] Specifically, to further enhance data security, before performing the privacy intersection calculation, each participating party encrypts the attributes of its data source and sends them to the service provider. After receiving the encrypted attributes from each party, the service provider performs an intersection calculation on the encrypted attributes to obtain the attribute intersection of all participating parties and returns the attribute intersection to each party. The attribute intersection can be represented as F = {f...} n |1≤n≤d}.
[0113] Subsequently, all parties align the data source based on the intersection of the received attributes. After data alignment, the parties can agree on a block division method based on the types of attributes (e.g., gender can be divided into male and female, with only two categories) to reduce the number of subsequent comparisons.
[0114] Based on this, step 112 is executed, whereby all parties encrypt the aligned and segmented data to obtain encrypted privacy data, and then send the privacy data to the service provider.
[0115] Figure 6 This is a schematic diagram of the data encryption process provided by the present invention, such as... Figure 6 As shown, the steps for each party to encrypt data may include the following:
[0116] Reference Figure 6 In (a) to (d), S1 is server 1, which can be any of the parties; S2 is server 2, which is a third party other than the parties. C1, C2...Cn are the parties that own the data.
[0117] Server 1 generates a key pair (pk0, pk1, sk0, sk1) and transmits the public key to all parties. To ensure data security, each party first uses a hash function to hash the attribute value {f}. c1 ,f c2 ,f c3 ,…,f cd The data is mapped and then encrypted using the public key. Since server 1 possesses the public key value, a random value 'r' is added to each attribute value during encryption to prevent malicious attacks from server 1. After each party encrypts its data, it sends the encrypted data to server 1. Server 1 uses its private key to encrypt its own data and the data from each party, and then sends it to each party. Each party removes the added random number 'r' from its data. Then, all parties send their data to server 2 for comparison. Server 2 uses Cartesian operations to generate candidate record pairs. The encryption and decryption process can be represented by the following formula:
[0118] r ci =CE(f ci ) = (hash(f ci )×(r pk mod pk0)
[0119] re ci =SE(r) ci )=(blind(f ci )) sk mod sk0
[0120] e si =SE(f si ) = (hash(f si )) sk1 mod sk0
[0121] e ci =CD(re ci ) = re ci *(rmod pk0)%pk0
[0122] The method provided in this invention improves data security by encrypting the aligned and segmented data and sending the encrypted data to the service provider for privacy cross-interaction.
[0123] Based on any of the above embodiments, the privacy intersection method provided by the present invention will be further explained with reference to the following specific examples.
[0124] Major banks encrypt various attributes in customer records and calculate the intersection of these attributes. All participants then align their data based on this intersection, resulting in the attribute intersection being phone number, email address, address, name, age, and gender. As shown in Table 1, five records from each bank's database are selected as a sample dataset. These five records come from the same individual, and experiments are conducted to verify whether these five records match successfully. In the sample dataset, the attributes are phone number, email address, address, name, age, and gender, with missing error rates of 0.1, 0.2, 0.3, 0.1, 0.2, and 0.4, respectively.
[0125] Table 1
[0126]
[0127] Encrypt all attribute values of five records using the key {pk0, pk1, sk0, sk1}. Match each attribute value against the privacy data of each party to obtain the initial matching rate for each attribute. Then, match the initial matching rate of each attribute with a local threshold to obtain the initial matching result for each attribute. The initial matching result includes successful matching, failed matching, or candidate matching. The initial matching results are shown in Table 2. Here, Rp represents the initial matching rate of the p-th attribute, and Tp represents the local threshold of the p-th attribute.
[0128] Table 2
[0129]
[0130]
[0131] The attribute relevance between candidate matching attributes (address, gender, and age) and successfully matched attributes (phone number and name) is calculated. If the attribute relevance is greater than a local threshold, the matching rate of the candidate matching attribute is set to 1; if it is less than the local threshold, the matching rate of the candidate matching attribute is set to zero. As shown in Table 3, the updated matching rates of address, gender, and age are all set to 1 through calculation.
[0132] Table 3
[0133]
[0134] Finally, the average matching rate of all attributes was calculated, resulting in a global matching rate of 0.83, which is greater than the global threshold of 0.76. Therefore, the five records were successfully matched and belong to the same individual.
[0135] The privacy intersection apparatus provided by the present invention is described below. The privacy intersection apparatus described below can be referred to in correspondence with the privacy intersection method described above.
[0136] Based on any of the above embodiments Figure 7 This is a schematic diagram of the privacy intersection device provided by the present invention, as shown below. Figure 7 As shown, the privacy intersection device includes a data acquisition unit 710, an attribute matching unit 720, a result updating unit 730, and a privacy intersection unit 740, wherein:
[0137] Data acquisition unit 710 is used to acquire the privacy data of all parties;
[0138] The attribute matching unit 720 is used to match the attribute values of each attribute in the privacy data of each party based on the local threshold of each attribute, so as to obtain the initial matching result of each attribute. The local threshold is determined based on the missing error rate of the corresponding attribute.
[0139] The result update unit 730 is used to update the initial matching result of each attribute based on the attribute relationship between each attribute, so as to obtain the updated matching result of each attribute;
[0140] The privacy intersection unit 740 is used to perform privacy intersection on the privacy data of the parties based on a global threshold and the update matching results of each attribute. The global threshold is determined based on the missing error rate of each attribute.
[0141] The privacy-preserving intersection apparatus provided in this invention, for data with a certain error rate and missing rate, effectively reduces the loss of true matching records due to data quality issues by using local thresholds for matching, thereby improving the fault tolerance rate and ultimately increasing the recall rate. Furthermore, by updating the matching results based on the correlation between various attributes and performing privacy-preserving intersections based on the updated matching results and a global threshold, the precision rate can be guaranteed. The method provided by this invention has good scalability and significantly improves the recall rate while ensuring accuracy.
[0142] Based on any of the above embodiments, the attribute matching unit is further configured to:
[0143] The attribute values of each attribute are matched in the privacy data of each party to obtain the initial matching rate of each attribute;
[0144] The initial matching rate and local threshold of each attribute are matched to obtain the initial matching result of each attribute. The initial matching result includes successful matching, failed matching, or candidate matching.
[0145] Based on any of the above embodiments, the attribute matching unit is further configured to:
[0146] The attribute values of each attribute in the privacy data of each party are matched to obtain the matching results of each attribute in each party;
[0147] Based on the number of parties and the matching results of each attribute in each party, the initial matching rate of each attribute is obtained.
[0148] Based on any of the above embodiments, the result updating unit is further configured to:
[0149] Based on the attribute relationship between the candidate matching attributes and the successfully matched attributes, the initial matching result of the candidate matching attributes is updated to obtain the updated matching result of each attribute.
[0150] Based on any of the above embodiments, the result updating unit is further configured to:
[0151] The initial matching result of the candidate matching attribute is updated based on the attribute correlation between the candidate matching attribute and the successfully matched attribute, and the local threshold of the successfully matched attribute.
[0152] Based on any of the above embodiments, the privacy intersection unit is further configured to:
[0153] Based on the update matching results of each attribute, the update matching rate of each attribute is determined;
[0154] Based on the update matching rate and the number of attributes, the global matching rate of the privacy data of each party is determined;
[0155] Based on the global threshold and the global matching rate, privacy intersection is performed on the privacy data of the parties.
[0156] Based on any of the above embodiments, the data acquisition unit is further configured to:
[0157] The system receives encrypted attributes sent by each party, finds the intersection of the encrypted attributes, obtains the attribute intersection of the parties, and returns it to each party so that the parties can perform data alignment and block segmentation based on the attribute intersection.
[0158] The privacy data sent by the parties is obtained by encrypting the aligned and segmented data based on key pairs.
[0159] Figure 8An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 8 As shown, the electronic device may include a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 830 to perform privacy intersection, a method comprising: acquiring privacy data of each party; matching the attribute values of each attribute in the privacy data of each party based on local thresholds of each attribute to obtain initial matching results for each attribute, wherein the local thresholds are determined based on the missing error rate of the corresponding attribute; updating the initial matching results of each attribute based on the attribute relationships between the attributes to obtain updated matching results for each attribute; and performing privacy intersection on the privacy data of each party based on a global threshold and the updated matching results of each attribute, wherein the global threshold is determined based on the missing error rate of each attribute.
[0160] Furthermore, the logical instructions in the aforementioned memory 830 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0161] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer is able to perform the privacy intersection method provided by the above methods. The method includes: acquiring privacy data of each party; matching the attribute values of each attribute in the privacy data of each party based on local thresholds of each attribute to obtain initial matching results of each attribute, wherein the local thresholds are determined based on the missing error rate of the corresponding attribute; updating the initial matching results of each attribute based on the attribute relationships between the attributes to obtain updated matching results of each attribute; and performing privacy intersection on the privacy data of each party based on a global threshold and the updated matching results of each attribute, wherein the global threshold is determined based on the missing error rate of each attribute.
[0162] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program performs privacy intersection calculations provided by the methods described above. The method includes: acquiring privacy data of each party; matching attribute values of each attribute in the privacy data of each party based on local thresholds of each attribute to obtain initial matching results for each attribute, wherein the local thresholds are determined based on the missing error rate of the corresponding attribute; updating the initial matching results of each attribute based on the attribute relationships between the attributes to obtain updated matching results for each attribute; and performing privacy intersection calculations on the privacy data of each party based on a global threshold and the updated matching results of each attribute, wherein the global threshold is determined based on the missing error rate of each attribute.
[0163] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0164] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0165] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical attributes; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A privacy-preserving intersection method, characterized in that, include: Obtaining private data from all parties; Based on the local threshold of each attribute, the attribute values of each attribute in the privacy data of each party are matched to obtain the initial matching result of each attribute. The local threshold is determined based on the missing error rate of the corresponding attribute. The local threshold of any attribute is 1 minus the missing error rate of that attribute. Based on the attribute relationships between the attributes, the initial matching results of the attributes are updated to obtain the updated matching results of the attributes. Based on a global threshold and the update matching results of each attribute, privacy intersection is performed on the privacy data of each party. The global threshold is determined based on the missing error rate of each attribute.
2. The privacy-preserving intersection method according to claim 1, characterized in that, The method of matching the attribute values of each attribute in the privacy data of each party based on local thresholds of each attribute to obtain initial matching results for each attribute includes: The attribute values of each attribute are matched in the privacy data of each party to obtain the initial matching rate of each attribute; The initial matching rate and local threshold of each attribute are matched to obtain the initial matching result of each attribute. The initial matching result includes successful matching, failed matching, or candidate matching.
3. The privacy-preserving intersection method according to claim 2, characterized in that, The step of matching the attribute values of each attribute in the privacy data of each party to obtain the initial matching rate of each attribute includes: The attribute values of each attribute in the privacy data of each party are matched to obtain the matching results of each attribute in each party; Based on the number of parties and the matching results of each attribute in each party, the initial matching rate of each attribute is obtained.
4. The privacy-preserving intersection method according to claim 2, characterized in that, The step of updating the initial matching results of each attribute based on the attribute relationships between the attributes to obtain updated matching results for each attribute includes: Based on the attribute relationship between the candidate matching attributes and the successfully matched attributes, the initial matching result of the candidate matching attributes is updated to obtain the updated matching result of each attribute.
5. The privacy-preserving intersection method according to claim 4, characterized in that, The step of updating the initial matching result of the candidate matching attribute based on the attribute relationship between the candidate matching attribute and the successfully matched attribute includes: The initial matching result of the candidate matching attribute is updated based on the attribute correlation between the candidate matching attribute and the successfully matched attribute, and the local threshold of the successfully matched attribute.
6. The privacy-preserving intersection method according to claim 1, characterized in that, The privacy intersection of the privacy data of the parties, based on a global threshold and the update matching results of each attribute, includes: Based on the update matching results of each attribute, the update matching rate of each attribute is determined; Based on the update matching rate and the number of attributes, the global matching rate of the privacy data of each party is determined; Based on the global threshold and the global matching rate, privacy intersection is performed on the privacy data of the parties.
7. The privacy intersection method according to any one of claims 1-6, characterized in that, The acquisition of privacy data from all parties includes: The system receives encrypted attributes sent by each party, finds the intersection of the encrypted attributes, obtains the attribute intersection of the parties, and returns it to each party so that the parties can perform data alignment and block segmentation based on the attribute intersection. The privacy data sent by the parties is obtained by encrypting the aligned and segmented data based on key pairs.
8. A privacy-preserving intersection device, characterized in that, include: The data acquisition unit is used to acquire the private data of all parties. An attribute matching unit is used to match the attribute values of each attribute in the privacy data of each party based on the local threshold of each attribute, so as to obtain the initial matching result of each attribute. The local threshold is determined based on the missing error rate of the corresponding attribute, and the local threshold of any attribute is 1 minus the missing error rate of that attribute. The result update unit is used to update the initial matching result of each attribute based on the attribute relationship between each attribute, so as to obtain the updated matching result of each attribute; A privacy intersection unit is used to perform privacy intersection on the privacy data of the parties based on a global threshold and the update matching results of each attribute. The global threshold is determined based on the missing error rate of each attribute.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the privacy intersection method as described in any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the privacy intersection method as described in any one of claims 1 to 7.
