Data privacy protection method based on negative database and deep learning based on ciphertext
By using ciphertext-based negative database and XOR encryption technology in deep learning to generate negative database outlines and train the deep learning network, the problem of difficulty in balancing efficiency and accuracy in deep learning data privacy protection is solved, and a more efficient and Accurate privacy protection.
Patent Information
- Application Number
- CN202210159783.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-02-22
AI Technical Summary
Existing deep learning data privacy protection methods are difficult to balance between efficiency and accuracy. Differential privacy methods affect data accuracy. Homomorphic encryption methods have high computational costs and are unaffordable in efficiency in large-scale data scenarios.
Using a ciphertext-based negative database combined with a deep learning algorithm, the original data is preprocessed, XOR encrypted, a negative database summary is generated, and the deep learning network is trained to improve the efficiency and accuracy of privacy protection.
It improves the efficiency and accuracy of the data privacy protection process, reduces computational costs, enhances robustness, and solves the shortcomings of differential privacy and homomorphic encryption methods.
Smart Images

Figure CN114626086B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data privacy protection, and relates to a new data privacy protection method, and specifically to a data privacy protection method based on a negative database and deep learning based on ciphertext. Background Art
[0002] In recent years, deep learning has attracted widespread attention from academia and industry for its ability to mine useful knowledge from large-scale data. Deep learning has been applied to various fields and has achieved many remarkable breakthroughs and developments. However, few studies have focused on the importance of privacy issues, because a large amount of data is involved, and privacy issues have become more important than ever. For example, medical data may contain patients' private data, such as diseases, family history, and DNA sequences. Some financial institutions, such as banks, store sensitive information of many customers. Once the data is leaked during analysis, it will cause immeasurable losses and even threaten personal safety. Therefore, while these technologies benefit mankind and accelerate social development, they should also pay more attention to its potential problem - privacy leakage.
[0003] In recent years, several privacy-preserving deep learning methods have been proposed, however, most of them suffer from decreased efficiency or decreased accuracy. Specifically, methods based on differential privacy protect data privacy by adding noise, which affects the accuracy and practicality of the data. Methods based on homomorphic encryption usually require high computational costs and become unbearable in scenarios with large-scale data.
[0004] Negative database (NDB) is a new form of information representation inspired by the negative selection mechanism in artificial immune system. NDB stores information in a supplementary set of DB to achieve privacy protection, and it can also support operations such as insertion, deletion, update and selection like traditional databases. It has been proved that reversing negative database to restore original data is an NP-hard problem. In addition, it supports rough distance estimation. These characteristics make it suitable for many fields of privacy protection, such as password authentication, information hiding, biometric authentication and data mining.
[0005] Although negative data combined with deep learning can achieve effective privacy protection, the degree of privacy protection may be improved when the parameter settings are more extreme. As a simple and efficient operation, XOR operation is used in various scenarios. If XOR processing is performed using randomly generated binary strings before converting the data into a negative database, the privacy of the data will be further protected. Summary of the invention
[0006] In order to solve the above technical problems, the present invention provides a data privacy protection method and system based on ciphertext-based negative data combined with a deep learning algorithm.
[0007] The technical solution adopted by the present invention is: a data privacy protection method based on a negative database of ciphertext and deep learning, which adopts a data privacy protection model to perform data privacy protection;
[0008] The data privacy protection model, the acquisition process includes the following steps:
[0009] Step 1: Preprocess the original data and convert it into a binary string X = {X1…X n};
[0010] Step 2: Randomly generate a key K of a specified length and perform XOR encryption with the data processed in step 1 to obtain the encrypted data X'={X1'…X n '};
[0011] Step 3: Select a negative database generation algorithm, and for the encrypted data X'={X1'…X n '}, generate the corresponding negative database NDB = {NDB1...NDB n};
[0012] Step 4: Extract the summary S of the negative database from step 3 = {S1...S n}, where S i NDB i synopsis of;
[0013] Step 5: Based on the summary S, complete the activation function estimation based on the negative database and train the deep learning network until the network converges to obtain a trained data privacy protection model.
[0014] In view of the characteristics of current negative databases and XOR operations, the present invention proposes a negative database privacy protection method based on ciphertext, which solves the problem that differential privacy is difficult to balance privacy and utilization, and the problem that methods such as homomorphic encryption lead to excessive computational costs. It has strong robustness and comprehensively improves the efficiency and accuracy of the privacy protection deep learning process. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a flowchart of a method according to an embodiment of the present invention;
[0016] Figure 2 A diagram of a method application scenario of an embodiment of the present invention;
[0017] Figure 3 This is an example diagram of XOR encryption according to an embodiment of the present invention;
[0018] Figure 4 This is a comparison diagram between the embodiment of the present invention and the original activation function estimation. DETAILED DESCRIPTION
[0019] In order to facilitate ordinary technicians in the field to understand and implement the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0020] Please see Figure 1 and Figure 2 , the present invention provides a data privacy protection method based on a negative database and deep learning based on ciphertext, which adopts a data privacy protection model to perform data privacy protection;
[0021] The data privacy protection model of this embodiment, the acquisition process includes the following steps:
[0022] Step 1: Preprocess the original data and convert it into a binary string X = {X1…X n};
[0023] Step 2: Randomly generate a key K of a specified length and perform XOR encryption with the data processed in step 1 to obtain the encrypted data X'={X1'…X n '};
[0024] In this embodiment, the original data X={X1…X n} is encrypted as X'={X1'…X n '};
[0025] The key K is len xor If x=X k , then the jth bit of the i-th attribute of x will be equal to the (i×L+j)%lenth bit of the key K xor Bitwise XOR operation Where L represents the length of the attribute. Figure 3 Demonstrated XOR encryption example.
[0026] This embodiment can generate keys of different lengths according to the characteristics of the original data to achieve different degrees of privacy protection. This embodiment adopts the QK-hidden negative database generation algorithm, which can control the distribution of negative database records in a finer granularity through a set of parameters Q, thereby making the calculation more accurate.
[0027] Step 3: Select a negative database generation algorithm, and for the encrypted data X'={X1'…X n '}, generate the corresponding negative database NDB = {NDB1...NDB n};
[0028] This embodiment targets the encrypted data X'={X1'...X n '}, and then use the QK-hidden algorithm to generate the corresponding negative database NDB = {NDB1…NDB n}, where NDB i (i=1...n) is the ciphertext X i 'Generated negative database.
[0029] Step 4: Extract the summary S of the negative database from step 3 = {S1...S n}, where S i NDB i and upload it to a high-performance server;
[0030] This embodiment extracts a summary S from the negative database in NDB = {S1...S n}, where S i NDB i The outline of S and label data y = {y1…y n}Upload to the server.
[0031] This embodiment improves efficiency by extracting a sketch of the negative database. The sketch is a two-dimensional array that stores the number of '0' and '1' recorded in each bit of the negative database, which compresses the negative database and improves security.
[0032] Step 5: The server receives the sketch uploaded in step 4, completes the activation function estimation based on the negative database, and trains the deep learning network until the network converges to obtain a trained data privacy protection model.
[0033] Please see Figure 4 In this embodiment, since the sketch obtained by the server is input into the neural network instead of the original private data, the activation function can no longer be calculated using the original data. Therefore, for activation functions such as Sigmoid, ReLU and tanh, their initial calculation method in the neural network is as follows:
[0034]
[0035]
[0036]
[0037] Among them, z represents the linear calculation result in the neuron and is expressed as x=x1…x Mrepresents the original private data, x∈X, M represents the number of attributes of input x, w1,…,w M Represents the weight parameters in the neural network;
[0038] If the input is x, the negative database generated by it is NDB x , then NDB is calculated by formula (4) x The probability P that the i-th digit of the record is different from x diff [i];
[0039]
[0040] K means there are K types of negative database records, among which the negative database record of the i-th type has i definite bits, p j represents the probability of generating the jth type of negative database record, which has j determined bits opposite to the corresponding positions of the hidden string, and the remaining Kj determined bits are the same as the hidden string, q i represents the probability that the i-th bit of the selected attribute is different from the corresponding position of the hidden string; L represents the number of bits of the attribute;
[0041] like Represents NDB x The probability that the jth bit of the i-th attribute in the corresponding hidden string x is '0' is calculated by formula (5);
[0042]
[0043] Among them, P same [j] indicates NDB x The probability that the jth bit recorded in is the same as the hidden string in the corresponding position; n0 and n1 are NDB x The number of all records in which the jth bit of the ith attribute is '0' or '1' is obtained from the result obtained in step 3; if x = X k , then n0=S k [i×L+j][0],n1=S k [i×L+j][1],
[0044] The probability that the i-th attribute of x is d is calculated by formula (6):
[0045]
[0046] Where 0≤d≤2 L -1, is x i The binary representation of d is d bin =b1...b L ;
[0047] Then, according to formula (7), Substitute z in formulas (1), (2) and (3) to complete the estimation of the activation function;
[0048]
[0049] This embodiment trains a deep learning network. Each time, a batch of data of size t is selected to complete the forward propagation calculation through formula (7); and then the gradient is calculated through back propagation through formula (8) Finally, the weight W = {W1…W n} until the parameters reach the optimal value or the maximum number of iterations is reached;
[0050]
[0051]
[0052] Where y={y1…y n} is the input X={X1…X n} corresponding label data, Loss represents the loss function, and η is the learning rate.
[0053] During the testing phase, the user re-uploads the test data to the server after transformation in steps 1 and 2. The server predicts it using the trained model and returns the result to the client.
[0054] It should be understood that the above description of the preferred embodiment is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested for the present invention shall be based on the attached claims.
Claims
1. A data privacy protection method based on a negative database and deep learning based on ciphertext, characterized in that: Adopt data privacy protection model to protect data privacy; The data privacy protection model, the acquisition process includes the following steps: Step 1: Preprocess the original data and convert it into a binary string X = {X1…X n }; Step 2: Randomly generate a key K of a specified length and perform XOR encryption with the data processed in step 1 to obtain the encrypted data X'={X1'…X n '}; Step 3: Select a negative database generation algorithm, and for the encrypted data X'={X1'…X n '}, generate the corresponding negative database NDB = {NDB1...NDB n }; Step 4: Extract the summary S of the negative database from step 3 = {S1...S n }, where S i NDB i synopsis of; Step 5: Based on the summary S, complete the activation function estimation based on the negative database and train the deep learning network until the network converges to obtain a trained data privacy protection model.
2. The data privacy protection method based on ciphertext negative database and deep learning according to claim 1 is characterized in that: In step 2, the original data X={X1…X n } is encrypted as X'={X1'…X n '}; The key K is len xor If x=X k , then the jth bit of the i-th attribute of x will be equal to the (i×L+j)%lenth bit of the key K xor Bitwise XOR operation Where L represents the length of the attribute.
3. The data privacy protection method based on ciphertext negative database and deep learning according to claim 1, characterized in that: In step 5, for the Sigmoid, ReLU and tanh activation functions f1(z), f2(z), f3(z), the calculation method in the neural network is as follows: Among them, z represents the linear calculation result in the neuron and is expressed as [x1…x M ] represents the original private data, x∈X, M represents the number of attributes of input x, w1,…,w M Represents the weight parameters in the neural network; If the input is x, the negative database generated by it is NDB x , then NDB is calculated by formula (4) x The probability P that the i-th bit recorded in is different from the corresponding position of the hidden string diff [i]; In the above formula, K represents K types of negative database records, among which the negative database record of the i-th type has i definite bits, p j represents the probability of generating the jth type of negative database record, which has j determined bits opposite to the corresponding positions of the hidden string, and the remaining Kj determined bits are the same as the hidden string, q i represents the probability that the i-th position of the selected attribute is different from the corresponding position of the hidden string, and L represents the length of the attribute; like Represents NDB x The probability that the jth bit of the i-th attribute in the corresponding hidden string x is '0' is calculated by formula (5); Among them, P same [j] indicates NDB x The probability that the jth bit recorded in is the same as the hidden string in the corresponding position; n0 and n1 are NDB x The number of all records in which the jth bit of the ith attribute is '0' or '1', if x = X k , then n0=S k [i×L+j][0],n1=S k [i×L+j][1], The probability that the i-th attribute of x is d is calculated by formula (6): Where 0≤d≤2 L -1, is x i The binary representation of d is d bin =b1...b L ; Then, according to formula (7), Substitute z in formulas (1), (2) and (3) to complete the estimation of the activation function; 4. The data privacy protection method based on ciphertext negative database and deep learning according to claim 3 is characterized in that: In step 5, the deep learning network is trained, and each time a batch of data of size t is selected to complete the forward propagation calculation through formula (7); and then the gradient is calculated by back propagation through formula (8) Finally, the weight W is updated by formula (9) until the parameter reaches the optimal value or the maximum number of iterations is reached; Where y={y1…y n } is the input X={X1…X n } corresponding label data, Loss represents the loss function, and η is the learning rate.
Citation Information
Patent Citations
Non-interactive privacy protection multi-party machine learning method
CN111260081A
Federal learning privacy protection method based on homomorphic encryption
CN113434873A
