A privacy-preserving fine-grained data aggregation method and system
Through homomorphic encryption technology based on cryptography, a multi-functional privacy-protecting multi-subset data aggregation method is provided, which solves the problem of fine-grained power consumption data diversity requirements in smart grids, realizes efficient multiple statistical aggregation operations, and satisfies requirements for smart services and reduces computing and communication overhead.
Patent Information
- Application Number
- CN202111610677.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Existing privacy-preserving multi-subset data aggregation solutions are difficult to meet the diverse needs of control centers in smart grids for fine-grained power consumption data, and most solutions are not efficient in privacy-preserving data aggregation and cannot achieve multiple statistics at the same time. Aggregation operations.
Using homomorphic encryption technology based on cryptography, it provides a multi-functional privacy-preserving multi-subset data aggregation method, including precise additive multi-subset data aggregation and approximate non-additive multi-subset data aggregation. Through initialization, In the stages of user report generation, privacy-protecting user report aggregation and control center decryption, various statistical aggregations such as average, variance, maximum and minimum are realized, and extended to non-additive data aggregation through the maximum/minimum possible value theorem.
It implements multi-functional privacy-preserving fine-grained data aggregation, supports the diverse needs of intelligent services, reduces computing and communication overhead, and can simultaneously achieve multiple privacy-preserving statistical aggregations after users upload data once, which is suitable for most practical application scenarios. , and combined with differential privacy technology to resist differential attacks.
Smart Images

Figure CN114386094B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information security technology, and relates to a privacy-preserving data aggregation method in applied cryptography, and specifically to a multifunctional and high-performance privacy-preserving fine-grained data aggregation method and system. Background Art
[0002] Smart grid integrates information and communication technology into traditional power networks to form an efficient, reliable and safe power system. As an important component of smart grid, the advanced metering infrastructure (AMI) network allows the control center to collect fine-grained power consumption data of residential users every few minutes for energy management and real-time load monitoring. For example, by analyzing and monitoring these fine-grained power consumption data, the control center can adjust the power production plan to reduce the risk of power outages.
[0003] Although analyzing these fine-grained electricity consumption data is valuable, this data may reveal the daily activities of residential users. If handled improperly, it will leak the privacy of residential users, thus causing serious privacy issues. For example, by analyzing the daily electricity consumption data of a residential user, we can know the time when the user is at home and when he is away. Once this information is known by someone with bad intentions, it will cause damage to the user's property or even life.
[0004] In order to protect the privacy of users, many privacy-preserving data aggregation (PPDA) schemes have been proposed in AMI networks. Although most existing PPDA schemes allow the control center to protect users' personal privacy while aggregating their total electricity consumption, these schemes sometimes fail to meet the control center's more fine-grained needs. For example, in order to formulate better power production plans and make more accurate electricity consumption forecasts, the control center needs to know not only the total electricity consumption data of all users, but also the user distribution information of each electricity consumption segment, which requires a more fine-grained PPDA scheme, namely the privacy-preserving multi-subset data aggregation (PPMDA) scheme.
[0005] Nowadays, many scholars at home and abroad have conducted in-depth research on PPMDA schemes. However, most of these schemes only focus on privacy-preserving multi-subset data aggregation methods of specific functions (such as averaging, variance, etc.), which is difficult to meet the diverse needs of intelligent services. As far as we know, there is currently no formal research on multifunctional PPMDA (that is, privacy-preserving multi-subset data aggregation that can achieve averaging, variance, one-way variance analysis, maximum, and minimum) in AMI networks. In addition, most existing PPMDA schemes only perform a single specific function aggregation operation after users upload a set of data when performing privacy-preserving data aggregation, and cannot make full use of the data, which is not efficient enough.
[0006] Therefore, it is of great importance to invent a versatile and high-performance privacy-preserving fine-grained data aggregation method. Summary of the invention
[0007] In view of the drawbacks of the PPMDA scheme mentioned above and to meet the diverse needs of intelligent services, the present invention provides a privacy-preserving fine-grained data aggregation method with multifunctionality and high performance in AMI networks based on the homomorphic encryption technology in applied cryptography.
[0008] In one aspect of the present invention, a multifunctional and high-performance privacy-preserving multi-subset data aggregation method is provided, including precise additive multi-subset data aggregation and approximate non-additive multi-subset data aggregation.
[0009] The precise additive multi-subset data aggregation includes an initialization phase, a user report generation phase, a privacy protection user report aggregation phase, and a control center decryption phase;
[0010] In the initialization phase, the trusted institution initializes the entire system, generates a public key and a private key pair, and distributes them to the control center, gateway, and user to complete the registration.
[0011] In the user report generation stage, it is assumed that the user will generate a power consumption report every 15 minutes and report it to the gateway. By collecting and analyzing the fine-grained power consumption data of n users, the control center can monitor the health status of the AMI network and further provide more diverse fine-grained intelligent services.
[0012] In the privacy-preserving user report aggregation phase, the gateway first verifies the validity of each user report, then performs privacy-preserving user report aggregation and generates a gateway signature, and finally reports the aggregation result to the control center.
[0013] In the control center decryption stage, when the control center receives the aggregation report sent by the gateway, the control center first verifies the validity of the aggregation report, and then decrypts the aggregation result, so as to achieve privacy-preserving multi-subset data aggregation for averaging and variance calculation at the same time.
[0014] The approximate non-additive multi-subset data aggregation includes non-additive data aggregation for all users and non-additive data aggregation for multiple subsets;
[0015] The non-additive data aggregation for all users can be easily extended from the precise additive multi-subset data aggregation. The data obtained from the control center decryption phase of the precise additive multi-subset data aggregation can be used to achieve approximate histogram, median and maximum / minimum data aggregation for all users according to the maximum / minimum possible value theorem.
[0016] The non-additive data aggregation for multiple subsets can be easily extended from the precise additive data aggregation for multiple subsets. The data obtained from the control center decryption phase of the precise additive data aggregation for multiple subsets can be used to achieve approximate maximum / minimum data aggregation for multiple subsets according to the maximum / minimum possible value theorem.
[0017] The maximum / minimum possible value theorem is a key theorem for realizing approximate non-additive multi-subset data aggregation, which can help the control center find the maximum / minimum possible value in an unknown data set when only the number of data, mean value and variance are known.
[0018] In another aspect of the present invention, a privacy-preserving fine-grained data aggregation system is provided, comprising an accurate additive multi-subset data aggregation module and an approximate non-additive multi-subset data aggregation module;
[0019] The precise additive multi-subset data aggregation module mainly realizes precise mean, variance and one-way ANOVA aggregation;
[0020] The approximate non-additive multi-subset data aggregation module mainly realizes approximate minimum aggregation and maximum aggregation.
[0021] Compared with the prior art, the present invention has the following beneficial effects:
[0022] (1) This paper provides a multifunctional privacy-preserving fine-grained data aggregation method that supports precise additive multi-subset data aggregation (such as precise mean, variance, and one-way ANOVA aggregation) and approximate non-additive multi-subset data aggregation (such as approximate minimum aggregation and maximum aggregation). It is the first formal study to implement multifunctional privacy-preserving multi-subset data aggregation for AMI networks, thereby meeting the diverse needs of intelligent services.
[0023] (2) The present invention provides a high-performance privacy-preserving fine-grained data aggregation method. This method only requires users to upload data once, and can simultaneously achieve five levels of privacy-preserving statistical aggregation (that is, simultaneously achieving averaging, variance, one-way variance analysis, maximum, and minimum privacy-preserving statistical aggregation), thereby greatly reducing the computational and communication overhead in privacy-preserving fine-grained data aggregation.
[0024] (3) The present invention provides a privacy-preserving fine-grained data aggregation practical framework, which not only supports dynamic pricing and billing and tolerates user errors, but also combines differential privacy technology to resist differential attacks, and is suitable for most practical application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 4 is a diagram of the overall system model of an embodiment of the present invention.
[0026] Figure 2 It is a content framework diagram of an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to facilitate the understanding and implementation of the present invention by those skilled in the art, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention and are not used to limit the present invention.
[0028] The present invention provides a multifunctional and high-performance privacy-preserving fine-grained data aggregation system, which is composed of an accurate additive multi-subset data aggregation module and an approximate non-additive multi-subset data aggregation module. In this embodiment, the accurate additive multi-subset data aggregation module mainly realizes accurate mean, variance and one-way variance analysis aggregation; the approximate non-additive multi-subset data aggregation module mainly realizes approximate minimum aggregation and maximum aggregation.
[0029] In the overall system model diagram of this embodiment (see Figure 1 ), the trusted institution is often a powerful and trusted entity, which is mainly responsible for initializing the entire system; in the power station, the control center is a highly trusted entity, which is responsible for collecting, processing and analyzing the fine-grained electricity consumption data uploaded by users, and providing a variety of smart electricity consumption services; the gateway is between the control center and the user, responsible for forwarding demands and aggregating the fine-grained electricity consumption data collected from users within a certain range; each residential user is equipped with a smart meter to collect fine-grained electricity consumption data.
[0030] Based on the above system model, the present invention provides a multifunctional and high-performance privacy-preserving multi-subset data aggregation method, including precise additive multi-subset data aggregation and approximate non-additive multi-subset data aggregation. Figure 2 .
[0031] In this embodiment, accurate additive multi-subset data aggregation includes an initialization phase, a user report generation phase, a privacy-preserving user report aggregation phase, and a control center decryption phase;
[0032] In the initialization phase of this embodiment, the trusted institution can initialize the entire system, generate a public key and a private key pair, and distribute them to the control center, gateway, and user to complete the registration. The specific implementation process includes:
[0033] First, the trusted authority executes the algorithm according to the security parameter κ Generate a five-tuple Generate the corresponding private key (λ, μ) and public key (N, g) according to the Paillier cryptographic algorithm;
[0034] in, and are two cyclic groups, p and q are two large prime numbers, satisfying |p|=|q|=κ, and e is a bilinear map g is The generator of order, λ=LCM(p-1,q-1), L(x)=(x-1) / N, μ=(L(g λ mod N 2 )) -1 mod N, LCM is the least common multiple function.
[0035] Secondly, suppose there are n users in the system and the power consumption range is [R 1 ,R k+1 ) is divided into k subsets [R 1 ,R 2 ),[R 2 ,R 3 ),…[R k ,R k+1 );
[0036] Among them, R 1 =0, R k+1 is the maximum power consumption, and the power consumption data m of user i i ∈[R i ,R i+1 ) represents m i Is greater than or equal to the power consumption R i , less than the power consumption R i+1 of.
[0037] Then, the trusted institution Generate n+2 random numbers {x 0 ,x 1 ,…,x n ,x g}, and calculate and The trusted authority selects a super-increasing sequence calculate And publish the parameters
[0038] in, is an integer between 1 and N-1, a super increasing sequence The following conditions need to be met:
[0039]
[0040] Finally, the trusted authority publishes the system parameters:
[0041]
[0042] And through the secure channel Send to the control center, x g Send to the gateway, x i Sent to user i∈[1,n]; where H is a hash function
[0043] In the user report generation stage of this embodiment, it is assumed that the user will generate a power consumption report every 15 minutes and report it to the gateway. By collecting and analyzing the fine-grained power consumption data of n users, the control center can monitor the health status of the AMI network and further provide more diverse fine-grained intelligent services; the specific implementation process includes:
[0044] First, in order to maintain generality, assume that the power consumption of user i is m i belongs to the jth subset [R j ,R j+1 ), that is, m i ∈[R j ,R j+1 ), then user i will use the parameters generated in the previous stage and private key x i As an encryption parameter, the power consumption m i Encrypt and get the ciphertext
[0045] Among them, T is the current timestamp, which can be used to resist message replay attacks.
[0046] Second, user i uses private key x i Generate a signature
[0047] Finally, user i will generate the user report {C i ||i||T||σ i}Sent to the gateway; It is particularly noteworthy that, in this embodiment, each user only needs to upload a report to the control center once to complete the multi-functional privacy protection multi-subset data aggregation, which greatly reduces the computational and communication overhead of the system.
[0048] In this embodiment, during the privacy protection user report aggregation phase, the gateway first verifies the validity of each user report, then performs privacy protection user report aggregation and generates a gateway signature, and finally reports the aggregation result to the control center; the specific implementation process includes:
[0049] First, the gateway uses the formula e(g,σ i )=e(Y i ,H(C i ||i||T)) Check signature σ iand timestamp T to verify the validity of the user report submitted by user i. In order to make the verification process more efficient, a batch verification method can be used;
[0050] The batch verification method means that after receiving user reports from n users, the gateway can use the batch verification formula To batch verify the user reports. Through batch verification, the original time required for 2n bilinear mapping operations can be reduced to the current time required for n+1 bilinear mapping operations, greatly reducing the computational overhead of the verification process.
[0051] Secondly, after the validity verification of the user report is completed, the gateway will perform privacy-preserving user report aggregation to produce the aggregation result
[0052] in, For j∈[1,k], Indicates that the electricity consumption data falls into the jth subset [R j ,R j+1 ) range, Indicates that the electricity consumption data falls into the jth subset [R j ,R j+1 ) within the scope of the . and In the decryption phase of the control center, the super-incremental sequence generated in the initialization phase can be used To recover.
[0053] The gateway then uses the private key x g Generate a signature Among them, GW is the identity of the gateway.
[0054] Finally, the gateway will aggregate the report {C||GW||T||σ g}Sent to the control center.
[0055] In this embodiment, during the decryption stage of the control center, after receiving the aggregation report sent by the gateway, the control center first verifies the validity of the aggregation report, and then decrypts the aggregation result C, so that the privacy-preserving multi-subset data aggregation of averaging and variance can be achieved at the same time; the specific implementation process includes:
[0056] First, when the control center receives the aggregation report sent by the gateway, the control center first uses the formula e(g,σ g )=e(Y g ,H(C||GW||T)) is used to verify the validity of the aggregation report.
[0057] Secondly, since the aggregation result C is still in the ciphertext form of Paillier encryption, the control center can use the private key (λ,μ) to decrypt it and obtain The control center follows a super-increasing sequence from Recover from and
[0058] in, represents the number of users in the jth subset, represents the total electricity consumption of users in the jth subset, represents the sum of the squares of electricity consumption of users in the jth subset. Therefore, Represents the total number of users, Represents the total electricity consumption of all users, Represents the sum of the squares of electricity consumption of all users.
[0059] Finally, by calculating The control center can simultaneously achieve privacy-preserving multi-subset data aggregation for averaging and variance calculation;
[0060] in, represents the average power consumption of users in the jth subset, Represents the variance of the electricity consumption of users in the jth subset. It should be noted that the control center only needs to decrypt once to obtain the number of users in the jth subset. Total power consumption M j , the sum of the squares of electricity consumption S j , and the total number of users The total power consumption of all users M, the sum of the squares of the power consumption of all users S, and the average power consumption of users in the jth subset can also be obtained The variance of the electricity consumption of users in the jth subset The average electricity consumption of all users The variance of electricity consumption of all users It realizes that each user only needs to encrypt and transmit electricity consumption data once to complete the multi-functional privacy-preserving multi-subset data aggregation, which greatly reduces the computing and communication overhead. It is a multi-functional and high-performance privacy-preserving multi-subset data aggregation method.
[0061] In this embodiment, the approximate non-additive multi-subset data aggregation includes the maximum / minimum possible value theorem, the non-additive data aggregation for all users, and the non-additive data aggregation for multiple subsets;
[0062] In this embodiment, the maximum / minimum possible value theorem is a key theorem for realizing approximate non-additive multi-subset data aggregation. This theorem can help the control center find the maximum / minimum possible value in an unknown data set when only the number, mean value, and variance of the data are known. The conclusion of this theorem is as follows:
[0063] For an unknown data set D = {x 1 ,x 2 ,…,x n}, given the number of data n, the average value and standard deviation We can derive an approximate minimum value and the approximate maximum
[0064] In this embodiment, the data obtained in the control center decryption phase through accurate additive multi-subset data aggregation M j , S j , M, S, j∈[1,k], according to the maximum / minimum possible value theorem, the exact additive multi-subset data aggregation can be easily extended to non-additive multi-subset data aggregation for all users (such as approximate histogram, median and maximum / minimum data aggregation for all users); the specific implementation process includes:
[0065] First, for the approximate histogram data aggregation of all users, since the number of users in each subset is known and the corresponding power consumption range [R j ,R j+1 ), so it is easy to find the approximate histogram data aggregation for all users.
[0066] Secondly, for the data aggregation of finding the approximate median of all users, since the number of users in each subset is known and the total number of users n, so the approximate median can be found by cyclically comparing the relationship with n / 2.
[0067] Finally, to find the approximate maximum / minimum data aggregation for all users, since the average power consumption of all users is known The variance of electricity consumption of all users and the total number of users n, according to the maximum / minimum possible value theorem, it is easy to deduce that the exact maximum value falls on The exact minimum value falls within the range within the scope;
[0068] Among them, MIN is the minimum function, and MAX is the maximum function.
[0069] In this embodiment, the data obtained in the control center decryption phase of the precise additive multi-subset data aggregation can be easily expanded into non-additive multi-subset data aggregation for multiple subsets (for example, approximate maximum / minimum data aggregation for multiple subsets) according to the maximum / minimum possible value theorem; the specific implementation process includes:
[0070] For approximate maximum / minimum data aggregation of multiple subsets, since the average power consumption of users in the jth subset is known, The variance of the electricity consumption of users in the jth subset and the number of users in the jth subset We can first find the largest j cyclically so that the exact maximum value falls on [R j ,R j+1 ), then according to the maximum / minimum possible value theorem, we can infer that the exact maximum value falls within range, which is the same as Compared with , the accuracy is higher. Using a similar method, the exact minimum value falls on within the range.
[0071] It should be understood that the above description of the embodiments is relatively detailed and cannot be regarded as limiting the scope of patent protection of the present invention. Under the enlightenment of the present invention, ordinary technicians in this field can also make substitutions or modifications without departing from the scope of protection of the claims of the present invention, which all fall within the scope of protection of the present invention. The scope of protection requested by the present invention shall be based on the attached claims.
Claims
1. A privacy-preserving fine-grained data aggregation method, including precise additive multi-subset data aggregation and approximate non-additive multi-subset data aggregation, characterized in that: The described accurate additive multi-subset data aggregation achieves accurate mean, variance and one-way ANOVA aggregation; The approximate non-additive multi-subset data aggregation achieves approximate minimum aggregation and maximum aggregation; Specifically: The precise additive multi-subset data aggregation includes an initialization phase, a user report generation phase, a privacy protection user report aggregation phase, and a control center decryption phase; In the initialization phase, the trusted institution initializes the entire system, generates a public key and a private key pair, and distributes them to the control center, gateway, and user to complete the registration. Specifically: First, the trusted authority executes the algorithm according to the security parameter κ Generate a five-tuple Generate the corresponding private key (λ, μ) and public key (N, g) according to the Paillier cryptographic algorithm; in, and are two cyclic groups, p and q are two large prime numbers, satisfying |p|=|q|=κ, and e is a bilinear map g is The generator of order, λ=LCM(p-1,q-1), L(x)=(x-1) / N, μ=(L(g λ mod N 2 )) -1 mod N, LCM is the least common multiple function; Secondly, suppose there are n users in the system and the power consumption range is [R1,R k+1 ) is divided into k subsets [R1,R2), [R2,R3), … [R k ,R k+1 ); Among them, R1=0, R k+1 is the maximum power consumption, and the power consumption data m of user i i ∈[R i ,R i+1 ) represents m i Is greater than or equal to the power consumption R i , less than the power consumption R i+1 of; Then, the trusted institution Generate n+2 random numbers {x0,x1,…,x n ,x g }, and calculate and The trusted authority selects a super-increasing sequence calculate And publish the parameters in, is an integer between 1 and N-1, a super increasing sequence The following conditions need to be met: Finally, the trusted authority publishes the system parameters: , And through the secure channel Send to the control center, x g Send to the gateway, x i Sent to user i∈[1,n]; where H is a hash function In the user report generation phase, the user generates a power consumption report at a set time interval and reports it to the gateway; by collecting and analyzing the fine-grained power consumption data of multiple users, the control center monitors the health status of the AMI network and provides more diverse fine-grained intelligent services; specifically: First, assume that the power consumption of user i is m i belongs to the jth subset [R j ,R j+1 ), that is, m i ∈[R j ,R j+1 ), then user i uses the parameters generated in the previous stage and private key x i As an encryption parameter, the power consumption m i Encrypt and get the ciphertext Among them, T is the current timestamp, which is used to resist message replay attacks; Second, user i uses private key x i Generate a signature Finally, user i will generate the user report {C i ||i||T||σ i }Send to the gateway; In the privacy protection user report aggregation phase, the gateway first verifies the validity of each user report, then performs privacy protection user report aggregation and generates the gateway's signature, and finally reports the aggregation result to the control center; specifically: First, the gateway uses the formula e(g,σ i )=e(Y i ,H(C i ||i||T)) Check signature σ i and timestamp T to verify the validity of the user report submitted by user i; Secondly, after the validity verification of the user report is completed, the gateway will perform privacy-preserving user report aggregation to produce the aggregation result in, For j∈[1,k], Indicates that the electricity consumption data falls into the jth subset [R j ,R j+1 ) range, Indicates that the electricity consumption data falls into the jth subset [R j ,R j+1 ) number of users within the scope; and In the decryption phase of the control center, the super-incremental sequence generated in the initialization phase is used to recover; The gateway then uses the private key x g Generate a signature Where GW is the gateway's identity; Finally, the gateway will aggregate the report {C||GW||T||σ g }Send to the control center; In the control center decryption phase, when the control center receives the aggregation report sent by the gateway, the control center first verifies the validity of the aggregation report, and then decrypts the aggregation result to achieve privacy-preserving multi-subset data aggregation for averaging and variance calculation; specifically: First, when the control center receives the aggregation report sent by the gateway, the control center first uses the formula e(g,σ g )=e(Y g ,H(C||GW||T)) to verify the validity of the aggregation report; Secondly, the control center uses the private key (λ,μ) to decrypt and obtain The control center follows a super-increasing sequence from Recover from and in, represents the number of users in the jth subset, represents the total electricity consumption of users in the jth subset, represents the sum of the squares of electricity consumption of users in the jth subset, Represents the total number of users, Represents the total electricity consumption of all users, Represents the sum of the squares of electricity consumption of all users; Finally, by calculating The control center can simultaneously achieve the privacy-preserving aggregation of multi-subset data for averaging and variance calculation; represents the average power consumption of users in the jth subset, represents the variance of electricity consumption of users in the jth subset; The approximate non-additive multi-subset data aggregation includes non-additive data aggregation for all users and non-additive data aggregation for multiple subsets; The non-additive data aggregation for all users is extended from the precise additive multi-subset data aggregation; the data obtained in the control center decryption phase of the precise additive multi-subset data aggregation is used to realize the approximate histogram, median and maximum / minimum data aggregation for all users according to the maximum / minimum possible value theorem; The non-additive data aggregation for multiple subsets is extended from the precise additive data aggregation for multiple subsets; the data obtained in the control center decryption phase of the precise additive data aggregation for multiple subsets is used to implement approximate maximum / minimum data aggregation for multiple subsets according to the maximum / minimum possible value theorem.
2. The privacy-preserving fine-grained data aggregation method according to claim 1, characterized in that: The electricity consumption report generated by the user at set intervals contains the encrypted ciphertext of the current electricity consumption, the current timestamp and the user's signature.
3. The privacy-preserving fine-grained data aggregation method according to claim 1, characterized in that: The gateway uses a batch verification method when verifying the validity of each user report.
4. The privacy-preserving fine-grained data aggregation method according to claim 1, characterized in that: The maximum / minimum possible value theorem is a key theorem for realizing approximate non-additive multi-subset data aggregation, which is used to help the control center find the maximum / minimum possible value in an unknown data set when only the number of data, mean value and variance are known.
5. A privacy-preserving fine-grained data aggregation system, comprising an accurate additive multi-subset data aggregation module and an approximate non-additive multi-subset data aggregation module, characterized in that: The precise additive multi-subset data aggregation module achieves precise mean, variance and one-way ANOVA aggregation; The approximate non-additive multi-subset data aggregation module achieves approximate minimum aggregation and maximum aggregation Specifically: The precise additive multi-subset data aggregation includes an initialization phase, a user report generation phase, a privacy protection user report aggregation phase, and a control center decryption phase; In the initialization phase, the trusted institution initializes the entire system, generates a public key and a private key pair, and distributes them to the control center, gateway, and user to complete the registration. Specifically: First, the trusted authority executes the algorithm according to the security parameter κ Generate a five-tuple Generate the corresponding private key (λ, μ) and public key (N, g) according to the Paillier cryptographic algorithm; in, and are two cyclic groups, p and q are two large prime numbers, satisfying |p|=|q|=κ, and e is a bilinear map e: g is The generator of order, λ=LCM(p-1,q-1), L(x)=(x-1) / N, μ=(L(g λ mod N 2 )) -1 mod N, LCM is the least common multiple function; Secondly, suppose there are n users in the system and the power consumption range is [R1,R k+1 ) is divided into k subsets [R1,R2), [R2,R3), … [R k ,R k+1 ); Among them, R1=0, R k+1 is the maximum power consumption, and the power consumption data m of user i i ∈[R i ,R i+1 ) represents m i Is greater than or equal to the power consumption R i , less than the power consumption R i+1 of; Then, the trusted institution Generate n+2 random numbers {x0,x1,…,x n ,x g }, and calculate and The trusted authority selects a super-increasing sequence calculate And publish the parameters in, is an integer between 1 and N-1, a super increasing sequence The following conditions need to be met: Finally, the trusted authority publishes the system parameters: , And through the secure channel Send to the control center, x g Send to the gateway, x i Sent to user i∈[1,n]; where H is a hash function In the user report generation phase, the user generates a power consumption report at a set time interval and reports it to the gateway; by collecting and analyzing the fine-grained power consumption data of multiple users, the control center monitors the health status of the AMI network and provides more diverse fine-grained intelligent services; specifically: First, assume that the power consumption of user i is m i belongs to the jth subset [R j ,R j+1 ), that is, m i ∈[R j ,R j+1 ), then user i uses the parameters generated in the previous stage and private key x i As an encryption parameter, the power consumption m i Encrypt and get the ciphertext Among them, T is the current timestamp, which is used to resist message replay attacks; Second, user i uses private key x i Generate a signature Finally, user i will generate the user report {C i ||i||T||σ i }Send to the gateway; In the privacy protection user report aggregation phase, the gateway first verifies the validity of each user report, then performs privacy protection user report aggregation and generates the gateway's signature, and finally reports the aggregation result to the control center; specifically: First, the gateway uses the formula e(g,σ i )=e(Y i ,H(C i ||i||T)) Check signature σ i and timestamp T to verify the validity of the user report submitted by user i; Secondly, after the validity verification of the user report is completed, the gateway will perform privacy-preserving user report aggregation to produce the aggregation result in, For j∈[1,k], Indicates that the electricity consumption data falls into the jth subset [R j ,R j+1 ) range, Indicates that the electricity consumption data falls into the jth subset [R j ,R j+1 ) number of users within the scope; and In the decryption phase of the control center, the super-incremental sequence generated in the initialization phase is used to recover; The gateway then uses the private key x g Generate a signature Where GW is the gateway's identity; Finally, the gateway will aggregate the report {C||GW||T||σ g }Send to the control center; In the control center decryption phase, when the control center receives the aggregation report sent by the gateway, the control center first verifies the validity of the aggregation report, and then decrypts the aggregation result to achieve privacy-preserving multi-subset data aggregation for averaging and variance calculation; specifically: First, when the control center receives the aggregation report sent by the gateway, the control center first uses the formula e(g,σ g )=e(Y g ,H(C||GW||T)) to verify the validity of the aggregation report; Secondly, the control center uses the private key (λ,μ) to decrypt and obtain The control center follows a super-increasing sequence from Recover from and in, represents the number of users in the jth subset, represents the total electricity consumption of users in the jth subset, represents the sum of the squares of electricity consumption of users in the jth subset, Represents the total number of users, Represents the total electricity consumption of all users, Represents the sum of the squares of electricity consumption of all users; Finally, by calculating The control center can simultaneously achieve the privacy-preserving aggregation of multi-subset data for averaging and variance calculation; represents the average power consumption of users in the jth subset, represents the variance of electricity consumption of users in the jth subset; The approximate non-additive multi-subset data aggregation includes non-additive data aggregation for all users and non-additive data aggregation for multiple subsets; The non-additive data aggregation for all users is extended from the precise additive multi-subset data aggregation; the data obtained in the control center decryption phase of the precise additive multi-subset data aggregation is used to realize the approximate histogram, median and maximum / minimum data aggregation for all users according to the maximum / minimum possible value theorem; The non-additive data aggregation for multiple subsets is extended from the precise additive data aggregation for multiple subsets; the data obtained in the control center decryption phase of the precise additive data aggregation for multiple subsets is used to implement approximate maximum / minimum data aggregation for multiple subsets according to the maximum / minimum possible value theorem.
