Federal learning method and system based on hierarchical clustering
A learning method and hierarchical clustering technology, applied in the fields of instruments, character and pattern recognition, computer components, etc., can solve the problem of unsatisfactory resistance to malicious attacks, and achieve the effect of resisting attacks and reducing the impact.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0074] This embodiment proposes a federated learning method based on hierarchical clustering, refer to Figure 1-4 , including the following steps:
[0075] S1: Clustering the client: According to the local model uploaded by the client received by the server, the client is clustered, and the client is divided into k categories, where k is a preset positive integer; the specific steps include:
[0076] S1.1: Calculate the Euclidean distance between local models uploaded by s clients to obtain the corresponding distance matrix D;
[0077] S1.2: For each client, select the closest client to the mth client according to the distance matrix D clients as a neighbor set Neighborhood(m); where m=1, 2, . . . , k;
[0078] S1.3: Calculate the similarity between every two clients among the s clients, and obtain the similarity matrix Sim, where the similarity between every two clients refers to the division of the number of intersections of the neighbors of the two clients by which i...
Embodiment 2
[0115] This embodiment proposes a hierarchical clustering-based federated learning system, which is applied to the hierarchical clustering-based federated learning method proposed in Embodiment 1. like Figure 5 Shown is a schematic diagram of the hierarchical clustering-based federated learning system of this embodiment.
[0116] A federated learning system based on hierarchical clustering proposed in this embodiment includes:
[0117] The clustering module is used to perform clustering processing on the client according to the partial model uploaded by the client received by the server, and divide the client into k classes; the client class is transmitted to the selection module;
[0118] The selection module is used to select representatives of k clusters in each cluster; the selected representatives are transmitted to the calculation weight module;
[0119] The global model update module is used to recalculate the weight of the representatives selected by the selection m...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


