Data publishing method, data receiving method, equipment and storage medium
The annotation and de-identification operations of structured data through the annotation matrix solve the problems of data business attributes and overhead in data protection in the existing technology, realize the reversible de-identification and reprocessing of data, and avoid data distortion.
Patent Information
- Application Number
- CN202411147482.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-21
- Publication Date
- 2024-09-17
AI Technical Summary
When protecting data with existing technologies, it is difficult to maintain the business attributes of the data while avoiding the additional overhead and data distortion problems caused by data encryption.
By annotating and de-identifying structured data based on the annotation matrix, a de-identified data set is generated, and the annotation matrix is stored in a non-volatile storage space. Access control permissions are set to achieve reversible de-identification of data and maintain data services. properties and avoid data distortion.
It achieves the reprocessing and reprocessing of data while maintaining the business attributes of the data without adding additional overhead, and performs reversible de-identification of important data while ensuring security, avoiding data distortion.
Smart Images

Figure CN118656873A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information security technology, and in particular to a data publishing method, a data receiving method, a device and a storage medium. Background Art
[0002] With the development of artificial intelligence (AI) and big data, various data-based applications are becoming increasingly widespread, making data an important production factor in the digital economy. However, with this comes increasingly prominent data security risks. For example, since network devices such as servers and storage devices involve data collection and processing during operation, if key system data is leaked during data processing, it will bring security risks to the system and even endanger the public interest. In addition, personal data involving users, such as bank account numbers, passwords, ID numbers, home addresses and other personal privacy information, are also important data. Once leaked, illegally provided or abused, it may endanger personal and property safety, and easily lead to damage to personal reputation, physical and mental health, or discriminatory treatment. Therefore, it is necessary to take protective measures for important data such as key system data and personal privacy information.
[0003] At present, in order to ensure that important data such as key system data and personal privacy information are not leaked or known to the outside world, data desensitization technology is usually used to protect important data. For example: ① Using data encryption to protect data privacy, this method belongs to low-level desensitization, the encrypted data will lose business attributes, and the overhead is large, and the key needs to be kept; ② Using random interference, noise suppression and other methods to protect data privacy, this method is an irreversible technology, which distorts the data and cannot be reprocessed or reprocessed. Summary of the invention
[0004] The present invention provides a data publishing method, a data receiving method, a device and a storage medium, which are used to maintain the business attributes of data without increasing additional overhead; and will not cause data distortion, and can reprocess and re-process the data.
[0005] In a first aspect, the present invention provides a data publishing method, comprising: Based on the labeling matrix, each important field in the structured original data set is labeled, and each labeled important field is de-identified to obtain a de-identified data set; the labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; Publicly publishing the de-identified dataset; The labeling matrix is stored in a non-volatile storage space, and access control permissions of the non-volatile storage space are set.
[0006] According to a data publishing method provided by the present invention, the original data set is represented by a matrix, and each element of the matrix represents a field; Each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, and a de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The method of labeling each important field in the original data set based on the labeling matrix and performing a de-labeling operation on each labeled important field to obtain a de-labeled data set includes: For each field in the original data set, determining whether the field is an important field based on the importance identifier of the field in the annotation matrix; If the field is an important field, marking the field; A de-identification operation is performed on a character string starting from the de-identification start position in the marked important field and having a length equal to the de-identified character length, and finally the de-identified data set is obtained.
[0007] According to a data publishing method provided by the present invention, the de-identification operation is performed on a character string starting from the de-identification start position in the marked important field and having a length equal to the de-identified character length, including: Concealing a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length as an asterisk character string or a space character string of the same character length; The method further comprises: constructing a recovery matrix based on the anonymized character strings in the de-identified data set; The recovery matrix is stored in the non-volatile storage space.
[0008] According to a data publishing method provided by the present invention, each element in the annotation matrix further includes a random string of characters of the de-identified length; The de-identifying operation is performed on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length, including: A logical addition operation is performed bit by bit on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length and a corresponding random character string.
[0009] According to a data publishing method provided by the present invention, the random string is generated by a noise signal collector; the noise signal collector includes: a first resistor, an operational amplifier, a second resistor, an analog-to-digital converter, a parallel-to-serial converter and a controller; the first end of the first resistor serves as an input end of an analog voltage signal, the positive input end of the operational amplifier is grounded, the second end of the first resistor is connected to the negative input end of the operational amplifier, the output end of the operational amplifier is connected to the first end of the second resistor, the second end of the second resistor is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is respectively connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter, and the output end of the parallel-to-serial converter serves as the output end of the random string.
[0010] According to a data publishing method provided by the present invention, each element in the labeling matrix further includes the number of cyclically shifted characters and a perturbation value of the de-identified character length; The de-identifying operation is performed on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length, including: Circularly shift a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length by the number of characters of the cyclic shift; The character string after the circular shift is logically added bit by bit with the disturbance value of the corresponding de-identified character length.
[0011] According to a data publishing method provided by the present invention, the disturbance value of the de-identified character length is generated by the following steps: The character strings of all fields in the column where the marked important fields are located, whose length is the de-identified character length starting from the de-identified starting position, are accumulated and summed, and then the average value is taken to obtain the disturbance value of the de-identified character length.
[0012] In a second aspect, the present invention further provides a data receiving method, comprising: receiving a de-identified dataset; Obtaining access control authority of a non-volatile storage space, and reading a labeling matrix from the non-volatile storage space; the labeling matrix is used to characterize whether each field in the original data set is important and a de-identification scheme for each field; Based on the labeling matrix, the de-identified characters of each important field in the de-identified data set are restored to obtain the original data set.
[0013] According to a data receiving method provided by the present invention, the de-identified data set is represented by a matrix, and each element of the matrix represents a field; Each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, and a de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The step of restoring the de-identified characters of each important field in the de-identified data set based on the labeling matrix to obtain the original data set includes: For each field in the de-identified data set, determining whether the field is an important field based on the importance identification of the field in the annotation matrix; In the case that the field is an important field, a recovery operation is performed on a character string in the important field whose length is the length of the de-identified characters starting from the de-identified starting position, and finally the original data set is obtained.
[0014] According to a data receiving method provided by the present invention, the method further includes: Reading a recovery matrix from the non-volatile storage space; the recovery matrix is constructed based on the character string concealed in the de-identified data set; The restoring operation of the character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length includes: Determine the character string in which the important field is concealed from the recovery matrix; The asterisk character string or the space character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length is restored as the concealed character string.
[0015] According to a data receiving method provided by the present invention, each element in the annotation matrix further includes a random string of the de-identified character length; The restoring operation of the character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length includes: Reading a random character string of the de-identified character length corresponding to the important field from the annotation matrix; A logical subtraction operation is performed bit by bit on a character string in the important field whose length is the de-identified character length starting from the de-identified starting position and a random character string of the de-identified character length corresponding to the important field.
[0016] According to a data receiving method provided by the present invention, each element in the labeling matrix further includes the number of cyclically shifted characters and a disturbance value of the de-identified character length; The restoring operation of the character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length includes: Reading the number of characters of the cyclic shift and the disturbance value of the de-identified character length corresponding to the important field from the labeling matrix; A logical subtraction operation is performed bit by bit on a character string in the important field whose length starting from the de-identified starting position is the de-identified character length and a disturbance value of the de-identified character length corresponding to the important field, and then the character string is cyclically shifted in the reverse direction by the number of characters corresponding to the cyclic shift of the important field.
[0017] In a third aspect, the present invention further provides a data publishing device, comprising: The annotation module is used to annotate important fields in the structured original data set based on the annotation matrix; The de-identification module is used to perform a de-identification operation on each marked important field to obtain a de-identified data set; the marking matrix is used to indicate whether each field in the original data set is important and the de-identification scheme of each field; A publishing module, used to publicly publish the de-identified dataset; A storage module, used for storing the labeling matrix in a non-volatile storage space; The setting module is used to set the access control authority of the non-volatile storage space.
[0018] In a fourth aspect, the present invention further provides a data receiving device, comprising: A receiving module, used for receiving a de-identified data set; An acquisition module, used to obtain access control permissions for non-volatile storage space; A reading module, used for reading a labeling matrix from the non-volatile storage space; the labeling matrix is used to characterize whether each field in the original data set is important and a de-identification scheme for each field; The recovery module is used to recover the de-identified characters of each important field in the de-identified data set based on the labeling matrix to obtain the original data set.
[0019] In a fifth aspect, the present invention further provides a network communication device, comprising: a host computer, a control board plugged into the network communication device, and a user unit; the control board comprises a controller; the controller comprises a data buffer, a control module, a read-only memory, and a permission register group; the control module is respectively connected to the data buffer, the read-only memory, and the permission register group in communication; The host computer is used to perform structured processing on the original data to obtain a structured original data set, and store the original data set in the data buffer area; The control module is used to mark each important field in the original data set stored in the data buffer area based on the marking matrix, and perform a de-identification operation on each marked important field to obtain a de-identified data set, and return the de-identified data set to the data buffer area; the marking matrix is used to indicate whether each field in the original data set is important and the de-identification scheme of each field; The host computer is also used to retrieve the de-identified data set from the data buffer area, and send the de-identified data set to the user unit as data disclosed to the outside; The read-only memory is used to store the label matrix; The permission register group is used to store tokens / passwords of legal users; The control module is further used to compare the token / password input by the user with the token / password of the legal user stored in the permission register group, read the label matrix from the read-only memory after the comparison is passed, restore the de-identified characters of each important field in the de-identified data set based on the label matrix, obtain the original data set, and store the original data set in the data buffer area; The host computer is also used to read the original data set from the data buffer area and send the original data set to the user unit.
[0020] According to a network communication device provided by the present invention, each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, and a de-identified character length, and the de-identified character length is less than or equal to the corresponding field length; The control module is specifically used to conceal a character string in a marked important field whose length is the de-identified character length starting from the de-identified starting position into an asterisk character string or a space character string of the same character length; construct a recovery matrix based on the concealed character string in the de-identified data set; store the recovery matrix to the read-only memory; and read the recovery matrix from the read-only memory; determine the concealed character string of the important field from the recovery matrix; and restore the asterisk character string or the space character string in the important field whose length is the de-identified character length starting from the de-identified starting position to the concealed character string.
[0021] According to a network communication device provided by the present invention, each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, a de-identified character length, and a random string of the de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The control board also includes a random number generator, which is used to generate a random string of characters of the de-identified length; The control module is specifically used to perform a bit-by-bit logical addition operation on a character string in the marked important field whose length is the de-identified character length starting from the de-identified starting position and the corresponding random character string; and to read a random character string of the de-identified character length corresponding to the important field from the marked matrix; and to perform a bit-by-bit logical subtraction operation on a character string in the important field whose length is the de-identified character length starting from the de-identified starting position and the random character string of the de-identified character length corresponding to the important field.
[0022] According to a network communication device provided by the present invention, the random number generator is a noise signal collector; the noise signal collector includes: a first resistor, an operational amplifier, a second resistor, an analog-to-digital converter, a parallel-to-serial converter and a controller; the first end of the first resistor serves as an input end of an analog voltage signal, the positive input end of the operational amplifier is grounded, the second end of the first resistor is connected to the negative input end of the operational amplifier, the output end of the operational amplifier is connected to the first end of the second resistor, the second end of the second resistor is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is respectively connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter, and the output end of the parallel-to-serial converter serves as the output end of the random string.
[0023] According to a network communication device provided by the present invention, each element in the labeling matrix includes an importance identifier of a corresponding field, a de-identified starting position, a de-identified character length, a number of cyclically shifted characters, and a perturbation value of the de-identified character length, and the de-identified character length is less than or equal to the corresponding field length; The controller also includes a shift register group; The control module is specifically used to store a character string with a length of the de-identified character length starting from the de-identified starting position in the marked important field into the shift register group, circularly shift the character string with the de-identified character length in the shift register group by the number of characters of the circular shift; perform a bit-by-bit logical addition operation on the circularly shifted character string output by the shift register group and the corresponding disturbance value of the de-identified character length; and read the number of circularly shifted characters and the disturbance value of the de-identified character length corresponding to the important field from the marking matrix; perform a bit-by-bit logical subtraction operation on the character string with a length of the de-identified character length starting from the de-identified starting position in the important field and the disturbance value of the de-identified character length corresponding to the important field, and circularly shift the important field in the opposite direction by the number of characters of the circular shift.
[0024] In a sixth aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the processor implements a data publishing method as described in any one of the first aspects above, or implements a data receiving method as described in any one of the second aspects above.
[0025] In the seventh aspect, 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 a data publishing method as described in any one of the first aspects above, or implements a data receiving method as described in any one of the second aspects above.
[0026] In an eighth aspect, the present invention further provides a computer program product, comprising a computer program, which, when executed by a processor, implements a data publishing method as described in any one of the first aspects above, or implements a data receiving method as described in any one of the second aspects above.
[0027] The data publishing method, data receiving method, device and storage medium provided by the present invention include: based on the labeling matrix, labeling each important field in the structured original data set, and performing a de-identification operation on each labeled important field to obtain a de-identified data set; the labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; the de-identified data set is publicly released; the labeling matrix is stored in a non-volatile storage space, and the access control authority of the non-volatile storage space is set. On the one hand, since the present invention does not encrypt all data, but performs a de-identification operation on each labeled important field, the business attributes of the data can be maintained without increasing additional overhead; on the other hand, since the labeling matrix of the present invention can characterize whether each field in the original data set is important and the de-identification scheme of each field, and the labeling matrix is stored in a non-volatile storage space, and the access control authority of the non-volatile storage space is set, the reversible operation of de-identification of important data can be realized under the premise of ensuring security, without causing data distortion, and the data can be reprocessed and re-processed. Therefore, the present invention can maintain the business attributes of the data without adding extra overhead; it also does not cause data distortion and can reprocess and re-handle the data. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0029] Figure 1 It is a flowchart of a data publishing method provided by an embodiment of the present invention.
[0030] Figure 2 It is a schematic diagram of marking important fields in the original data set provided by an embodiment of the present invention.
[0031] Figure 3 It is a schematic diagram of the structure of the recovery matrix provided by an embodiment of the present invention.
[0032] Figure 4 The figure is a schematic diagram of the circuit structure of the noise signal collector provided by the embodiment of the present invention.
[0033] Figure 5 It is a schematic diagram of the principle of cyclic shift provided by an embodiment of the present invention.
[0034] Figure 6 It is a flowchart of a data receiving method provided by an embodiment of the present invention.
[0035] Figure 7 It is a schematic diagram of the data publishing and data receiving process provided by an embodiment of the present invention.
[0036] Figure 8 It is a schematic diagram of the structure of a network communication device provided by an embodiment of the present invention.
[0037] Fig. 9 It is a structural diagram of a data publishing device provided by an embodiment of the present invention.
[0038] Fig.10 It is a structural schematic diagram of a data receiving device provided by an embodiment of the present invention.
[0039] Fig.11 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] First, combine the following Figure 1-Figure 5 The data distribution method of the present invention is described.
[0042] Please refer to Figure 1 , Figure 1 FIG. 1 is a flow chart of a data publishing method provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps 101 to 103.
[0043] Step 101: Based on the labeling matrix, label each important field in the structured original data set, and de-identify each labeled important field to obtain a de-identified data set; the labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field.
[0044] Specifically, the data publisher first needs to structure the original data, converting the unstructured data into structured data to obtain a structured original data set, which makes it easier to enter the data into a computer for processing through a database or data table.
[0045] Optionally, the original data set is represented by a matrix, and each element of the matrix represents a field.
[0046] For example, the original data set Data can be represented by a matrix: Data(n×m)= .
[0047] The original data set Data contains n records (n rows), each row corresponds to an information subject, for example, an information subject that can represent a person or an event; each row includes m fields (m columns), each field corresponds to an attribute of the information subject; the maximum length of the field in each column is L characters.
[0048] Each element in the annotation matrix includes the importance identifier of the corresponding field, the starting position of the de-identification, and the character length of the de-identification, and the character length of the de-identification is less than or equal to the length of the corresponding field.
[0049] For example, the data publisher constructs a labeling matrix A consisting of n rows and m columns of vector elements according to the importance of the field: A(n×m)= .
[0050] Among them, the vector element aij (1≤i≤n, 1≤j≤m) in the labeling matrix A is composed of a triple (id, start, len); id represents the importance identifier of the field in the i-th row and j-th column, id=1 represents important data, and id=0 represents unimportant data; start represents the starting position for de-identifying the field in the i-th row and j-th column; len represents the character length of the de-identified field in the i-th row and j-th column, and len≤L.
[0051] Step 101 includes: Step 1011: for each field in the original data set, determine whether the field is an important field based on the importance identifier of the field in the annotation matrix; Step 1012: if the field is an important field, mark the field; Step 1013: De-identify the character string starting from the de-identified starting position in the marked important fields and having a length equal to the de-identified character length, and finally obtain a de-identified data set.
[0052] In step 1011 and step 1012, if Figure 2 As shown, each important field is labeled based on the importance identification of each field in the labeling matrix.
[0053] Assume that an original field D12 in the original data set Data consists of the characters "abc123def" and the field length is 9. Use the corresponding vector element a12 in the annotation matrix A to annotate D12. If a12=(1, 3, 4), that is, id=1, start=3, len=4, it means that D12 is an important field and needs to be de-identified. It is necessary to de-identify the string "c123" with a length of 4 starting from the third character 'c' of "abc123def". If a12=(0, ×, ×), it means that D12 is a non-important field and does not need to be de-identified. '×' represents an arbitrary value and has no effect on data annotation. It can be recorded as a12=0.
[0054] Step 1013 may include three specific implementations, which are described in detail below.
[0055] (1) Hide the character string of the de-identified character length starting from the de-identified starting position in the marked important field into an asterisk string or a space string of the same character length; construct a recovery matrix based on the hidden character string in the de-identified data set; and store the recovery matrix in a non-volatile storage space.
[0056] For example, the labeled D12 is de-identified using the corresponding vector element a12 in the labeling matrix A. If a12=(1, 3, 4), that is, id=1, start=3, len=4, it means that D12 is an important field and needs to be de-identified. The string "c123" with a length of 4 starting from the third character 'c' of "abc123def" is hidden as a string of asterisks or spaces with a length of 4, that is, D_RM12="abc123def" def" or "ab____def", D_RM12 represents the de-identified D12, and '_' represents a space character. This method can remove sensitive information from important fields, achieve data anonymity, and maintain the statistical characteristics of the data set.
[0057] To identify the dataset as Data_RM: Data_RM(n×m)= .
[0058] in, Indicates the first Line Matrix elements of the columns.
[0059] In order to facilitate the data processor to recover the de-identified data, the hidden character string in the data attribute is stored. For example, the hidden character string "c123" in the above D12 is saved, that is, D_RC12 = "c123", and then the recovery matrix Data_RC is formed: Data_RC(n×m)= .
[0060] in, Represents the first Line Matrix elements of the columns.
[0061] In this implementation, a character string of the length of the de-identified characters starting from the de-identified starting position in the marked important field is hidden as an asterisk string or a space string of the same character length, which can remove sensitive information in the important field and achieve data anonymity while maintaining the statistical characteristics of the data set.
[0062] (2) Each element in the labeling matrix also includes a random string of the length of the de-identified characters. A logical addition operation is performed bit by bit on a string of the length of the de-identified characters starting from the de-identified starting position in the labeled important field and the corresponding random string.
[0063] Optionally, the random string is generated using a noise signal collector. Figure 4 As shown, the noise signal collector includes: a first resistor R S , operational amplifier LM, second resistor R L , analog-to-digital converter (A / D converter), parallel-serial converter and controller. The first resistor R S The first end is used as the analog voltage signal U S The positive input terminal of the operational amplifier LM is grounded, and the first resistor R S The second end of the operational amplifier LM is connected to the negative input end of the operational amplifier LM, and the output end of the operational amplifier LM is connected to the second resistor R L The first end of the second resistor R L The second end is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter respectively, and the output end of the parallel-to-serial converter serves as the output end OUT of the random string.
[0064] For example, the analog voltage signal U S After being amplified by the operational amplifier LM, it becomes an analog voltage signal U L , analog voltage signal U LThen input to the analog-to-digital converter and the reference voltage U set by the controller ref Compare and convert to digital signal U d For example, if U L =3.5V, U ref =5.0V, the analog-to-digital converter is 10 bits, and after analog-to-digital conversion, it is converted into a 10-bit binary digital signal: U d =(3.5 / 5)×2 10 =(717) DEC =(1011001101) BIN (DEC is a decimal number and BIN is a binary number). After parallel-to-serial conversion, the binary digital signal outputs a serial binary character of '1', '0', '1', '1', '0', '0', '1', '1', '0', '1', '1', a random character string at the output end OUT.
[0065] It should be noted that the analog voltage signal U L It changes continuously over time, and the controller can control the analog-to-digital converter to continuously collect the external analog voltage signal. Therefore, the output terminal OUT can output a continuous random binary string "1011001101...", and the random binary string is used as the noise signal. In addition, the more bits the analog-to-digital converter has, the higher the accuracy, and the better the randomness of the generated noise signal. For example, a 12-bit or 15-bit analog-to-digital converter can be used, but the present embodiment is not limited thereto.
[0066] The vector element aij (1≤i≤n, 1≤j≤m) in the label matrix A is composed of a four-tuple (id, start, len, rand), where rand represents a random string of len characters. For example, the label matrix A can be: A= , and then form the de-identified data set Data_RM.
[0067] Assume that an original field D12 in the original data set Data consists of the characters "abc123def". If a12 = (1, 3, 4, 1101), "1101" is a random string of length 4 generated by the noise signal collector. Add "1101" to D12, that is, perform a bitwise logical addition operation on the string "c123" to be de-identified in D12 and "1101", and obtain "d224". Therefore, the de-identified D12 is D_RM12 = "abd224def".
[0068] In this implementation, there is no need to use asterisk strings or space strings to conceal sensitive information in the original data set, so the data remains relatively intact and is also convenient for data analysis and statistics. In addition, a string of characters with a length equal to the length of the de-identified characters starting from the de-identified starting position in the marked important field is logically added to the corresponding random string bit by bit, so that the de-identified data looks real, thereby confusing malicious personnel and preventing them from obtaining important information.
[0069] (3) Each element in the labeling matrix also includes the number of characters of the circular shift and the perturbation value of the de-identified character length. The character string starting from the de-identified starting position in the labeled important field and having a length equal to the de-identified character length is circularly shifted by the number of characters of the circular shift; the character string after the circular shift is logically added bit by bit with the corresponding perturbation value of the de-identified character length.
[0070] Specifically, the vector element aij (1≤i≤n, 1≤j≤m) in the labeling matrix A is composed of a quintuple (id, start, len, mov, base), where mov represents the number of characters that need to be cyclically shifted left for data of len characters in length, and base is the disturbance value of len characters in length.
[0071] Optionally, the disturbance value of the de-identified character length is generated by the following steps: the character strings whose length is the de-identified character length starting from the de-identified starting position in all fields of the column where the marked important fields are located are accumulated and then the average value is taken to obtain the disturbance value of the de-identified character length.
[0072] The perturbation value of len characters is calculated by expression (1): base= (1)
[0073] in, The function represents the truncation of len characters starting from the start position of field Dij.
[0074] After truncating the character strings of each data in the field Dij (jth column) of the original data set Data, the accumulated sum is taken and the average is taken. The obtained base value is used as the disturbance value of len characters in length.
[0075] Optionally, use Figure 4 The noise signal collector shown generates a random string of de-identified character length as a disturbance value of the de-identified character length, so that the randomness of the generated disturbance value is better.
[0076] like Figure 5As shown, the shift register group Reg[L-1..0] includes L registers Reg, corresponding to L characters of the maximum length of the field in the data record. The controller stores the string of len characters starting from the start position in the marked important field into the len registers in the shift register group, cyclically shifts left (right) by mov characters, and outputs the string D_out[len-1..0] after cyclic shift.
[0077] Assume that an original field D12 in the original data set Data consists of the characters "abc123def". If a12 = (1, 3, 4, 2, 1110), '2' means that the intercepted string is cyclically shifted to the left by 2 characters, and "1110" is the perturbation value of length 4 calculated according to expression (1). Input the string "c123" of length 4, the controller stores the string "c123" into Reg[3..0] in the shift register group, and cyclically shifts each character in the string "c123" to the left by 2 characters in turn to obtain the shifted string "23c1". Then, the perturbation value "1110" and "23c1" are logically added bit by bit to obtain "34d1", and the output terminal D_out[3..0] = "34d1". Therefore, the de-identified data is D_RM12 = "ab34d1def".
[0078] After the data publisher constructs the labeling matrix A, it performs cyclic shift on the data to be de-identified by cyclic shift and adds the perturbation value base to form the de-identified data set Data_RM.
[0079] In this implementation, since a cyclic shift operation is added, that is, a disordering step is added before data de-identification, data security is higher.
[0080] Step 102: Publicly release the de-identified dataset.
[0081] Specifically, the de-identified dataset Data_RM will be publicly released.
[0082] Step 103: store the labeling matrix into a non-volatile storage space, and set access control permissions for the non-volatile storage space.
[0083] Specifically, to ensure the confidentiality of data and prevent malicious personnel from recovering data, the labeling matrix A, or the labeling matrix A and the recovery matrix Data_RC are securely stored, and can be stored in a non-volatile storage space (e.g., Read-Only Memory (ROM)) to prevent data loss. In addition, access control permissions are set, such as setting tokens and passwords of legitimate users, so that only designated legitimate data processors can access the storage space to recover and reprocess the de-identified data.
[0084] The data publishing method provided by the embodiment of the present invention includes: based on the annotation matrix, annotating each important field in the structured original data set, and performing a de-identification operation on each annotated important field to obtain a de-identified data set; the annotation matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; the de-identified data set is publicly released; the annotation matrix is stored in a non-volatile storage space, and the access control authority of the non-volatile storage space is set. On the one hand, since the embodiment of the present invention does not encrypt all data, but performs a de-identification operation on each annotated important field, the business attributes of the data can be maintained without adding additional overhead; on the other hand, since the annotation matrix of the embodiment of the present invention can characterize whether each field in the original data set is important and the de-identification scheme of each field, and the annotation matrix is stored in a non-volatile storage space, and the access control authority of the non-volatile storage space is set, the reversible operation of de-identification of important data can be realized under the premise of ensuring security, without causing data distortion, and the data can be reprocessed and reprocessed. Therefore, the embodiment of the present invention can maintain the business attributes of the data without adding additional overhead; and it will not cause data distortion, and the data can be reprocessed and reprocessed.
[0085] Combine the following Figure 6 The data receiving method is described in detail.
[0086] Please refer to Figure 6 , Figure 6 FIG. 1 is a flow chart of a data receiving method provided by an embodiment of the present invention. Figure 6 As shown, the method may include steps 601 to 603.
[0087] Step 601: Receive a de-identified data set.
[0088] Specifically, since the de-identified dataset Data_RM is publicly released, both ordinary users and data processors can browse it. Since sensitive information is removed from the de-identified dataset Data_RM, important data will not be leaked.
[0089] Step 602: Obtain access control authority for the non-volatile storage space, and read a labeling matrix from the non-volatile storage space; the labeling matrix is used to characterize whether each field in the original data set is important and a de-identification scheme for each field.
[0090] Specifically, the data processor obtains a token / password based on the authorization of the data publisher, and compares the token / password input by the data processor with the token / password of the legitimate user stored in the non-volatile storage space. If the comparison passes, the access control authority of the non-volatile storage space is obtained, and the label matrix A is read from it.
[0091] Step 603: Based on the labeling matrix, the de-identified characters of each important field in the de-identified data set are restored to obtain the original data set.
[0092] Optionally, the de-identified dataset is represented by a matrix, and each element of the matrix represents a field.
[0093] For example, the de-identified data set Data_RM can be represented by a matrix: Data_RM(n×m)= .
[0094] The de-identified dataset Data_RM contains n records (n rows), each row corresponds to an information subject, for example, an information subject that can represent a person or an event; each row includes m fields (m columns), each field corresponds to a de-identified attribute of the information subject; the maximum length of the field in each column is L characters.
[0095] Each element in the annotation matrix includes the importance identifier of the corresponding field, the starting position of the de-identification, and the character length of the de-identification, and the character length of the de-identification is less than or equal to the length of the corresponding field.
[0096] For example, the data publisher constructs a labeling matrix A consisting of n rows and m columns of vector elements according to the importance of the field: A(n×m)= .
[0097] Among them, the vector element aij (1≤i≤n, 1≤j≤m) in the labeling matrix A is composed of a triple (id, start, len); id represents the importance identifier of the field in the i-th row and j-th column, id=1 represents important data, and id=0 represents unimportant data; start represents the starting position for de-identifying the field in the i-th row and j-th column; len represents the character length of the de-identified field in the i-th row and j-th column, and len≤L.
[0098] Step 603 includes: Step 6031: for each field in the de-identified data set, determine whether the field is an important field based on the importance identification of the field in the annotation matrix; Step 6032: When the field is an important field, a character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length is restored to finally obtain the original data set.
[0099] In step 6031, for a de-identified field D_RM12 in the de-identified data set Data_RM, the corresponding vector element a12 in the labeling matrix A is used to determine whether D_RM12 is an important field. If a12=(1, 3, 4), that is, id=1, start=3, len=4, it means that D_RM12 is an important field. If a12=(0, ×, ×), it means that D_RM12 is a non-important field.
[0100] Step 6032 may include three specific implementations, which are described in detail below.
[0101] (1) Reading a recovery matrix from a non-volatile storage space; constructing the recovery matrix based on the concealed character string in the de-identified data set; determining the concealed character string of the important field from the recovery matrix; restoring the asterisk character string or the space character string in the important field starting from the de-identified starting position and having a length equal to the de-identified character length as the concealed character string.
[0102] Exemplarily, if the token / password input by the data processor is compared with the token / password of the legitimate user stored in the non-volatile storage space, the access control authority of the non-volatile storage space is obtained, and the labeling matrix A and the recovery matrix Data_RC are read therefrom.
[0103] Assume that a de-identified field D_RM12 in the de-identified dataset Data_RM = "ab def" or "ab____def", '_' represents a space character. The character Data_RC12 in the restored matrix Data_RC is "c123", then the hidden character string of the de-identified field D_RM12 is "c123". Fill "c123" to the position of 4 characters starting from the 3rd character in the de-identified field D_RM12, that is, use "c123" to replace the asterisk string or space string of length 4, so as to restore the original field D12 = "abc123def". If a24 = 0, then D_RC24 = 0, indicating that the original field has not been de-identified, and Data_RM24 = D24. By analogy, the original data set Data can be restored so that the data processor can modify, reprocess, count and other operations on the original data.
[0104] In this implementation, the recovery matrix can be used to recover the character strings hidden in important fields, and the reversible operation of de-identifying important data can be achieved while ensuring security, without causing data distortion, and the data can be reprocessed and re-handled.
[0105] (2) Each element in the annotation matrix also includes a random string of de-identified character length; the random string of de-identified character length corresponding to the important field is read from the annotation matrix; a character string of the de-identified character length starting from the de-identified starting position in the important field is logically subtracted bit by bit from the random string of the de-identified character length corresponding to the important field.
[0106] The vector element aij (1≤i≤n, 1≤j≤m) in the labeling matrix A is composed of a four-tuple (id, start, len, rand), where rand represents a random string of len characters in length.
[0107] Assume that a de-identified field D_RM12 = "abd224def" in the de-identified data set Data_RM is read from the label matrix A as a12 = (1, 3, 4, 1101), where "1101" is a random string of length 4 generated by the noise signal collector. Remove the random string of D_RM12, that is, perform a bitwise logical subtraction operation on the string "d224" in D_RM12 and the random signal "1101", and obtain the string "c123", and then restore the original field data D12 = "abc123def". If a24 = 0, then D_RM24 = 0, indicating that the original field has not been de-identified, and Data_RM24 = D24. By analogy, the original data set Data can be restored.
[0108] In this implementation, random character strings can be removed only by marking the matrix, which can achieve a reversible operation of de-identifying important data while ensuring security, without causing data distortion, and can reprocess and re-handle the data.
[0109] (3) Each element in the annotation matrix also includes the number of characters of the circular shift and the perturbation value of the de-identified character length; the number of characters of the circular shift and the perturbation value of the de-identified character length corresponding to the important field are read from the annotation matrix; a character string of the length of the de-identified character length starting from the de-identified starting position in the important field is logically subtracted bit by bit from the perturbation value of the de-identified character length corresponding to the important field, and the important field is circularly shifted in the opposite direction by the number of characters of the circular shift corresponding to the important field.
[0110] Exemplarily, the vector element aij (1≤i≤n, 1≤j≤m) in the labeling matrix A is composed of a quintuple (id, start, len, mov, base), where mov represents the number of characters that need to be cyclically shifted left for data of len characters in length, and base is a disturbance value of len characters in length.
[0111] Assume that a de-identified field D_RM12 in the de-identified data set Data_RM = "ab34d1def", a12 = (1, 3, 4, 2, 1110), '2' means that the intercepted string is cyclically shifted to the left by 2 characters, and "1110" is the perturbation value of length 4 calculated according to expression (1). First, remove the perturbation value of length 4, that is, perform a bitwise logical subtraction operation on the string "34d1" in D_RM12 and the perturbation value "1110" to obtain the string "23c1", and then cyclically shift right by 2 characters to obtain "c123", and then restore the original field D12 = "abc123def". If a24 = 0, then D_RM24 = 0, indicating that the original field has not been de-identified, and Data_RM24 = D24. By analogy, the original data set Data can be restored.
[0112] In this implementation, the disturbance value of the de-identified character length can be removed only by marking the matrix, and the number of characters corresponding to the cyclic shift of the important field can be cyclically shifted in the opposite direction. This can achieve a reversible de-identification operation of important data while ensuring security, without causing data distortion, and can reprocess and reprocess the data.
[0113] The data receiving method provided by the embodiment of the present invention includes: receiving a de-identified data set; obtaining access control rights of a non-volatile storage space, and reading a labeling matrix from the non-volatile storage space; the labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; based on the labeling matrix, the de-identified characters of each important field in the de-identified data set are restored to obtain the original data set. On the one hand, since the de-identified data set of the embodiment of the present invention does not encrypt all data, the business attributes of the data can be maintained without adding additional overhead; on the other hand, since the labeling matrix of the embodiment of the present invention can characterize whether each field in the original data set is important and the de-identification scheme of each field, obtain the access control rights of the non-volatile storage space, and read the labeling matrix from the non-volatile storage space, the reversible operation of de-identifying important data can be realized under the premise of ensuring security, without causing data distortion, and the data can be reprocessed and reprocessed. Therefore, the embodiment of the present invention can maintain the business attributes of the data without adding additional overhead; and it will not cause data distortion, and the data can be reprocessed and reprocessed.
[0114] In order to understand the present invention more clearly, Figure 7 The data publishing and data receiving processes of the present invention are described in detail.
[0115] Please refer to Figure 7 , Figure 7 Schematic diagram of the data publishing and data receiving process provided by the embodiment of the present invention. Figure 7 As shown, the following steps may be included.
[0116] 1) Structural processing of raw data: Assume that the original data includes 5 records, each record includes 5 fields, namely name, gender, date of birth, mobile phone number, and education level. The maximum length L of each field is 20 characters, as shown in Table 1.
[0117] Table 1 Original data records
[0118] The original data in Table 1 is transformed into a 5-row, 5-column original data set Data after structural transformation: Data(5×5)= .
[0119] 2) Data annotation: If the data of the three fields of name, date of birth, and mobile phone number need to be labeled, the data publisher can construct the labeling matrix A (5×5): A(5×5)= .
[0120] Label the data according to the labeling matrix A.
[0121] 3) Data De-identification: De-identify Data according to the labeling matrix A and obtain the de-identified data set Data_RM: Data_RM(5×5)= .
[0122] Make Data_RM public and construct the recovery matrix Data_RC: Data_RC(5×5)= .
[0123] 4) Data storage: The labeling matrix A and the recovery matrix Data_RC are securely stored, and can be stored in a non-volatile storage space (eg ROM) to prevent data loss.
[0124] 5) Set access permissions: Set tokens and passwords for legitimate users so that only designated legitimate data processors can access the storage space to restore and reprocess the de-identified data.
[0125] 6) Receive data: Since the de-identified dataset Data_RM is publicly released, both ordinary users and data processors can browse it. Since sensitive information is removed from the de-identified dataset Data_RM, no important data will be leaked.
[0126] 7) Get access permissions: The data processor obtains the token / password based on the authorization of the data publisher. The token / password entered by the data processor is compared with the token / password of the legitimate user stored in the non-volatile storage space. If the comparison passes, the data processor obtains the access control authority to the non-volatile storage space.
[0127] 8) Read data: Read the labeling matrix A and the recovery matrix Data_RC from the non-volatile storage space.
[0128] 9) Data recovery: The original data set Data can be restored based on the labeling matrix A and the recovery matrix Data_RC, or only based on the labeling matrix A, which will not be repeated here.
[0129] 10) Modification and reprocessing of original data: Data processors perform operations such as modification, secondary processing, and statistics on original data.
[0130] The embodiments of the present invention can maintain the business attributes of data without adding extra overhead; and will not cause data distortion, and can reprocess and re-handle the data.
[0131] Combine the following Figure 8 The network communication equipment is described in detail.
[0132] Please refer to Figure 8 , Figure 8 Schematic diagram of the structure of the network communication device provided by the embodiment of the present invention. Figure 8 As shown, the network communication device comprises: a host computer 1, a control board plugged into a PCI-E bus slot of the network communication device, and a user unit 3.
[0133] The network communication device can be a server, workstation or other device with network communication function.
[0134] The host computer software is installed in the host computer 1 , the host computer 1 is connected to the user unit 3 for communication, and the control board is connected to the host computer 1 for communication.
[0135] The control board includes a controller. The control board may be a high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCI-E) board 2, and the controller may be a field programmable gate array (Field Programmable Gate Array, FPGA) chip 21. The FPGA chip 21 includes a data buffer 211, a control module 212, a read-only memory 213, and a permission register group 214. The control module 212 is respectively connected to the data buffer 211, the read-only memory 213, and the permission register group 214 in communication.
[0136] The user unit 3 serves as an interface for users to access data, such as a World Wide Web (Web) application interface, an application program interface, and the like.
[0137] The data buffer area 211 may be a volatile memory such as a random access memory (RAM) or a first in first out data buffer (FIFO). Since data is lost after the system loses power, it can only be used as a temporary data buffer area.
[0138] The control module 212 uses a state machine control logic as a control unit of the FPGA.
[0139] The read-only memory 213 can be a non-volatile memory such as ROM. The data will not be lost after the PCI-E board loses power. It is used to store data that needs to be stored for a long time, such as the labeling matrix A and the recovery matrix Data_RC.
[0140] The permission register group 214 is used to store the token / password of the legal user, which is set by the data publisher and can be multiple groups (1 to n groups).
[0141] The network communication device further includes: a clock module 4 , a power module 5 and a JATG / AS interface 6 . The controller 21 further includes: a PCI-E protocol IP core 215 .
[0142] The PCI-E protocol IP core 215 can implement bus protocol conversion, converting the physical PCI-E bus into bus signals at two ends of the PCI-E board.
[0143] The clock module 4 uses a crystal oscillator to provide clock frequency for each module of the FPGA chip 21 .
[0144] The power module 5 provides operating voltages, such as 3.3V, 2.5V, 1.2V, etc., to various modules of the FPGA chip 21 .
[0145] The JATG / AS interface 6 is a program debugging / downloading interface, which is used for debugging and downloading programs of the FPGA chip 21 .
[0146] The working principle of the network communication device is as follows: the host computer 1 is used to perform structured processing on the original data to obtain a structured original data set, and store the original data set in the data buffer area 211, and the original data set is stored in the database and the data table; the control module 212 is used to mark each important field in the original data set stored in the data buffer area 211 based on the marking matrix, and perform a de-identification operation on each marked important field to obtain a de-identified data set, and return the de-identified data set to the data buffer area; the marking matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; the host computer 1 is also used to retrieve the de-identified data set from the data buffer area 211, and return the de-identified data set to the data buffer area. The de-identified data set is sent to the user unit 3 as data disclosed to the outside; the read-only memory 213 is used to store the labeling matrix; the permission register group 214 is used to store the token / password of the legitimate user; the control module 212 is also used to compare the token / password input by the user with the token / password of the legitimate user stored in the permission register group 214, and read the labeling matrix from the read-only memory 213 after the comparison is passed, and restore the de-identified characters of each important field in the de-identified data set based on the labeling matrix to obtain the original data set, and store the original data set in the data cache area 211; the host computer 1 is also used to read the original data set from the data cache area 211, and send the original data set to the user unit 3.
[0147] In one embodiment, each element in the annotation matrix includes an importance identifier of the corresponding field, a de-identified starting position, and a de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; the control module 212 is specifically used to conceal a character string in the annotated important field whose length starts from the de-identified starting position and is the de-identified character length, into an asterisk character string or a space character string of the same character length; construct a recovery matrix based on the concealed character string in the de-identified data set; store the recovery matrix in the read-only memory 213; and read the recovery matrix from the read-only memory 213; determine the concealed character string of the important field from the recovery matrix; and restore the asterisk character string or the space character string in the important field whose length starts from the de-identified starting position and is the de-identified character length to the concealed character string.
[0148] In one embodiment, each element in the annotation matrix includes an importance identifier of the corresponding field, a de-identified starting position, a de-identified character length, and a random string of the de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The control board also includes a random number generator 7, which is used to generate a random string of de-identified character length; The control module 212 is specifically used to perform bit-by-bit logical addition operations on a character string in the marked important field whose length is the de-identified character length starting from the de-identified starting position and a corresponding random character string; and to read a random character string of the de-identified character length corresponding to the important field from the marked matrix; and to perform bit-by-bit logical subtraction operations on a character string in the important field whose length is the de-identified character length starting from the de-identified starting position and a random character string of the de-identified character length corresponding to the important field.
[0149] In one embodiment, the random number generator 7 is a noise signal collector; the noise signal collector includes: a first resistor, an operational amplifier, a second resistor, an analog-to-digital converter, a parallel-to-serial converter and another controller; the first end of the first resistor serves as the input end of the analog voltage signal, the positive input end of the operational amplifier is grounded, the second end of the first resistor is connected to the negative input end of the operational amplifier, the output end of the operational amplifier is connected to the first end of the second resistor, the second end of the second resistor is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is respectively connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter, and the output end of the parallel-to-serial converter serves as the output end of the random string.
[0150] In one embodiment, each element in the labeling matrix includes an importance identifier of a corresponding field, a de-identified starting position, a de-identified character length, a number of cyclically shifted characters, and a perturbation value of the de-identified character length, and the de-identified character length is less than or equal to the corresponding field length; The controller further includes a shift register group 216; the shift register group 216 is used to store data to be shifted, which is L groups; The control module 212 is specifically used to store a character string of the length of the de-identified character length starting from the de-identified starting position in the marked important field into the shift register group 216, cyclically shift the character string of the de-identified character length in the shift register group by the number of characters of the cyclic shift; perform a bitwise logical addition operation on the cyclically shifted character string output by the shift register group 216 and the corresponding disturbance value of the de-identified character length; and read the number of cyclically shifted characters and the disturbance value of the de-identified character length corresponding to the important field from the marking matrix; perform a bitwise logical subtraction operation on the character string of the length of the de-identified character length starting from the de-identified starting position in the important field and the disturbance value of the de-identified character length corresponding to the important field, and cyclically shift the important field in the opposite direction by the number of cyclically shifted characters corresponding to the important field.
[0151] The above network communication equipment has the following advantages: 1. De-identify important data to prevent malicious operations such as re-identification and illegal recovery of data by illegal personnel, and meet the requirements of data security protection in the field of information security; 2. Legitimate data processors can use access rights and de-identification recovery methods based on the labeling matrix to restore the original data, making it easier to perform secondary operations on the data. This makes the data processing process more flexible and convenient. 3. It is easy to store data. The original data set can be restored without storing the entire original data set. Only the identification matrix A, or the identification matrix A and the recovery matrix Data_RC need to be stored, which can save data storage space. 4. A de-identification and recovery method that adds noise signals, cyclic shifts, and disturbance values to important data. While maintaining statistical characteristics and low distortion of the de-identified data, it also improves data security, solving the problem that the existing technology uses methods such as adding noise and suppression to make the de-identified data irreversible and difficult to recover; 5. The data processing speed is improved in hardware through the FPGA board, which can improve the efficiency of data de-identification and recovery in business scenarios with large data volumes; 6. This solution does not affect the functions of the existing system and is flexible to deploy and easy to implement.
[0152] The data publishing device and the data receiving device provided by the present invention are described below. The data publishing device and the data receiving device described below can be referenced to the data publishing method and the data receiving method described above.
[0153] Please refer to Fig. 9 , Fig. 9 : is a schematic diagram of the structure of a data publishing device provided by an embodiment of the present invention. The data publishing device may include: A labeling module 910 is used to label each important field in the structured original data set based on the labeling matrix; The de-identification module 920 is used to perform a de-identification operation on each marked important field to obtain a de-identified data set; the annotation matrix is used to indicate whether each field in the original data set is important and the de-identification scheme of each field; A publishing module 930, used to publicly publish the de-identified dataset; A storage module 940 is used to store the label matrix in a non-volatile storage space; The setting module 950 is used to set the access control authority of the non-volatile storage space.
[0154] In one embodiment, the original data set is represented by a matrix, and each element of the matrix represents a field; Each element in the annotation matrix includes the importance mark of the corresponding field, the starting position of the de-identification and the character length of the de-identification, and the character length of the de-identification is less than or equal to the length of the corresponding field; The marking module 910 is specifically used for: For each field in the original data set, determine whether the field is an important field based on the importance identification of the field in the annotation matrix; In case the fields are important, the fields are marked; The de-identification module 920 is specifically used for: A de-identification operation is performed on a character string starting from a de-identification start position in the marked important fields and having a length equal to the de-identification character length, and finally a de-identification data set is obtained.
[0155] In one embodiment, the de-identification module 920 is specifically configured to: Conceal a character string of the length of the de-identified character starting from the de-identified starting position in the marked important field into an asterisk string or a space string of the same character length; The apparatus further includes: a construction module for constructing a recovery matrix based on the concealed character string in the de-identified data set; The storage module 940 is further used to store the recovery matrix in a non-volatile storage space.
[0156] In one embodiment, each element in the annotation matrix also includes a random string of de-identified character lengths; The de-identification module 920 is specifically used for: A logical addition operation is performed bit by bit on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length and a corresponding random character string.
[0157] In one embodiment, the random string is generated by a noise signal collector; the noise signal collector includes: a first resistor, an operational amplifier, a second resistor, an analog-to-digital converter, a parallel-to-serial converter and a controller; the first end of the first resistor serves as an input end of the analog voltage signal, the positive input end of the operational amplifier is grounded, the second end of the first resistor is connected to the negative input end of the operational amplifier, the output end of the operational amplifier is connected to the first end of the second resistor, the second end of the second resistor is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is respectively connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter, and the output end of the parallel-to-serial converter serves as the output end of the random string.
[0158] In one embodiment, each element in the labeling matrix also includes a perturbation value of the number of cyclically shifted characters and the length of the de-identified character; The de-identification module 920 is specifically used for: Circularly shift a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length by the number of characters of the circular shift; The cyclically shifted character string and the corresponding de-identified character length disturbance value are logically added bit by bit.
[0159] In one embodiment, the device further comprises: A generation module is used to accumulate and sum the character strings of the length of the de-identified characters starting from the de-identified starting position in all fields of the column where the marked important fields are located, and then take the average value to obtain the disturbance value of the de-identified character length.
[0160] Please refer to Fig.10 , Fig.10 : is a schematic diagram of the structure of a data receiving device provided by an embodiment of the present invention. The data receiving device may include: A receiving module 1001 is used to receive a de-identified data set; The acquisition module 1002 is used to obtain the access control authority of the non-volatile storage space; The reading module 1003 is used to read the labeling matrix from the non-volatile storage space; the labeling matrix is used to indicate whether each field in the original data set is important and the de-identification scheme of each field; The recovery module 1004 is used to recover the de-identified characters of each important field in the de-identified data set based on the labeling matrix to obtain the original data set.
[0161] In one embodiment, the de-identified data set is represented by a matrix, and each element of the matrix represents a field; Each element in the annotation matrix includes the importance mark of the corresponding field, the starting position of the de-identification and the character length of the de-identification, and the character length of the de-identification is less than or equal to the length of the corresponding field; The recovery module 1004 is specifically used for: For each field in the de-identified data set, determine whether the field is an important field based on the importance identification of the field in the annotation matrix; In the case where the field is an important field, a character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length is restored, and finally the original data set is obtained.
[0162] In one embodiment, the device further comprises: A reading module is used to read a recovery matrix from a non-volatile storage space; the recovery matrix is constructed based on the hidden character strings in the de-identified data set; The recovery module 1004 is specifically used for: Determine the string where important fields are concealed from the recovery matrix; The asterisk string or space string starting from the de-identified start position in the significant field and having a length equal to the de-identified character length is restored to the concealed string.
[0163] In one embodiment, each element in the annotation matrix also includes a random string of de-identified character lengths; The recovery module 1004 is specifically used for: Read the de-identified random string of character length corresponding to the important fields from the annotation matrix; A logical subtraction operation is performed bit by bit on a character string of the length of the de-identified character starting from the de-identified starting position in the important field and a random character string of the de-identified character length corresponding to the important field.
[0164] In one embodiment, each element in the labeling matrix also includes a perturbation value of the number of cyclically shifted characters and the length of the de-identified character; The recovery module 1004 is specifically used for: Read the number of characters of the cyclic shift and the perturbation value of the de-identified character length corresponding to the important field from the labeling matrix; A logical subtraction operation is performed bit by bit on a character string whose length is the de-identified character length starting from the de-identified starting position in the important field and is the disturbed value of the de-identified character length corresponding to the important field, and then the character string is cyclically shifted in the opposite direction by the number of characters corresponding to the cyclic shift of the important field.
[0165] Fig.11 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.11 As shown, the electronic device may include: a processor 1110, a communication interface 1120, a memory 1130 and a communication bus 1140, wherein the processor 1110, the communication interface 1120 and the memory 1130 communicate with each other through the communication bus 1140. The processor 1110 may call the logic instructions in the memory 1130 to execute the data publishing method or the data receiving method provided in any of the above embodiments, which will not be described in detail herein.
[0166] In addition, the logic instructions in the above-mentioned memory 1130 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0167] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the data publishing method or data receiving method provided in any of the above embodiments, which will not be repeated here.
[0168] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the data publishing method or data receiving method provided in any of the above embodiments, which will not be described in detail here.
[0169] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0171] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data publishing method, characterized in that: include: Based on the labeling matrix, each important field in the structured original data set is labeled, and each labeled important field is de-identified to obtain a de-identified data set; the labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; Publicly publishing the de-identified dataset; The labeling matrix is stored in a non-volatile storage space, and access control permissions of the non-volatile storage space are set.
2. The data publishing method according to claim 1, characterized in that: The original data set is represented by a matrix, and each element of the matrix represents a field; Each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, and a de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The method of labeling each important field in the original data set based on the labeling matrix and performing a de-labeling operation on each labeled important field to obtain a de-labeled data set includes: For each field in the original data set, determining whether the field is an important field based on the importance identifier of the field in the annotation matrix; If the field is an important field, marking the field; A de-identification operation is performed on a character string starting from the de-identification start position in the marked important field and having a length equal to the de-identified character length, and finally the de-identified data set is obtained.
3. The data publishing method according to claim 2, characterized in that: The de-identifying operation is performed on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length, including: Concealing a character string of the length of the de-identified characters starting from the de-identified starting position in the marked important field into an asterisk character string or a space character string of the same character length; The method further comprises: constructing a recovery matrix based on the anonymized character strings in the de-identified data set; The recovery matrix is stored in the non-volatile storage space.
4. The data publishing method according to claim 2, characterized in that: Each element in the labeling matrix also includes a random string of characters of the de-identified length; The de-identifying operation is performed on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length, including: A logical addition operation is performed bit by bit on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length and a corresponding random character string.
5. The data publishing method according to claim 4, characterized in that: The random string is generated by a noise signal collector; the noise signal collector comprises: a first resistor, an operational amplifier, a second resistor, an analog-to-digital converter, a parallel-to-serial converter and a controller; the first end of the first resistor serves as an input end of an analog voltage signal, the positive input end of the operational amplifier is grounded, the second end of the first resistor is connected to the negative input end of the operational amplifier, the output end of the operational amplifier is connected to the first end of the second resistor, the second end of the second resistor is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is respectively connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter, and the output end of the parallel-to-serial converter serves as the output end of the random string.
6. The data publishing method according to claim 2, characterized in that: Each element in the labeling matrix also includes the number of cyclically shifted characters and a perturbation value of the de-identified character length; The de-identifying operation is performed on a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length, including: Circularly shift a character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length by the number of characters of the cyclic shift; The character string after the circular shift is logically added bit by bit with the disturbance value of the corresponding de-identified character length.
7. The data publishing method according to claim 6, characterized in that: The perturbation value of the de-identified character length is generated by the following steps: The character strings of all fields in the column where the marked important fields are located, whose length is the de-identified character length starting from the de-identified starting position, are accumulated and summed, and then the average value is taken to obtain the disturbance value of the de-identified character length.
8. A data receiving method, characterized in that: include: receiving a de-identified dataset; Obtaining access control authority for a non-volatile storage space, and reading a labeling matrix from the non-volatile storage space; The labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; Based on the labeling matrix, the de-identified characters of each important field in the de-identified data set are restored to obtain the original data set.
9. The data receiving method according to claim 8, characterized in that: The de-identified data set is represented by a matrix, and each element of the matrix represents a field; Each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, and a de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The step of restoring the de-identified characters of each important field in the de-identified data set based on the labeling matrix to obtain the original data set includes: For each field in the de-identified data set, determining whether the field is an important field based on the importance identification of the field in the annotation matrix; In the case that the field is an important field, a recovery operation is performed on a character string in the important field whose length is the length of the de-identified characters starting from the de-identified starting position, and finally the original data set is obtained.
10. The data receiving method according to claim 9, characterized in that: The method further comprises: Reading a recovery matrix from the non-volatile storage space; the recovery matrix is constructed based on the character string concealed in the de-identified data set; The restoring operation of the character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length includes: Determine the character string in which the important field is concealed from the recovery matrix; The asterisk character string or the space character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length is restored as the concealed character string.
11. The data receiving method according to claim 9, characterized in that: Each element in the labeling matrix also includes a random string of characters of the de-identified length; The restoring operation of the character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length includes: Reading a random character string of the de-identified character length corresponding to the important field from the annotation matrix; A logical subtraction operation is performed bit by bit on a character string in the important field whose length is the de-identified character length starting from the de-identified starting position and a random character string of the de-identified character length corresponding to the important field.
12. The data receiving method according to claim 9, characterized in that: Each element in the labeling matrix also includes the number of cyclically shifted characters and a perturbation value of the de-identified character length; The restoring operation of the character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length includes: Reading the number of characters of the cyclic shift and the disturbance value of the de-identified character length corresponding to the important field from the labeling matrix; A logical subtraction operation is performed bit by bit on a character string in the important field whose length starting from the de-identified starting position is the de-identified character length and a disturbance value of the de-identified character length corresponding to the important field, and then the character string is cyclically shifted in the reverse direction by the number of characters corresponding to the cyclic shift of the important field.
13. A data publishing device, characterized in that: include: The annotation module is used to annotate important fields in the structured original data set based on the annotation matrix; The de-identification module is used to perform a de-identification operation on each marked important field to obtain a de-identified data set; the marking matrix is used to indicate whether each field in the original data set is important and the de-identification scheme of each field; A publishing module, used to publicly publish the de-identified dataset; A storage module, used for storing the labeling matrix in a non-volatile storage space; The setting module is used to set the access control authority of the non-volatile storage space.
14. A data receiving device, characterized in that: include: A receiving module, used for receiving a de-identified data set; An acquisition module, used to obtain access control permissions for non-volatile storage space; A reading module, used for reading the labeling matrix from the non-volatile storage space; The labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; The recovery module is used to recover the de-identified characters of each important field in the de-identified data set based on the labeling matrix to obtain the original data set.
15. A network communication device, characterized in that: include: A host computer, a control board and a user unit plugged into the network communication device; the control board includes a controller; the controller includes a data buffer, a control module, a read-only memory and a permission register group; the control module is respectively connected to the data buffer, the read-only memory and the permission register group in communication; The host computer is used to perform structured processing on the original data to obtain a structured original data set, and store the original data set in the data buffer area; The control module is used to label each important field in the original data set stored in the data buffer area based on the labeling matrix, and perform a de-labeling operation on each labeled important field to obtain a de-labeled data set, and return the de-labeled data set to the data buffer area; The labeling matrix is used to characterize whether each field in the original data set is important and the de-identification scheme of each field; The host computer is also used to retrieve the de-identified data set from the data buffer area, and send the de-identified data set to the user unit as data disclosed to the outside; The read-only memory is used to store the label matrix; The permission register group is used to store tokens / passwords of legal users; The control module is further used to compare the token / password input by the user with the token / password of the legal user stored in the permission register group, read the label matrix from the read-only memory after the comparison is passed, restore the de-identified characters of each important field in the de-identified data set based on the label matrix, obtain the original data set, and store the original data set in the data buffer area; The host computer is also used to read the original data set from the data buffer area and send the original data set to the user unit.
16. The network communication device according to claim 15, characterized in that: Each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, and a de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The control module is specifically used to conceal the character string starting from the de-identified starting position in the marked important field and having a length equal to the de-identified character length into an asterisk character string or a space character string of the same character length; constructing a recovery matrix based on the anonymized character strings in the de-identified data set; storing the recovery matrix in the read-only memory; and, reading the recovery matrix from the read-only memory; Determine the character string in which the important field is concealed from the recovery matrix; The asterisk character string or the space character string starting from the de-identified starting position in the important field and having a length equal to the de-identified character length is restored as the concealed character string.
17. The network communication device according to claim 15, characterized in that: Each element in the annotation matrix includes an importance identifier of a corresponding field, a de-identified starting position, a de-identified character length, and a random string of the de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The control board also includes a random number generator, which is used to generate a random string of characters of the de-identified length; The control module is specifically used to perform a bit-by-bit logical addition operation on a character string in the marked important field whose length is the de-identified character length starting from the de-identified starting position and the corresponding random character string; and to read a random character string of the de-identified character length corresponding to the important field from the marked matrix; and to perform a bit-by-bit logical subtraction operation on a character string in the important field whose length is the de-identified character length starting from the de-identified starting position and the random character string of the de-identified character length corresponding to the important field.
18. The network communication device according to claim 17, characterized in that: The random number generator is a noise signal collector; The noise signal collector includes: a first resistor, an operational amplifier, a second resistor, an analog-to-digital converter, a parallel-to-serial converter and a controller; the first end of the first resistor serves as an input end of an analog voltage signal, the positive input end of the operational amplifier is grounded, the second end of the first resistor is connected to the negative input end of the operational amplifier, the output end of the operational amplifier is connected to the first end of the second resistor, the second end of the second resistor is connected to the input end of the analog-to-digital converter, the output end of the analog-to-digital converter is connected to the input end of the parallel-to-serial converter, the controller is respectively connected to the control ends of the analog-to-digital converter and the parallel-to-serial converter, and the output end of the parallel-to-serial converter serves as the output end of the random string.
19. The network communication device according to claim 15, characterized in that: Each element in the labeling matrix includes an importance identifier of a corresponding field, a de-identified starting position, a de-identified character length, a number of cyclically shifted characters, and a perturbation value of the de-identified character length, wherein the de-identified character length is less than or equal to the corresponding field length; The controller also includes a shift register group; The control module is specifically used to store a character string with a length of the de-identified character length starting from the de-identified starting position in the marked important field into the shift register group, circularly shift the character string with the de-identified character length in the shift register group by the number of characters of the circular shift; perform a bit-by-bit logical addition operation on the circularly shifted character string output by the shift register group and the corresponding disturbance value of the de-identified character length; and read the number of circularly shifted characters and the disturbance value of the de-identified character length corresponding to the important field from the marking matrix; perform a bit-by-bit logical subtraction operation on the character string with a length of the de-identified character length starting from the de-identified starting position in the important field and the disturbance value of the de-identified character length corresponding to the important field, and circularly shift the important field in the opposite direction by the number of characters of the circular shift.
20. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the data publishing method according to any one of claims 1 to 7, or implements the data receiving method according to any one of claims 8 to 12.
21. 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 data publishing method according to any one of claims 1 to 7, or implements the data receiving method according to any one of claims 8 to 12.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the data publishing method according to any one of claims 1 to 7, or implements the data receiving method according to any one of claims 8 to 12.
Citation Information
Patent Citations
Sensitive content desensitization and reduction method, apparatus and equipment
CN109344370A
Method for realizing data desensitization by utilizing matrix replacement
CN110851874A
Data desensitization method, electronic equipment and storage medium
CN111191272A
Data desensitization method and device, readable storage medium and electronic equipment
CN112417406A
Data desensitization method and device, storage medium and terminal
CN114398665A
Cited By
Numerical data de-identification and reverse reduction method, medium and equipment
CN119760769A
