Heterogeneous electricity consumption data publishing method based on clustering anonymization and differential privacy protection

Through the methods of clustering anonymization and differential privacy protection, heterogeneous electricity consumption data are processed and noise-added, which solves the problems of heterogeneous data and query sensitivity in the electricity consumption information collection system, and achieves the accuracy of electricity consumption data. Analysis and privacy protection improve the availability and privacy of data.

CN114092729BActive Publication Date: 2024-10-29SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111191708.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-13
Publication Date
2024-10-29
Estimated Expiration
2041-10-13

AI Technical Summary

Technical Problem

In the electricity consumption information collection system, how to process heterogeneous data and reduce query sensitivity under differential privacy constraints to achieve accurate analysis and privacy protection of electricity consumption data.

Method used

Through the methods of clustering anonymization and differential privacy protection, the original electricity consumption data is clustered, generalized and noise added. Classification trees and index mechanisms are used to group and noise process different types of attributes to ensure that the data meets the differential requirements. Privacy, and calculates similarity of data sets to publish protected data.

Benefits of technology

While protecting the privacy of electricity consumption data, it improves the accuracy of cluster analysis and data availability, and provides a flexible privacy protection solution to ensure the privacy and availability of multiple types of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114092729B_ABST
    Figure CN114092729B_ABST
Patent Text Reader

Abstract

The present invention discloses a heterogeneous electricity consumption data publishing method based on clustering anonymization and differential privacy protection, which relates to the field of information technology security, in order to achieve the purpose of privacy protection for heterogeneous electricity consumption data, transform the cluster analysis problem into a classification problem, use class labels to perform generalized anonymization mechanism and noise processing on the cluster structure of original data at the same time, and publish an electricity trading data set that meets ∈-differential privacy protection, so as to realize flexible privacy protection cluster analysis, improve the accuracy of published data for cluster analysis, and ensure the privacy and availability of various types of data at the same time, so as to provide reliable data for electricity consumption data analysis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information technology security, and in particular to a method for publishing heterogeneous electricity consumption data based on anonymization and differential privacy. Background Art

[0002] With the rapid improvement of smart grid collection, processing and storage capabilities, the amount of electricity consumption data collected has also increased dramatically. For the various types of electricity consumption data collected, the use of big data analysis and mining technology can not only accurately analyze personal electricity consumption, but also provide users with personalized electricity services. However, raw electricity consumption data often contains sensitive information about individuals, and directly publishing electricity consumption data will lead to personal privacy leakage. Therefore, how to accurately analyze user electricity consumption data while protecting user privacy from being leaked has become an urgent problem to be solved.

[0003] Privacy-preserving data publishing has been a hot topic in recent years. Its purpose is to protect the privacy of individuals in the data set while mining and analyzing sensitive data. Traditional privacy-preserving data publishing models, such as k-anonymity, l-diversity, and t-approximation models, generalize all data records into several groups of records based on the characteristics of the original data, making it impossible to distinguish between the individual records in each group. Differential privacy protection is a more robust privacy protection model that provides a strict and quantitative representation and proof of the risk of privacy leakage, fundamentally solving the problems of traditional privacy protection methods that cannot quantify the degree of privacy protection and lack the definition of attack models.

[0004] However, in the context of the electricity consumption information collection system, when the input dataset contains mixed-type attributes, if accurate data publishing results are to be provided under the constraints of differential privacy, two key issues need to be addressed:

[0005] (1) How to handle heterogeneous data;

[0006] (2) How to reduce query sensitivity.

[0007] Because, in the non-interactive electricity consumption information collection scenario, when the noise mechanism of differential privacy is used to protect the data set, the heterogeneity of electricity consumption data will cause the noise mechanism to introduce a large number of disturbance errors, making it impossible to provide accurate analysis results when performing cluster analysis on privacy-protected electricity consumption data, resulting in the published data losing its due availability, which directly restricts the application of differential privacy in non-interactive privacy-protected data publishing. Summary of the invention

[0008] The present invention proposes a method for publishing heterogeneous electricity consumption data based on clustering anonymization and differential privacy protection to achieve the purpose of privacy protection of heterogeneous electricity consumption data. Moreover, while effectively protecting the privacy of electricity consumption data, the accuracy of published data for cluster analysis is improved, thereby providing reliable data for electricity consumption data analysis.

[0009] In order to solve the above problems, the present invention provides a method for publishing heterogeneous electricity consumption data based on clustering anonymization and differential privacy protection, and the method comprises the following steps:

[0010] According to the cluster analysis request of the data user, the original electricity consumption data in the original data set D is clustered to obtain a labeled data set D with class labels. * , label dataset D * Includes multiple raw data records;

[0011] For the labeled dataset D * The numerical attributes, categorical attributes, and set-valued attributes in are generalized separately;

[0012] The following anonymization processing is performed on the generalized data: the categorized attribute data is grouped according to the predefined classification tree, the Laplace mechanism is used to add noise to the set-valued attribute data, and the exponential mechanism is used to add noise to the numerical attribute data to ensure that the data meets differential privacy, and the anonymous data set D′ is obtained;

[0013] By deleting any data record on the anonymous dataset D′ and adding noise, a query set that satisfies differential privacy is obtained. The similarity between the above query set and the real query set of the original dataset is calculated. When the similarity is greater than 0, the dataset that satisfies differential privacy protection is released to the data user.

[0014] Furthermore, a k-means algorithm or a DBSCAN algorithm is used for clustering processing.

[0015] Furthermore, the label dataset D * The attributes in the original data record are represented by r * ={A1,…,A d ,Class}, where A represents the attribute and Class represents each original data record r i In the labeled dataset D * The class labels in .

[0016] Furthermore, the generalization method is to use the t-closeness slicing (TCS) algorithm to classify the labeled dataset D * Perform hierarchical generalization.

[0017] Furthermore, after generalization, the original data records are grouped by calculating the information gain between any attribute and the class label Where Ω(Class) represents the domain of the attribute, D g represents a set of data records whose attribute values ​​are generalized to g, Represents the generalization of attribute values ​​into a set of data records containing class labels.

[0018] Furthermore, when the categorized attribute data are grouped according to the predefined classification tree, the global sensitivity Δq is set to 1.

[0019] Furthermore, when generalizing set-valued attributes, the generalization process produces (2 t -1) groups, where t is the number of child nodes in the classification tree corresponding to the set-valued attribute.

[0020] Furthermore, for set-valued attributes, it is verified whether the noise size generated by the Laplace mechanism is greater than a threshold. If the noise size of the grouped sub-partitions is greater than the threshold, the sub-partitions will be retained, otherwise the sub-partitions will be pruned.

[0021] Furthermore, the method of adding noise to numerical attribute data using the exponential mechanism is as follows: by dynamically generating or expanding the corresponding classification tree, probabilistically processing the numerical attributes, calculating the utility score of each attribute value within the numerical partition range, and using the exponential mechanism to select an attribute value g as the probability of the numerical partition s. Among them, I(s) represents the set of attribute values ​​within the divided group p, Δq represents the sensitivity of the query function, and ∈ represents the privacy budget parameter.

[0022] Furthermore, when the similarity is less than or equal to 0, a privacy budget parameter ∈ is adjusted to return a query set that satisfies differential privacy.

[0023] Furthermore, the similarity calculation formula is:

[0024]

[0025] Among them, Sim(θ) is the similarity; is the query set that satisfies differential privacy after deleting the nth data record and adding noise from the anonymous dataset D′; f(D) is the true query set of the original dataset D; k is the total number of data records.

[0026] Compared with the prior art, the technical effect of the present invention is as follows: the present invention transforms the clustering analysis problem into a classification problem, uses class labels to perform generalized anonymization and noise processing on the clustering structure of the original data, and then publishes an electricity trading data set that meets ∈-differential privacy protection, thereby realizing flexible privacy-preserving clustering analysis and ensuring the privacy and availability of various types of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] A more complete understanding of exemplary embodiments of the present invention may be obtained by referring to the following drawings:

[0028] Figure 1 The present invention is a flow chart of a method for publishing heterogeneous electricity consumption data based on clustering anonymization and differential privacy protection disclosed in an embodiment.

[0029] Figure 2 This is a graph showing the impact of changes in the number of clusters k on the privacy of the algorithm.

[0030] Figure 3 This is the impact of changes in neighborhood density threshold M on privacy.

[0031] Figure 4 Graph showing the impact of privacy budget changes on availability. DETAILED DESCRIPTION

[0032] In order to make the above features and advantages of the present invention more obvious and easy to understand, embodiments are given below and described in detail with reference to the accompanying drawings.

[0033] The embodiment of the present invention discloses a method for publishing heterogeneous electricity consumption data based on clustering anonymization and differential privacy protection, such as Figure 1 As shown, the steps of this method specifically include:

[0034] 1. Data preprocessing.

[0035] First, according to the clustering analysis request of the data user, the original data set D is clustered and the k-means algorithm or DBSCAN algorithm is applied to obtain the labeled data set D containing the clustering structure and class labels. * , D * The attributes in the original data record are represented as r * ={A1,…,A d ,Class}, where Class represents each original data record r i In D * The class labels in , can be used to help identify the clustering structure of the original data set D during the anonymization process.

[0036] 2. Data privacy protection.

[0037] For the labeled dataset D *The numerical attributes, categorical attributes, and set-valued attributes in are generalized and anonymized respectively, as follows:

[0038] Using the t-closeness slicing (TCS) algorithm, the labeled dataset D * Perform hierarchical generalization.

[0039] After generalization, the original data records are further grouped. c The data are divided according to the predefined classification tree, with a global sensitivity of Δq = 1. The records grouped according to the classification tree corresponding to the categorical attribute satisfy differential privacy. s The difference in generalization processing lies in the combination of child nodes. Assuming that p set-valued attribute nodes are selected, and the corresponding classification tree has t child nodes, generalization will produce (2 t -1) groups. To improve accuracy, empty subgroups should be pruned as early as possible. Due to the uncertainty required by differential privacy, each subgroup is considered "non-empty" by verifying whether its noise size (generated by the Laplace mechanism) is greater than a threshold. That is, if the noise size of a subpartition is greater than the threshold, the subpartition will be retained; otherwise, the subpartition will be considered "empty" and should be pruned. For numeric attributes d n , by dynamically generating or expanding the corresponding classification tree to probabilistically process numerical attributes, calculate the utility score of each attribute value within the numerical partition range, and use the exponential mechanism to select an attribute value g as the probability of the numerical partition s Among them, I(s) represents the set of attribute values ​​within the partition p.

[0040] Based on data anonymization and differential privacy technology, D * After privacy protection processing, the anonymous data set D′ is obtained.

[0041] 3. Data release.

[0042] Measure the privacy and availability of the anonymous dataset D′, adjust the privacy budget parameters when necessary, and publish D′ that meets the privacy and availability requirements to data users.

[0043] The availability measurement of D′ is achieved by deleting any data record on the anonymous dataset D′ and adding noise to obtain a query set that satisfies differential privacy. The similarity between the above query set and the true query set of the original dataset is calculated, and when the similarity is greater than 0, the dataset of the equivalent group that satisfies differential privacy protection is published.

[0044] The similarity between the differentially private query set and the real query set after deleting any data and adding noise is calculated, including:

[0045]

[0046] Among them, Sim(θ) is the similarity; is the query set that satisfies differential privacy after deleting the nth data record and adding noise to the anonymous dataset D′; f(D) is the true query set of the original dataset D.

[0047] When the similarity is less than or equal to 0, the privacy budget parameter is adjusted and a query set that satisfies differential privacy is returned.

[0048] Experimental test:

[0049] This experiment will conduct an experimental analysis of the present invention from the perspectives of privacy and usability.

[0050] 1) Privacy Analysis

[0051] In order to measure the privacy of published data, this experiment introduces Record Linkages (RL), which is used to indicate the percentage of original data records that are correctly matched from the privacy-preserving dataset. Where n is the number of original data records, Pr(r′ j ) is the record linkage probability of anonymous records, G is the same as r′ j The original record set with the smallest distance. If the correct original record r j In G, then calculate and guess r in G j Probability Otherwise, Pr(r j ′)=0. Record linkage measures the actual privacy from the perspective of privacy attacks. The differential privacy model with a higher privacy budget ∈ cannot resist the attack of record linkage. Therefore, the lower the RL value, the lower the probability of privacy leakage, and the better the privacy of the published data after anonymization.

[0052] In this experiment, the privacy budget ∈ is set to 0.1, and the impact of the number of clusters and the neighborhood threshold on the privacy of the algorithm is compared and analyzed. Figure 2 As shown in the figure, the experiment observed that the accuracy of the present invention did not increase with the increase of the number of clusters k, which means that the attacker can only obtain private information with a very small probability. At the same time, the RL value of the present invention is smaller than that of the DPLKmeans algorithm, which means that the present invention can achieve higher privacy. Figure 3 In this experiment, when the number of clusters k is set to 10 and the privacy budget ∈ is set to 0.01, the privacy of the present invention is compared with that of the DPDBSCAN algorithm. It is observed that the privacy of the present invention does not increase with the increase of the neighborhood density threshold Minpts, and has better privacy. In summary, the algorithms of this experiment are superior to the other two algorithms in terms of privacy.

[0053] 2) Usability Analysis

[0054] This experiment uses the sum of the squared errors (SSE), The information loss between the data after privacy protection processing and the original data is measured, and the availability of the published data is further analyzed. The sum of squared errors is a measure of information loss. The smaller the SSE value, the smaller the deviation between the data after privacy protection processing and the original data, and the higher the data availability. In order to evaluate the availability of the present invention, the information loss scores of the present invention, the DPLKmeans algorithm, the DPDBSCAN algorithm and the traditional differential privacy algorithm are compared and analyzed. It represents the information loss of the present invention, DPLKmeans algorithm, and DPDBSCAN algorithm, SSE Laplace Represents the information loss using the Laplace mechanism. The scoring process is the process of normalizing the information loss data. Compared to SSE Laplace The smaller the value, the higher the availability of published data.

[0055] In this experiment, the number of clusters k is set to 5, the neighborhood density threshold Minpts is set to 10, and the impact of privacy budget ∈ 0.01, 0.1, 0.25, 0.5, and 1 on the algorithm availability is compared under three data sets. Figure 4 As shown in Figure 2, this experiment observed that the information loss score SCORE decreases as the privacy budget ∈ increases, which means that the data availability of the three algorithms will be affected by the privacy budget. However, the present invention has better data availability than the DPLKmeans algorithm and the DPDBSCAN algorithm, because when the privacy budget increases, the SCORE of the other two algorithms is higher than that of the algorithm in this experiment. Therefore, compared with the other two algorithms, the present invention achieves better data availability.

[0056] Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the present invention. Appropriate modifications or equivalent substitutions of the technical solutions of the present invention made by ordinary technicians in the field should all be included in the protection scope of the present invention. The protection scope of the present invention shall be based on what is defined in the claims.

Claims

1. A method for publishing heterogeneous electricity consumption data based on clustering anonymization and differential privacy protection, characterized in that: The following steps are involved: According to the cluster analysis request of the data user, the original electricity consumption data in the original data set D is clustered to obtain a labeled data set D with class labels. * , label dataset D * Includes multiple raw data records; For the labeled dataset D * The numerical attributes, categorical attributes, and set-valued attributes in the generalization process are generalized respectively; when the set-valued attributes are generalized, the generalization process produces (2 t -1) groups, where t is the number of child nodes in the classification tree corresponding to the set-valued attribute; for the set-valued attribute, verify whether the noise size generated by the Laplace mechanism is greater than a threshold. If the noise size of the sub-partitions grouped is greater than a threshold, the sub-partition will be retained, otherwise the sub-partition will be pruned; After generalization, calculate the information gain between any attribute and class label Where Ω(Class) represents the domain of the attribute, D g represents a set of data records whose attribute values ​​are generalized to g, Represents the generalization of attribute values ​​into a set of data records containing class labels; The following anonymous processing is performed on the generalized data: the categorized attribute data is grouped according to the predefined classification tree, the Laplace mechanism is used to add noise to the set-valued attribute data, and the exponential mechanism is used to add noise to the numerical attribute data to ensure that the data meets differential privacy, and an anonymous data set D′ is obtained; the method of adding noise to the numerical attribute data using the exponential mechanism is: by dynamically generating or expanding the corresponding classification tree, probabilistically processing the numerical attributes, calculating the utility scores of each attribute value within the numerical partition range, and using the exponential mechanism to select an attribute value g as the probability of the numerical partition s. Where I(s) represents the set of attribute values ​​within the divided group p, Δq represents the sensitivity of the query function, and ∈ represents the privacy budget parameter; By deleting any data record on the anonymous dataset D′ and adding noise, a query set that satisfies differential privacy is obtained. The similarity between the above query set and the real query set of the original dataset is calculated. When the similarity is greater than 0, the dataset that satisfies differential privacy protection is released to the data user.

2. The method according to claim 1, characterized in that Use k-means algorithm or DBSCAN algorithm for clustering.

3. The method according to claim 1, characterized in that Label dataset D * The attributes in the original data record are represented by r * ={A1,…,A d ,Class}, where A represents the attribute and Class represents each original data record r i In the labeled dataset D * The class labels in .

4. The method according to claim 1, characterized in that The generalization method is: use the t-closest partitioning algorithm to classify the label data set D * Perform hierarchical generalization.

5. The method according to claim 1, characterized in that When grouping categorical attribute data according to a predefined classification tree, its global sensitivity Δq is set to 1.

6. The method according to claim 1, characterized in that When the similarity is less than or equal to 0, the privacy budget parameter ∈ is adjusted and a query set satisfying differential privacy is returned.

7. The method according to claim 1, characterized in that The similarity calculation formula is: Among them, Sim(θ) is the similarity; The anonymous dataset D ′ The query set that satisfies differential privacy is obtained after deleting the nth data record and adding noise; f(D) is the true query set of the original data set D; k is the total number of data records.

Citation Information

Patent Citations

  • Data processing method and system based on clustering anonymization and differential privacy protection

    CN110069943A

  • Privacy protection table data sharing algorithm based on clustering anonymity

    CN110555316A