Local differential privacy protection method and device based on intelligent electric meter data

By converting the integer and decimal parts of smart meter data into 4-bit binary and performing perturbation processing, the problem of high-frequency data privacy leakage in smart grids is solved, achieving both privacy protection and data aggregation, and reducing hardware computing and network load.

CN118821218AInactive Publication Date: 2024-10-22STATE GRID SICHUAN ELECTRIC POWER CORP ELECTRIC POWER RES INST
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410970356.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2024-10-22
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In smart grids, high-frequency data collected by smart meters can easily leak user privacy. Traditional local differential privacy methods have problems such as limited input range, unsatisfactory mean estimation when the amount of data is small, and all users must use the same privacy budget.

Method used

A local differential privacy protection method based on smart meter data is used to convert each digit of the integer part and decimal part of the data into a 4-digit binary, allocate a privacy budget and perform perturbation, and optimize the perturbation error through iterative calculation and correction coefficients to ensure that the data is Perform privacy processing before uploading.

Benefits of technology

Effectively protect user privacy, reduce hardware computing pressure and network data transmission load, meet privacy protection requirements without changing the aggregation characteristics of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118821218A_ABST
    Figure CN118821218A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of communication, and particularly relates to a local differential privacy protection method and device based on intelligent electric meter data, and the method comprises the steps: obtaining data collected by an intelligent electric meter, and converting each digit of decimal numerical values of an integer part and a decimal part of the data into a 4-digit binary system for representation; a privacy budget is allocated to each number of the integer part and the decimal part, and a differential privacy parameter of each bit of binary representation of each number is calculated; perturbing each digit of the four-digit binary system according to the differential privacy parameter, and converting the perturbed four-digit binary system into a decimal digit; and uploading the disturbed data as data acquired by the intelligent electric meter to a server. According to the method, on the basis of meeting the requirement for privacy protection, the aggregation characteristic of the data is not changed, the hardware calculation pressure and the data transmission load in the network are greatly reduced through a local differential privacy method, and the loss of data utility is reduced as much as possible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of communication technology, and in particular relates to a local differential privacy protection method and device based on smart meter data. Background Art

[0002] With economic development and technological iteration, the power grid has gradually evolved from a traditional power grid to a smart grid, from the one-way flow of power and information from the traditional power grid to the two-way flow of power and information to the user end to the smart grid, and from centralized power supply to distributed power supply. This has greatly improved the power grid in terms of power supply and demand balance, power resource scheduling, power supply reliability, energy consumption and environmental impact. In a smart grid, users and power companies need to use smart grid energy more reasonably, and they will share more information, which will lead to security issues such as data leakage and privacy infringement.

[0003] In smart grids, smart meters installed at the user end collect user electricity consumption data in two forms. One is high-frequency data collection: real-time collection, simple processing and storage, etc., and then regularly reporting the electricity consumption data to the control center via wireless or wired means. This periodic time interval is generally 15 minutes or even shorter. The control center then summarizes and statistically analyzes the data collected by the smart meters, and can estimate the real-time electricity consumption of the power grid, formulate dynamic electricity price strategies, formulate power grid power dispatch strategies, etc. The other type is low-frequency collection, which generally records the user's electricity consumption for a month to facilitate the payment of electricity bills. Low-frequency sampling is generally used for total electricity consumption in a month, and the threat of privacy leakage is not great, while high-frequency data collection is easy to leak the user's specific electricity consumption. Figure 1 As shown, the attacker obtains the short-term power consumption through the transmission from the smart meter to the server or from the server to the control center, and infers the electrical appliances based on the short-term power consumption to determine whether the user is at home, thus posing a security risk.

[0004] Smart meters installed at the user end have great computing resource pressure in high-frequency data collection due to hardware limitations, and some more complex computing operations are difficult to implement directly on smart meters. In addition, since there are many user-end nodes in the power grid as a whole, there are often tens of thousands of meters sending data at the same time, so the amount of data sent by the meter should not be too large to reduce the load on the routing.

[0005] In summary, we should try to reduce the difficulty of implementation and the amount of data while taking privacy protection into consideration.

[0006] Although traditional local differential privacy is well suited to the needs of high-frequency data collection in power grids, it also has several problems:

[0007] 1) The input range is pre-defined. In general local differential privacy solutions, all input data needs to be mapped to the range of [-A, A] during preprocessing; however, in practical situations, it is actually difficult to require each participant to follow the same input rules.

[0008] 2) When the amount of data is small, the mean estimation result is not ideal. The mean result requires a large amount of data to balance the positive and negative noise. When the amount of input data is small, the degree of disturbance is difficult to control.

[0009] 3) The privacy budget used by all users must be the same. The privacy budget corresponds to the protection strength of the LDP mechanism. As a decentralized system, requiring all participants to choose the same protection strength is a challenge because privacy is a very subjective factor. Summary of the invention

[0010] In view of the problems existing in the prior art, the present invention proposes a local differential privacy protection method based on smart meter data. After the user performs privacy processing on the meter data to be uploaded, the processed meter data is uploaded to the server. The process of privacy processing on the meter data includes:

[0011] The data collected by the smart meter is obtained, and each digit of the decimal value of the integer part and the decimal part of the data is converted into a 4-bit binary representation;

[0012] Assign a privacy budget to each digit in the integer part and the fractional part, and calculate the differential privacy parameter for each bit of the binary representation of each digit;

[0013] Perturb each digit of the 4-bit binary number according to the differential privacy parameter, convert the perturbed 4-bit binary number into a decimal number, multiply the decimal number by the unit of the digit where the decimal number is located, and add the values ​​of all digits together as the perturbed data;

[0014] The disturbed data is uploaded to the server as data collected by the smart meter.

[0015] Furthermore, the privacy budget is evenly distributed to each digit in the integer part and the decimal part.

[0016] Furthermore, the process of allocating the privacy budget of each number to each bit of the binary representation of the number includes the following steps:

[0017] 101. During initialization, the privacy budget is evenly distributed to each digit of the integer part and the decimal part, and the number of iterations is set. The privacy of each digit of the 4-bit binary is iteratively calculated starting from step 102;

[0018] 102. Perturb the numbers according to the privacy budget of each number, and use the absolute value of the difference between the true value of the number and the perturbed value as the perturbation error;

[0019] 103. While keeping the overall privacy budget unchanged, increase the high-end privacy budget and reduce the low-end privacy budget;

[0020] 104. Calculate the ratio of the absolute value of the current disturbance error to the previous disturbance error and the current disturbance error as the decreasing rate;

[0021] 105. Determine whether the current iteration is successful based on the decreasing rate. If successful, output the privacy parameters of the current numbers. If unsuccessful, increase the number of iterations and return to step 102.

[0022] Furthermore, calculating the differential privacy parameter for each bit of the binary representation of each number includes:

[0023]

[0024] Among them, p i represents the differential privacy parameter of each bit of the binary representation of the i-th digit; ε i represents the privacy budget of the i-th digit.

[0025] Furthermore, perturbing each digit of the 4-bit binary number according to the differential privacy parameter includes the following steps:

[0026] Randomly select a random number between (0, 1) for one of the binary digits and compare the size of the random number with the differential privacy parameter;

[0027] If the random number is greater than the differential privacy parameter, and the current digit value is 1, the current digit value is updated to 0; if the current digit value is 0, the current digit value is updated to 1; otherwise, the first digit value remains unchanged;

[0028] Repeat the above steps to complete the 4-bit binary perturbation.

[0029] Furthermore, a correction coefficient is calculated for each digit of the disturbed data and multiplied by the digit to correct the disturbed data. The calculation of the correction coefficient includes:

[0030] C=2n+(15-2n)p-15

[0031] Among them, C is the correction coefficient of n; n is the true value collected by the smart meter; p is the differential privacy parameter corresponding to the current number.

[0032] The present invention also proposes a local differential privacy protection device based on smart meter data, which is used to implement a local differential privacy protection method based on smart meter data. The local differential privacy protection device based on smart meter data performs privacy processing on the meter data, and uploads the processed meter data to a server. The local differential privacy protection device based on smart meter data includes a privacy budget setting module and a differential privacy calculation module, wherein:

[0033] The privacy budget setting module allocates a privacy budget for each bit of the data to be uploaded, that is, converts each digit of the decimal meter data into a 4-bit binary representation and allocates the privacy budget to each binary representation;

[0034] The differential privacy computing module perturbs each digit of the binary representation according to the allocated privacy budget and converts the perturbed value into a decimal number.

[0035] The present invention can meet the required privacy protection without changing the aggregation characteristics of the data. And through the local differential privacy method, it greatly reduces the hardware computing pressure and the data transmission load in the network, and minimizes the loss of data utility. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 It is a schematic diagram of the connection between the smart meter, gateway and control center in the prior art;

[0037] Figure 2 A schematic diagram of a local differential privacy protection method based on smart meter data according to the present invention;

[0038] Figure 3 This is a flowchart of privacy computing in the present invention. DETAILED DESCRIPTION

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

[0040] The present invention proposes a local differential privacy protection method based on smart meter data. After the user performs privacy processing on the meter data to be uploaded, the processed meter data is uploaded to the server. Figure 2 ,The process of privacy processing of meter data includes:

[0041] The data collected by the smart meter is obtained, and each digit of the decimal value of the integer part and the decimal part of the data is converted into a 4-bit binary representation;

[0042] Assign a privacy budget to each digit in the integer part and the fractional part, and calculate the differential privacy parameter for each bit of the binary representation of each digit;

[0043] Perturb each digit of the 4-bit binary number according to the differential privacy parameter, convert the perturbed 4-bit binary number into a decimal number, multiply the decimal number by the unit of the digit where the decimal number is located, and add the values ​​of all digits together as the perturbed data;

[0044] The disturbed data is uploaded to the server as data collected by the smart meter.

[0045] like Figure 1 In the existing electricity meter data collection system, data is uploaded to the gateway through each household's real energy meter, and then the gateway uploads the collected data to the control center. However, the process of uploading data to the gateway and uploading data to the control center is vulnerable to intrusion by attackers, resulting in data leakage and the risk of privacy leakage.

[0046] The emergence of the LDP mechanism does not require a trusted third-party collector. Users perturb data before uploading to the server. Since the original data is hidden locally, privacy will be protected. The LDP model is defined as follows: Given a mechanism M and its domain Dom(M) and range Ran(M), for mechanism M, if any input sample records t and t′ (t, t′∈Dom(M)), and their output If the following formula (1) is satisfied, then mechanism M satisfies local differential privacy.

[0047] P(M(t)=t * )≤e ε ×P(M(t')=t * ) (1)

[0048] For any two inputs t and t′ in the domain (M), the output of mechanism M is similar. According to (1) above, when the privacy budget ε is close to 0, P(M(t) = t * ) is equal to P(M(t')=t * ), which indicates that the algorithm is highly protective of the input data. The smaller the privacy budget, the stronger the data privacy protection ability, and the worse the data utility obtained.

[0049] The present invention proposes a local differential privacy protection method based on smart meter data, which mainly includes three parts: encoding, perturbation and aggregation. Next, this embodiment describes the three parts respectively.

[0050] (i) Encoding, i.e., encoding the data collected by the smart meter. The purpose of this embodiment is to convert each digit of the collected decimal data into a four-digit binary representation, which specifically includes the following steps:

[0051] (1) Input sensitive data Nr and decimal places Dp;

[0052] (2) Take the integer part int_Nr, the decimal part decimal_Nr, the integer length int_LNr and the decimal length decimal_LNr;

[0053] (3) Take each digit of int_Nr, convert each digit into 4-bit binary, and then reassign it to int_ANr[i]. Similarly, convert the decimal part and assign it to decimal_ANr[j].

[0054] (4) Output int_ANr and decimal_ANr.

[0055] For example, Nr = 256.48, Dp = 2, integer part int_Nr =

[256] , decimal part decimal_Nr = [.48], integer length int_LNr = 3, decimal length decimal_LNr = 2;

[0056] int_ANr[i] represents the i-th decimal digit of the integer part from left to right, i={1,2,…,int_LNr}. For example, in this embodiment, int_ANr[2] represents the second decimal digit of the integer part from left to right, that is, the number 5. Similarly, decimal_ANr[j] represents the j-th decimal digit of the integer part from left to right, j={1,2,…,decimal_LNr}. For example, in this embodiment, decimal_LNr[2] represents the second decimal digit of the integer part from left to right, that is, the number 8.

[0057] After converting each value of the value 256.48 into binary, int_ANr = [int_ANr[1], int_ANr[2], .., int_ANr[int_LNr]] = [0010, 0101, 0110]; similarly, decimal_ANr = [decimal_ANr[1], decimal_ANr[2], .., decimal_ANr[decimal_LNr]] = [0100, 1000].

[0058] (ii) Disturbance: The present invention uses a general random response (GRR) algorithm to perturb the data. The algorithm requires that the input data must be binary data, because the value of each bit of binary data only includes two cases: 0 and 1.

[0059] Before perturbation, it is necessary to set a total privacy budget ε and allocate the total privacy budget ε to all numbers. In this embodiment, the average allocation method is taken as an example, and the privacy budget of each number needs to be calculated as ε / α, where α represents the number of digits collected by the current smart meter, expressed as:

[0060] α=int_Nr+decimal_A Nr

[0061] Taking Nr=256.48 as an example, the value α=5.

[0062] The privacy budget of each number is ε / α. The number is converted into a 4-bit binary representation, and the privacy budget corresponding to each bit of the binary is expressed as:

[0063]

[0064] Based on the above content, the converted binary data is disturbed. The process of disturbing a binary number includes the following steps:

[0065] (1) Calculate the differential privacy parameter for each bit of the current binary;

[0066] (2) For one digit in the binary representation, randomly select a number from (0, 1) and compare the size of the differential privacy parameter of the random number with each digit of the binary representation;

[0067] (3) If the random number is greater than the differential privacy parameter corresponding to each binary digit, the value of the binary position is updated to its inverse, that is, if the current digit value is 1, the current digit value is updated to 0; if the current digit value is 0, the current digit value is updated to 1;

[0068] (4) If the random number is less than or equal to the differential privacy parameter corresponding to each bit of the binary, the value of the binary position remains unchanged;

[0069] (5) Repeat the above steps until the update of the 4-bit binary is completed.

[0070] (III) Aggregation, converting the disturbed binary to decimal to obtain disturbed data. It is worth noting that in the present invention, each number or a group of binary numbers corresponding to the number is in its original position, and the present invention does not disturb the order of the numbers in the collected data, but only disturbs the values ​​of each position.

[0071] This embodiment adopts an average distribution method to meet the needs of most scenarios. However, evenly distributing the privacy budget will cause a large deviation in the high-order bits of the 4-bit binary representation. The value of the 4-bit binary in the high position will definitely have a much greater impact on the overall situation than the value at the end. In order to consider data utility more, this embodiment adopts an iterative method to adaptively allocate the privacy budget of each number to minimize the total deviation of the perturbation function, such as Figure 3 ,The process of adaptively allocating the privacy budget of each number using an iterative method includes:

[0072] 101. During initialization, the privacy budget is evenly distributed to each digit of the integer part and the decimal part, and the number of iterations is set. The privacy of each digit of the 4-bit binary is iteratively calculated starting from step 102;

[0073] 102. Perturb the numbers according to the privacy budget of each number, and use the absolute value of the difference between the true value of the number and the perturbed value as the perturbation error;

[0074] 103. While keeping the overall privacy budget unchanged, increase the high-end privacy budget and reduce the low-end privacy budget;

[0075] 104. Calculate the ratio of the absolute value of the current disturbance error to the previous disturbance error and the current disturbance error as the decreasing rate;

[0076] 105. Determine whether the current iteration is successful based on the decreasing rate. If successful, output the privacy parameters of the current numbers. If unsuccessful, increase the number of iterations and return to step 102.

[0077] In this embodiment, each 4-bit binary value is disturbed, but the disturbance function used in this embodiment is biased. In order to correct the output result, the output result is adjusted by using a coefficient C. The calculation process of the coefficient C includes:

[0078] C=2n+(15-2n)p-15

[0079] Among them, n is the decimal value before the disturbance, that is, the true value collected by the smart meter; p is the privacy budget of one of the 4-bit binary bits corresponding to the current corrected decimal number, which is one quarter of the privacy budget of the decimal number.

[0080] Each perturbed decimal parameter is added with the coefficient C to obtain an unbiased perturbed data.

[0081] Table 1

[0082]

[0083] In order to prove that the present invention can meet the requirements of differential privacy, the present invention takes the parameters given in Table 1 as an example for demonstration. t is one input, t' is another input, and t* is the value after disturbance, then:

[0084]

[0085] Among them, P(t|t*) represents the probability that the input is t when the perturbed value is t*; P(t'|t*) represents the probability that the input is t' when the perturbed value is t*; P(n i |n* i ) means when the output is n* i When the input is n i The probability of n i Represents a 4-bit binary representation of the value of the i-th bit of t, i = {1, 2, 3, 4}, n* i Represents a 4-bit binary representation of the value of the i-th bit of t*; P(n' i |n* i ) means when the output is n* i When the input is n' i The probability of the perturbation function returning the same value; P represents the probability of the perturbation function returning the same value; N t Indicates the real value; N' t represents the perturbed value; ε represents the privacy budget.

[0086] As an optional embodiment, if each value of the value 256.48 is converted to binary, [0010, 0101, 0110, 0100, 1000] is obtained. If each binary is disturbed with p=0.5, the data obtained after the disturbance is [1100, 0011, 0101, 0111, 1000], which is converted to decimal as [9, 3, 5, 7, 8]. A correction coefficient is calculated for each bit, and the correction coefficients are [-4.5, -2.5, -1.5, -3.5, 0.5] respectively. Let the correction coefficient be the same as the decimal after the disturbance. The corrected decimal representation of the disturbance is obtained by adding, which is expressed as [4.5, 0.5, 3.5, 3.5, 8.5]. The disturbance values ​​are multiplied by the units of the corresponding digits, for example, the unit of the ones digit is 1, the unit of the tens digit is 10, the unit of the hundreds digit is 100, and so on. The obtained value is expressed as [450, 5, 3.5, 0.35, 0.085]. The sum of all the values ​​is the final privacy data, that is, 450+5+3.5+0.35+0.085=458.935. The local sensor uses 458.935 as the value uploaded to the server to complete privacy protection.

[0087] The present invention also proposes a local differential privacy protection device based on smart meter data, which is used to implement a local differential privacy protection method based on smart meter data. The local differential privacy protection device based on smart meter data performs privacy processing on the meter data, and uploads the processed meter data to a server. The local differential privacy protection device based on smart meter data includes a privacy budget setting module and a differential privacy calculation module, wherein:

[0088] The privacy budget setting module allocates a privacy budget for each bit of the data to be uploaded, that is, converts each digit of the decimal meter data into a 4-bit binary representation and allocates the privacy budget to each binary representation;

[0089] The differential privacy computing module perturbs each digit of the binary representation according to the allocated privacy budget and converts the perturbed value into a decimal number.

[0090] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A local differential privacy protection method based on smart meter data, characterized in that: After the user performs privacy processing on the meter data to be uploaded, the processed meter data is uploaded to the server. The process of privacy processing on the meter data includes: The data collected by the smart meter is obtained, and each digit of the decimal value of the integer part and the decimal part of the data is converted into a 4-bit binary representation; Assign a privacy budget to each digit in the integer part and the fractional part, and calculate the differential privacy parameter for each bit of the binary representation of each digit; Perturb each digit of the 4-bit binary number according to the differential privacy parameter, convert the perturbed 4-bit binary number into a decimal number, multiply the decimal number by the unit of the digit where the decimal number is located, and add the values ​​of all digits together as the perturbed data; The disturbed data is uploaded to the server as data collected by the smart meter.

2. According to claim 1, a local differential privacy protection method based on smart meter data is characterized in that: Divide the privacy budget equally between each digit in the integer and decimal parts.

3. A local differential privacy protection method based on smart meter data according to claim 1 or 2, characterized in that: The process of allocating the privacy budget of each number to each bit of the binary representation of the number consists of the following steps:

101. During initialization, the privacy budget is evenly distributed to each digit of the integer part and the decimal part, and the number of iterations is set. The privacy of each digit of the 4-bit binary is iteratively calculated starting from step 102; 102. Perturb the numbers according to the privacy budget of each number, and use the absolute value of the difference between the true value of the number and the perturbed value as the perturbation error; 103. While keeping the overall privacy budget unchanged, increase the high-end privacy budget and reduce the low-end privacy budget; 104. Keep the privacy budget allocation corresponding to the smaller value of the current disturbance error and the previous disturbance error, and calculate the ratio of the absolute value of the current disturbance error and the previous disturbance error to the current disturbance error as the decreasing rate; 105. If the decreasing rate is lower than the set threshold for at least N consecutive times, the privacy budget allocation corresponding to each currently retained number is output; otherwise, the number of iterations is increased and the process returns to step 102.

4. According to claim 1, a local differential privacy protection method based on smart meter data is characterized in that: Calculating the differential privacy parameters for each bit of the binary representation of a number involves: Among them, p i represents the differential privacy parameter of each bit of the binary representation of the i-th digit; ε i represents the privacy budget of the i-th digit.

5. A local differential privacy protection method based on smart meter data according to claim 1, 3 or 4, characterized in that: Perturbing each digit of a 4-bit binary number according to the differential privacy parameter includes the following steps: Randomly select a random number between (0, 1) for one of the binary digits and compare the size of the random number with the differential privacy parameter; If the random number is greater than the differential privacy parameter, and the current digit value is 1, the current digit value is updated to 0; if the current digit value is 0, the current digit value is updated to 1; otherwise, the first digit value remains unchanged; Repeat the above steps to complete the 4-bit binary perturbation.

6. According to claim 1, a local differential privacy protection method based on smart meter data is characterized in that: A correction coefficient is calculated for each digit of the disturbed data and multiplied by the digit to correct the disturbed data. The calculation of the correction coefficient includes: C=2n+(15-2n)p-15 Among them, C is the correction coefficient of n; n is the true value collected by the smart meter; p is the differential privacy parameter corresponding to the current number.

7. A local differential privacy protection device based on smart meter data, characterized in that: A method for local differential privacy protection based on smart meter data according to claim 1 is used to implement the method, wherein the privacy of the meter data is processed based on a local differential privacy protection device based on smart meter data, and the processed meter data is uploaded to a server. A local differential privacy protection device based on smart meter data includes a privacy budget setting module and a differential privacy calculation module, wherein: The privacy budget setting module allocates a privacy budget for each bit of the data to be uploaded, that is, converts each digit of the decimal meter data into a 4-bit binary representation and allocates the privacy budget to each binary representation; The differential privacy computing module perturbs each digit of the binary representation according to the allocated privacy budget and converts the perturbed value into a decimal number.

Citation Information

Patent Citations

  • Privacy protection method and device for image recognition, and electronic equipment

    CN111582284A

  • Data mean statistical method and device for privacy protection

    CN114969800A

  • Power utilization metering data protection method

    CN115640608A

  • Federal learning classification model training method based on adaptive model disturbance

    CN117056785A

  • Personalized random response method based on local differential privacy

    CN117294490A