A federated learning testing method for power grid data privacy protection

By adopting the leave-one-out and explore-exploit methods in smart grids to determine the number of test participants, and introducing weighting and related consistency mechanisms, the problem of data distribution heterogeneity in federated learning model quality evaluation is solved and the accuracy of model evaluation is improved. Accuracy and data privacy protection ensure the efficient and safe operation of smart grids.

CN118278545BActive Publication Date: 2024-09-13SHANDONG ZHIHECHUANG INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410674968.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-13
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

In smart grids, federated learning model quality assessment faces problems such as data distribution heterogeneity and difficulty in constructing test data sets, which affects the performance of model quality assessment and data privacy protection.

Method used

Use the leave-one-out method to generate tasks, determine the minimum number of test participants through the exploration-exploitation method, introduce a weighting mechanism and related consistency mechanisms to ensure the fairness and credibility of model test results, and use the local data set evaluation of each client Model performance, identifying and excluding malicious clients.

Benefits of technology

It improves the accuracy and overall quality of model quality assessment, enhances data privacy protection, and ensures the efficient, reliable and safe operation of smart grids.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FHA0000006143850000021
    Figure FHA0000006143850000021
  • Figure FHA0000006143850000022
    Figure FHA0000006143850000022
  • Figure FHA0000006143850000023
    Figure FHA0000006143850000023
Patent Text Reader

Abstract

The present invention belongs to the field of federated learning and crowdsourcing, and proposes a federated learning test framework for power grid data privacy protection, including steps such as task generation, recruiting test participants, model testing and aggregation, and test quality evaluation. The leave-one-out method is used to generate tasks, and the recruitment problem is defined and constrained by mathematical methods, and the exploration-utilization method is used to solve the recruitment problem. Based on the method of federated learning, the present invention introduces a crowdsourcing-based model testing framework, allowing each client participating in crowdsourcing to test the model using its own local data set, solving the problem of test set construction, and also introducing a reputation mechanism based on a relevant consistency mechanism in the evaluation process to ensure that the participating clients provide true and high-quality evaluations, enhance the credibility and efficiency of the entire model training process, and ultimately promote the efficient, reliable and safe operation of smart grids.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of federated learning and crowdsourcing, and in particular relates to a federated learning testing method for power grid data privacy protection. Background Art

[0002] With the rapid iteration and digital upgrade of the new power system, not only are the technology applications and operation modes constantly innovating, but also serious problems of data security and privacy leakage are brought about. With the in-depth application of information technology in the power field, smart grids have deeply integrated traditional power grids with cloud computing, artificial intelligence and other technologies, which enables smart grids to efficiently manage and optimize power resources and improve energy utilization efficiency and economic benefits. The intelligent control center can collect and analyze various information of users through advanced data analysis technology, so as to formulate more effective strategies to improve operational efficiency and service quality. However, the openness and complexity of smart grids have also led to new challenges in data security and privacy protection. User information and privacy may face the risk of leakage and abuse in this process. The strong coupling and strong correlation characteristics of smart grids mean that any security vulnerabilities may affect the security and stability of the entire system.

[0003] To address these challenges, federated learning technology provides a new solution. Federated learning is a distributed machine learning method that allows multiple participants to collaborate on training models without directly sharing data, thereby protecting the data privacy of all parties. Applying federated learning in smart grids can effectively solve the problem of data silos while protecting user privacy and enhancing data security. In addition, the use of federated learning can not only optimize the operating efficiency and decision-making quality of smart grids, but also strengthen local processing and analysis of data and reduce the risk of data leakage. In this way, smart grids can better allocate and manage resources while ensuring data security, ultimately achieving efficient, reliable and safe power supply.

[0004] However, when implementing federated learning, the importance of model quality assessment cannot be ignored, as it is crucial to maintaining the trust and effectiveness of the entire system. First, the application of model quality assessment in smart grids can help detect malicious clients that may intentionally provide false data updates or tamper with the model. This is critical because smart grid systems rely on data provided by clients to optimize operations and decision-making processes. Identifying and excluding these malicious clients can ensure the credibility and effectiveness of the model training process. Second, model quality assessment is also very important for designing incentive mechanisms. It can determine when to terminate the training process to avoid overfitting or unnecessary iterations, which is necessary to maintain the efficiency and accuracy of the model. In smart grids, the quality of the aggregated model in federated learning can usually be evaluated by calculating metrics such as accuracy, precision, and recall on the validation set. In addition, due to the characteristics of federated learning, data is usually kept on the local client and the original data is not shared. This means that shared or public test datasets may be difficult to obtain, and building a public test dataset may compromise the privacy of the client. Some existing methods propose to use a small, non-representative public test dataset. However, when the dataset size is limited, due to the heterogeneity of federated learning data distribution, its data distribution and characteristics may change, which will seriously affect the performance of model quality evaluation. Summary of the invention

[0005] Aiming at the main problems of data security and privacy protection arising in the process of implementing a new power system in a smart grid, the present invention proposes a federated learning testing method for power grid data privacy protection, which has a reasonable design, high security and is conducive to improving the reliability and overall quality of the test structure.

[0006] In order to achieve the above object, the technical solution adopted by the present invention is a federated learning test method for power grid data privacy protection provided by the present invention, comprising the following steps:

[0007] S1. Task generation: The leave-one-out method is used to generate tasks. After each round of federated learning model training, the models of one client are removed each time, and the models of the remaining N-1 clients are aggregated according to their data size to obtain N models. There is also a global aggregation model, which is tested as a model without deleting any clients. A total of N+1 models are used for testing.

[0008] S2. Recruit test participants. The goal is to determine the minimum number of participants to ensure that the merged local data set can fully support the evaluation requirements of the model accuracy. The recruitment problem is defined and constrained by mathematical methods. The exploration-utilization method is used to solve the recruitment problem. The exploration-utilization method divides the entire federated learning process into an exploration phase and a utilization phase. In the exploration phase, a group of test participants are randomly recruited to understand the differences in data set size and distribution between different participants. After obtaining the expected value and variance information of the data, the utilization phase is entered. According to the data statistical information obtained in the exploration phase, the optimal number of participants that can meet the accuracy requirements of the model quality evaluation is determined;

[0009] S3, model testing and aggregation. Each participant is responsible for evaluating the performance of the assigned model using their own local data set according to the assigned task and submitting their evaluation results. A weighting mechanism is introduced to ensure the fairness and credibility of these evaluation results. In the weighting mechanism, the proportion of each client's data volume to the total data volume is used as a weighting factor to weight the results provided by it.

[0010] S4. Test quality assessment introduces a relevant consistency mechanism and uses relevance scoring to determine the contribution of each client in model aggregation or resource allocation, effectively identifying low-quality test results and excluding malicious and unreliable test clients; comparing the relevance of the results of the client on the same test task to evaluate the effectiveness of its contribution, while determining the probability of the client being selected in future tasks, rewarding its effective contribution, thereby improving the reliability and overall quality of the test results.

[0011] Preferably, the mathematical method used in step S2 comprises the following steps:

[0012] S2-1. Define the recruitment problem: The goal is to determine the minimum number of test clients n to be recruited, so that the probability that the total amount of data used by all test clients is less than m is less than a given threshold θ: Among them, K is the set of selected test clients, τ i Indicates the amount of data used by test client i to execute the model test task. Indicates the total amount of data used by all test clients;

[0013] S2-2. Assume that all random variables τ i obey the same Gaussian distribution, that is, τ i ~N(μ,σ 2 ), whose probability density function is Where σ is the standard deviation and μ is the expected value;

[0014] S2-3, Order represents the sum of n random variables, T n It has the characteristics of Gaussian distribution, expressed as: T n ~N(nμ,nσ 2 ), where n is the number of selected test clients, σ ​​and μ are the standard deviation and expected value of the probability density function f(τ), respectively;

[0015] S2-4. Express the constraints in S2-1 as: in, Denotes a random variable T n The cumulative distribution function of 2 Denotes a random variable T n The expected value and variance of Expressed as: F n (·);

[0016] S2-5. As n increases, F n The value of (·) is reduced, and the constraint condition in S2-4 is expressed as:

[0017] S2-6. Obtain the expected value μ and variance σ in step S2-5 according to the exploration-utilization method 2 .

[0018] Preferably, the exploration-exploitation method comprises the following steps:

[0019] S2-61, Exploration phase: randomly select l test clients and obtain the amount of data collected by them, denoted as W = {w i |i=1,2,…,l}, where w i represents the number of samples in the local dataset used by test client i, reported by the test client itself; the expected value of the data reported by l test clients is variance

[0020] S2-62, Utilization stage: Get expected value μ and variance σ 2 Then, fit the cumulative distribution function Then use binary search to determine the value of n; as n increases, nμ and nσ 2 will also increase by 2 The constraint conditions of step S2-5 are brought into play to determine the threshold for satisfying the constraint and the number of participants required.

[0021] Preferably, step S3 includes the following specific steps:

[0022] S3-1. Each recruited test client is assigned a set of model tasks generated in step S1 and uploads the corresponding model accuracy η i ;

[0023] S3-2, the data volume set of N test clients is represented as W = {w i |i=1,2,…,N};

[0024] S3-3. The weight assigned to the i-th test client is recorded as λ i , and calculate

[0025] S3-4, the accuracy of each individual is calculated according to its weight λ i The total accuracy is calculated by adding them up, which is expressed as η, that is,

[0026] Preferably, the relevant consistency mechanism comprises the following steps:

[0027] S4-1. Set a set of tasks T = {t i |i=1,2,…,x} is distributed to a test client group A={a i ∣i=1,2,…,k}, where each task represents the model parameter to be evaluated and each test client a i Receive a complete set of tasks, and each task is completed by a different test client; each test client a i Use its local data to test the corresponding model parameters and report the model accuracy η i .

[0028] S4-2, the relevant consistency mechanism is built based on the Δ matrix. Defined as test client a i In the task p The test results on and The correlation between them; the received accuracy is used to calculate the correlation matrix Δ, and the calculation formula of the correlation matrix Δ is:

[0029] in, Indicates test client a i In the task p Results on And another test client a j In the same task p Results on The joint probability of and represents marginal probability;

[0030] When Δ(a,b)>0, it means that there is a positive correlation between the two results; if Δ(a,b)=0, it means that a and b are independent; otherwise, there is a negative correlation between them;

[0031] S4-3. Assuming that there is at least one non-zero element in the matrix, the score function S(·) is defined as follows:

[0032]

[0033] S4-4, Adoption Indicates test client a i For task t p Contributions:

[0034] in, represents the accuracy of client i for task p;

[0035] S4-5. After calculating the total contribution of each client to the task, the clients are sorted according to the contribution value. The accuracy of clients with contribution values ​​lower than the median will not be included in the aggregation process.

[0036] Compared with the prior art, the advantages and positive effects of the present invention are:

[0037] 1. The present invention provides a federated learning testing method for power grid data privacy protection. Based on the federated learning method, a crowdsourcing-based model testing framework is introduced, allowing each client participating in crowdsourcing to use its own local data set to test the model, solving the problem of test set construction. At the same time, a reputation mechanism based on a relevant consistency mechanism is introduced in the evaluation process to ensure that the participating clients provide true and high-quality evaluations, thereby enhancing the credibility and efficiency of the entire model training process, and ultimately promoting the efficient, reliable and safe operation of the smart grid. DETAILED DESCRIPTION

[0038] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.

[0039] Embodiment: The present invention provides a federated learning test method for power grid data privacy protection, comprising the following steps:

[0040] S1. Task generation: The leave-one-out method is used to generate tasks. After each round of federated learning model training, the models of one client are removed each time, and the models of the remaining N-1 clients are aggregated according to their data size to obtain N models. There is also a global aggregation model, which is tested as a model without deleting any clients. A total of N+1 models are used for testing.

[0041] S2. Recruit test participants. The goal is to determine the minimum number of participants to ensure that the merged local data set can fully support the evaluation requirements of the model accuracy. The recruitment problem is defined and constrained by mathematical methods. The exploration-utilization method is used to solve the recruitment problem. The exploration-utilization method divides the entire federated learning process into an exploration phase and a utilization phase. In the exploration phase, a group of test participants are randomly recruited to understand the differences in data set size and distribution between different participants. After obtaining the expected value and variance information of the data, the utilization phase is entered. According to the data statistical information obtained in the exploration phase, the optimal number of participants that can meet the accuracy requirements of the model quality evaluation is determined;

[0042] S3, model testing and aggregation. Each participant is responsible for evaluating the performance of the assigned model using their own local data set according to the assigned task and submitting their evaluation results. A weighting mechanism is introduced to ensure the fairness and credibility of these evaluation results. In the weighting mechanism, the proportion of each client's data volume to the total data volume is used as a weighting factor to weight the results provided by it.

[0043] S4. Test quality assessment introduces a relevant consistency mechanism and uses relevance scoring to determine the contribution of each client in model aggregation or resource allocation, effectively identifying low-quality test results and excluding malicious and unreliable test clients; comparing the relevance of the results of the client on the same test task to evaluate the effectiveness of its contribution, while determining the probability of the client being selected in future tasks, rewarding its effective contribution, thereby improving the reliability and overall quality of the test results.

[0044] In the present invention, regarding the leave-one-out method, its core idea is to exclude single data points (in the present invention, the model parameters of the client) in turn, and use the remaining data for model training, thereby generating multiple versions of the model for comprehensive evaluation. The leave-one-out method is a general technique that is applicable to various distributed model testing scenarios and can evaluate various indicators required for model testing. In step S2, the key challenge faced is the uncertainty of the size and distribution of the local data set available to the test participants. The exploration-utilization method strategy allows the present invention to effectively determine the required number of test participants in the face of the uncertainty of the size and distribution of the data set, thereby ensuring that the data requirements of the evaluation model are met. After successfully recruiting the test population, the present invention enters the stage of model testing and result aggregation. The introduction of a weighting mechanism can ensure the fairness and credibility of these evaluation results. This method aims to ensure that the influence of each participant is fairly balanced during the evaluation process, allowing the evaluation results of participants with larger data sets to more fully reflect the overall performance of the model. The present invention adopts a correlation consistency mechanism in step S4, which can ensure that the test client fully and seriously participates in the model quality test, and effectively identify and exclude clients that may only perform inaccurate tests or false positives on a small part of the data set. Through this correlation-based evaluation method, we can not only determine the probability of the client being selected in future tasks, but also reward its effective contribution, thereby improving the reliability and overall quality of the test results.

[0045] In this way, the present invention introduces a crowdsourcing-based model testing framework based on the federated learning method, allowing each client participating in the crowdsourcing to test the model using its own local data set, solving the problem of test set construction. At the same time, a reputation mechanism based on the relevant consistency mechanism is introduced in the evaluation process to ensure that the participating clients provide true and high-quality evaluations, thereby enhancing the credibility and effectiveness of the entire model training process, and ultimately promoting the efficient, reliable and safe operation of the smart grid.

[0046] More specifically, the mathematical method used in step S2 includes the following steps:

[0047] S2-1. Define the recruitment problem: The goal is to determine the minimum number of test clients n to be recruited, so that the probability that the total amount of data used by all test clients is less than m is less than a given threshold θ: Among them, K is the set of selected test clients, τ i Indicates the amount of data used by test client i to execute the model test task. Indicates the total amount of data used by all test clients;

[0048] S2-2. Assume that all random variables τ i obey the same Gaussian distribution, that is, τi ~N(μ,σ 2 ), whose probability density function is Where σ is the standard deviation and μ is the expected value;

[0049] S2-3, Order represents the sum of n random variables. It can be proved that the sum of random variables guided by Gaussian distribution also follows Gaussian distribution, that is, T n It has the characteristics of Gaussian distribution, so it is expressed as: T n ~N(nμ,nσ 2 ), where n is the number of selected test clients, σ ​​and μ are the standard deviation and expected value of the probability density function f(τ0, respectively;

[0050] S2-4. Express the constraints in S2-1 as: in, Denotes a random variable T n The cumulative distribution function of 2 Denotes a random variable T n The expected value and variance of Expressed as: F n (·); This is conducive to obtaining an analytical solution to the above problem;

[0051] S2-5. As n increases, F n The value of (·) is reduced, and the constraint condition in S2-4 is expressed as:

[0052] S2-6. Obtain the expected value μ and variance σ in step S2-5 according to the exploration-utilization method 2 .

[0053] In the exploration-exploitation method, for example, in a federated learning process consisting of a total of R rounds, the first u rounds are the exploration phase, and the remaining Ru rounds are the exploitation phase. In the exploration phase, the data distribution of the test client is understood, and in the subsequent exploitation phase, the corresponding number of participants is selected for testing based on this distribution. The method specifically includes the following steps:

[0054] S2-61, Exploration phase: randomly select l test clients and obtain the amount of data collected by them, denoted as W = {w i |i=1,2,…,l}, where w irepresents the number of samples in the local dataset used by test client i, as reported by the test client itself. It is assumed that the test clients report their data volumes honestly, which is a mild assumption because exaggerating the data volumes does not have any benefit to the client. The expected value of the data reported by l test clients is variance

[0055] S2-62, Utilization stage: Get expected value μ and variance σ 2 Then, fit the cumulative distribution function Then use binary search to determine the value of n; as n increases, nμ and nσ 2 will also increase by 2 The constraint conditions of step S2-5 are brought into play to determine the threshold for satisfying the constraint and the number of participants required.

[0056] The step S3 uses a simple weighting scheme to aggregate the accuracy provided by the test clients, and the weight assigned to each test client is determined according to the amount of data in the data set they provide. The process of step S3 specifically includes the following steps:

[0057] S3-1. Each recruited test client is assigned a set of model tasks generated in step S1 and uploads the corresponding model accuracy η i ;

[0058] S3-2, the data volume set of N test clients is represented as W = {w i |i=1,2,…,N};

[0059] S3-3. The weight assigned to the i-th test client is recorded as λ i , and calculate

[0060] S3-4, the accuracy of each individual is calculated according to its weight λ i The total accuracy is calculated by adding them up, which is expressed as η, that is,

[0061] The relevant consistency mechanism includes the following steps:

[0062] S4-1. Set a set of tasks T = {t i |i=1,2,…,x} is distributed to a test client group A={a i ∣i=1,2,…,k}, where each task represents the model parameter to be evaluated and each test client a i Receive a complete set of tasks, and each task is completed by a different test client; each test client a iUse its local data to test the corresponding model parameters and report the model accuracy η i .

[0063] S4-2, the relevant consistency mechanism is built based on the Δ matrix. Defined as test client a i In the task p The test results on and The correlation between them; the received accuracy is used to calculate the correlation matrix Δ, and the calculation formula of the correlation matrix Δ is:

[0064] in, Indicates test client a i In the task p Results on And another test client a j In the same task p Results on The joint probability of and represents marginal probability;

[0065] When Δ(a,b)>0, it means that there is a positive correlation between the two results; if Δ(a,b)=0, it means that a and b are independent; otherwise, there is a negative correlation between them;

[0066] S4-3. Assuming that there is at least one non-zero element in the matrix, the score function S(·) is defined as follows:

[0067]

[0068] S4-4, Adoption Indicates test client a i For task t p Contributions:

[0069] in, represents the accuracy of client i for task p; For testing client a i In the task q The test results on For testing client a j In the task z The test results on

[0070] S4-5. After calculating the total contribution of each client to the task, the clients are sorted according to the contribution value. The accuracy of clients with contribution values ​​lower than the median will not be included in the aggregation process.

[0071] The method of the present invention allows each participating client, such as a power company in a smart grid, to conduct independent testing using its own local data set, thereby verifying the effectiveness of the model without sharing a test data set. This strategy not only provides a new means of testing the model under the framework of federated learning, but also adds a mechanism for detecting dishonest clients, ensuring the fairness and accuracy of the entire learning process. In the application of smart grids, this means that grid management strategies can be evaluated and optimized without leaking specific energy usage data, thereby improving the safety and efficiency of the power system while protecting user data privacy. This method not only strengthens the security of grid data by enabling each client to verify the effectiveness of the federated learning model on local test data, but also enhances the trust and robustness of the entire system by exposing potential data tampering or incorrect input.

[0072] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.

Claims

1. A federated learning test method for power grid data privacy protection, characterized in that: The following steps are involved: S1. Task generation: The leave-one-out method is used to generate tasks. After each round of federated learning model training, the models of one client are removed each time, and the models of the remaining N-1 clients are aggregated according to their data size to obtain N models. There is also a global aggregation model, which is tested as a model without deleting any clients. A total of N+1 models are used for testing. S2. Recruit test participants. The goal is to determine the minimum number of participants to ensure that the merged local data set can fully support the evaluation requirements of the model accuracy. The recruitment problem is defined and constrained by mathematical methods. The exploration-utilization method is used to solve the recruitment problem. The exploration-utilization method divides the entire federated learning process into an exploration phase and a utilization phase. In the exploration phase, a group of test participants are randomly recruited to understand the differences in data set size and distribution between different participants. After obtaining the expected value and variance information of the data, the utilization phase is entered. According to the data statistical information obtained in the exploration phase, the optimal number of participants that can meet the accuracy requirements of the model quality evaluation is determined; S3, Model Testing and Aggregation. Each participant is responsible for evaluating the performance of the assigned model using their own local dataset according to the task assigned to them, and submitting their evaluation results. A weighting mechanism is introduced to ensure the fairness and credibility of these evaluation results. In the weighting mechanism, the ratio of the data volume of each client to the total data volume is used as a weighting factor to perform weighted processing on the results provided by the client; S4. Test quality assessment: introduce a relevant consistency mechanism and use the relevance score to determine the contribution of each client in the model aggregation, effectively identify low-quality test results, and exclude malicious and unreliable test clients; compare the relevance of the results of the client on the same test task to evaluate the effectiveness of its contribution, and while determining the probability of the client being selected in future tasks, reward its effective contribution, thereby improving the reliability and overall quality of the test results; The mathematical method used in step S2 includes the following steps: S2-1. Define the recruitment problem: The goal is to determine the minimum number of test clients n to be recruited, so that the probability that the total amount of data used by all test clients is less than m is less than a given threshold θ: Among them, K is the set of selected test clients, τ i Indicates the amount of data used by test client i to execute the model test task. Indicates the total amount of data used by all test clients; S2-2. Assume that all random variables τ i obey the same Gaussian distribution, that is, τ i ~N(μ,σ 2 ), whose probability density function is Where σ is the standard deviation and μ is the expected value; S2-3, Order represents the sum of n random variables, T n It has the characteristics of Gaussian distribution, expressed as: T n ~N(nμ,nσ 2 ), where n is the number of selected test clients, σ ​​and μ are the standard deviation and expected value of the probability density function f(τ), respectively; S2-4. Express the constraints in S2-1 as: in, Denotes a random variable T n The cumulative distribution function of 2 Denotes a random variable T n The expected value and variance of Expressed as: F n (·); S2-5. As n increases, F n The value of (·) is reduced, and the constraint condition in S2-4 is expressed as: S2-6. Obtain the expected value μ and variance σ in step S2-5 according to the exploration-utilization method 2 ; The exploration-exploitation method comprises the following steps: S2-61, Exploration phase: randomly select l test clients and obtain the amount of data collected by them, denoted as W = {w i |i=1,2,…,l}, where w i represents the number of samples in the local dataset used by test client i, reported by the test client itself; the expected value of the data reported by l test clients is variance S2-62, Utilization stage: Get expected value μ and variance σ 2 Then, fit the cumulative distribution function Then use binary search to determine the value of n; as n increases, nμ and nσ 2 will also increase by 2 Bring in the constraints of step S2-5 to determine the thresholds that satisfy the constraints and determine the number of participants required; The relevant consistency mechanism includes the following steps: S4-1. Set a set of tasks T = {t i |i=1,2,…,x} is distributed to a test client group A={a i ∣i=1,2,…,k}, where each task represents the model parameter to be evaluated and each test client a i Receive a complete set of tasks, and each task is completed by a different test client; each test client a i Use its local data to test the corresponding model parameters and report the model accuracy η i . S4-2, the relevant consistency mechanism is built based on the Δ matrix. Defined as test client a i In the task p The test results on and The correlation between them; the received accuracy is used to calculate the correlation matrix Δ, and the calculation formula of the correlation matrix Δ is: in, Indicates test client a i In the task p Results on And another test client a j In the same task p Results on The joint probability of and represents marginal probability; When Δ(a,b)>0, it means that there is a positive correlation between the two results; if Δ(a,b)=0, it means that a and b are independent; otherwise, there is a negative correlation between them; S4-3. Assuming that there is at least one non-zero element in the matrix, the score function S(·) is defined as follows: S4-4, Adoption Indicates test client a i For task t p The contribution will It is expressed as: in, represents the accuracy of client i for task p; S4-5. After calculating the total contribution of each client to the task, the clients are sorted according to the contribution value. The accuracy of clients with contribution values ​​lower than the median will not be included in the aggregation process.

2. According to claim 1, a federated learning test method for power grid data privacy protection is characterized in that: Step S3 includes the following specific steps: S3-1. Each recruited test client is assigned a set of model tasks generated in step S1 and uploads the corresponding model accuracy η i ; S3-2, the data volume set of N test clients is represented as W = {w i |i=1,2,…,N}; S3-3. The weight assigned to the i-th test client is recorded as λ i , and calculate S3-4, the accuracy of each individual is calculated according to its weight λ i The total accuracy is calculated by adding them up, which is expressed as η, that is,

Citation Information

Patent Citations

  • Crowd-sourcing crowd-funding incentive method for indoor positioning federated learning

    CN115271092A

  • Federal learning security evaluation method

    CN116304598A

  • Improved transverse synchronous federated learning aggregation acceleration method

    CN116629350A

  • Federal learning double-layer incentive mechanism with malicious participant attack detection

    CN116723017A

  • Federal learning method and system

    CN116861239A