A privacy protection method for two-party frequent item data mining
By employing secure computation protocols and differential privacy mechanisms, and utilizing Bloom filters to cut data, additive secret sharing, and secure ordering within the ABY framework, the privacy protection issue in two-party data mining is resolved, enabling efficient frequent item data mining without the aid of a trusted third party.
Patent Information
- Application Number
- CN202310824435.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-06
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-06
AI Technical Summary
In data mining involving two parties, existing technologies struggle to achieve differential privacy protection without the aid of a trusted third party, and conventional secure multi-party computation cannot effectively prevent attackers from inferring sensitive information.
By employing a secure computing protocol, data pruning through Bloom filters, augmented secret sharing, and secure ordering within the ABY framework, combined with a differential privacy mechanism, privacy protection is achieved for frequent item data mining between the two parties.
Differential privacy protection is achieved without relying on trusted third parties, preventing data leakage and blocking potential attacks, thus improving data security.
Smart Images

Figure CN116842567B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a privacy protection method for frequent item data mining involving two parties, belonging to the fields of data mining and privacy protection technology. Background Technology
[0002] As data mining technology matures, people are increasingly aware of the importance of privacy, and there are growing calls for businesses and government departments to strengthen privacy protection. Against this backdrop, various privacy protection technologies are flourishing. Privacy protection is not only about protecting users, but also about protecting the reputation and credibility of large companies; privacy breaches can cause enormous losses to companies and government departments. Better protection of privacy has become a shared expectation of the entire society.
[0003] For example, if two large hospitals want to jointly calculate the most common diseases in recent years, under conventional methods, the two hospitals can only share each other's data. However, the two hospitals are in competition, and users' medical records are very important privacy for the owners. Sharing data would harm users' privacy. Conventional differential privacy computation requires a trusted third party, and it is a rather demanding condition for the third party to be trusted by both data owners. Ordinary secure multi-party computation cannot provide the effect of differential privacy.
[0004] In two-party data analysis tasks, each party possesses its own portion of the data and is unwilling to share it with the other. While secure computation enables secure frequent item mining, the accurate output of the top k items can still leave attackers with opportunities to infer sensitive information. Differential privacy has been used in various data analysis tasks to protect the information of participating individuals, but how to securely provide differential privacy for two-party frequent item mining remains unresolved.
[0005] The following is the relevant knowledge used in the invention.
[0006] Secure multi-party computation: Secure multi-party computation primarily addresses the problem of how to securely compute an agreed-upon function without a trusted third party. Secret sharing is a method of distributing a secret among a group of people, with each person receiving a portion of the secret, called a share. Only when enough shares are combined can the secret be reconstructed; each share is useless on its own. In additive secret sharing, the splitting and reconstruction of data uses simple addition and subtraction; for example, if secret S is split into two parts... <s1>and <s2>Two secrets are given to the two participants in the operation, A and B, and there exists a S = <s1> + <s2>The relationship between two parties is described in the text. A scrambled circuit is a cryptographic protocol that allows two data owners to participate in secure computation. This protocol enables both parties to compute the result of a pre-defined function without knowing each other's data. One party in a scrambled circuit is called the scrambler, responsible for scrambling the truth table and creating labels, while the other party is called the computer, receiving the scrambled circuit and computing the result. The scrambler sends labels representing its input to the computer, but because the truth table is shuffled, these labels appear random. Conversely, the computer does not send labels representing its input to the scrambler, as this would make its input easily computed. With the labels corresponding to the inputs of both parties, the computer can compute the label corresponding to the current gate and use it to compute the next gate. The scrambler also provides a final result translation table, through which the plaintext result can be obtained.
[0007] Differential privacy: Differential privacy is a privacy concept proposed by Cynthia Dwork et al. Differential privacy techniques allow users to understand the properties of a dataset without revealing the privacy of individuals within that dataset. The definition of differential privacy is as follows: For a dataset with domain and range D... n and R p The random mechanism M:D n →R p If for any adjacent database d,d′∈D n and any subset of the range If Pr[M(d)∈S]≤exp(ε)Pr[M(d′)∈S]+δ, then the stochastic mechanism M is said to satisfy (ε,δ)-differential privacy. Theoretically, any stochastic mechanism that satisfies the definition of differential privacy can be used as a differential privacy mechanism. Many differential privacy mechanisms have already been proposed and applied in real-world privacy protection, such as Gaussian mechanisms, Laplace mechanisms, and stochastic responses.
[0008] Bloom filters: A Bloom filter is essentially a long binary vector and a series of random mapping functions, used to check if an element is in a set. Its advantages are significantly higher space efficiency and faster query time compared to general algorithms. Its disadvantages include a certain false positive rate and difficulty in deletion. The principle of a Bloom filter is that when an element is added to the set, it is mapped to K points in a bit array using K hash functions, and these points are set to 1. During retrieval, we only need to check if all these points are 1 to (approximately) know if the element is in the set: if any of these points is 0, the element is definitely not present; if all are 1, the element is very likely present. This is the basic idea of a Bloom filter. Bloom filters have significant advantages in space and time compared to other data structures, and because they do not require storing the elements themselves, they are particularly useful in scenarios where data confidentiality is required. However, the false positive rate of Bloom filters is also a reason why they are not used in many scenarios; the false positive rate increases with the number of elements stored. Summary of the Invention
[0009] Objective: To address the problems and shortcomings of existing technologies and to prevent data leakage between parties while achieving differential privacy in published outputs, this invention studies the problem of two-party frequent item mining with differential privacy. It proposes a practical secure computing protocol and a privacy-preserving method for two-party frequent item data mining, which can effectively select frequent items from the union of two confidential databases in a differential privacy manner.
[0010] Technical Solution: A privacy-preserving method for frequent item data mining involving two parties, A and B, where each party possesses a key-value pair array {(key_1, value_1), ..., (key_n, value_n)}. Locally, parties A and B first sort their large datasets based on the values in the key-value pairs. After sorting, they mutually agree on a length to trim their local arrays, retaining only a smaller portion of the data. Next, parties A and B securely merge their arrays into a large shared array. A and B each possess a secret fragment that forms part of the shared array, achieving secret sharing. Based on this secret, they then securely sort the shared array using secure comparisons. Finally, Top-k selection is performed using a differential privacy exponential mechanism, choosing the Top-k results from the secure sorting results of the previous step.
[0011] The method includes the following:
[0012] Array cutting. Initially, both participants A and B have a large amount of data, but in Top-k selection, most of the data is useless. Therefore, cutting can reduce time complexity while maintaining accuracy. Array cutting includes the following steps:
[0013] Step 11: The two participants, A and B, agree on a value k′ = k.
[0014] Step 12: A generates a Bloom array blm, adds its Top-k' data into the Bloom array blm using the function bloom_add, and then sends blm to B.
[0015] Step 13: B uses the Bloom filter function bloom_check to check its local data in turn. bloom_check will determine whether a certain element is in the Bloom array blm. Then, participant B counts the number of keys in blm locally as c.
[0016] Step 14: If c ≥ μk′ (0 < μ ≤ 1), participants A and B extract the first k′ elements of the array and exit; otherwise, let k′ = 2k′, and repeat steps 12-14 until the condition c ≥ μk′ (0 < μ ≤ 1) is met, or the loop count exceeds the given value. The given value can be determined based on the system's computing power.
[0017] Step 15: After completing steps 12-14 above, A and B will each hold an array of length k'.
[0018] Secret sharing. Before sorting, the cut arrays from participants A and B are merged, thus requiring an additive secret sharing technique. Secret sharing includes the following steps:
[0019] Step 21: A creates an array locally. <shr_dataset> A B creates an array locally.<shr_dataset> B .
[0020] Step 22: A encrypts a key using an encryption algorithm. s Then key s Send it to B.
[0021] Step 23: B generates a random number rnd and sends it to A.
[0022] Step 24: A in<shr_dataset> A Add elements<key,rnd+value(key)> Here, value(key) refers to the data value of key in A. B is discussed in two cases: if a key in B, when encrypted using the same encryption algorithm, can yield the key... s Then in<shr_dataset> B Add elements<null,rnd-value(key)> Here, value(key) refers to the data value of key in B; if such a key does not exist in B, then B is in<shr_dataset> B Add elements<null,rnd> null is an empty value, indicating that B does not know A's key value.
[0023] Step 25: A iterates through each key in the array and repeats steps 22-24. After A has sent all his keys, B generates a random number `rnd` for the keys that were not retrieved in step 24 and sends it to A. For each key that B did not retrieve, A...<shr_dataset> A Add elements<null,rnd> B in<shr_dataset> B Add<null,rnd-value(key)> .
[0024] After the above steps, we obtain mutually corresponding positions.<shr_dataset> A and<shr_dataset> B The two arrays can be merged and treated as a single virtual array, with the relationship shr_dataset =<shr_dataset> A -<shr_dataset> B That is, for any<key,value> ∈shr_dataset, value = <value> A - <value> B ,in <value> A A local storage of a secret fragment of the value. <value> B A secret fragment of the value is stored locally for B.
[0025] Safe sorting. Safe sorting utilizes the ABY framework. Comparisons built with ABY are safe, employing techniques such as obfuscated circuits. Since much data remains unused in the merged virtual array `shr_dataset`, only a subset of the data is sorted. Heap sort is used to achieve this, ensuring that only a portion of the elements are sorted. The specific steps include:
[0026] Step 31: A and B jointly participate in creating a max heap on the virtual array shr_dataset. The comparison operation during heap construction is constructed using the ABY circuit, which enables safe comparison operations.
[0027] Step 32: Proceed After popping and adjusting the max-heap, a new shr_dataset is obtained, which is now ordered. It is a parameter preset by the system. Generally let
[0028] Step 33: After obtaining the new shr_dataset, discard the unsorted elements.
[0029] Top-k selection. This process still needs to be completed jointly by A and B within the multi-party secure computation framework ABY. Because of this... Therefore, partial selection is unnecessary; we can simply select the medians one by one with varying probabilities. A safe calculation method based on the median is employed for this purpose. The specific process is as follows:
[0030] Step 41: Take shr_dataset- as the reverse of shr_dataset and construct the array (shr_dataset-, shr_dataset).
[0031] Step 42: Since shr_dataset is already sorted from largest to smallest, the new array will show a trend of increasing from smallest to largest and then decreasing again. This is similar to a symmetrical distribution curve such as the normal distribution. Therefore, a distribution function can be constructed using the normal distribution. Then, A and B each generate random numbers and use them as input. The specific array index is calculated using the inverse function of the distribution function. Finally, the corresponding (key, value) is selected based on the index.
[0032] Step 43: Remove the selected (key, value) from the array (shr_dataset-, shr_dataset), and repeat steps 42 and 43 until all k data are selected.
[0033] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a privacy protection method for frequent item data mining involving two parties, as described above.
[0034] A computer-readable storage medium storing a computer program that performs a privacy-preserving method for two-party participatory frequent item data mining as described above.
[0035] Beneficial Effects: Compared with existing technologies, the privacy protection method for frequent item data mining involving two parties provided by this invention has the following advantages: Compared with frequent item mining technology that only uses differential privacy, this invention can be carried out directly between the two parties who own the data without the help of a trusted third party. In reality, a trusted third party is almost an idealized model and basically does not exist. In contrast, inventions that only use multi-party secure computation technology cannot provide protection for the final result during the implementation of the invention, which allows hidden attackers to obtain information that only the data owner can obtain through inference attacks and other methods. This invention does not need to worry about such attacks and can effectively prevent hidden attackers. Attached Figure Description
[0036] Figure 1 This is a simplified example diagram of secure multi-party computation;
[0037] Figure 2 This is the overall framework for implementing the present invention;
[0038] Figure 3 This is a flowchart illustrating the specific steps of the cutting process;
[0039] Figure 4 This is a flowchart illustrating the specific process of secret sharing between A and B;
[0040] Figure 5 This is a flowchart illustrating the specific sorting process;
[0041] Figure 6 This is a flowchart illustrating the specific process of Top-k selection. Detailed Implementation
[0042] The present invention will be further illustrated below with reference to specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. After reading the present invention, any modifications of the present invention in various equivalent forms by those skilled in the art will fall within the scope defined by the appended claims.
[0043] Privacy protection methods for frequent item data mining involving two parties include the following:
[0044] Array cut. Based on Figure 3 As shown, initially, both participants A and B possess a large amount of data. However, in Top-k selection, most of the data is useless. Therefore, slicing can reduce time complexity while maintaining accuracy. Array slicing includes the following steps:
[0045] Step 11: The two participants, A and B, agree on a value k′ = k.
[0046] Step 12: A generates a Bloom array blm, adds its Top-k' data into the Bloom array blm using the function bloom_add, and then sends blm to B.
[0047] Step 13: B uses the Bloom filter function bloom_check to check its local data in turn. bloom_check will determine whether a certain element is in the Bloom array blm. Then, participant B counts the number of keys in blm locally as c.
[0048] Step 14: If c ≥ μk′ (0 < μ ≤ 1), participants A and B extract the first k′ elements of the array and exit; otherwise, let k′ = 2k′, and repeat steps 12-14 until the condition c ≥ μk′ (0 < μ ≤ 1) is met, or the loop count exceeds the given value. The given value can be determined based on the system's computing power.
[0049] Step 15: After completing steps 12-14 above, A and B will each hold an array of length k'.
[0050] Secret sharing. According to... Figure 4 As shown, before sorting, the cut arrays of participants A and B are merged. Therefore, an additive secret sharing technique is required. The secret sharing includes the following steps:
[0051] Step 21: A creates an array (shr_dataset> locally. A B creates an array (shr_dataset> locally. B .
[0052] Step 22: A encrypts a key using an encryption algorithm. s Then key s Send it to B.
[0053] Step 23: B generates a random number rnd and sends it to A.
[0054] Step 24: A in<shr_dataset> A Add elements<key,rnd+value(key)> Here, value(key) refers to the data value of key in A. B is discussed in two cases: if a key in B, when encrypted using the same encryption algorithm, can yield the key... s Then in<shr_dataset> B Add elements<null,rnd-value(key)> Here, value(key) refers to the data value of key in B; if such a key does not exist in B, then B is in<shr_dataset> B Add elements<null,rnd> null is an empty value, indicating that B does not know A's key value.
[0055] Step 25: A iterates through each key in the array and repeats steps 22-24. After A has sent all his keys, B generates a random number `rnd` for the keys that were not retrieved in step 24 and sends it to A. For each key that B did not retrieve, A...<shr_dataset> A Add elements<null,rnd> B in<shr_dataset> B Add<null,rnd-value(key)> .
[0056] After the above steps, we obtain mutually corresponding positions.<shr_dataset> A and<shr_dataset> B The two arrays can be merged and treated as a single virtual array, with the relationship shr_dataset =<shr_dataset> A -<shr_dataset> B That is, for any<key,value> ∈shr_dataset, value = <value> A - <value> B ,in <value> A A locally stores a secret fragment of value, (value> B A secret fragment of the value is stored locally for B.
[0057] Safe sorting. Safe sorting utilizes the ABY framework. Comparisons constructed using ABY are safe comparisons, employing techniques such as obfuscated circuits. Since much data remains unused in the merged virtual array shr_dataset, only a subset of the data is sorted. Heap sort is used to achieve the goal of sorting only a portion of the elements.
[0058] according to Figure 5 As shown, the specific steps include the following:
[0059] Step 31: A and B jointly participate in creating a max heap on the virtual array shr_dataset. The comparison operation during heap construction is constructed using the ABY circuit, which enables safe comparison operations.
[0060] Step 32: Proceed After popping and adjusting the max-heap, a new shr_dataset is obtained, which is now ordered. It is a parameter preset by the system. Generally let
[0061] Step 33: After obtaining the new shr_dataset, discard the unsorted elements.
[0062] Top-k selection. This process still needs to be completed jointly by A and B within the multi-party secure computation framework ABY. Because of this... Therefore, selection does not require partial selection; it is sufficient to select each option with different probabilities. A safe calculation method based on the median is employed for this purpose. Figure 6 As shown, the specific process is as follows:
[0063] Step 41: Take shr_dataset- as the reverse of shr_dataset and construct the array (shr_dataset-, shr_dataset).
[0064] Step 42: Since shr_dataset is already sorted from largest to smallest, the new array will show a trend of increasing from smallest to largest and then decreasing again. This is similar to a symmetrical distribution curve such as the normal distribution. Therefore, a distribution function can be constructed using the normal distribution. Then, A and B each generate random numbers and use them as input. The specific array index is calculated using the inverse function of the distribution function. Finally, the corresponding (key, value) is selected based on the index.
[0065] Step 43: Remove the selected (key, value) from the array (shr_dataset-, shr_dataset), and repeat steps 42 and 43 until all k data are selected.
[0066] Obviously, those skilled in the art should understand that the steps of the privacy protection method for frequent item data mining involving two parties in the above embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using device-executable program code, thereby storing them in a storage device for execution by a computing device. Furthermore, in some cases, the steps shown or described can be performed in a different order than presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular hardware and software combination.< / value> < / value> < / value> < / value> < / value> < / value> < / value> < / s1>
Claims
1. A privacy protection method for frequent item data mining involving two parties, characterized in that, The method comprises two participants A and B, wherein each participant respectively owns an array of key-value pairs ; at A and B local, participants A and B first sort the local data according to the value in the key-value pair, and then cut the local array according to the length agreed upon by each other; then, participants A and B merge the arrays of both parties into a large shared array through secure calculation, A and B hold the secret fragments that can constitute the shared array, realize secret sharing, and use secure comparison to safely sort the shared array; finally, Top-k selection, through the exponential mechanism of differential privacy, the Top-k result is selected from the result of safe sorting; Array cutting includes the following steps: Step 11: The two participants, A and B, agree on a value. k; Step 12: A generates a Bloom array blm and sets its Top-... Data is processed by a function Add it to the Bloom array blm, and then send blm to B; Step 13: B is filtered by the Bloom filter function. Check its local data in sequence. It will determine whether a certain element is in the Bloom array blm, and then participant B will count the number of keys in the Bloom array locally as c; Step 14: If Participants A and B extract the first part of the array. If the element is empty, exit; otherwise, let... 2k', repeat steps 12-14 until the condition is met. Exit or the number of loop iterations exceeds the given value; the given value depends on the system's processing power. Step 15: After completing steps 12-14 above, A and B will each hold an array of length k'; Secret sharing includes the following steps: Step 21: A creates an array locally. B creates an array locally. ; Step 22: A encrypts a [something] using an encryption algorithm. for Then Send to B; Step 23: B generates a random number rnd and sends it to A; Step 24: A in Add elements ,in This refers to A. The data value for B; B is discussed in two cases: if B contains one Encrypting with the same encryption algorithm will yield the following result: Then in Add elements ,in This refers to B. The data value; if such a value does not exist in B. Then B is Add elements null is an empty value, indicating that B does not know A's... value; Step 25: A iterates through each element in the array. And repeat steps 22-24; after A has sent all of his... Then, B is the one that was not retrieved in step 24. Generate a random number rnd and send it to A; for each unsearched number in B... A in Add elements B in Add to; After steps 21-25 above, we obtain mutually corresponding positions. and The two arrays can be merged into a single virtual array, and a relationship exists between them. That is, for any , ,in For A, local storage Secret fragments, B stored locally Secret fragments.
2. The privacy protection method for frequent item data mining involving two parties as described in claim 1, characterized in that, Safe sorting includes the following steps: Step 31: A and B in the virtual array The components work together to create a max-heap. The comparison operation during heap construction uses an ABY circuit for construction, and then performs a safe comparison operation. Step 32: Proceed The second pop and max-heap adjustment yield a new At this time It's already in order; It is a parameter preset by the system. ; Step 33: Obtain the new Then, discard the unsorted elements.
3. The privacy protection method for frequent item data mining involving two parties according to claim 1, characterized in that, The Top-k selection process is as follows: Step 41: Take for Reverse the order and construct an array ; Step 42: Due to Since the array is already ordered from largest to smallest, the new array exhibits a trend of increasing from smallest to largest and then decreasing again. This is similar to the symmetrical distribution curve of a normal distribution, so a distribution function can be constructed using the normal distribution. Then, A and B each generate random numbers and use them as input. The array index is calculated using the inverse function of the distribution function, and finally, the corresponding array is selected based on the index. ; Step 43: Select the... From the array Delete, and repeat steps 42 and 43 until all k data points are selected.
4. A computer device, characterized in that: The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a privacy protection method for two-party participation in frequent item data mining as described in any one of claims 1-3.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program that performs a privacy-preserving method for two-party participation in frequent item data mining as described in any one of claims 1-3.
