Power data aggregation system and method based on w event-level local differential privacy

By adopting a power data aggregation system with w event-level local differential privacy in the smart grid, the user end perturbs the power consumption data and sends it to the data aggregation end, achieving privacy protection and accurate fitting of time stream data, and solving the problem The contradiction between privacy protection and data utility in the existing technology ensures the security of user data and the accuracy of aggregation results.

CN118096441BActive Publication Date: 2024-09-06GLOBAL ENERGY INTERCONNECTION RES INST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410519315.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-28
Publication Date
2024-09-06
Estimated Expiration
2044-04-28

AI Technical Summary

Technical Problem

While protecting the privacy of user electricity data, the existing smart grid data aggregation system is difficult to effectively process time stream data, especially the power data aggregation under the w-event-level (ε, δ)-local differential privacy model, resulting in The contradiction between privacy protection and data utility.

Method used

Using a power data aggregation system based on w event-level local differential privacy, the user uses the preset privacy budget and relaxation factor to perturb the power consumption data, and sends the perturbed data to the data aggregation end, which uses the virtual The combined curve processes the total power consumption to ensure the intensity of privacy protection and the accuracy of data aggregation at each moment.

Benefits of technology

It achieves effective fitting of users' total electricity consumption over a period of time without leaking user information, ensuring the security of real data and the accuracy of data aggregation results, reducing computing overhead, and preventing attackers. Background knowledge attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118096441B
    Figure CN118096441B
Patent Text Reader

Abstract

The present invention belongs to the field of information security technology, and specifically relates to a power data aggregation system and method based on w event-level local differential privacy, including: a user end, used to use the privacy budget and relaxation factor required for the pre-calculated power consumption data perturbation at each moment within the preset w moments to perturb the original power consumption data of each user at each moment, obtain the final perturbation data, and send the final perturbation data to the data aggregation end; the data aggregation end, used to determine the total power consumption of all users at each moment within the preset w moments based on the final perturbation data, and use the total power consumption of all users at each moment within the preset w moments to fit the total power consumption of the user to obtain a fitting curve. The present application combines the privacy parameter segmentation mechanism to realize power data aggregation based on differential privacy, effectively fits the total power consumption of the user within a period of time without leaking user information, and ensures the security of real data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information security technology, and in particular relates to a power data aggregation system and method based on w event-level local differential privacy. Background Art

[0002] As energy issues become increasingly prominent, smart grids have emerged for sustainable development. As a cyber-physical fusion system, smart grids combine traditional power grid systems with advanced information and communication technologies, such as advanced measurement systems, to provide higher reliability, flexibility, sustainability and security, and are considered one of the important trends in the development of power grids in the future. As the terminal of smart grids, smart meters can monitor users' electricity consumption in real time and obtain users' electricity consumption data. Service providers use big data analysis technology to accurately analyze users' electricity consumption behaviors based on the massive amount of user electricity consumption data collected. However, the collection and analysis of smart grid data poses a serious threat to user privacy. User electricity consumption data may be used by attackers to analyze private information such as electricity consumption patterns, number of family members, and device usage. The leakage of this information may cause economic losses or even life-threatening to users. Therefore, how to perform accurate and efficient electricity consumption data analysis while protecting the privacy of user electricity consumption data is an important issue.

[0003] In order to protect the privacy of users' electricity consumption data, researchers have proposed different solutions, mainly focusing on the use of encryption, anonymity and random perturbation technology. Encryption technology can restore accurate statistical characteristics, but the computational overhead is high. Anonymity technology solves the problem of high computational overhead, but under the condition that the attacker has certain background knowledge, anonymity technology will be attacked and leak private information. To solve this problem, random perturbation can resist the attacker's background knowledge attack. The most widely used random perturbation method is differential privacy, which strictly defines the level of privacy protection, and even if the attacker has a lot of background knowledge, he cannot obtain information about the real data.

[0004] Differential privacy includes centralized differential privacy and local differential privacy. In centralized differential privacy, users send data to a trusted data aggregator, which perturbs the statistical data to meet the requirements of differential privacy and publishes the perturbed data. However, in real applications, there is no completely trusted data aggregator. If the data aggregator is attacked, the user's real data will be leaked. Therefore, Kasiviswanathan et al. proposed the concept of local differential privacy (LDP). In the LDP model, users perturb the data locally to meet the LDP requirements and send the perturbed data to the data aggregator. Even if the data aggregator is untrustworthy, the user's data information will not be leaked. Wang et al. proposed a mechanism for perturbing data to different intervals according to probability under the LDP model, which can solve the user's one-dimensional and multi-dimensional data aggregation. However, it cannot process time stream data.

[0005] For data published in data streams, Wang Teng et al. [Wang Teng, Yang Xinyu, Ren Xuebin, et al. Adaptive privacy protection mechanism for data published in data streams [J]. Chinese Science: Information Science, 2021, 51(7): 1199-1216.] proposed the concept of w-event-level ε-local differential privacy, which can aggregate data w moments before any moment to achieve perturbations that satisfy ε-local differential privacy for w-dimensional data. However, ε-LDP provides strict privacy protection for data, but loses some data utility. Introducing δ greater than 0 can cause privacy leakage with a probability of δ, relax the privacy protection of the algorithm, and protect user privacy from being leaked with a greater probability while improving data availability. The formal definition of the relaxed local differential privacy is as follows: Given a random perturbation algorithm A and its domain Dom(A) and range Range(A), then for any two different tuples t and t'(t,t'∈Dom(A)), and any subset S of Range(A) A The perturbation probability satisfies Pr[A(t)∈S A ]≤e ε Pr[A(t')∈S A ]+δ, then A satisfies (ε, δ)-local differential privacy, also known as relaxed local differential privacy. Among them, ε>0 is the privacy budget, the size of this value affects the degree of privacy protection. The smaller ε is, the higher the privacy protection strength of algorithm A is. On the contrary, the larger ε is, the lower the privacy protection strength of algorithm A is. 0≤δ<1 is the relaxation factor, which means Pr[A(t)∈S A ]More than e ε Pr[A(t')∈S A], that is, algorithm A has no privacy leakage with probability 1-δ, and the value of δ is usually less than the inverse of the number of data to be counted. Bassily et al. proved that the mechanism has a smaller error bound when 0<δ<1, so the (ε, δ)-LDP model is more applicable in reality.

[0006] Based on the (ε, δ)-LDP model, Dwork et al. proposed a Gaussian mechanism to directly inject noise with a mean of 0 into the data, and report the data with the added random numbers satisfying the Gaussian distribution to the collector, who then calculates an unbiased estimate of the mean. Subsequently, the optimal Gaussian mechanism proposed by Balle et al. reduced the estimation error of the Gaussian mechanism and provided a method for calculating the minimum variance of the Gaussian distribution random numbers at this time. In addition, Wang et al. designed a new mean estimation mechanism for numerical data. This scheme perturbs the data to one of two certain values ​​according to probability, and the collector directly calculates the mean of the perturbation value to obtain an unbiased estimate. However, the above mechanisms are all operated on numerical data and are difficult to handle stream data problems. Since user electricity consumption data is time stream data, in order to statistically analyze the time series characteristics of electricity consumption data, compared with the (ε, δ)-local differential privacy model, the w-event-level (ε, δ)-local differential privacy model can more accurately reflect the similarity of electricity consumption data at adjacent moments, and effectively use this similarity to improve the accuracy of aggregate calculations. However, there is no solution that can achieve power data aggregation under the w-event-level (ε, δ)-local differential privacy model. Summary of the invention

[0007] In order to overcome the problems existing in the above-mentioned related technologies, the present application provides a power data aggregation system and method based on w event-level local differential privacy.

[0008] According to a first aspect of an embodiment of the present application, there is provided a power data aggregation system based on w event-level local differential privacy, including: a user end and a data aggregation end;

[0009] The user end is used to perturb the original power consumption data of each user at each time by using the privacy budget and relaxation factor required for perturbation of the power consumption data at each time within the preset w time moments calculated in advance, to obtain final perturbation data, and send the final perturbation data to the data aggregation end;

[0010] The data aggregation end is used to determine the total power consumption of all users at each of the preset w moments based on the final disturbance data, and to obtain a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments;

[0011] Among them, the privacy budget and relaxation factor required for the disturbance of electricity consumption data at each moment within the preset w moments are determined using the preset overall privacy budget and overall relaxation factor.

[0012] Preferably, the user terminal includes:

[0013] A determination unit, used to determine the original power consumption data to be formatted by using the original power consumption data of each user at each time;

[0014] The formatting unit is used to format the original power consumption data to be formatted to obtain the formatted power consumption data;

[0015] A perturbation unit, configured to perturb the formatted power consumption data using the privacy budget and relaxation factor required for perturbation of the power consumption data at each of the preset w moments, to obtain the perturbed power consumption data;

[0016] The recovery unit is used to recover the disturbed power consumption data to the original interval to obtain recovered disturbance data, where the recovered disturbance data is the final disturbance data.

[0017] Preferably, the determining unit is specifically used for:

[0018] From the original power consumption data of each user at each time, the power consumption data at the first w time points within the preset cut-off time for aggregation of power consumption data are selected as the power consumption data to be formatted.

[0019] Preferably, the disturbance unit comprises:

[0020] A first calculation module is used to calculate a first disturbance probability and a second disturbance probability by using a privacy budget and a relaxation factor required for disturbing the power consumption data at each of the preset w moments;

[0021] A second calculation module, configured to calculate a first segmentation parameter and a second segmentation parameter using the first disturbance probability and the second disturbance probability;

[0022] A third calculation module, used for calculating a first endpoint of a segmented interval and a second endpoint of a segmented interval by using the first segmented parameter and the second segmented parameter;

[0023] The first acquisition module is used to uniformly and randomly perturb the formatted power consumption data with the second perturbation probability as an interval The first perturbation probability is uniformly and randomly perturbed to the interval At one point inside, the power consumption data after disturbance is obtained;

[0024] in, For input The first endpoint of the segmented interval, For input The second endpoint of the segmented interval, is the formatted electricity consumption data of the i-th user at the t-th time, and C is the interval endpoint.

[0025] Preferably, the second calculation module is specifically used for:

[0026] Calculating a first segmentation parameter using the first disturbance probability and the second disturbance probability;

[0027] Using the first segmentation parameter, the first disturbance probability and the second disturbance probability, an interval endpoint is calculated;

[0028] A second segmentation parameter is calculated using the interval endpoints and the first segmentation parameter.

[0029] Preferably, the data aggregation terminal includes:

[0030] The second acquisition module is used to add the final disturbance data of each user at the w moments before the preset deadline for aggregating the power consumption data, so as to obtain the total power consumption of all users at each moment within the preset w moments;

[0031] The fitting module is used to fit the total power consumption of all users at each moment within the preset w moments based on a preset fitting initial function using the least squares method to obtain a fitting curve of the total power consumption of the users.

[0032] Preferably, the user terminal further includes:

[0033] The calculation unit is used to calculate the privacy budget required for the disturbance of the electricity consumption data at each moment within the preset w moments and the relaxation factor required for the disturbance of the electricity consumption data at each moment within the preset w moments according to zero-centralized differential privacy and using the preset overall privacy budget and overall relaxation factor.

[0034] Preferably, the computing unit is specifically used for:

[0035] Let the preset overall privacy budget be ε, the preset overall relaxation factor be δ, and the privacy budget required for the perturbation of the power consumption data at each moment within the preset w moments be , the relaxation factor required for the power consumption data disturbance at each of the preset w moments is ; Assume that the electricity consumption data aggregation mechanism that uses w-event-level (ε,δ)-local differential privacy for data perturbation within the preset w moments is A 0 , w moments in each moment use ( , )-local differential privacy for data perturbation of electricity consumption data are respectively {A 1 ,A 2 ,…,A t ,…,A w};

[0036] When mechanism A 0 When zero-centralized differential privacy is satisfied, A 0 The parameters are ; When the mechanism {A 1 ,A 2 ,…,A t ,…,A w} all satisfy zero centralized differential privacy, A t The parameters are ;

[0037] According to the combinatorial theorem of zero-concentration differential privacy, we get mechanism A 0 For the mechanism 1 ,A 2 ,…,A t ,…,A w} serial combination, then A 0 The parameters are ,Right now ,get and .

[0038] Preferably, the calculation formula of the formatted power consumption data includes:

[0039]

[0040] In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, w is the preset w moments; [a,b] is the interval to which the original power consumption data of each user at each moment belongs; is the original electricity consumption data of the i-th user at the t-th time, is the formatted electricity consumption data of the i-th user at the t-th moment.

[0041] Preferably, the calculation formula for the first disturbance probability includes:

[0042]

[0043] The calculation formula of the second disturbance probability includes:

[0044]

[0045] In the above formula, is the privacy budget required for perturbation of electricity consumption data, is the relaxation factor required for the power consumption data disturbance, q is the first disturbance probability, and p is the second disturbance probability.

[0046] Preferably, the calculation formula of the first segmentation parameter includes:

[0047]

[0048] The calculation formula for the interval endpoints includes:

[0049]

[0050] The calculation formula of the second segmentation parameter includes:

[0051]

[0052] The calculation formula of the first endpoint of the segmented interval includes:

[0053]

[0054] The calculation formula of the second endpoint of the segmented interval includes:

[0055]

[0056] In the above formula, q is the first perturbation probability, p is the second perturbation probability, u is the first segmentation parameter, C is the interval endpoint, and v is the second segmentation parameter. l(x) is the first endpoint of the segmented interval with input x, and r(x) is the second endpoint of the segmented interval with input x.

[0057] Preferably, the calculation formula of the restored disturbance data includes:

[0058]

[0059] In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the cutoff time for power consumption data aggregation, w is the preset w time points; [a,b] is the interval to which the original power consumption data of each user at each time point belongs; is the restored disturbance data of the i-th user at the t-th time; is the power consumption data of the i-th user after disturbance at the t-th moment.

[0060] Preferably, the calculation formula for the total power consumption of all users at each time within the preset w time moments includes:

[0061]

[0062] In the above formula, is the total power consumption of all users at the tth moment within the preset w moments; i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, and w is the preset w moments; is the final perturbation data of the i-th user at the t-th time.

[0063] According to a second aspect of an embodiment of the present application, a method for aggregating power data based on w event-level local differential privacy is provided, comprising:

[0064] The user end uses the privacy budget and relaxation factor required for perturbation of the power consumption data at each moment within the preset w moments calculated in advance to perturb the original power consumption data of each user at each moment, obtains the final perturbation data, and sends the final perturbation data to the data aggregation end;

[0065] The data aggregation end determines the total power consumption of all users at each of the preset w moments based on the final disturbance data, and obtains a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments;

[0066] Among them, the privacy budget and relaxation factor required for the disturbance of electricity consumption data at each moment within the preset w moments are determined using the preset overall privacy budget and overall relaxation factor.

[0067] According to a third aspect of an embodiment of the present application, there is provided a computer device, including: one or more processors;

[0068] The processor is used to store one or more programs;

[0069] When the one or more programs are executed by the one or more processors, the power data aggregation method based on w event-level local differential privacy is implemented.

[0070] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed, the power data aggregation method based on w event-level local differential privacy is implemented.

[0071] The technical solution provided by the present invention has the following beneficial effects:

[0072] The present invention provides a power data aggregation system and method based on w event-level local differential privacy. The user end uses the preset overall privacy budget and overall relaxation factor to determine the privacy budget and relaxation factor required for perturbing the power consumption data at each moment within the preset w moments, so as to divide the privacy budget, ensure that the privacy protection strength of the data at each moment is the same, and perturb the power consumption in each time period with the evenly divided privacy budget, so as to ensure the accuracy of the power data aggregation result. The user end uses the pre-calculated privacy budget and relaxation factor required for perturbing the power consumption data at each moment within the preset w moments, and perturbs the original power consumption data of each user at each moment. Perturbation is performed to obtain the final perturbation data, and the final perturbation data is sent to the data aggregation end, so as to use the differential privacy method to perturb the original data, prevent the attacker's background knowledge attack and reduce the computing overhead; the data aggregation end determines the total power consumption of all users at each moment within the preset w moments based on the final perturbation data, and uses the total power consumption of all users at each moment within the preset w moments to fit the total power consumption of users. The power data aggregation based on differential privacy can be realized in combination with the privacy parameter segmentation mechanism, which can effectively fit the total power consumption of users within a period of time without leaking user information, thereby ensuring the security of real data. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0074] Figure 1 is a structural block diagram of a power data aggregation system based on w event-level local differential privacy provided by an embodiment of the present invention;

[0075] Figure 2 is a work flow chart of a power data aggregation system based on w event-level local differential privacy provided by an embodiment of the present invention;

[0076] Figure 3 It is a schematic diagram of a specific process at the user end in a power data aggregation system based on differential privacy provided by an embodiment of the present invention;

[0077] Figure 4 It is a schematic diagram of a specific process of a data aggregation end in a power data aggregation system based on differential privacy provided by an embodiment of the present invention;

[0078] Figure 5It is a flowchart of a method for aggregating power data based on w event-level local differential privacy provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the following embodiments are part of the embodiments of the present invention, rather than 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.

[0080] Embodiment 1

[0081] The present invention provides a power data aggregation system based on w event-level local differential privacy, such as Figure 1 As shown, it includes: a user end and a data aggregation end;

[0082] The user end is used to perturb the original power consumption data of each user at each time by using the privacy budget and relaxation factor required for perturbation of the power consumption data at each time within the preset w time moments calculated in advance, obtain the final perturbation data, and send the final perturbation data to the data aggregation end;

[0083] The data aggregation end is used to determine the total power consumption of all users at each of the preset w moments based on the final disturbance data, and to obtain a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments;

[0084] Among them, the privacy budget and relaxation factor required for the disturbance of electricity consumption data at each moment within the preset w moments are determined using the preset overall privacy budget and overall relaxation factor.

[0085] Furthermore, the user end also includes:

[0086] The calculation unit is used to calculate the privacy budget required for the disturbance of the electricity consumption data at each moment within the preset w moments and the relaxation factor required for the disturbance of the electricity consumption data at each moment within the preset w moments according to zero-centralized differential privacy and using the preset overall privacy budget and overall relaxation factor.

[0087] Furthermore, the computing unit is specifically used for:

[0088] Let the preset overall privacy budget be ε, the preset overall relaxation factor be δ, and the privacy budget required for the perturbation of the power consumption data at each moment within the preset w moments be , the relaxation factor required for the power consumption data disturbance at each of the preset w moments is ; Assume that the electricity consumption data aggregation mechanism that uses w-event-level (ε,δ)-local differential privacy for data perturbation within the preset w moments is A 0 , w moments in each moment use ( , )-local differential privacy for data perturbation of electricity consumption data are respectively {A 1 ,A 2 ,…,A t ,…,A w};

[0089] When mechanism A 0 When zero-centralized differential privacy is satisfied, A 0 The parameters are ; When the mechanism {A 1 ,A 2 ,…,A t ,…,A w} all satisfy zero centralized differential privacy, A t The parameters are ;

[0090] According to the combinatorial theorem of zero-concentration differential privacy, we get mechanism A 0 For the mechanism 1 ,A 2 ,…,A t ,…,A w} serial combination, then A 0 The parameters are ,Right now ,get and .

[0091] For example, step a: when the number of aggregation moments is w, the power data aggregation mechanism using w-event-level (ε, δ)-local differential privacy for data perturbation is A 0 , the required overall privacy parameters are set as follows: the overall privacy budget is ε, the overall relaxation factor is δ; assuming that each moment uses ( , )-local differential privacy perturbation mechanisms are {A 1 ,A 2 ,…,A t ,…,A w}, that is, the privacy budget required for data perturbation at each moment is and the relaxation factor is , according to the relationship between local differential privacy and zero-centralized differential privacy, given a (ε,δ)-local differential privacy mechanism A 0 , then mechanism A 0 The parameters are -Zero centralized differential privacy, so the power data aggregation mechanism A 0 yes -Zero centralized differential privacy, where the perturbation mechanism A at each moment t The parameters are -Zero centralized differential privacy;

[0092] Step b: According to the combinatorial theorem of zero-concentration differential privacy, if the perturbation mechanism A at each moment t The parameters are -Zero centralized differential privacy, and mechanism A 0 For the mechanism 1 ,A 2 ,…,A t ,…,A w}, then mechanism A 0 The parameters are ( + +……+ )-Zero centralized differential privacy, i.e. mechanism A 0 The parameters are -Zero centralized differential privacy;

[0093] Step c: From the above steps a and b, we can see that mechanism A 0 From two perspectives, -Zero centralized differential privacy and -Zero centralized differential privacy, the two parameter values ​​are the same, so , the calculation formulas of the privacy parameters disturbed at each moment are and .

[0094] It should be noted that the present invention does not limit the "preset overall privacy budget is ε", "preset overall relaxation factor is δ" and "preset w moments", which can be set by technical personnel in this field according to engineering needs or experimental data.

[0095] Furthermore, the user end includes:

[0096] A determination unit, used to determine the original power consumption data to be formatted by using the original power consumption data of each user at each time;

[0097] The formatting unit is used to format the original power consumption data to be formatted to obtain the formatted power consumption data;

[0098] A perturbation unit, used to perturb the formatted electricity consumption data using the privacy budget and relaxation factor required for perturbing the electricity consumption data at each moment within the preset w moments, to obtain the perturbed electricity consumption data;

[0099] The recovery unit is used to recover the disturbed power consumption data to the original interval to obtain the recovered disturbance data, and the recovered disturbance data is the final disturbance data.

[0100] Specifically, the calculation formula for the formatted power consumption data includes:

[0101]

[0102] In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, w is the preset w moments; [a,b] is the interval to which the original power consumption data of each user at each moment belongs; is the original electricity consumption data of the i-th user at the t-th time, is the formatted electricity consumption data of the i-th user at the t-th moment.

[0103] Further, the unit is determined, specifically for:

[0104] From the original power consumption data of each user at each time, the power consumption data of the first w time moments within the preset cut-off time for aggregation of power consumption data are selected as the power consumption data to be formatted.

[0105] Furthermore, the disturbance unit comprises:

[0106] A first calculation module is used to calculate a first disturbance probability and a second disturbance probability by using a privacy budget and a relaxation factor required for disturbing the power consumption data at each time within the preset w time moments;

[0107] Specifically, the calculation formula for the first disturbance probability includes:

[0108]

[0109] The calculation formula of the second disturbance probability includes:

[0110]

[0111] In the above formula, is the privacy budget required for perturbation of electricity consumption data, is the relaxation factor required for the power consumption data disturbance, q is the first disturbance probability, and p is the second disturbance probability;

[0112] A second calculation module is used to calculate the first segmentation parameter and the second segmentation parameter using the first disturbance probability and the second disturbance probability;

[0113] A third calculation module, used for calculating a first endpoint of the segmentation interval and a second endpoint of the segmentation interval by using the first segmentation parameter and the second segmentation parameter;

[0114] The first acquisition module is used to uniformly and randomly perturb the formatted power consumption data with a second perturbation probability as an interval The first perturbation probability is uniformly and randomly perturbed to the interval At one point inside, the power consumption data after disturbance is obtained;

[0115] in, For input The first endpoint of the segmented interval, For input The second endpoint of the segmented interval, is the formatted electricity consumption data of the i-th user at the t-th time, and C is the interval endpoint.

[0116] Furthermore, the second computing module is specifically used for:

[0117] Using the first disturbance probability and the second disturbance probability, a first segmentation parameter is calculated;

[0118] Using the first segmentation parameter, the first disturbance probability and the second disturbance probability, the interval endpoints are calculated;

[0119] The second segmentation parameter is calculated using the interval endpoints and the first segmentation parameter.

[0120] Specifically, the calculation formula of the first segment parameter includes:

[0121]

[0122] The calculation formula for the interval endpoints includes:

[0123]

[0124] The calculation formula of the second segment parameter includes:

[0125]

[0126] The calculation formula for the first endpoint of the segmented interval includes:

[0127]

[0128] The calculation formula for the second endpoint of the segmented interval includes:

[0129]

[0130] In the above formula, q is the first perturbation probability, p is the second perturbation probability, u is the first segmentation parameter, C is the interval endpoint, and v is the second segmentation parameter. l(x) is the first endpoint of the segmented interval with input x, and r(x) is the second endpoint of the segmented interval with input x.

[0131] Furthermore, the data aggregation end includes:

[0132] The second acquisition module is used to add up the final disturbance data of each user at the w moments before the preset deadline for aggregating the power consumption data, and obtain the total power consumption of all users at each moment within the preset w moments;

[0133] The fitting module is used to fit the total power consumption of all users at each moment within the preset w moments based on a preset fitting initial function using the least squares method to obtain a fitting curve of the total power consumption of users.

[0134] Specifically, the calculation formula for the total power consumption of all users at each time within the preset w time periods includes:

[0135]

[0136] In the above formula, is the total power consumption of all users at the tth moment within the preset w moments; i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, and w is the preset w moments; is the final perturbation data of the i-th user at the t-th time.

[0137] The present invention solves the problem of high computational overhead of existing privacy-preserving power data aggregation schemes. In addition, it can prevent attackers from background knowledge attacks, prevent attackers from obtaining users' real data, and prevent attackers from obtaining users' original data from trusted third-party aggregation terminals, so that users can avoid the risk of privacy leakage. For example, low power consumption may indicate that the user is not at home, while high power consumption may indicate that the user uses high-power appliances that he does not want to be known by others. The present invention uses w-event-level (ε, δ)-local differential privacy to protect the privacy of time stream data using the privacy budget partitioning method, uses the properties of zero-centralized differential privacy to calculate the privacy budget at each moment to perform data perturbation, and finally sends the perturbed data to the data aggregation terminal, thereby ensuring the security of real data. Even with sufficient background knowledge, attackers cannot obtain any information about each user's power data.

[0138] To further illustrate the above-mentioned power data aggregation system based on w event-level local differential privacy, the present invention provides a specific example, such as Figure 2As shown in Figure 1, the workflow of the power data aggregation system based on event-level local differential privacy includes the following steps:

[0139] S1. The user sets the overall privacy budget ε and the overall relaxation factor δ, and calculates the privacy budget required for data perturbation at each of the preset w moments. and relaxation factor , and at the same time, the overall privacy budget ε, the overall relaxation factor δ, the preset w moments, and the data aggregation deadline T are announced to the user;

[0140] S2, the user end locally processes the original time stream data vector for each user , Preprocess the data set. Format the data w moments before time T to facilitate perturbation. Each data in the original vector In the interval [a,b], each selected data is perturbed to the interval [-1,1], and the formatted data is set to ;

[0141] S3, the user side processes the formatted data Perform perturbation and convert the perturbed data Restore to the original data interval [a,b], and restore the restored data Sent to the data aggregation end.

[0142] S4. The data aggregation end performs statistical analysis based on the disturbance data sent by the user, estimates the total power consumption of all users at each moment in the original w moments, and then uses the least squares method to fit the total power consumption of all users at each moment in the original w moments.

[0143] Further, step S1 includes:

[0144] S11. When the number of aggregation moments is w, the power data aggregation mechanism using w-event-level (ε,δ)-local differential privacy for data perturbation is A 0 , the required overall privacy parameters are set as follows: the overall privacy budget is ε, the overall relaxation factor is δ; assuming that each moment uses ( , )-local differential privacy perturbation mechanisms are {A 1 ,A 2 ,…,A t ,…,A w}, that is, the privacy budget required for data perturbation at each moment is and the relaxation factor is , according to the relationship between local differential privacy and zero-centralized differential privacy, given a (ε,δ)-local differential privacy mechanism A 0 , then mechanism A0 The parameters are -Zero centralized differential privacy, so the power data aggregation mechanism A 0 yes -Zero centralized differential privacy, where the perturbation mechanism A at each moment t The parameters are -Zero centralized differential privacy;

[0145] S12. According to the combinatorial theorem of zero-concentration differential privacy, if the perturbation mechanism A at each moment t The parameters are -Zero centralized differential privacy, and mechanism A 0 For the mechanism 1 ,A 2 ,…,A t ,…,A w}, then mechanism A 0 The parameters are ( + +……+ )-Zero centralized differential privacy, i.e. mechanism A 0 The parameters are -Zero centralized differential privacy;

[0146] S13. From the above steps S11 and S12, it can be seen that mechanism A 0 From two perspectives, -Zero centralized differential privacy and -Zero centralized differential privacy, the two parameter values ​​are the same, so , the calculation formulas of the privacy parameters disturbed at each moment are and .

[0147] Further, step S2 includes:

[0148] S21. For the original data , Preprocessing, first select the data w moments before time T , as the data to be processed;

[0149] S22, formatting of the selected data, for the original data in the interval [a, b] , formatted as , formatted data In the interval [-1,1].

[0150] Further, step S3 includes:

[0151] S31. Use a privacy budget of , the relaxation factor is δ, and the first perturbation probability is , the second perturbation probability , the first segment parameter , the interval endpoints , the second segmentation parameter v=uC, the input data is the endpoint of the segmentation interval of x l (x)=ux+v, the input data is the endpoint of the segment interval of x r(x)=ux-v; format data The interval is disturbed uniformly and randomly with probability p The interval is uniformly and randomly perturbed with probability q. The perturbed data is recorded as ;

[0152] S32, restore the disturbed data to the original interval, for the disturbed data , calculate the restored perturbation data .

[0153] Further, step S4 includes:

[0154] S41, aggregate the data of w moments before time T, there are n users participating in power aggregation, and calculate the sum of the disturbance data of the w moments ;

[0155] S42. Fitting of total power consumption at w moments. Since the trend of total power consumption over time is nonlinear, this project selects polynomial function for fitting. After experimental simulation, in order to avoid overfitting, the following initial fitting function is selected: , where t is the time, y is the total power consumption corresponding to time t, and the least squares method is used to Perform the fitting.

[0156] To further illustrate the above-mentioned power data aggregation method based on w event-level local differential privacy, the present invention also provides a specific example, such as Figure 3 As shown in the figure, the specific process steps of the user side in the power data aggregation method based on differential privacy are as follows:

[0157] Step 1: Format the time stream data w moments before the original time T. The original time stream data is , the original data at time t is , set t=0.

[0158] Step 2: For the original time stream data, determine whether it is the selected data. If it is the selected data, that is, t∈[T-W+1,T], execute step 3; if it is not the selected data, execute step 4.

[0159] Step 3: When the original data x t is the selected data, perform formatting on it, and the calculation result is , and execute Step 6.

[0160] Step 4: When the original data x t is not the selected data, determine whether t < T - w + 1 holds. If it holds, execute Step 5; if it does not hold, execute Step 9.

[0161] Step 5: Calculate t = t + 1, and execute Step 2.

[0162] Step 6: Set the data perturbation - related parameters as follows: the first perturbation probability , the second perturbation probability , the first segmentation parameter , the interval endpoint , the second segmentation parameter v = u - C, and the endpoints of the segmentation interval of the input data x are l (x)=ux + v, and the endpoints of the segmentation interval of the input data x are r(x)=ux - v.

[0163] Step 7: Format the data and perturb it uniformly and randomly to a point within the interval with probability p, and perturb it uniformly and randomly to a point within the interval with probability q. The perturbed data is denoted as .

[0164] Step 8: Restore the perturbed data to the original interval. For the perturbed data , calculate the restored perturbed data , and execute Step 5.

[0165] Step 9: The user sends to the data aggregation end.

[0166] As Figure 4 shown, the specific process steps of the data aggregation end in the power data aggregation method based on differential privacy are as follows:

[0167] Step 1: Obtain the perturbed data of all n users from the user side .

[0168] Step 2: Aggregate the total power consumption of the previous w moments before the aggregation moment T, and calculate .

[0169] Step 3: Use the least - squares method to fit the of w moments to obtain the fitting curve P(t) of the total power consumption of users with respect to time.

[0170] Step 4: The data aggregation end obtains the fitting result of the user power data aggregation w moments before time T.

[0171] According to the derivation, the average privacy partition of the power data aggregation method based on differential privacy can be obtained. The perturbed data is an unbiased estimate of the original data. In addition, the interval partition of random perturbations under w-event level (ε,δ)-local differential privacy is also given. We evaluate the utility mechanism by sum variance (SSE) to measure the scientific credibility of the mechanism during use.

[0172] The following are the experimental results of the present invention. The data set used in the experiment is CER Electricity, which is the electricity consumption detection data of residents in a certain place by the Irish smart meter released by TheResearch Perspective Ltd on March 12, 2012. The original data contains 6 compressed files, each of which contains the electricity consumption of more than 1,000 users every half hour, and the electricity consumption of each user for 24 days (from the 195th to the 218th day) is counted. However, the statistical information of some users is less than 24 days. This paper clears the missing data and only counts the total electricity consumption of each user at each moment within 24 days. The processed data dimension is 48, and the number of valid users is 6397. In the experiment, 8 privacy budgets ε were divided, namely 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 4.0, and 5.0, and 8 relaxation factors δ were respectively 10 -9 , 10 -8 , 10 -7 , 10 -6 , 10 -5 , 10 -4 , 10 -3 , 10 -2 , we set the number of aggregation moments w to 6, 8, 12, 16, 24, and 48. In Table 1, we set δ=10 -6 , w=24; Table 2 uses ε=1.0, w=24; Table 3 uses ε=1.0, δ=10 -6 In the experiment, each user perturbs his own data locally and sends the result to the server. The server estimates the sum of the user's electricity consumption and fits it. The SSE fitted using the real data and the SSE fitted using the method in this paper are calculated respectively. The closer the two are, the higher the estimation accuracy.

[0173] Table 1 The influence of parameter ε on the sum variance

[0174]

[0175] Table 2 The influence of parameter δ on the sum variance

[0176]

[0177] Table 3 The influence of parameter w on the sum variance

[0178]

[0179] From Table 1, we can see that the accuracy of the proposed method increases with the increase of the privacy budget ε, and is very close to the true fitting result when ε=5.0. From Table 2, we set δ to a number greater than 0 and close to 0, and we can see that the estimation accuracy of the proposed method increases with the increase of the relaxation factor δ, but its improvement effect is not as good as the change of ε, even when δ=10 -2 When , the SSE of the proposed method is still much larger than the true fitting result, indicating that the change of the privacy budget ε has a greater impact on the performance of the entire scheme. As can be seen from Table 3, the sum and variance of the true fitting and the proposed method increase with the increase of w, indicating that the more moments to be aggregated, the more difficult it is for the fitting to be close to the true value, that is, the greater the error generated, and the larger w is, the greater the gap between the SSE of the proposed method and the true fitting result, so when w is smaller, the accuracy of the proposed method is higher.

[0180] The power data aggregation method based on w event-level local differential privacy provided by the present invention includes defining a w-event-level (ε, δ)-local differential privacy model for a stream data type, dividing the disturbances of several moments before a certain moment by privacy parameters, so that all data have the same privacy protection strength. The problem solves the following scenario: there is a data aggregation terminal and multiple users, each user reports a time stream data with multiple moment data, and then the segmentation mechanism of the divided privacy parameters is used on the user side to perturb the data at each moment, and the perturbed data is sent to the data aggregation terminal. The data aggregation terminal collects the user's perturbed data, estimates the total power consumption of all users at each moment, and then obtains the fitted function of the user's total power consumption with respect to the moment based on the estimated sum value. The data protection process of the present invention is all carried out on the user side, which can resist the attacker's background knowledge attack, and only requires low computing and communication overhead; the present invention performs privacy protection for stream data, expands the differential privacy mechanism, improves the accuracy of the estimation result while ensuring the strength of data privacy protection, and can restore the changing trend of total power consumption with respect to the moment.

[0181] Embodiment 2

[0182] A power data aggregation method based on event-level local differential privacy, such as Figure 5 As shown, including:

[0183] Step 101: The user end uses the pre-calculated privacy budget and relaxation factor required for perturbation of the power consumption data at each time within the preset w time moments to perturb the original power consumption data of each user at each time moment, obtains the final perturbation data, and sends the final perturbation data to the data aggregation end;

[0184] Step 102: The data aggregation end determines the total power consumption of all users at each of the preset w moments based on the final disturbance data, and obtains a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments;

[0185] Among them, the privacy budget and relaxation factor required for the disturbance of electricity consumption data at each moment within the preset w moments are determined using the preset overall privacy budget and overall relaxation factor.

[0186] Furthermore, step 101 includes:

[0187] Step 1011: using the original power consumption data of each user at each time, determining the original power consumption data to be formatted;

[0188] Step 1012: formatting the original power consumption data to be formatted to obtain the formatted power consumption data;

[0189] Step 1013: using the privacy budget and relaxation factor required for perturbing the power consumption data at each of the preset w moments, perturbing the formatted power consumption data to obtain perturbed power consumption data;

[0190] Step 1014: restore the disturbed power consumption data to the original interval to obtain restored disturbance data, which is the final disturbance data.

[0191] Further, step 10111 includes:

[0192] From the original power consumption data of each user at each time, the power consumption data of the first w time moments within the preset cut-off time for aggregation of power consumption data are selected as the power consumption data to be formatted.

[0193] Further, step 1013 includes:

[0194] Step 1013a: using the privacy budget and relaxation factor required for perturbation of the power consumption data at each of the preset w moments, calculate a first perturbation probability and a second perturbation probability;

[0195] Step 1013b: using the first disturbance probability and the second disturbance probability, calculate and obtain the first segmentation parameter and the second segmentation parameter;

[0196] Step 1013c: using the first segmentation parameter and the second segmentation parameter, calculate and obtain the first endpoint and the second endpoint of the segmentation interval;

[0197] Step 1013d: The formatted power consumption data is uniformly and randomly perturbed into intervals with a second perturbation probability The first perturbation probability is uniformly and randomly perturbed to the interval At one point inside, the power consumption data after disturbance is obtained;

[0198] in, For input The first endpoint of the segmented interval, For input The second endpoint of the segmented interval, is the formatted electricity consumption data of the i-th user at the t-th time, and C is the interval endpoint.

[0199] Further, step 1013b includes:

[0200] Using the first disturbance probability and the second disturbance probability, a first segmentation parameter is calculated;

[0201] Using the first segmentation parameter, the first disturbance probability and the second disturbance probability, the interval endpoints are calculated;

[0202] The second segmentation parameter is calculated using the interval endpoints and the first segmentation parameter.

[0203] Further, step 102 includes:

[0204] Step 1021: summing up the final disturbance data of each user at w moments before the preset cutoff time for aggregating the power consumption data, and obtaining the total power consumption of all users at each moment within the preset w moments;

[0205] Step 1022: Based on the preset initial fitting function, the total power consumption of all users at each of the preset w moments is fitted using the least squares method to obtain a fitting curve of the total power consumption of the users.

[0206] Furthermore, the method further comprises:

[0207] Step 100: The user end calculates the privacy budget required for perturbing the electricity consumption data at each of the preset w moments and the relaxation factor required for perturbing the electricity consumption data at each of the preset w moments based on zero-central differential privacy and using the preset overall privacy budget and overall relaxation factor.

[0208] Furthermore, step 100 includes:

[0209] Step 1001: Let the preset overall privacy budget be ε, the preset overall relaxation factor be δ, and the privacy budget required for the power consumption data disturbance at each of the preset w moments be , the relaxation factor required for the power consumption data disturbance at each of the preset w moments is ; Assume that the electricity consumption data aggregation mechanism that uses w-event-level (ε,δ)-local differential privacy for data perturbation within the preset w moments is A 0 , w moments in each moment use ( , )-local differential privacy for data perturbation of electricity consumption data are respectively {A 1 ,A 2 ,…,A t ,…,A w};

[0210] Step 1002: When mechanism A 0 When zero-centralized differential privacy is satisfied, A 0 The parameters are ; When the mechanism {A 1 ,A 2 ,…,A t ,…,A w} all satisfy zero centralized differential privacy, A t The parameters are ;

[0211] Step 1003: According to the combination theorem of zero-concentration differential privacy, we get mechanism A 0 For the mechanism 1 ,A 2 ,…,A t ,…,A w} serial combination, then A 0 The parameters are ,Right now ,get and .

[0212] Furthermore, the calculation formula of the formatted power consumption data includes:

[0213]

[0214] In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, w is the preset w moments; [a,b] is the interval to which the original power consumption data of each user at each moment belongs; is the original electricity consumption data of the i-th user at the t-th time, is the formatted electricity consumption data of the i-th user at the t-th moment.

[0215] Furthermore, the calculation formula for the first disturbance probability includes:

[0216]

[0217] The calculation formula of the second disturbance probability includes:

[0218]

[0219] In the above formula, is the privacy budget required for perturbation of electricity consumption data, is the relaxation factor required for the power consumption data disturbance, q is the first disturbance probability, and p is the second disturbance probability.

[0220] Furthermore, the calculation formula of the first segment parameter includes:

[0221]

[0222] The calculation formula for the interval endpoints includes:

[0223]

[0224] The calculation formula of the second segment parameter includes:

[0225]

[0226] The calculation formula for the first endpoint of the segmented interval includes:

[0227]

[0228] The calculation formula for the second endpoint of the segmented interval includes:

[0229]

[0230] In the above formula, q is the first perturbation probability, p is the second perturbation probability, u is the first segmentation parameter, C is the interval endpoint, and v is the second segmentation parameter. l(x) is the first endpoint of the segmented interval with input x, and r(x) is the second endpoint of the segmented interval with input x.

[0231] Furthermore, the calculation formula of the restored disturbance data includes:

[0232]

[0233] In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the cutoff time for power consumption data aggregation, w is the preset w time points; [a,b] is the interval to which the original power consumption data of each user at each time point belongs; is the restored disturbance data of the i-th user at the t-th time; is the power consumption data of the i-th user after disturbance at the t-th moment.

[0234] Furthermore, the calculation formula for the total power consumption of all users at each time within the preset w time periods includes:

[0235]

[0236] In the above formula, is the total power consumption of all users at the tth moment within the preset w moments; i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, and w is the preset w moments; is the final perturbation data of the i-th user at the t-th time.

[0237] It can be understood that the method embodiment provided above corresponds to the system embodiment described above, and the corresponding specific contents can be referenced to each other and will not be repeated here.

[0238] It can be understood that the same or similar parts of the above embodiments can be referenced to each other, and the contents not described in detail in some embodiments can refer to the same or similar contents in other embodiments.

[0239] Embodiment 3

[0240] Based on the same inventive concept, the present invention also provides a computer device, which includes a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions in a computer storage medium to implement the corresponding method flow or corresponding function, so as to implement the steps of a power data aggregation method based on w event-level local differential privacy in the above embodiment.

[0241] Embodiment 4

[0242] Based on the same inventive concept, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a computer device for storing programs and data. It can be understood that the computer-readable storage medium here can include both built-in storage media in a computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the steps of a power data aggregation method based on w event-level local differential privacy in the above embodiment.

[0243] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0244] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0245] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0246] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0247] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A power data aggregation system based on w event-level local differential privacy, characterized in that: Includes: user end and data aggregation end; The user end is used to perturb the original power consumption data of each user at each time by using the privacy budget and relaxation factor required for perturbation of the power consumption data at each time within the preset w time moments calculated in advance, to obtain final perturbation data, and send the final perturbation data to the data aggregation end; The data aggregation end is used to determine the total power consumption of all users at each of the preset w moments based on the final disturbance data, and to obtain a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments; Among them, the privacy budget and relaxation factor required for the perturbation of the electricity consumption data at each moment within the preset w moments are determined using the preset overall privacy budget and overall relaxation factor; The user terminal comprises: A determination unit, used to determine the original power consumption data to be formatted by using the original power consumption data of each user at each time; The formatting unit is used to format the original power consumption data to be formatted to obtain the formatted power consumption data; A perturbation unit, configured to perturb the formatted electricity consumption data using the privacy budget and relaxation factor required for perturbation of the electricity consumption data at each of the preset w moments, to obtain the perturbed electricity consumption data; A recovery unit, used for recovering the disturbed power consumption data to the original interval to obtain recovered disturbance data, wherein the recovered disturbance data is the final disturbance data; The disturbance unit comprises: A first calculation module is used to calculate a first disturbance probability and a second disturbance probability by using a privacy budget and a relaxation factor required for disturbing the power consumption data at each of the preset w moments; A second calculation module, configured to calculate a first segmentation parameter and a second segmentation parameter using the first disturbance probability and the second disturbance probability; A third calculation module, used for calculating a first endpoint of a segmented interval and a second endpoint of a segmented interval by using the first segmented parameter and the second segmented parameter; The first acquisition module is used to uniformly and randomly perturb the formatted power consumption data with the second perturbation probability as an interval The first perturbation probability is uniformly and randomly perturbed to the interval At one point inside, the power consumption data after disturbance is obtained; in, For input The first endpoint of the segmented interval, For input The second endpoint of the segmented interval, is the formatted electricity consumption data of the i-th user at the t-th time, and C is the interval endpoint; The second calculation module is specifically used for: Calculating a first segmentation parameter using the first disturbance probability and the second disturbance probability; Using the first segmentation parameter, the first disturbance probability and the second disturbance probability, an interval endpoint is calculated; Calculate a second segmentation parameter using the interval endpoints and the first segmentation parameter; The data aggregation terminal includes: The second acquisition module is used to add the final disturbance data of each user at the w moments before the preset deadline for aggregating the power consumption data, so as to obtain the total power consumption of all users at each moment within the preset w moments; The fitting module is used to fit the total power consumption of all users at each moment within the preset w moments based on a preset fitting initial function using the least squares method to obtain a fitting curve of the total power consumption of the users.

2. The system according to claim 1, characterized in that The determining unit is specifically configured to: From the original power consumption data of each user at each time, the power consumption data at the first w time points within the preset cut-off time for aggregation of power consumption data are selected as the power consumption data to be formatted.

3. The system according to claim 1, characterized in that The user terminal further includes: The calculation unit is used to calculate the privacy budget required for the disturbance of the electricity consumption data at each moment within the preset w moments and the relaxation factor required for the disturbance of the electricity consumption data at each moment within the preset w moments according to zero-centralized differential privacy and using the preset overall privacy budget and overall relaxation factor.

4. The system according to claim 3, characterized in that The computing unit is specifically used for: Let the preset overall privacy budget be ε, the preset overall relaxation factor be δ, and the privacy budget required for the perturbation of the power consumption data at each moment within the preset w moments be , the relaxation factor required for the power consumption data disturbance at each of the preset w moments is ; Assume that the electricity consumption data aggregation mechanism that uses w-event-level (ε, δ)-local differential privacy for data perturbation within the preset w moments is A0, and each moment within the w moments uses The electricity consumption data mechanism for data perturbation by local differential privacy is {A1, A2, …, A t ,…,A w }; When mechanism A0 satisfies zero-centralized differential privacy, the parameters of A0 are ; When the mechanism {A1, A2, ..., A t ,…,A w } all satisfy zero centralized differential privacy, A t The parameters are ; According to the combinatorial theorem of zero-concentration differential privacy, we can get mechanism A0 as mechanism {A1, A2, …, A t ,…,A w }, the parameter of A0 is ,Right now ,get and .

5. The system according to claim 1, characterized in that The calculation formula of the formatted power consumption data includes: In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, w is the preset w moments; [a,b] is the interval to which the original power consumption data of each user at each moment belongs; is the original electricity consumption data of the i-th user at the t-th time, is the formatted electricity consumption data of the i-th user at the t-th moment.

6. The system according to claim 1, characterized in that The calculation formula of the first disturbance probability includes: The calculation formula of the second disturbance probability includes: In the above formula, is the privacy budget required for perturbation of electricity consumption data, is the relaxation factor required for the power consumption data disturbance, q is the first disturbance probability, and p is the second disturbance probability.

7. The system according to claim 1, characterized in that The calculation formula of the first segmentation parameter includes: The calculation formula for the interval endpoints includes: The calculation formula of the second segmentation parameter includes: The calculation formula of the first endpoint of the segmented interval includes: The calculation formula of the second endpoint of the segmented interval includes: In the above formula, q is the first perturbation probability, p is the second perturbation probability, u is the first segmentation parameter, C is the interval endpoint, and v is the second segmentation parameter. l(x) is the first endpoint of the segmented interval with input x, and r(x) is the second endpoint of the segmented interval with input x.

8. The system according to claim 1, characterized in that The calculation formula of the restored disturbance data includes: In the above formula, i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the cutoff time for power consumption data aggregation, w is the preset w time points; [a,b] is the interval to which the original power consumption data of each user at each time point belongs; is the restored disturbance data of the i-th user at the t-th time; is the power consumption data of the i-th user after disturbance at the t-th moment.

9. The system according to claim 1, characterized in that The calculation formula for the total power consumption of all users at each time within the preset w time periods includes: In the above formula, is the total power consumption of all users at the tth moment within the preset w moments; i∈[1,n], n is the total number of users, t∈[T-w+1,T], T is the preset cutoff time for power consumption data aggregation, and w is the preset w moments; is the final perturbation data of the i-th user at the t-th time.

10. A method for aggregating power data based on w event-level local differential privacy, characterized in that: include: The user end uses the privacy budget and relaxation factor required for perturbation of the power consumption data at each moment within the preset w moments calculated in advance to perturb the original power consumption data of each user at each moment, obtains the final perturbation data, and sends the final perturbation data to the data aggregation end; The data aggregation end determines the total power consumption of all users at each of the preset w moments based on the final disturbance data, and obtains a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments; Among them, the privacy budget and relaxation factor required for the perturbation of the electricity consumption data at each moment within the preset w moments are determined using the preset overall privacy budget and overall relaxation factor; The user terminal uses the privacy budget and relaxation factor required for perturbation of the power consumption data at each time within the preset w time moments calculated in advance to perturb the original power consumption data of each user at each time moment to obtain the final perturbation data, including: Using the original power consumption data of each user at each time, determine the original power consumption data that needs to be formatted; Formatting the original power consumption data to be formatted to obtain formatted power consumption data; Using the privacy budget and relaxation factor required for perturbing the electricity consumption data at each of the preset w moments, the formatted electricity consumption data is perturbed to obtain the perturbed electricity consumption data; The disturbed power consumption data is restored to the original interval to obtain the restored disturbance data, and the restored disturbance data is the final disturbance data; The method uses the privacy budget and relaxation factor required for perturbing the power consumption data at each of the preset w moments to perturb the formatted power consumption data to obtain the perturbed power consumption data, including: Using the privacy budget and relaxation factor required for perturbation of the power consumption data at each of the preset w moments, a first perturbation probability and a second perturbation probability are calculated; Using the first disturbance probability and the second disturbance probability, a first segmentation parameter and a second segmentation parameter are calculated; Using the first segmentation parameter and the second segmentation parameter, a first endpoint of the segmentation interval and a second endpoint of the segmentation interval are calculated; The formatted electricity consumption data is uniformly and randomly disturbed with the second disturbance probability as the interval The first perturbation probability is uniformly and randomly perturbed to the interval At one point inside, the power consumption data after disturbance is obtained; in, For input The first endpoint of the segmented interval, For input The second endpoint of the segmented interval, is the formatted electricity consumption data of the i-th user at the t-th time, and C is the interval endpoint; The method of calculating the first segmentation parameter and the second segmentation parameter by using the first disturbance probability and the second disturbance probability includes: Using the first disturbance probability and the second disturbance probability, a first segmentation parameter is calculated; Using the first segmentation parameter, the first disturbance probability and the second disturbance probability, the interval endpoints are calculated; Using the interval endpoints and the first segmentation parameter, a second segmentation parameter is calculated; The data aggregation end determines the total power consumption of all users at each of the preset w moments based on the final disturbance data, and obtains a fitting curve of the total power consumption of users by fitting the total power consumption of all users at each of the preset w moments, including: The final disturbance data of each user at the w moments before the preset deadline for aggregation of power consumption data are summed up to obtain the total power consumption of all users at each moment within the preset w moments; Based on the preset initial fitting function, the total power consumption of all users at each moment within the preset w moments is fitted using the least squares method to obtain a fitting curve of the total power consumption of users.

11. A computer device, characterized in that: include: at least one processor and memory; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, the power data aggregation method based on w event-level local differential privacy as claimed in claim 10 is implemented.

12. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed, the power data aggregation method based on w event-level local differential privacy as described in claim 10 is implemented.