Image classification method based on multi-objective optimization federated learning

By incorporating data cost as the optimization goal in federated learning and improving the NSGA-III algorithm, the problems of high data cost and low model efficiency in the traditional federated learning framework are solved, achieving a more balanced optimization effect, and improving model performance and communication efficiency. .

CN118570520APending Publication Date: 2024-08-30NAT UNIV OF DEFENSE TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410543969.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The traditional federated learning framework has problems such as high communication cost, large amount of calculation, and unstable communication in practical applications. Especially when companies and enterprises participate, the data cost is high and has no direct correlation with the model contribution. There are few existing studies.

Method used

A multi-objective optimization model is adopted, data cost is included as the optimization goal, and the NSGA-III algorithm is improved through the best point set strategy, and a federated learning method based on multi-objective optimization is designed to optimize model accuracy, communication cost, model performance distribution variance and data cost. .

Benefits of technology

It achieves balanced optimization of federated learning, reduces data costs, improves model performance and communication efficiency, and proves the effectiveness and superiority of the improved algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570520A
    Figure CN118570520A
Patent Text Reader

Abstract

The invention discloses an image classification method based on federated learning. The image classification method comprises the following steps: acquiring a to-be-classified image set; the convolutional neural network is used as a neural network model for federal learning multi-objective optimization; in the neural network model, the model accuracy, the communication cost, the fairness and the data cost of balanced federated learning are taken as targets, and hyper-parameters of the neural network model are optimized; and classifying the image set by using the trained neural network. According to the method, the population initialization mode in the NSGA-III algorithm is improved by using the good point set strategy, so that the initial population obtained by population initialization is uniformly and widely distributed in the solution space, and the optimization capability and the optimization precision are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to an image classification method based on multi-objective optimization federated learning. Background Art

[0002] Image data may contain sensitive information, such as personal identity, privacy scenarios, etc., so it is particularly important in image classification and recognition. Federated learning allows data to remain locally, avoiding centralized storage and transmission of data, thereby reducing the risk of data leakage. Through federated learning, model training can be performed while protecting user privacy. Moreover, federated learning allows multiple participants to jointly train models without sharing original data. This means that a large amount of data distributed on various devices or nodes can be used to train the model, improving computing efficiency and model performance. Federated learning allows different organizations or individuals to collaborate without exposing original data and jointly improve model performance. This is particularly beneficial for multi-party cooperation scenarios in image recognition and classification tasks. Figure 1 It is a diagram of the training process of federated learning.

[0003] In practical applications, the traditional federated learning framework has some problems that need to be solved, such as high communication costs, large computational workload, unstable communication, etc. At present, many literatures have conducted in-depth research on single problems, and some have considered these problems comprehensively. However, current research is more focused on the study of the federated learning method itself, and less consideration is given to the problems encountered by federated learning in practical applications. Google originally proposed federated learning for the purpose of applying it to a large number of mobile device users to build models. Nowadays, the application scenarios of federated learning have gradually been extended from individuals to companies and enterprises, such as banks and hospitals. When companies and enterprises become the main participants in federated learning, a lot of costs will be added to the federated learning training framework. This is because when companies and enterprises, as participants, use local privacy data for training, they will not provide data for free and use local devices for training like mobile device users, but will charge a certain fee. At the same time, the fees charged by participants have no direct correlation with their contribution to the overall model, and the cost does not represent the contribution. Existing research has little research in this area, but this is an issue that cannot be ignored in the process of promoting federated learning from theory to practical application. Summary of the invention

[0004] In response to the above problems, this application defines a multi-objective optimization model and for the first time incorporates data cost into the optimization target, while taking model accuracy, communication cost, model performance distribution variance, and data cost as optimization targets. This application uses the good point set strategy initialization to improve the third-generation non-dominated sorting genetic algorithm (NSGA-III) and designs an NSGA-III algorithm based on the good point set strategy initialization improvement. Experimental results show that this application can perform balanced optimization on the federated learning of the four objectives.

[0005] To achieve the above purpose, the image classification method based on multi-objective optimization federated learning disclosed in this application includes the following steps:

[0006] Get a collection of images to be classified;

[0007] Convolutional neural network as a neural network model for federated learning multi-objective optimization;

[0008] In the neural network model, the hyperparameters of the neural network model are optimized with the goal of balancing the accuracy, communication cost, fairness and data cost of the federated learning model;

[0009] The steps of federated learning multi-objective optimization are as follows: use the best point set strategy to initialize the population, generate reference points after non-dominated sorting, and generate offspring individuals by selecting crossover mutation from the first generation parent population;

[0010] Calculate the target values ​​of the model accuracy, communication cost, fairness and data cost of the offspring, merge the parent and offspring populations and perform non-dominated sorting, evaluate each population, select a new parent population, repeat until the iteration stop condition is met, output the optimal solution, and obtain the trained neural network;

[0011] Use the trained neural network to classify a collection of images.

[0012] Furthermore, the mathematical model of model accuracy, communication cost, fairness and data cost of federated learning is as follows:

[0013]

[0014] Where v is all decision variables, F(v) is the objective function of the model, and the model has four minimization objectives, including minimizing the global model test error rate f1, minimizing the communication cost f2, minimizing the global model accuracy distribution variance f3, and minimizing the data cost f4;

[0015] η is the learning rate, B is the training batch, C is the participant ratio and neural network structure parameters, Conv is the number of convolution layers, ks is the convolution kernel size, C num is the number of convolution kernel channels, Max num is the total number of convolution kernel channels.

[0016] Furthermore, the first objective function f1 is to minimize the global model test error rate. The specific calculation formula is as follows:

[0017] E = 1-A,

[0018] a k is the model test accuracy of the kth participant, E is the target global model test error rate f1;

[0019] The second objective function f2 is to minimize the communication cost, f2 is expressed as K is the total number of clients, C is the proportion of participants participating in each round, and σ is the size of the model parameters;

[0020] The third objective function f3 is to minimize the variance of the model accuracy distribution

[0021] The fourth objective function f4 is to minimize the data cost, f4 is expressed as N is the total number of participants in this round N = K·C, is the data cost of the nth participant.

[0022] Furthermore, the steps for evaluating each population are as follows:

[0023] On the federated learning server, perform the following steps:

[0024] Initialize global model parameters w0;

[0025] For each t, ​​select p = max(K·C, 1) participants to form C r , C r is the set of participants;

[0026] Update each participant in parallel wt is the model parameter of the global model, is the model parameter of the nth participant, ρ n is the model parameter weight of the nth participant;

[0027] Calculate the target f1 global model test error rate E;

[0028] Calculate the target f2 global model test accuracy distribution variance V;

[0029] Calculate the communication cost Cost of target f3;

[0030] Calculate the target f4 data cost Price;

[0031] On the federated learning client, perform the following steps:

[0032] w t Assign to w n , w n is the model parameter of the nth participant;

[0033] For each epoch, w is updated in each batch training. n , η is the learning rate, L k is the loss function, and b is the data involved in this training;

[0034] After the training is completed, w n Transmit to the server.

[0035] The beneficial effects of this application are as follows:

[0036] (1) For the first time, the data value of participants is incorporated into the optimization goal of federated learning, and a multi-objective optimization model of federated learning is constructed by combining the three goals of global model accuracy, communication cost, and model accuracy distribution variance.

[0037] (2) The strategy of initializing the good point set is introduced into the NSGA-III algorithm to improve the performance of the NSGA-III algorithm.

[0038] (3) A large number of comparative experiments have been conducted to demonstrate the effectiveness of this application in the multi-objective optimization problem of federated learning, and at the same time, the superiority of the algorithm of this application compared to the original algorithm has been demonstrated. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 Federated learning training process;

[0040] Figure 2 Flowchart of the algorithm of the present invention. DETAILED DESCRIPTION

[0041] The present invention is further described below in conjunction with the accompanying drawings, but the present invention is not limited in any way. Any changes or substitutions made based on the teachings of the present invention belong to the protection scope of the present invention.

[0042] Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0043] The technical solution provided in the embodiments of the present application relates to machine learning technology of artificial intelligence, which is specifically introduced and explained through the following embodiments.

[0044] Before introducing the embodiments of the present application, some terms involved in the present application are first explained.

[0045] 1. NSGA-III algorithm (Non-dominated sorted genetic algorithm-III) is an evolutionary multi-objective optimization algorithm based on the second generation non-dominated sorting genetic algorithm (NSGA-II). NSGA-III algorithm introduces the reference point mechanism based on NSGA-II algorithm, emphasizing that the population members are non-dominated and close to the provided reference point. NSGA-II algorithm mainly relies on crowding for sorting, and does not perform well in an environment with more than 3 optimization objectives, but NSGA-III is significantly better than NSGA-II algorithm in multi-dimensional objective space.

[0046] 2. The concept of good point set originated from Hua Luogeng, a famous Chinese mathematician. The core idea of ​​good point set is to select a group of balanced and coordinated individuals in the population initialization stage to maintain the diversity of the population and improve the quality of the optimization solution, effectively balancing the ability to explore and utilize the search space. The construction of good point set takes into account the limit properties of the points in the set. Each point is a limit point and is unique, and no duplication is allowed. This means that the individuals selected when the population is initialized are more likely to be close to the optimal solution area, which is conducive to the algorithm converging to the optimal solution faster.

[0047] The basic definition of the good point set is: Assume G s is a unit cube in s-dimensional Euclidean space, if r∈G s , there exists a point set P n (i)={(r1i1, r2i2, r3i3,...r n i n ), i = 1, 2, 3, ... n}, its deviation satisfy Then it is called P n(i) is the set of good points, r represents the good point. C(γ, ε) is a constant, which is only related to r and ε, n represents the number of samples, p is satisfied The smallest prime number of .

[0048] This application studies how to balance the model accuracy, communication cost, fairness and data cost of federated learning in image classification and recognition, which is a typical multi-objective optimization problem. Therefore, a four-objective optimization mathematical model of federated learning is constructed, and the model expression is shown in formula (3):

[0049]

[0050] v is all decision variables, F(v) is the objective function of the model, and this model has four minimization objectives, including minimizing the global model test error rate f1, minimizing the communication cost f2, minimizing the global model accuracy distribution variance f3, and minimizing the data cost f4. The four minimization functions comprehensively consider the balance between the effectiveness, fairness, communication cost, and data cost of the federated learning model.

[0051] The optimization parameters set in this application include learning rate η, training batch B, participant ratio C and neural network structure parameters. The neural network selects convolutional neural network (CNN). The optimization parameters of the neural network include the number of convolution layers Conv, the convolution kernel size ks, and the number of convolution kernel channels C num .

[0052] The first objective function f1 is to minimize the global model test error rate. The evaluation of a model's performance mainly depends on the accuracy of the model test. The lower the model's error rate, the better the model's performance. The specific calculation formula is shown in formula (4), a k is the model test accuracy of the kth participant, and E is the target global model test error rate f1.

[0053] E = 1-A,

[0054] The second objective function f2 is to minimize the communication cost. In the framework of federated learning, the communication cost is often very high. Reducing the communication cost will improve the sustainability of federated learning. In federated learning training, the main body of interaction between the client and the central server is the model parameters, so the communication cost is directly related to the model parameters of each client. Objective f3 can be expressed as K is the total number of clients, C is the proportion of participants participating in each round, and σ is the size of the model parameters.

[0055] The third objective function f3 is to minimize the variance of the model accuracy distribution Due to the different performance of participants' devices, the final global model will often favor some devices with better performance, resulting in a large gap in model accuracy between participants.

[0056] The fourth objective function f4 is to minimize the data cost. In actual application scenarios, due to the privacy of local data, a certain fee is generally required when calling the data of each participant for model training. However, the fee is not directly related to the client's contribution to the global model. Objective f4 can be expressed as N is the total number of participants in this round N = K·C, is the data cost of the nth participant.

[0057] The optimization model in this application is a four-objective optimization problem. The NSGA-III algorithm is more suitable for the federated learning multi-objective optimization problem of this application. Therefore, this application adopts the NSGA-III algorithm.

[0058] In the federated learning multi-objective optimization model of this application, the solution space is large, the population size is small, and the randomly distributed initialized population is difficult to be evenly distributed in the solution space, which will affect the population diversity. Before optimization, the specific location of the optimal solution is unknown, so the idea of ​​uniform distribution can be adopted to evenly distribute the initial value of the population within the allowable range, so that the first generation of solutions can be as close to the optimal value as possible, thereby improving the optimization accuracy. Therefore, this application uses the good point set strategy to improve the population initialization method, and the improved algorithm is named GPNSGA-III algorithm.

[0059] The GPNSGA-III algorithm first uses the good point set strategy to initialize the population, that is, the first generation parent population, and generates offspring individuals by selecting crossover mutation. Then the four target values ​​of the offspring are calculated, the parent and offspring populations are mixed and non-dominated sorting is performed, and a new parent population is selected, and the process is repeated until the iteration stop condition is met. The specific flow chart of the GPNSGA-III algorithm is as follows Figure 2 As shown, the pseudo code for evaluating each population is shown in Algorithm 1.

[0060] Algorithm 1 Population solution evaluation algorithm in GPNSGA-III

[0061] Input: (K, η, B, C, Conv, ks, C num )

[0062] Output: 4 objective function values

[0063] 1. On the server side:

[0064] 2. Initialize global model parameters w0

[0065] 3. for t = 1, 2, ... T do

[0066] 4.Select p=max(K·C,1)participants as C r

[0067] 5.for each n∈C r in parallel do

[0068] 6.update

[0069] 7.end tor

[0070] 8.end for

[0071] 9. Calculate the target f1 global model test error rate E

[0072] 10. Calculate the target f2 global model test accuracy distribution variance V

[0073] 11. Calculate the communication cost of target f3

[0074] 12. Calculate the target f4 data cost Price

[0075] 13. For the client:

[0076] 14.w n =w t

[0077] 15.for e=1,2,…E do

[0078] 16. for batch b∈B do

[0079] 17.

[0080] 18.end for

[0081] 19.end for

[0082] 20.upload w n to server

[0083] The following will use different data sets and data distributions to evaluate the GPNSGA-III algorithm and the NSGA-III algorithm, and compare the performance of the two algorithms.

[0084] This application selects the public datasets MNIST dataset and CIFAR-10 dataset as experimental datasets. The MNIST dataset has a total of 70,000 images, all of which are 28*28 pixel grayscale images, each containing a handwritten digit, of which 60,000 are used as training sets and 10,000 are used as test sets. The CIFAR-10 dataset has a total of 60,000 images, each of which is a 32*32 pixel RGB image, of which 50,000 are used as training sets and 10,000 are used as test sets.

[0085] Since the data faced by federated learning in most cases are not independent and identically distributed, this application sets up two data scenarios, namely independent and identically distributed scenarios and non-independent and identically distributed scenarios. The non-independent and identically distributed scenario is to divide the data set into multiple clients and assign a specific type of data sample to each client.

[0086] This application selects convolutional neural network (CNN) as the neural network model for federated learning multi-objective optimization, and the total number of clients in the experimental setting is K = 100. The specific optimization parameter settings are shown in Table 1. The population size is set to 20, the learning rate range is 0.01-0.2, the training batch size is set to 1-64, the minimum number of CNN convolution layers is 1 and the maximum is 4, the maximum number of kernel channels is 128, and the convolution kernel size is set to 3 or 5.

[0087] Regarding the data price of each client in federated learning, this application randomly assigns an integer in the range of 0 to 100 to each client as the data usage price of the client, thereby simulating the situation where the data prices of each client are different.

[0088] Table 1 Experimental parameter settings

[0089] Parameter name Population size 20 Learning Rate 0.01~0.2 Training batches 1~64 Client participation ratio 0.1~0.5 Number of CNN convolutional layers 1~4 CNN convolution kernel size 3 or 5 Number of CNN convolution kernel channels 1~128

[0090] First, the performance of the NSGA-III algorithm on the four-objective optimization problem of federated learning is tested on the MNIST and CIFAR-10 datasets. The NSGA-III algorithm is used to compare and test two multi-objective optimization problem models. The optimization objectives in the first multi-objective optimization problem model include the global model test error rate, communication cost, and global model test accuracy distribution variance. This model does not take data cost as an optimization objective, and is a three-objective optimization model. The mathematical model of the second multi-objective optimization problem is the objective model of this paper, which is a four-objective optimization model.

[0091] On the IID and Non-IID data distributions of the MNIST and CIFAR-10 datasets, the same experimental parameters were set, and the NSGA-III algorithm was used to optimize and train the two multi-objective optimization models. The results are compared, as shown in Table 2.

[0092] Table 2 Comparison of training results between three-objective optimization model and four-objective optimization model

[0093]

[0094] Table 2 shows the minimum values ​​of a single objective obtained after training for the two models. The minimum value of a single objective can reflect the optimization ability of the algorithm. From the results in Table 2, it can be seen that since the optimization objectives increased from three to four, while the maximum number of iterations remained unchanged, the minimum test rate, minimum distribution variance, and minimum communication cost results of the four-objective optimization model did not reach the optimal level, but the results were not much different. At the same time, in terms of minimum data cost, all results of the four-objective optimization model are far better than those of the three-objective optimization model, proving that the NSGA-III algorithm has significant results in optimizing the minimum data cost.

[0095] In the comparison experiment between GPNSGA-III and NSGA-III, the multi-objective optimization algorithm was evaluated from the hypervolume index (HV), Spacing value and four optimization target values. The hypervolume index refers to the volume of the area in the target space surrounded by the non-dominated solution set obtained by the algorithm and the reference point. The larger the HV value, the better the overall performance of the algorithm. The Spacing value measures the standard deviation of the minimum distance from each solution to other solutions. The smaller the Spacing value, the more uniform the solution set.

[0096] Similarly, the same experimental parameters are set to conduct comparative experiments on the GPNSGA-III algorithm and the NSGA-III algorithm on the MNIST and CIFAR-10 datasets to study the effectiveness of the initialization of the good point set. Table 3 shows the specific results of each evaluation target obtained by the GPNSGA-III algorithm and the NSGA-III algorithm after training.

[0097] Table 3 Training results of GPNSGA-III algorithm and NSGA-III algorithm

[0098]

[0099] From Table 3, we can see that GPNSGA-III performs much better than NSGA-III on the MNIST dataset with two data distributions and the CIFAR-10 dataset with Non-IID data distribution, and its performance on the CIFAR-10 dataset with IID data distribution is basically similar to that of NSGA-III. This proves that the average quality of the Pareto solution obtained by the GPNSGA-III algorithm is much higher than that of the NSGA-III algorithm.

[0100] The results in Table 3 show that the HV value obtained by the GPNSGA-III algorithm is basically greater than that of the NGSA-III algorithm, and the Spacing value is basically less than that of the NSGA-III algorithm. Combining the performance of the two algorithms on the two multi-objective optimization indicators, it is shown that the solution set obtained by the GPNSGA-III algorithm is not only better in quality than the NSGA-III algorithm, but also has a more uniform distribution of solutions than the NSGA-III algorithm.

[0101] Similar to Table 2, Table 3 also lists the minimum values ​​of the four optimization objectives of the two algorithms after training to reflect the optimization performance of the algorithms. From the results in the table, it can be seen that the single objective value obtained by the GPNSGA-III algorithm is mostly better than the result of the NSGA-III algorithm, indicating that the multi-objective optimization ability of the GPNSGA-III algorithm is stronger than that of the NSGA-III algorithm.

[0102] Based on the performance evaluation results in the above three aspects, it can be seen that the performance of the GPNSGA-III algorithm proposed in this application is better than that of the NSGA-III algorithm in the multi-objective optimization problem of federated learning.

[0103] The beneficial effects of this application are as follows:

[0104] This application proposes an improved NSGA-III algorithm using a good point set strategy and uses the algorithm to solve the problem of multi-objective optimization of federated learning. The algorithm uses the good point set strategy to improve the population initialization method in the NSGA-III algorithm, so that the initial population obtained by population initialization is evenly and widely distributed in the solution space, improving the optimization ability and optimization accuracy. In the multi-objective optimization problem of federated learning, the client data cost is included in the optimization target for the first time, and together with the global model error rate, the global model distribution variance and the communication cost, it constitutes the four-objective optimization problem of federated learning. Through experiments, the scalability of the NSGA-III algorithm framework is first proved, and the superiority of the GPNSGA-III algorithm over the NSGA-III algorithm is proved.

[0105] As used herein, the word "preferred" is intended to be used as an example, instance, or illustration. Any aspect or design described herein as "preferred" is not necessarily to be construed as being more advantageous than other aspects or designs. On the contrary, the use of the word "preferred" is intended to present concepts in a specific way. The term "or" as used in this application is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless otherwise specified or clear from the context, "X uses A or B" means any one of the naturally included permutations. That is, if X uses A; X uses B; or X uses both A and B, then "X uses A or B" is satisfied in any of the foregoing examples.

[0106] Moreover, although the present disclosure has been shown and described with respect to one or implementations, those skilled in the art will think of equivalent variations and modifications based on the reading and understanding of this specification and the accompanying drawings. The present disclosure includes all such modifications and variations, and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-mentioned components (such as elements, etc.), the terms used to describe such components are intended to correspond to any component (unless otherwise indicated) that performs the specified function of the component (such as it is functionally equivalent), even if the structure is not equivalent to the disclosed structure of the function in the exemplary implementation of the present disclosure shown herein. In addition, although the specific features of the present disclosure have been disclosed with respect to only one of several implementations, such features can be combined with one or other features of other implementations that may be desired and advantageous for a given or specific application. Moreover, insofar as the terms "including", "having", "containing" or their variations are used in specific embodiments or claims, such terms are intended to be included in a manner similar to the term "comprising".

[0107] The functional units in the embodiments of the present invention may be integrated into a processing module, or each unit may exist physically separately, or multiple or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc. The above-mentioned devices or systems may execute the storage method in the corresponding method embodiment.

[0108] To sum up, the above embodiment is an implementation mode of the present invention, but the implementation mode of the present invention is not limited by the embodiment. Any other changes, modifications, substitutions, combinations, and simplifications that deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. An image classification method based on multi-objective optimization federated learning, characterized in that: The following steps are involved: Get a collection of images to be classified; Convolutional neural network as a neural network model for federated learning multi-objective optimization; In the neural network model, the hyperparameters of the neural network model are optimized with the goal of balancing the accuracy, communication cost, fairness and data cost of the federated learning model; The steps of federated learning multi-objective optimization are as follows: use the best point set strategy to initialize the population, generate reference points after non-dominated sorting, and generate offspring individuals by selecting crossover mutation from the first generation parent population; Calculate the target values ​​of the model accuracy, communication cost, fairness and data cost of the offspring, merge the parent and offspring populations and perform non-dominated sorting, evaluate each population, select a new parent population, repeat until the iteration stop condition is met, output the optimal solution, and obtain the trained neural network; Use the trained neural network to classify a collection of images.

2. The image classification method based on multi-objective optimization federated learning according to claim 1, characterized in that: The mathematical model of model accuracy, communication cost, fairness and data cost of federated learning is as follows: Where v is all decision variables, F(v) is the objective function of the model, and the model has four minimization objectives, including minimizing the global model test error rate f1, minimizing the communication cost f2, minimizing the global model accuracy distribution variance f3, and minimizing the data cost f4; η is the learning rate, B is the training batch, C is the participant ratio and neural network structure parameters, Conv is the number of convolution layers, ks is the convolution kernel size, C num is the number of convolution kernel channels, Max num is the total number of convolution kernel channels.

3. The image classification method based on multi-objective optimization federated learning according to claim 1, characterized in that: The first objective function f1 is to minimize the global model test error rate. The specific calculation formula is as follows: a k is the model test accuracy of the kth participant, E is the target global model test error rate f1; The second objective function f2 is to minimize the communication cost, f2 is expressed as K is the total number of clients, C is the proportion of participants participating in each round, and σ is the size of the model parameters; The third objective function f3 is to minimize the variance of the model accuracy distribution The fourth objective function f4 is to minimize the data cost, f4 is expressed as N is the total number of participants in this round N = K·C, is the data cost of the nth participant.

4. The image classification method based on multi-objective optimization federated learning according to claim 3 is characterized in that: The steps for evaluating each population are as follows: On the federated learning server, perform the following steps: Initialize global model parameters w0; For each t, ​​select p = max(K·C,1) participants to form C r , C r is the set of participants; Update each participant in parallel w t are the model parameters of the global model, is the model parameter of the nth participant, ρ n is the model parameter weight of the nth participant; Calculate the target f1 global model test error rate E; Calculate the target f2 global model test accuracy distribution variance V; Calculate the communication cost Cost of target f3; Calculate the target f4 data cost Price; On the federated learning client, perform the following steps: w t Assign to w n , w n is the model parameter of the nth participant; For each epoch, w is updated in each batch training. n , η is the learning rate, L k is the loss function, and b is the data involved in this training; After the training is completed, w n Transmit to the server.

Citation Information

Patent Citations

  • Indoor three-dimensional positioning method for optimizing GRNN based on improved sparrow algorithm

    CN114690117A

  • Multi-target federated learning evolution method based on improved NSGA-III

    CN114819181A

  • Power terminal multi-task federal learning method for power internet of things

    CN115049522A

  • Federal learning method and system for regional distributed power generation prediction

    CN116720574A

  • Multi-task hyperparameter optimization method for deep neural network, and device

    WO2020252766A1