Data collection method, device and system and electronic equipment

By k-anonymizing and grouping the quasi-identifier attributes of the data storage, and selecting representative data sets for anonymous collection, the problem of potential leakage in privacy data protection is solved, and an efficient and secure data collection process is achieved.

CN118797370APending Publication Date: 2024-10-18CHINA MOBILE INFORMATION SYST INTEGRATION CO LTD +3
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311433937.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-31
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing privacy data protection methods have potential risks of privacy data leakage during the data collection process, especially when using private secure channels or third-party anonymizers.

Method used

By receiving the quasi-identifier attributes of the data storage, performing anonymization processing based on the preset k anonymous parameters, the generalized quasi-identifier attributes are obtained, and the data are grouped into equivalent data groups, thereby selecting representative data sets to avoid direct exposure of sensitive attributes. Enable anonymous data collection.

Benefits of technology

It effectively avoids privacy data leakage, ensures data security and privacy protection, and reduces computational complexity and resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118797370A_ABST
    Figure CN118797370A_ABST
Patent Text Reader

Abstract

The invention discloses a data collection method, device and system and electronic equipment. The method comprises the steps that quasi-identifier attributes of stored data of a data storage are received; performing anonymous processing on the quasi-identifier attribute based on a preset k anonymous parameter to obtain a generalized quasi-identifier attribute; receiving a representative data set selected from the equivalent data set by the data memory; wherein the equivalent data set is obtained by grouping the stored data by the data memory according to the generalized quasi-identifier attribute.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information security technology, and specifically relates to a data collection method, device, system and electronic equipment. Background Art

[0002] Due to the advancement of communication technology, the business in the government industry has been electronicized, and the security of the relevant data generated by the business has become extremely important. The clustering-based anonymization method in the related art uses a client-server model to anonymize the data before it reaches the data collector.

[0003] However, the privacy data protection method uses private security channels or third-party anonymizers to collect private data, which may pose a potential risk of privacy data leakage. Summary of the invention

[0004] The embodiments of the present application provide a data collection method, device, system and electronic device, which can solve the problem that the privacy data protection method in the related art may have potential risks of privacy data leakage.

[0005] In a first aspect, an embodiment of the present application provides a data collection method, the method comprising: receiving a quasi-identifier attribute of stored data in a data storage device; anonymizing the quasi-identifier attribute based on a preset k anonymity parameter to obtain a generalized quasi-identifier attribute; receiving a representative data set selected by the data storage device from an equivalent data group; wherein the equivalent data group is obtained by the data storage device grouping the stored data according to the generalized quasi-identifier attribute.

[0006] In a second aspect, an embodiment of the present application provides a data collection method, the method comprising: sending a quasi-identifier attribute of stored data to a data collector; receiving a generalized quasi-identifier attribute generated by the data collector; wherein the generalized quasi-identifier attribute is obtained by the data collector by anonymously processing the quasi-identifier attribute based on a preset k anonymity parameter; grouping the stored data according to the generalized quasi-identifier attribute to obtain an equivalent data group; and sending a representative data set selected from the equivalent data group to the data collector.

[0007] In a third aspect, an embodiment of the present application provides a data collection device, which includes: a receiving module for receiving a quasi-identifier attribute of stored data in a data storage device; an anonymity processing module for anonymously processing the quasi-identifier attribute based on a preset k anonymity parameter to obtain a generalized quasi-identifier attribute; a collection module for receiving a representative data set selected by the data storage device from an equivalent data group; wherein the equivalent data group is obtained by the data storage device grouping the stored data according to the generalized quasi-identifier attribute.

[0008] In a fourth aspect, an embodiment of the present application provides a data collection device, which includes: a sending module for sending a quasi-identifier attribute of stored data to a data collector; a receiving module for receiving a generalized quasi-identifier attribute generated by the data collector; wherein the generalized quasi-identifier attribute is obtained by the data collector by anonymously processing the quasi-identifier attribute based on a preset k anonymity parameter; a grouping module for grouping the stored data according to the generalized quasi-identifier attribute to obtain an equivalent data group; the sending module is also used to send a representative data set selected from the equivalent data group to the data collector.

[0009] In a fifth aspect, an embodiment of the present application provides a data collection system, which includes a data collector and a data storage device, wherein the data collector is used to implement the steps of the method described in the first aspect; and the data storage device is used to implement the steps of the method described in the second aspect.

[0010] In a sixth aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect, or implements the steps of the method described in the second aspect.

[0011] In the seventh aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the steps of the method described in the first aspect, or to implement the steps of the method described in the second aspect.

[0012] In an embodiment of the present application, by receiving the quasi-identifier attribute of the stored data of the data storage, the quasi-identifier attribute is anonymized based on the preset k anonymity parameters to obtain a generalized quasi-identifier attribute, and then a representative data set selected by the data storage from the equivalent data group is received, wherein the equivalent data group is obtained by the data storage grouping the stored data according to the generalized quasi-identifier attribute, and the representative data set does not directly expose the sensitive attributes of the stored data, and can avoid directly obtaining the stored data of the data storage. Instead, by obtaining the representative data set, since the data in the equivalent data group has the same generalized quasi-identifier attribute, the data can be anonymously collected according to the representative data set, thereby solving the problem of privacy data leakage during the data collection process. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 It is a flowchart of a data collection method provided in an embodiment of the present application;

[0014] Figure 2 It is a flowchart of another data collection method provided in an embodiment of the present application;

[0015] Figure 3 It is a flowchart of another data collection method provided in an embodiment of the present application;

[0016] Figure 4 It is a flowchart of another data collection method provided in an embodiment of the present application;

[0017] Figure 5 It is a flowchart of another data collection method provided in an embodiment of the present application;

[0018] Figure 6 It is a flowchart of another data collection method provided in an embodiment of the present application;

[0019] Figure 7a It is a statistical diagram of the computational complexity of a data collection method provided in an embodiment of the present application;

[0020] Figure 7b It is a statistical diagram of the computational complexity of another data collection method provided in an embodiment of the present application;

[0021] Figure 8 is a structural schematic diagram of a data collection device provided in an embodiment of the present application;

[0022] Fig. 9 is a structural schematic diagram of another data collection device provided in an embodiment of the present application;

[0023] Fig.10 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0025] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0026] The data collection method, device, system and electronic device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0027] Figure 1 The flowchart of the data collection method provided by the embodiment of the present application is shown. The method can be executed by an electronic device, and the electronic device can include: a server and / or a terminal device, wherein the terminal device can be, for example, a vehicle-mounted terminal or a mobile phone terminal. Figure 1 , the method may include the following steps:

[0028] Step 102: Receive a quasi-identifier attribute of stored data in a data storage.

[0029] Among them, the stored data of the data storage can be the business data of a certain business. The stored data can specifically include personal identifiers, quasi identifier attributes (QI) and sensitive attributes. Among them, personal identifiers are explicit attributes that clearly distinguish specific individuals, such as ID card number, name, IP address and telephone number. During data collection and release, identifiers are usually deleted to avoid identity and attribute leakage. QI is a public attribute that can be shared by multiple individuals, such as age, gender and zip code. Although these public attribute information cannot directly identify individuals, combining QI with publicly available data sets may violate privacy. Generally, generalization and suppression methods can be used to protect QI. Sensitive attributes are detailed information of individuals that should not be made public or shared, such as medical diagnosis results. Identifying sensitive information and identity information of individuals is a serious privacy violation. Therefore, sensitive information is necessary and needs to be protected.

[0030] Step 104, anonymizing the quasi-identifier attribute based on a preset k anonymity parameter to obtain a generalized quasi-identifier attribute;

[0031] Among them, the stored data may include multiple attributes, and common attributes that can be shared by multiple individuals are selected. The quasi-identifier attribute is used as data that can be directly transmitted, which can avoid the problem of sensitive information leakage caused by direct transmission of sensitive attributes, and the quasi-identifier attribute can be used for subsequent data collection.

[0032] Optionally, performing anonymization processing on the quasi-identifier attribute based on a preset k anonymity parameter may include:

[0033] S1: Insert the QI of the stored data received from the data storage into the quasi identifier attribute table (QI table, QIT).

[0034] S2: When QIT is not empty, anonymize QI into a generalized quasi identifier attribute (Generalized Quasi Identifiers, GQI) according to the anonymous mapping rule, and let the identifier (identifier, ID) of GQI be G ID Equal to the group ID (the initial value of the group ID is 1).

[0035] S3: Insert GQI into GQIT, G ID =G ID +1. Until all the acquired quasi-identifier attributes are anonymized, execute S4.

[0036] S4: Output GQIT.

[0037] Step 106: receiving a representative data set selected by the data storage from the equivalent data set.

[0038] The equivalent data group is obtained by grouping the stored data by the data storage according to the generalized quasi-identifier attribute. The grouping method may be based on k-anonymity clustering, there are n groups of data, and the preset k-anonymity parameter is determined to be k, then k groups of data form a cluster, where k≤n.

[0039] Optionally, the representative data set may include multiple data sets, each of which includes data of different attributes, that is, each representative data set includes part of the stored data, so that during the data transmission process, the complete data set cannot be known through a certain representative data set, thereby avoiding the leakage of sensitive information.

[0040] In an embodiment of the present application, the data collector receives the quasi-identifier attribute of the stored data of the data storage, anonymizes the quasi-identifier attribute based on the preset k anonymity parameter, obtains the generalized quasi-identifier attribute, and selects to obtain the quasi-identifier attribute for anonymization to avoid directly obtaining sensitive attributes. Then, a representative data set selected by the data storage from the equivalent data group is received, wherein the equivalent data group is obtained by the data storage grouping the stored data according to the generalized quasi-identifier attribute, and the representative data set does not directly expose the sensitive attributes of the stored data, but only includes part of the stored data, which can avoid directly obtaining the stored data of the data storage, but by obtaining the representative data set, because the data in the equivalent data group has the same generalized quasi-identifier attribute, it is possible to anonymously collect data according to the representative data set, thereby solving the problem of privacy data leakage during the data collection process.

[0041] In one implementation, the representative data set includes: a first representative data set and a second representative data set; the first representative data set includes the generalized quasi-identifier attribute and the multi-valued sensitive attribute, wherein the multi-valued sensitive attribute includes the original sensitive attribute and the forged sensitive attribute of the stored data; the second representative data set includes the personal identifier of the stored data and the forged sensitive attribute. Figure 2 After receiving the representative data set selected by the data storage from the equivalent data set in the above step 106, the method further includes:

[0042] Step 108: Eliminate the forgery sensitive attribute in the first representative data set according to the second representative data set.

[0043] Among them, the representative data set may include a first representative data set and a second representative data set, and the first representative data set and the second representative data set respectively include partial content of the stored data, so that during the data transmission process, the complete data set cannot be known through a certain representative data set, thereby avoiding the leakage of sensitive information.

[0044] Step 110: Acquire a target data set from the first representative data set and the second representative data set; wherein the target data set includes the personal identifier, the quasi-identifier attribute, and the original sensitive attribute.

[0045] In an embodiment of the present application, the data collector receives a first representative data set selected from an equivalent data group by the data storage device, including a generalized quasi-identifier attribute and a multi-valued sensitive attribute, and the multi-valued sensitive attribute includes the original sensitive attribute and the forged sensitive attribute of the stored data, and the original sensitive attribute is protected by the forged sensitive attribute. And the data collector receives a second representative data set selected from an equivalent data group by the data storage device, including the personal identifier of the stored data and the forged sensitive attribute, so that the data collector obtains representative data sets with repeated parts respectively, and thus the forged sensitive attribute in the first representative data set can be eliminated by the forged sensitive attribute in the second representative data set, so that the original sensitive attribute can be obtained, and according to the personal identifier and quasi-identifier attribute in the obtained representative data set, the target data set including the personal identifier, the quasi-identifier attribute and the original sensitive attribute can be obtained, thereby avoiding the problem of privacy data leakage caused by directly obtaining the stored data of the data storage device.

[0046] Optionally, acquiring the target data set from the first representative data set and the second representative data set may include:

[0047] S1: Traverse each representative data set.

[0048] S2: If the number of target sensitive attributes in any first representative data set is equal to the number of generalized quasi-identifier attributes in any second representative data set, then the first representative data set corresponds to the second representative data set, and the forged sensitive attributes in the first representative data set that are identical to those in the second representative data set can be eliminated based on the forged sensitive attributes in the second representative data set to obtain target data including the original sensitive attributes.

[0049] S3: Add the target data of each time to the target dataset.

[0050] In one implementation, see Figure 3 After receiving the representative data set selected by the data storage from the equivalent data set in the above step 106, the method further includes:

[0051] Step 112: When the data storage updates the equivalent data group, receiving an updated representative data set selected by the data storage from the updated equivalent data group.

[0052] Optionally, the situation where the data storage device updates the equivalent data group may include newly added data, failure of a data storage device, etc.

[0053] In an embodiment of the present application, when the data storage updates the equivalent data group, the representative data set selected from the equivalent data group may also change, and the data collector receives the updated representative data set selected by the data storage from the updated equivalent data group.

[0054] Figure 4 A flow chart of another data collection method provided by an embodiment of the present application is shown. The method can be executed by an electronic device, which may include: a server and / or a terminal device, wherein the terminal device may be, for example, a vehicle-mounted terminal or a mobile phone terminal. Figure 4 , the method may include the following steps:

[0055] Step 402: Send the quasi-identifier attributes of the stored data to the data collector.

[0056] The stored data may specifically include personal identifiers, quasi-identifier attributes and sensitive attributes. Only the quasi-identifier attributes are sent to the data collector so that the data collector anonymizes the quasi-identifier attributes for subsequent data collection.

[0057] Step 404: Receive the generalized quasi-identifier attribute generated by the data collector.

[0058] The generalized quasi-identifier attribute is obtained by the data collector performing anonymization processing on the quasi-identifier attribute based on a preset k anonymity parameter.

[0059] Step 406: group the stored data according to the generalized quasi-identifier attribute to obtain equivalent data groups.

[0060] The data storage device groups the stored data according to the k anonymity parameter and the generalized quasi-identifier attribute. Specifically, the data having the same generalized quasi-identifier attribute after the anonymous mapping rule can be grouped together to obtain an equivalent data group for selecting a representative data set.

[0061] Step 408: Sending a representative data set selected from the equivalent data set to the data collector.

[0062] The representative data set may include a first representative data set and a second representative data set. Selecting a representative data set from an equivalent data set specifically includes: using a random number function, such as a random function, to generate two random numbers between 1 and the number of data in the equivalent data set, using the generated random numbers as the IDs of the first representative data set and the second representative data set, and then calculating the Euclidean distance between the selected representative data set and other data in the equivalent data set based on the firefly algorithm to measure whether the selected representative data set is appropriate, and then performing cyclic randomization to update the representative data set according to the distance, so as to select the best representative data set.

[0063] In an embodiment of the present application, the data storage device sends the quasi-identifier attributes of the stored data to the data collector, and then receives the generalized quasi-identifier attributes obtained by the data collector through anonymization of the quasi-identifier attributes based on a preset k anonymity parameter, and groups the stored data according to the generalized quasi-identifier attributes to obtain an equivalent data group. In order to avoid explicit interaction between the data storage device and the data collector, a representative data set is selected from the equivalent data group. Optionally, a first representative data set and a second representative data set can be selected, the first representative data set including generalized quasi-identifier attributes and multi-valued sensitive attributes, wherein the multi-valued sensitive attributes include the original sensitive attributes and forged sensitive attributes of the stored data, and the second representative data set includes the personal identifier and forged sensitive attributes of the stored data. Therefore, the original sensitive attributes of the stored data cannot be determined based on the first representative data set or the second representative data set, thereby achieving the effect of avoiding the leakage of privacy data. However, the data collector can collect anonymous data based on the first representative data set and the second representative data set. Specifically, it can include eliminating the forged sensitive attributes in the first representative data set through the forged sensitive attributes in the second representative data set, so as to obtain the original sensitive attributes, and based on the personal identifiers and quasi-identifier attributes in the obtained representative data set, it can further obtain the target data set including the personal identifiers, quasi-identifier attributes and the original sensitive attributes, thereby avoiding the problem of privacy data leakage caused by directly obtaining the stored data of the data storage device.

[0064] In one implementation, see Figure 5 After sending the representative data set selected from the equivalent data set to the data collector in step 408, the method may further include:

[0065] Step 410: Acquire the newly added data and the newly added generalized identifier attribute of the newly added data.

[0066] Among them, after the representative data set is sent to the data collector, the data in the data storage may also change, such as new data. It is necessary to dynamically update the data in the data storage and the equivalent data groups and selected representative data sets obtained by subsequent data grouping to achieve dynamic data management and avoid ignoring data and causing data leakage.

[0067] Step 412: Add the newly added data to the equivalent data group that matches the newly added generalized identifier attribute, and update the equivalent data group.

[0068] Similarly, for the newly added data, the quasi-identifier attribute of the newly added data is also sent to the data collector, and then transmitted back after anonymization by the data collector. Then, according to the newly added generalized identifier attribute of the newly added data, it is determined to which group of equivalent data the newly added data can be added, so that the newly added data is added to the equivalent data group that matches its newly added generalized identifier attribute, and the equivalent data group is updated, thereby minimizing data loss.

[0069] Step 414: Sending the updated representative data set selected from the updated equivalent data set to the data collector.

[0070] In an embodiment of the present application, after the representative data set is sent to the data collector, new data may be added to the data storage device, and similar anonymization processing is performed on the new data. The new data is then added to a matching equivalent data group based on the obtained new generalized identifier attribute, and the equivalent data group is updated so that the updated representative data group selected from the updated equivalent data group can better represent the updated equivalent data group, and the new data can also be dynamically managed to avoid data leakage due to missing data.

[0071] In one implementation, see Figure 6 After sending the representative data set selected from the equivalent data set to the data collector in step 408, the method may further include:

[0072] Step 416: When the first data storage device fails and fails to recover within a preset time, the equivalent data group is updated according to the stored data in other data storage devices except the first data storage device.

[0073] Among them, the failure of the first data storage device may include unforeseen situations such as power failure, system failure, network failure, etc. If the data storage device fails, the data therein cannot be collected by the data collector, and the equivalent data group and the representative data set may change, and the equivalent data group and the representative data set need to be updated.

[0074] It should also be noted that the failure of the first data storage may be temporary or permanent. In the case where the failure of the first data storage is temporary, that is, the first data storage can be restored within a preset time, the current equivalent data group and representative data set continue to be used, and no other processing is required, thereby reducing the computing cost. In the case where the failure of the first data storage is permanent, that is, the first data storage is not restored within a preset time, the equivalent data group is updated according to the stored data of other data storages remaining except the first data storage.

[0075] Step 418: Sending the updated representative data set selected from the updated equivalent data set to the data collector.

[0076] In an embodiment of the present application, after the representative data set is sent to the data collector, the data storage device may fail. In this case, the data of the failed data storage device cannot be collected by the data collector. In this case, the equivalent data group is updated based on the stored data of other data storage devices except the first data storage device. Thus, an updated representative data set selected from the updated equivalent data group is sent to the data collector to ensure the correctness and validity of the data collected by the data collector.

[0077] In an exemplary embodiment, taking the data storage storing electronic medical records as an example, the personal identifier of the stored data includes a user ID, the quasi-identifier attributes include age, gender and weight, and the sensitive attributes include diagnosis results. Table 1 shows a record of the electronic medical record. The data storage sends the quasi-identifier attributes in the record to the data collector.

[0078] Table 1.

[0079] User ID age gender Weight(kg) Diagnosis 1 35 female 55 gastritis 2 40 female 50 influenza 3 45 female 60 indigestion 4 55 male 65 pneumonia 5 60 male 75 influenza 6 65 male 68 cancer

[0080] Referring to Table 1, the data collector performs anonymization processing on the received quasi-identifier attribute. At this time, the data quantity n=6, and the preset k anonymity parameter k=3, then the quasi-identifier attribute is anonymized to obtain a generalized identifier attribute. Table 2 shows an anonymous record of the electronic medical record.

[0081] Table 2.

[0082]

[0083] Referring to Table 2, the user quasi-identifier attributes of ages 35, 40, and 45 are anonymously mapped to 35-45. The user quasi-identifier attributes of ages 55, 60, and 65 are anonymously mapped to 55-65. Optionally, weight can also be anonymously mapped. The data collector sends the generalized quasi-identifier attributes obtained after anonymization to the data storage. The data storage groups the stored data according to the generalized quasi-identifier attributes to obtain equivalent data groups. Table 3 shows the grouping of an equivalent data group of the electronic medical record.

[0084] Table 3.

[0085]

[0086]

[0087] As shown in Table 3, according to the generalized quasi-identifier attributes obtained after anonymization, the stored data can be divided into two equivalent data groups. The data storage device selects representative data sets from each equivalent data group. Table 4 shows the first representative data set, and Table 5 shows the second representative data set.

[0088] Table 4.

[0089]

[0090] Table 5.

[0091]

[0092] Referring to Tables 4 and 5, the data collector can eliminate the forged sensitive attributes in the first representative data set based on the forged sensitive attributes in the second representative data set, and then obtain the original sensitive attributes, thereby obtaining the target data set including the personal identifier, the quasi-identifier attributes and the original sensitive attributes based on the first representative data set and the second representative data set, thereby avoiding data leakage and realizing anonymous data collection.

[0093] In the embodiment of the present application, government personal health records are anonymized based on the clustered k-anonymity privacy model to prevent identity leakage. The cluster-based k-anonymity model generalizes the quasi-identifier attributes to form clusters, each of which contains at least k records. Therefore, the probability of identity leakage is limited to 1 / k or less. Although the data collector can access generalized quasi-identifier attributes and sensitive attributes, the cluster-based k-anonymity strategy makes internal identity leakage almost impossible. In the embodiment of the present application, not all data is transmitted at once between the data storage device and the data collector. Instead, a representative data set including part of the data is selected from the equivalent data group to interact with the data storage device and the data collector, and the original sensitive attributes in the representative data set are mixed with the forged sensitive attributes for transmission, so that the attacker cannot determine the original sensitive attributes, and the security of the data is ensured.

[0094] In addition, the present embodiment also analyzes the complexity of the data anonymization stage, the representative data set selection stage, and the data collection stage. By analyzing the growth trend of complexity, the execution time and resource consumption of the calculation under different input scales are lower than those of previous methods, verifying the feasibility and scalability of the present embodiment.

[0095] First, the data storage includes QI generation, submission and GQI verification tasks in the data anonymization stage. Assume that Ct_gen, Ct_sub and Ct_val are the complexities of these three tasks. QI generation is the basic operation of the data storage, and the computational complexity of Ct_gen is O(1), where QI is generated in constant time. The computational complexity of Ct_sub is O(1), where each data storage can submit QI within a given time. The computational complexity of Ct_val is O(k), where k is the number of records in each equivalent data group. In the initialization stage of the data collector, the main task is to anonymize QI and distribute QI. Let Ct_anon and Ct_dist be the complexity of these two tasks. In the traditional k-anonymity model, the computational complexity of anonymity processing is O(n 2 In the clustering-based k-anonymity model of the present application embodiment, Ct_anon is O(n 2 / k ), Ct_dist is O(n), where n is the number of data storage devices in the system. Therefore, the total cost of the data collector in the initialization phase is O(n 2 / k )+O(n).

[0096] Secondly, in the representative data set selection stage of the data storage, the computational complexity Ct_elec of the representative data set selection is O(u), where u is the number of stored data in the data storage. In an equivalent data group, the computational complexity Ct_elec of the representative data set selection is O(k), where k is the number of data records in the equivalent data group.

[0097] Furthermore, in the data collection phase, let s be the number of sensitive attributes of each data in the equivalent data group, then the number of sensitive attributes in each equivalent data group is k×s. Let g be the number of equivalent data groups, then the computational complexity of eliminating forged sensitive attributes is O(g·k 2 ·s 2 ). In the embodiment of the present application, anti-counterfeiting is performed only by comparing forged sensitive attributes with different sensitive attributes. Therefore, the computational complexity of eliminating forged sensitive attributes can be reduced to O(k·d·s), where d is the number of sensitive attributes.

[0098] In summary, the computational complexity of the embodiment of the present application is O(n 2 / k )+O(n)+O(k)+O(k·d·s), which is less than O(n 2 ), therefore, the data collection method of the embodiment of the present application has the advantages of low computational complexity and high efficiency.

[0099] In an exemplary embodiment, the method of the embodiment of the present application is applied to an adult data set and a notification data set, and the attributes "salary" and "occupation" are considered to be sensitive attributes, and the sensitive attributes are merged into one sensitive attribute "occupation-salary" for processing. Figure 7a and Figure 7b The computational complexity statistics of a data collection method provided by an embodiment of the present application are shown respectively. Among them, the number s of sensitive attributes is the x-axis and the computational complexity is the y-axis. As can be seen from the figure, the computational complexity increases with the increase in the number of sensitive attributes that the method needs to process. When the model processes fewer sensitive attributes, the computational complexity remains stable with a slight increase in the s value. This can be used to control the computational complexity in the data collection process to improve data collection efficiency.

[0100] It should be noted that the data collection method provided in the embodiment of the present application can be executed by a data collection device or a control module in the data collection device for executing the data collection method. In the embodiment of the present application, the data collection device provided in the embodiment of the present application is described by taking the data collection method executed by the data collection device as an example.

[0101] Figure 8 FIG. 1 shows a schematic diagram of the structure of a data collection device provided according to an embodiment of the present application. Figure 8As shown, the device 800 includes: a receiving module 81, an anonymity processing module 82 and a collection module 83.

[0102] Among them, the receiving module 81 is used to receive the quasi-identifier attributes of the stored data of the data storage; the anonymity processing module 82 is used to perform anonymity processing on the quasi-identifier attributes based on the preset k anonymity parameters to obtain generalized quasi-identifier attributes; the collection module 83 is used to receive the representative data set selected by the data storage from the equivalent data group; wherein the equivalent data group is obtained by the data storage grouping the stored data according to the generalized quasi-identifier attributes.

[0103] In one implementation, the above-mentioned collection module 83 can also be used to eliminate the forged sensitive attributes in the first representative data set based on the second representative data set; obtain a target data set from the first representative data set and the second representative data set; wherein the target data set includes the personal identifier, the quasi-identifier attribute and the original sensitive attribute.

[0104] In an implementation, the collection module 83 may also be configured to receive an updated representative data set selected by the data storage from the updated equivalent data set when the data storage updates the equivalent data set.

[0105] Fig. 9 FIG. 2 shows a schematic diagram of the structure of another data collection device provided according to an embodiment of the present application. Fig. 9 As shown, the device 900 includes: a sending module 91, a receiving module 92 and a grouping module 93.

[0106] Among them, the sending module 91 is used to send the quasi-identifier attributes of the stored data to the data collector; the receiving module 92 is used to receive the generalized quasi-identifier attributes generated by the data collector; wherein the generalized quasi-identifier attributes are obtained by the data collector by anonymously processing the quasi-identifier attributes based on the preset k anonymity parameters; the grouping module 93 is used to group the stored data according to the generalized quasi-identifier attributes to obtain equivalent data groups; the above-mentioned sending module 91 is also used to send a representative data set selected from the equivalent data group to the data collector.

[0107] In one implementation, the above-mentioned device 900 may also include an acquisition module and an update module, wherein the acquisition module can be used to acquire the newly added data and the newly added generalized identifier attributes of the newly added data; the update module can be used to add the newly added data to the equivalent data group that matches the newly added generalized identifier attributes, and update the equivalent data group; the above-mentioned sending module 91 can also be used to send an updated representative data set selected from the updated equivalent data group to the data collector.

[0108] In one implementation, the above-mentioned device 900 may also include an update module, which can be used to update the equivalent data group based on the stored data of other data storage devices except the first data storage device when the first data storage device fails and is not restored within a preset time; the above-mentioned sending module 91 can also be used to send an updated representative data set selected from the updated equivalent data group to the data collector.

[0109] The data collection device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device, and for example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0110] The data collection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0111] The data collection device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented in the method embodiment are not described here.

[0112] In one embodiment, the present application also provides a data collection system, which includes a data collector and a data storage device; wherein the data collector is used to implement the following Figures 1 to 3The steps of the data collection method implemented in the method embodiment shown; the data storage is used to implement Figures 4 to 6 The steps of the data collection method implemented in the method embodiment are shown.

[0113] Based on the same technical concept, an embodiment of the present application further provides an electronic device, which is used to execute the above data collection method. Fig.10 A schematic diagram of the structure of an electronic device for implementing various embodiments of the present application. The electronic device may have relatively large differences due to different configurations or performances, and may include a processor 1001, a communications interface 1002, a memory 1003, and a communication bus 1004, wherein the processor 1001, the communications interface 1002, and the memory 1003 communicate with each other through the communication bus 1004. The processor 1001 can call a computer program stored in the memory 1003 and can be run on the processor 1001 to execute the various steps of the above-mentioned data collection method embodiment, and can achieve the same technical effect, so it will not be repeated here to avoid repetition.

[0114] It should be noted that the electronic devices in the embodiments of the present application include: servers, terminals, or other devices except terminals.

[0115] The above electronic device structure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, the input unit may include a graphics processing unit (GPU) and a microphone, and the display unit may be configured with a display panel in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit includes a touch panel and at least one of other input devices. The touch panel is also called a touch screen. Other input devices may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0116] The memory can be used to store software programs and various data. The memory may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory may include a volatile memory or a non-volatile memory, or the memory may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM).

[0117] The processor may include one or more processing units; optionally, the processor integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor.

[0118] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data collection method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0119] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0120] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0122] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data collection method, characterized in that: include: receiving a quasi-identifier attribute of stored data of a data storage device; Anonymizing the quasi-identifier attribute based on a preset k anonymity parameter to obtain a generalized quasi-identifier attribute; receiving a representative data set selected by the data storage from an equivalent data set; The equivalent data group is obtained by the data storage device grouping the stored data according to the generalized quasi-identifier attribute.

2. The method according to claim 1, characterized in that The representative data set includes: a first representative data set and a second representative data set; the first representative data set includes the generalized quasi-identifier attribute and the multi-valued sensitive attribute, wherein the multi-valued sensitive attribute includes the original sensitive attribute and the forged sensitive attribute of the stored data; the second representative data set includes the personal identifier of the stored data and the forged sensitive attribute; After receiving the representative data set selected by the data storage from the equivalent data set, the method further includes: Eliminating the forgery sensitive attribute in the first representative data set according to the second representative data set; A target data set is obtained from the first representative data set and the second representative data set; wherein the target data set includes the personal identifier, the quasi-identifier attribute, and the original sensitive attribute.

3. The method according to claim 1, characterized in that After receiving the representative data set selected by the data storage from the equivalent data set, the method further includes: In the case where the data storage updates the equivalent data group, an updated representative data set selected by the data storage from the updated equivalent data group is received.

4. A data collection method, characterized in that: include: Sending quasi-identifier attributes of stored data to the data collector; Receiving a generalized quasi-identifier attribute generated by the data collector; wherein the generalized quasi-identifier attribute is obtained by the data collector performing anonymization processing on the quasi-identifier attribute based on a preset k anonymity parameter; Grouping the stored data according to the generalized quasi-identifier attribute to obtain equivalent data groups; A representative data set selected from the equivalent data set is sent to the data collector.

5. The method according to claim 4, characterized in that After sending the representative data set selected from the equivalent data set to the data collector, the method further includes: Obtaining newly added data and newly added generalized identifier attributes of the newly added data; Adding the newly added data to the equivalent data group matching the newly added generalized identifier attribute, and updating the equivalent data group; An updated representative data set selected from the updated equivalent data set is sent to the data collector.

6. The method according to claim 4, characterized in that After sending the representative data set selected from the equivalent data set to the data collector, the method further includes: When the first data storage device fails and fails to recover within a preset time, the equivalent data group is updated according to the stored data in other data storage devices except the first data storage device; An updated representative data set selected from the updated equivalent data set is sent to the data collector.

7. A data collection device, characterized in that: include: A receiving module, configured to receive a quasi-identifier attribute of stored data from a data storage device; An anonymity processing module, used for performing anonymity processing on the quasi-identifier attribute based on a preset k anonymity parameter to obtain a generalized quasi-identifier attribute; A collection module, configured to receive a representative data set selected by the data storage from an equivalent data set; The equivalent data group is obtained by the data storage device grouping the stored data according to the generalized quasi-identifier attribute.

8. A data collection device, characterized in that: include: a sending module, for sending the quasi-identifier attributes of the stored data to the data collector; A receiving module, configured to receive a generalized quasi-identifier attribute generated by the data collector; wherein the generalized quasi-identifier attribute is obtained by the data collector performing anonymization processing on the quasi-identifier attribute based on a preset k anonymity parameter; A grouping module, used for grouping the stored data according to the generalized quasi-identifier attribute to obtain equivalent data groups; The sending module is also used to send a representative data set selected from the equivalent data set to the data collector.

9. A data collection system, characterized in that: include: Data collectors and data storage; Wherein, the data collector is used to implement the steps of the data collection method according to any one of claims 1 to 3; The data storage device is used to implement the steps of the data collection method according to any one of claims 4 to 6.

10. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the data collection method as described in any one of claims 1 to 3, or implements the steps of the data collection method as described in any one of claims 4 to 6.

Citation Information

Patent Citations

  • Privacy protection method and system based on identity substitution

    CN106874789A

  • key information protection method and system based on an OpenID

    CN109829333A

  • Anonymous privacy protection method for multi-sensitive attribute data release

    CN110659513A

  • Data privacy protection method and device, storage medium and electronic equipment

    CN113612803A

  • Generation Method and Device for generating anonymous dataset, and method and device for risk evaluation

    US20140189858A1