Method, electronic device and computer program product for data anonymization
By classifying data and processing multi-level anonymization, the problem of data leakage when anonymizing tabular data in the existing technology is solved, effective anonymization of multiple types of data is achieved, and the privacy and security of the data are ensured. .
Patent Information
- Application Number
- CN202310263850.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-20
AI Technical Summary
Existing data anonymization technology cannot effectively avoid data leakage when processing multiple types of tabular data, especially after the first anonymization model is processed, there is still a risk of leakage.
By classifying the data, use the first anonymization model for preliminary anonymization, and determine whether re-anonymization is needed based on the data type. If necessary, use the second anonymization model for re-anonymization to ensure complete anonymization of the data.
Effectively handles multiple types of data, reduces the risk of data leakage, and ensures data privacy during transmission and storage.
Smart Images

Figure CN118673522A
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computers, and more particularly, to methods, electronic devices, and computer program products for data anonymization. Background Art
[0002] Tabular data is a widely used data type in today's data analysis frameworks. It is used in many use cases, such as business analysts, data science work, and almost all software applications. Even in machine learning and deep learning workflows that train models on unstructured data, some datasets use tabular data to save sample attributes and labels.
[0003] There are many situations where tabular data needs to be accessed, shared, or distributed between companies, teams, and individual roles. For example, but not limited to the following situations: a company may provide data to employees for business development, but because the data may be related to their friends or celebrities, it is necessary to prevent key information from being leaked; a company may provide data to external consultants, but the risk of accidental leakage needs to be eliminated; data owners may provide data to software engineers to test new tools or new features; data owners may provide data to internal colleagues as educational tutorials.
[0004] At the same time, data owners want to protect the privacy information in the data. In all mainstream solutions, synthesizing new data by processing the original data through anonymization models is a common technique because it can avoid data leakage in most scenarios by generating brand new data. Summary of the invention
[0005] Embodiments of the present disclosure provide a method, an electronic device, and a computer program product for data anonymization.
[0006] In one aspect of the present disclosure, a method for data anonymization is provided. The method includes: classifying data through a classifier to obtain a data type of the data; anonymizing the data through a first anonymization model to obtain first anonymized data; based on the data type, determining whether the first anonymized data needs to be re-anonymized using an anonymizer; and based on determining that re-anonymization is needed, re-anonymizing the first anonymized data through a second anonymization model to obtain second anonymized data.
[0007] In another aspect of the present disclosure, an electronic device is provided. The device includes a processing unit and a memory, wherein the memory is coupled to the processing unit and stores instructions. When the instructions are executed by the processing unit, the following actions are performed: classifying data by a classifier to obtain a data type of the data; anonymizing the data by a first anonymization model to obtain first anonymized data; determining whether the first anonymized data needs to be re-anonymized based on the data type by using an anonymizer; and re-anonymizing the first anonymized data by a second anonymization model based on the determination that re-anonymization is needed to obtain second anonymized data.
[0008] In another aspect of the present disclosure, a computer program product is provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, which, when executed, cause a computer to perform a method or process according to an embodiment of the present disclosure.
[0009] The invention summary is provided to introduce relevant concepts in a simplified form, which will be further described in the following detailed description. The invention summary is not intended to identify key features or essential features of the present disclosure, nor is it intended to limit the scope of various embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements.
[0011] Figure 1 A schematic diagram illustrating an example environment in which embodiments of the present disclosure can be implemented is illustrated.
[0012] Figure 2 A flow chart for data anonymization according to an embodiment of the present disclosure is illustrated.
[0013] Figure 3 The diagram illustrates a flow chart for processing tabular data according to an embodiment of the present disclosure.
[0014] Figure 4 A flow chart of an anonymizer according to an embodiment of the present disclosure is illustrated.
[0015] Figure 5 A flow chart of an anonymizer according to an embodiment of the present disclosure is illustrated.
[0016] Figure 6 A schematic block diagram of a device that can be used to implement an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0017] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some specific embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0018] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The term "based on" means "based at least in part on". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects, unless explicitly indicated to be different.
[0019] In addition, all specific numerical values in this article are examples only to facilitate understanding and are not intended to limit the scope.
[0020] In many cases, data needs to be accessed, shared, or distributed between companies, teams, and individual roles, but in order to avoid data leakage, the data must be anonymized. Existing data anonymization technologies, such as generating new data by forging data, generating new data based on statistics, or generating new data using generative adversarial network models. However, each type of model has some potential problems, especially when processing tabular data, which has multiple types of data columns. Existing data anonymization technologies can only work well on certain types of data and cannot effectively process data of various types of data columns, resulting in data leakage.
[0021] In order to solve the above and other potential problems, an embodiment of the present disclosure provides a method for data anonymization. The method includes first classifying the data when processing the data, and processing the data using a first anonymization model, and when it is determined that the data needs to be re-anonymized, re-anonymizing the data using a second anonymization model. Thus, even when facing multiple types of data, when there is still a risk of data leakage after processing by the first anonymization model, the second anonymization model can be used to achieve effective processing to avoid data leakage.
[0022] The following references Figures 1 to 6 It should be understood that these exemplary embodiments are provided only to enable those skilled in the art to better understand and implement the embodiments of the present disclosure, and are not intended to limit the scope of the present disclosure in any way.
[0023] Figure 1A schematic diagram of an example environment 100 is illustrated in which embodiments of the present disclosure can be implemented. Figure 1 , the example environment 100 includes a client device 102, a database 104, raw data 106, a computing device 108, and anonymized data 110. It should be understood that Figure 1 The number, arrangement, and processing procedures of the devices shown are merely exemplary, and the exemplary system may include devices and processing procedures of different numbers and arrangements in different ways, as well as various additional elements, etc.
[0024] The example environment 100 includes a client device 102, which includes but is not limited to: a personal computer, such as a desktop computer or a laptop computer, which can run various operating systems, and these operating systems provide many tools for developing software and implementing various functions; a smartphone, which is usually equipped with various sensors and interfaces, such as a camera, a microphone, a GPS, etc., and can run various operating systems; a tablet computer, which is usually larger than a mobile phone, has a higher screen resolution and higher processing power, and can also run various operating systems; a smart watch and other wearable devices, which are usually paired with a smartphone and can provide functions such as interaction with the smartphone, notification reminders, etc. In some embodiments of the present disclosure, the querying party that queries the database 104 requests the database 104 through the client device 102.
[0025] The example environment 100 also includes a database 104, which includes but is not limited to: a relational database, which is the most common type of database, uses structured query language (SQL) to manage data, and uses tables to store data; a non-relational database, which does not use SQL language to manage data, instead, they use different data models, such as key-value, document, column family, etc.; a graph database, which is a special type of database, which uses a graph model to store data, and is usually used to manage data with complex relationships, such as social networks or knowledge graphs, etc.; a distributed database, which is a database that stores data in multiple physical locations to improve scalability and fault tolerance, and they are usually used in large-scale applications and systems. In some embodiments of the present disclosure, the database 104 stores various data that can be queried by the querying party.
[0026] The querying party requests the database 104 through the client device 102 to obtain the original data 106. For example, the original data 106 can be tabular data obtained from the database 104 that meets the query conditions. Tabular data is a commonly used structured data, usually presented in the form of a table, where each row represents a record and each column represents a field. Tabular data is usually used to store and manage a large amount of structured data, such as a company's sales data, customer data, inventory data, etc. Tabular data usually consists of several rows and several columns, where each row represents a data record and each column represents a data type or attribute. The data value in each data record must match the data type of the column in which it is located. For example, a table containing customer information may include the following fields: customer name, customer ID, address, telephone number, etc. The data value in each record must match the data type of the field in which it is located, for example, the customer ID must be a unique identifier, the telephone number must be a number, etc. In some embodiments of the present disclosure, the original data 106 is obtained from the database 104, but the original data 106 often cannot be directly displayed to the inquiring party because some fields in the original data 106, such as customer name, customer ID, address, telephone number, etc., involve personal privacy and must be processed through anonymization technology, otherwise there will be a risk of data leakage.
[0027] The example environment 100 also includes a computing device 108, which includes but is not limited to: a server, which is a high-performance computing device that is usually used to store and process a large amount of data and applications. The server usually has high-speed processors, large-capacity storage, high-speed network connections, etc., and can carry the needs of multiple users or applications; a cloud computing device, which is usually highly scalable and flexible and can be dynamically configured and managed according to the needs of applications. In an embodiment of the present disclosure, the computing device 108 can be a server and / or a meta-computing device for anonymizing the original data 106.
[0028] Through the processing of the computing device 108, anonymized data 110 is obtained. For example, for tabular data, each data column in the original data 106 is anonymized to obtain anonymized data 110. Each data column in the anonymized data 110 corresponds to each data column in the original data 106, but after anonymization, there is no risk of data leakage. For example, data such as customer name, customer ID, address, and telephone number must be anonymized before being displayed to the user. However, due to different data types, including but not limited to the following types: digital type, such as height, weight, monthly salary and other data; unique type, each piece of data is different, such as customer number, customer ID; enumeration type, representing data with a limited number of possible values, such as gender, occupation; text type, such as customer evaluation; date type, such as date of birth. Since there are different types of data columns in tabular data, corresponding anonymization technology needs to be used for each type, otherwise it may also lead to data leakage. The data types discussed here are only for the purpose of example, aiming to describe the technical method more clearly, and do not limit the data types.
[0029] Although the above combination Figure 1 The anonymization processing for tabular data is described, but those skilled in the art will understand that the anonymization method according to the embodiment of the present disclosure is not limited to processing tabular data, but can also be applied to any other type of data that needs to be anonymized as needed, and the present disclosure does not limit the application scenario.
[0030] Figure 2The flowchart 200 for data anonymization according to an embodiment of the present disclosure is illustrated. In box 202, the data is classified by a classifier to obtain the data type of the data. For example, by classifying the data by a classifier, the data type can be obtained, and the data type is very important for data anonymization, because different data types are suitable for processing using different anonymization techniques. In some embodiments, the obtained data type can be a numeric type, a unique type, an enumeration type, a free text type, and a date type, etc. as described above. Anonymization processing technology can include a table generative adversarial network (GAN) model, a pseudo data generation model, a statistical model, and a text GAN model, etc. The table GAN model is a generative adversarial network model for generating tabular data, which is a variant of GAN, which includes a generator and a discriminator, and the two models compete with each other to generate false data that looks similar to real data. Similarly, the text GAN model is a generative adversarial network model for generating text data, but a recurrent neural network (RNN) is introduced to process text data. Each anonymization processing technology is suitable for processing certain types of data. For example, the table GAN model is suitable for processing numeric types and enumeration types, because the table GAN can learn the implicit patterns of numeric types and enumeration types, so that the generated anonymization model also has a similar pattern, such as the mean and variance of the anonymized data are the same as the original data, which is very important in some usage scenarios. Through the processing of box 202, the data type is obtained, which is used in subsequent steps.
[0031] In box 204, the data is anonymized by a first anonymization model to obtain first anonymized data. In some embodiments of the present disclosure, the first anonymization model may be a table GAN model. For example, each data column in the tabular data is anonymized by a table GAN to obtain first anonymized data. As described above, different data types are suitable for processing using different anonymization techniques. For example, the table GAN model is suitable for processing numeric types and enumeration types, but is not suitable for processing unique types, such as customer phone numbers, because when processing such data, the anonymized data obtained by the table GAN model is a random scattering of the original data. Although the position of the data has changed, the data is still presented in its original form, which will still cause data leakage. Therefore, the first anonymized data is obtained by box 204, in which some types of data have been properly anonymized, but some types of data still need to be re-anonymized to prevent the risk of data leakage.
[0032] In block 206, based on the data type, an anonymizer is used to determine whether the first anonymized data needs to be re-anonymized. As described above, some data in the first anonymizer needs to be re-anonymized, so based on the data type, a suitable anonymization model is selected to process the data. For example, when the first anonymizer is a table GAN model and the data type is a numeric type and / or an enumeration type, it can be determined that the first anonymized data does not need to be re-anonymized, because the table GAN model is suitable for processing numeric type and enumeration type data and will not cause data leakage; and when the first anonymizer is a table GAN model and the data type is a text type and / or a unique type, it is determined that the first anonymized data needs to be re-anonymized.
[0033] In box 208, based on the determination that re-anonymization is required, the first anonymized data is re-anonymized by a second anonymization model to obtain second anonymized data. As described above, re-anonymization is required in some cases to ensure that the data is anonymized with appropriate anonymization technology and there is no risk of data leakage. In some embodiments, a text GAN model can be selected to process text-type data, such as user evaluation data. The text GAN model can generate new user evaluations that are different from the original user evaluations, and can also ensure that the new user evaluations are "like" user evaluation data. In other words, when the query party obtains the anonymized data, it will also think that the new user evaluation is the actual user evaluation data, but at the same time, data anonymization is also achieved to ensure that the data is not leaked.
[0034] Figure 3 FIG. 3 is a flowchart 300 for processing tabular data according to an embodiment of the present disclosure. Figure 3 As shown, first input tabular data 302. In some embodiments of the present disclosure, the tabular data 302 has multiple data columns, and each data column has a different data type. In addition, the data anonymization level corresponding to each data column is also different. For example, for the data column of customer ID, the corresponding data anonymization level will be higher, while for the data column of customer gender, the corresponding data anonymization level will be lower, which mainly depends on the privacy level of the data.
[0035] Each data column of the tabular data 302 is classified by the classifier 304 to obtain the data type of each data column. For example, the data type may be a numeric type, a unique type, an enumeration type, a text type, a date type, etc. After obtaining the data type, in subsequent operations, the corresponding data anonymity and the corresponding anonymization processing technology may be determined to determine whether to re-anonymize the data column.
[0036] Based on the data type obtained by the classifier 304, the corresponding data anonymity level is searched from the data profile 306, and the data anonymization level of each different data type is recorded in the data profile 306. It should be understood that the data profile 306 is not fixed, and the customer can adjust the anonymization level of a certain data type according to their own business needs.
[0037] Based on the data type obtained by the classifier 304 and the data anonymization level obtained by the data profile 306, data column information 308 is obtained. An example of the data column information 308 is shown in Table 1:
[0038]
[0039]
[0040] Table 1
[0041] The tabular data 302 is input into the first anonymization model 310, and the first anonymization data 312 is outputted through the first anonymization model 310. In some embodiments, the first anonymization model 310 may be a tabular GAN model, and the tabular GAN model is used to perform anonymization processing on each data column in the tabular data 302 to obtain the first anonymization data 312. However, as described above, some data columns of data types are not suitable for anonymization processing using the tabular GAN model, resulting in the risk of data leakage for these data columns, and therefore, they need to be re-anonymized later.
[0042] The data column information 308 and the first anonymized data 312 are input into the anonymizer 314, and the anonymizer determines whether some columns in the first anonymized data 312 need to be re-anonymized through the data column information 308. As described above, there are some data columns in the first anonymized data 312 that need to be re-anonymized, and the anonymizer 314 determines which data columns need to be re-anonymized according to the data column information 308. At the same time, for the data columns that need to be re-anonymized, according to the data column information of these data columns and the anonymization model profile 316, a suitable anonymization model is selected from the anonymization model library 318 to process these data columns, and the anonymization model profile 316 records the data columns that each anonymization model is suitable for processing (specifically, the data types suitable for processing). Therefore, the first anonymized data 312 is input into the anonymizer 314, and the data columns that do not need to be re-anonymized remain unchanged; and for the data columns that need to be re-anonymized, a suitable anonymization model is selected from the anonymization model library 318 for re-anonymization, thereby obtaining the second anonymized data 320.
[0043] Figure 4The flowchart 400 of an anonymizer according to an embodiment of the present disclosure is illustrated. First, data is input at 402. As mentioned above, the first anonymized data and data column information need to be input here for subsequent use. At 404, it is determined whether the data anonymization level is less than the query level. If the determination is true, the process ends, that is, the first anonymized data does not need to be re-anonymized. In other words, when the data anonymization level is less than the query level, the querying party has a higher query authority, and there is no risk of data leakage even if the first anonymized data is not processed by a suitable anonymization technology.
[0044] However, if the above judgment is false, the process proceeds to 406 to determine whether the data type conforms to the first anonymization model. If the judgment is true, the process ends, that is, there is no need to re-anonymize the first anonymized data. Similarly, when the data type conforms to the first anonymization model, the first anonymization model is suitable for processing the data type, and the first anonymization data obtained also has the risk of data leakage.
[0045] If it is determined at 406 that the data type does not conform to the first anonymization model, that is, the first anonymization model is not suitable for processing the data type, and the obtained first anonymized data has the risk of data leakage, then proceed to 408 to re-anonymize the data. Figure 3 As described in , when re-anonymization is performed, an anonymization model suitable for the data type is determined from the anonymization model profile 316, and the anonymization model is called from the anonymization model library 318 to re-anonymize the data, ensuring that the anonymized data finally obtained will not have the risk of leakage. Finally, at 410, the data is output.
[0046] Figure 5 An example 500 of an anonymized model profile according to an embodiment of the present disclosure is illustrated. Figure 5 As shown, the data column includes some data types. Example 500 lists different types of data columns such as address type, credit card type, email type, user comment type, etc. In addition to these commonly used data types, it also includes a variety of other data columns, and new types of data columns can also be customized according to user needs. The anonymization model shows the anonymization model corresponding to the data column. For example, based on determining that the data column is an address type data column, the anonymization model corresponding to the address type data column can be called by calling the faker.provider.address class in the program code to perform re-anonymization. Similarly, based on determining that the data column is a user comment (as described above, text type), the text GAN model is called to re-anonymize the user comment.
[0047] Figure 6Schematic block diagram of a device 600 that can be used to implement an embodiment of the present disclosure is shown. The device 600 may be a device or apparatus described in an embodiment of the present disclosure. Figure 6 As shown, the device 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 602 or loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0048] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0049] The various methods or processes described above may be performed by the processing unit 601. For example, in some embodiments, the methods may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the CPU 601, one or more steps or actions in the methods or processes described above may be performed.
[0050] In some embodiments, the methods and processes described above may be implemented as a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present disclosure.
[0051] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.
[0052] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0053] The computer program instructions for performing the disclosed operation may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, and conventional procedural programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., utilizing an Internet service provider to connect via the Internet). In certain embodiments, by utilizing the state information of a computer-readable program instruction to customize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the present disclosure.
[0054] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0055] Computer-readable program instructions may be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0056] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the equipment, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each block in the flow chart or block diagram can represent a part of a module, a program segment or an instruction, and a part of the module, a program segment or an instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the blocks can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous blocks can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flow chart, and the combination of the blocks in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0057] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for data anonymization, comprising: Classify the data by using a classifier to obtain the data type of the data; Anonymize the data using a first anonymization model to obtain first anonymized data; Based on the data type, determining, using an anonymizer, whether the first anonymized data needs to be re-anonymized; as well as Based on determining that the re-anonymization needs to be performed, the first anonymized data is re-anonymized by using a second anonymization model to obtain second anonymized data.
2. The method of claim 1, wherein classifying the data using the classifier comprises one or more of the following: Classifying the data using regular expressions; Using a dictionary library to classify the data; or The data is classified using a machine learning model. 3 . The method according to claim 1 , wherein the data comprises tabular data, the tabular data comprises a plurality of data columns, the plurality of data columns having different data types.
4. The method according to claim 3, wherein anonymizing the data by using the first anonymization model comprises: Learning the data patterns of the plurality of data columns by training a generative adversarial network model; as well as The trained generative adversarial network model is used to perform the anonymization on the multiple data columns respectively to generate the first anonymized data for each data column in the multiple data columns.
5. The method according to claim 4, wherein determining whether the first anonymized data needs to be re-anonymized using the anonymizer comprises: obtaining, by means of the data profile, a data anonymization level for each of the plurality of data columns; Obtaining, by means of the anonymizer, a query level of a querying party that queries the plurality of data columns; as well as Based on the data type, the data anonymization level, and the query level, it is determined whether the first anonymized data of each data column in the plurality of data columns needs to be re-anonymized.
6. The method according to claim 5, wherein determining whether the first anonymized data of each data column in the plurality of data columns needs to be re-anonymized based on the data type, the data anonymization level, and the query level comprises: Based on determining that the data type of each data column in the plurality of data columns conforms to the data processing type of the first anonymization model, determining that the re-anonymization is not required; as well as Based on determining that the data anonymization level of each of the plurality of data columns is lower than the query level, it is determined that the re-anonymization is not required.
7. The method of claim 6, wherein performing the re-anonymization by utilizing the second anonymization model comprises: obtaining profiles of a plurality of anonymization models, wherein the profiles indicate each anonymization model of the plurality of anonymization models and the data processing type corresponding to the each anonymization model; selecting, from the plurality of anonymization models, the second anonymization model for the data type for each of the plurality of data columns based on the profile and the data type; as well as The first anonymized data of the plurality of data columns are re-anonymized by using the second anonymization model.
8. The method according to claim 6, wherein the plurality of anonymization models include at least two of the following: Pseudo data generation model; Statistical models; or Text Generative Adversarial Network Model.
9. An electronic device, comprising: processor; as well as A memory coupled to the processor, the memory having instructions stored therein, the instructions, when executed by the processor, causing the device to perform actions, the actions comprising: Classify the data by using a classifier to obtain the data type of the data; Anonymize the data using a first anonymization model to obtain first anonymized data; Based on the data type, determining, using an anonymizer, whether the first anonymized data needs to be re-anonymized; and Based on determining that the re-anonymization needs to be performed, the first anonymized data is re-anonymized by using a second anonymization model to obtain second anonymized data.
10. The electronic device of claim 9, wherein using the classifier to classify the data comprises one or more of the following: Classifying the data using regular expressions; Using a dictionary library to classify the data; or The data is classified using a machine learning model. 11 . The electronic device according to claim 9 , wherein the data comprises table-type data, the table-type data comprises a plurality of data columns, the plurality of data columns having different data types.
12. The electronic device according to claim 11, wherein anonymizing the data by using the first anonymization model comprises: Learning the data patterns of the plurality of data columns by training a generative adversarial network model; as well as The trained generative adversarial network model is used to perform the anonymization on the multiple data columns respectively to generate the first anonymized data for each data column in the multiple data columns.
13. The electronic device according to claim 12, wherein determining, using the anonymizer, whether the first anonymized data needs to be re-anonymized comprises: obtaining, by means of the data profile, a data anonymization level for each of the plurality of data columns; Obtaining, by means of the anonymizer, a query level of a querying party that queries the plurality of data columns; as well as Based on the data type, the data anonymization level, and the query level, it is determined whether the first anonymized data of each data column in the plurality of data columns needs to be re-anonymized.
14. The electronic device according to claim 13, wherein determining whether the first anonymized data of each data column in the plurality of data columns needs to be re-anonymized based on the data type, the data anonymization level, and the query level comprises: Based on determining that the data type of each data column in the plurality of data columns conforms to the data processing type of the first anonymization model, determining that the re-anonymization is not required; as well as Based on determining that the data anonymization level of each of the plurality of data columns is lower than the query level, it is determined that the re-anonymization is not required.
15. The electronic device of claim 14, wherein performing the re-anonymization by using the second anonymization model comprises: obtaining profiles of a plurality of anonymization models, wherein the profiles indicate each anonymization model of the plurality of anonymization models and the data processing type corresponding to the each anonymization model; selecting, from the plurality of anonymization models, the second anonymization model for the data type for each of the plurality of data columns based on the profile and the data type; as well as The first anonymized data of the plurality of data columns are re-anonymized by using the second anonymization model.
16. The electronic device according to claim 14, wherein the plurality of anonymization models include at least two of the following: Pseudo data generation model; Statistical models; or Text Generative Adversarial Network Model.
17. A computer program product tangibly stored on a non-transitory computer readable medium and comprising machine executable instructions which, when executed, cause a machine to perform the following actions: Classify the data by using a classifier to obtain the data type of the data; Anonymize the data using a first anonymization model to obtain first anonymized data; Based on the data type, determining, using an anonymizer, whether the first anonymized data needs to be re-anonymized; as well as Based on determining that the re-anonymization needs to be performed, the first anonymized data is re-anonymized by using a second anonymization model to obtain second anonymized data.
18. The computer program product of claim 17, wherein classifying the data using the classifier comprises one or more of: Classifying the data using regular expressions; Using a dictionary library to classify the data; or The data is classified using a machine learning model.
19. The computer program product of claim 17, wherein the data comprises tabular data, the tabular data comprising a plurality of data columns, the plurality of data columns having different the data types.
20. The computer program product of claim 19, wherein anonymizing the data via the first anonymization model comprises: Learning the data patterns of the plurality of data columns by training a generative adversarial network model; as well as The trained generative adversarial network model is used to perform the anonymization on the multiple data columns respectively to generate the first anonymized data for each data column in the multiple data columns.
