Federal learning-based target identification method, apparatus and device, and medium

By adopting the federated learning method on multiple remote sensing devices and using the YOLOv8 algorithm and the FedAvg algorithm to aggregate model parameters, the problem of accuracy limitations caused by the diversity of data changes in target recognition is solved, the recognition accuracy is improved and data privacy protection is achieved. .

CN118864818APending Publication Date: 2024-10-29AIR FORCE UNIV PLA
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410959624.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology has limitations in recognition accuracy due to the diversity and complexity of data changes in target recognition.

Method used

Using a method based on federated learning, image data sets are obtained through multiple remote sensing devices, the YOLOv8 algorithm is used to train the preliminary model, and the FedAvg algorithm is used to aggregate model parameters under the horizontal federated learning framework to form a full set of model parameters and update the final goal of each device. Recognition models to improve recognition accuracy.

Benefits of technology

It improves the accuracy of target recognition, makes full use of the computing power of each device, reduces the diversity and complexity of data changes, and solves the problems of data islands and privacy protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864818A_ABST
    Figure CN118864818A_ABST
Patent Text Reader

Abstract

The invention discloses a federated learning-based target identification method, device and equipment and a medium, and relates to the technical field of artificial intelligence and computer vision recognized.The method comprises the following steps: firstly, acquiring image information of a target by using optical remote sensing equipment, and performing local training by using a YOLOv8 target algorithm to obtain a preliminary target identification model corresponding to each remote sensing equipment; under a transverse federated learning framework, a FedAvg aggregation algorithm is utilized to aggregate model parameters in the preliminary target recognition model to form full-quantity model parameters, and an average value of the full-quantity model parameters is calculated to obtain global model parameters, which is different from a traditional centralized machine learning framework, model aggregation and data minimization are realized through federated learning, and the overall model parameters are optimized. Then, each remote sensing device updates a local target recognition model by using global model parameters to realize target recognition; according to the method, the target can be quickly and accurately identified in the distributed environment, data leakage is avoided, and the calculation amount of the central server is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence and computer vision recognition technology, and in particular to a target recognition method, device, equipment and medium based on federated learning. Background Art

[0002] In target recognition, radar can identify the type of target by analyzing information such as the Doppler frequency shift of the electromagnetic wave signal scattered by the target; for example, when the target speed is high, the Doppler frequency shift of the echo is large; but in reality, the radar itself has a certain shielding angle, so there are certain defects in the recognition of targets within the radar shielding angle; therefore, the current solution to this problem is to monitor the low-altitude environment through the installation of optical and thermal sensors to detect targets in time, and identify the target objects contained therein through image fusion processing and target recognition.

[0003] At present, the most mainstream method for identifying target objects in images is the deep learning algorithm, whose main feature is the use of convolutional neural network (CNN) for feature extraction and classification; convolutional neural network is the most commonly used network structure in deep learning, which can automatically extract features in images and convert them into data that can be understood by computers; convolutional neural network includes convolution layer, pooling layer, fully connected layer, etc., among which the convolution layer is the most core part; the convolution layer can extract local features in the image and retain spatial information. Its advantage is that it has good feature extraction and classification performance, and can be applied to image classification, target detection, face recognition and other fields.

[0004] For image recognition, it directly extracts the feature information of the image based on the original image; the feature description of the image is the following four aspects: the color feature of the image, the geometric feature of the image, the texture feature of the image, and the local feature of the image; for the convolution operation of remote sensing images, the image is actually composed of various pixel points, and each pixel can be expressed as a triplet of R, G, and B pixel values, so that the image can participate in the mathematical convolution operation of the image in the form of a matrix, and the image is processed and its features are extracted by providing a special convolution kernel, and the convolutional neural network can display complex information in a mathematical way, and the extracted feature information is used through a classification network to realize the classification of feature points; although it has made certain achievements in image processing and feature extraction; however, due to the diversity and complexity of the collected target data, the current method has certain limitations in target recognition accuracy. Summary of the invention

[0005] The embodiments of the present invention provide a target recognition method, device, equipment and medium based on federated learning, which can solve the problem in the prior art that the current methods have certain limitations in target recognition accuracy due to the diversity and complexity of the collected target data.

[0006] The embodiment of the present invention provides a target recognition method based on federated learning, comprising the following steps:

[0007] Multiple remote sensing devices respectively acquire multiple remote sensing images of corresponding targets, and respectively form image data sets of corresponding targets;

[0008] Each remote sensing device uses the YOLOv8 algorithm to train the corresponding image data set to obtain a preliminary target recognition model corresponding to each remote sensing device;

[0009] In the horizontal federated learning framework, the FedAvg aggregation algorithm is used to aggregate the model parameters in each preliminary target recognition model to obtain the full model parameters; the average value of the full model parameters is calculated to obtain the global model parameters;

[0010] Each remote sensing device updates the corresponding preliminary target recognition model using the global model parameters, and each remote sensing device obtains the corresponding final target recognition model and uses the corresponding final target recognition model to recognize the target in the corresponding image data set.

[0011] Preferably, the forming of image data sets corresponding to the targets respectively comprises the following steps:

[0012] Using sensors carried by multiple remote sensing devices, multiple corresponding target remote sensing images are obtained respectively;

[0013] The VOC-Lable annotation software is used to perform data cleaning, denoising, alignment and calibration on the target remote sensing images to obtain the annotated target remote sensing images, and to form image datasets corresponding to the targets of each remote sensing device.

[0014] Preferably, the training of the corresponding image data set using the YOLOv8 algorithm includes:

[0015] The YOLOv8 algorithm adopts the CSPDarknet network architecture, and introduces the FocalLoss loss function and the MaskRCNN module between the convolutional layers of the YOLOv8 algorithm, and fuses the FocalLoss loss function and the MaskRCNN module with the convolutional layers of the YOLOv8 algorithm to form an improved YOLOv8 algorithm;

[0016] The improved YOLOv8 algorithm is used to train the corresponding image dataset.

[0017] Preferably, obtaining the global model parameters includes:

[0018] After receiving the model parameters from each remote sensing device, the central server uses the federated aggregation algorithm to update the model parameters;

[0019] The FedAvg algorithm updates model parameters no longer through model compression. Instead, it uploads the full parameters of the local model YOLOv8 of each remote sensing device to the central server and then averages the uploaded full model parameters to obtain the updated global model parameters.

[0020] Preferably, after obtaining the updated global model parameters, the central server sends the updated global model parameters to each remote sensing device, and completes the update aggregation of the model parameters on each remote sensing device.

[0021] The embodiment of the present invention further provides a target recognition device based on federated learning, comprising:

[0022] Image acquisition module: multiple remote sensing devices respectively acquire multiple remote sensing images of corresponding targets to form image data sets of corresponding targets;

[0023] In the local model training module, each remote sensing device uses the YOLOv8 algorithm to train the corresponding image data set to obtain the preliminary target recognition model corresponding to each remote sensing device;

[0024] The model parameter aggregation module aggregates the model parameters in each preliminary target recognition model using the FedAvg aggregation algorithm under the horizontal federated learning framework to obtain the full model parameters; the average value of the full model parameters is calculated to obtain the global model parameters;

[0025] In the target recognition module, each remote sensing device updates the corresponding preliminary target recognition model using the global model parameters, and each remote sensing device obtains the corresponding final target recognition model and uses the corresponding final target recognition model to recognize the target in the corresponding image data set.

[0026] An embodiment of the present invention further provides an electronic device, including a memory and a processor;

[0027] The memory is used to store computer programs;

[0028] The processor is used to implement the steps of the target recognition method based on federated learning as described above when executing the computer program stored in the memory.

[0029] An embodiment of the present invention also provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the steps of a target recognition method based on federated learning as described above.

[0030] The embodiments of the present invention provide a target recognition method, device, equipment and medium based on federated learning. Compared with the prior art, the beneficial effects thereof are as follows:

[0031] The present invention first uses multiple remote sensing devices to respectively obtain corresponding remote sensing image data sets, uses the YOLOv8 algorithm to train them respectively to obtain the preliminary target recognition model corresponding to each remote sensing device, and uses the FedAvg aggregation algorithm under the framework of horizontal federated learning to aggregate the model parameters in each preliminary target recognition model to form a full model parameter, and calculates the average value of the full model parameter to obtain the global model parameter. Different from the traditional centralized machine learning framework, federated learning realizes model aggregation and data minimization, and then each remote sensing device uses the global model parameter to update the corresponding target recognition model to realize target recognition, and at the same time fully utilizes the computing power of each remote sensing device, reduces the diversity and complexity of target data changes, and greatly improves the accuracy of target recognition.

[0032] In addition, the present invention introduces the idea of ​​federated learning, which effectively solves the problems of data silos and privacy protection by performing model training and parameter sharing between different remote sensing devices and data sources. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the overall process of a target recognition method, device, equipment and medium based on federated learning provided by an embodiment of the present invention;

[0034] Figure 2 A schematic diagram of the development history of the YOLO series algorithm for a target recognition method, apparatus, device and medium based on federated learning provided in an embodiment of the present invention;

[0035] Figure 3 A horizontal federated learning principle diagram of a target recognition method, device, equipment and medium based on federated learning provided in an embodiment of the present invention;

[0036] Figure 4 A method, device, equipment and medium for collecting target recognition based on federated learning provided by an embodiment of the present invention;

[0037] Figure 5 A schematic diagram of target recognition results after a method, device, equipment and medium for target recognition based on federated learning provided by an embodiment of the present invention;

[0038] Figure 6 A schematic diagram of an aircraft target data set overview of a target recognition method, device, equipment and medium based on federated learning provided by an embodiment of the present invention;

[0039] Figure 7 A local model training recognition result diagram of a target recognition method, device, equipment and medium based on federated learning provided by an embodiment of the present invention;

[0040] Figure 8 A precision curve diagram of a target recognition method, device, equipment and medium based on federated learning provided in an embodiment of the present invention;

[0041] Fig. 9 An accuracy curve diagram of a target recognition method, apparatus, device and medium based on federated learning provided in an embodiment of the present invention;

[0042] Fig.10 A recall rate curve diagram of a target recognition method, apparatus, device and medium based on federated learning provided by an embodiment of the present invention;

[0043] Fig.11 An F1 value curve diagram of a target recognition method, apparatus, device and medium based on federated learning provided in an embodiment of the present invention;

[0044] Fig.12 A horizontal federated learning target recognition technology roadmap for a target recognition method, device, equipment and medium based on federated learning provided in an embodiment of the present invention;

[0045] Fig.13 The influence curve of the communication round on the Loss Value of a target recognition method, device, equipment and medium based on federated learning provided by an embodiment of the present invention;

[0046] Fig.14 The influence curve of communication rounds on Accuracy of a target recognition method, device, equipment and medium based on federated learning provided by an embodiment of the present invention;

[0047] Fig.15 The influence curve of the communication round on Time of a target recognition method, device, equipment and medium based on federated learning provided by an embodiment of the present invention;

[0048] Fig.16 The present invention provides a target recognition method, apparatus, device and medium based on federated learning, and the influence curve of the communication round on mAP. DETAILED DESCRIPTION

[0049] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific embodiments disclosed below.

[0050] See also Figures 1 to 16 , an embodiment of the present invention provides a target recognition method based on federated learning, comprising the following steps:

[0051] Step 1: Use the remote sensing equipment on the drone to collect images and manually annotate the images.

[0052] Step 2: Multiple remote sensing devices transmit the locally trained model parameters to the central server, and use the FedAvg aggregation algorithm to aggregate the model parameters to obtain a more optimized model.

[0053] Step 3: The central server feeds back the optimized model parameters to multiple remote sensing devices to build a global aerodynamic target recognition model to achieve accurate and rapid target recognition.

[0054] Specifically:

[0055] 1. Image acquisition and local model training.

[0056] 1. Remote sensing equipment image acquisition.

[0057] Remote sensing images refer to photos of ground scenes taken from high altitudes by satellites and aircraft to monitor and detect ground targets. Remote sensing images are widely used in many fields such as military, mining, archaeology, and environmental testing due to their wide shooting range and their freedom from space and natural conditions. In the military, remote sensing technology is mainly used for ground observation and reconnaissance and image guidance of guided weapons. The use of various sensors carried by reconnaissance satellites or aircraft to collect military intelligence in peacetime or combat is the main way to obtain intelligence information today. Among the information obtained, the credibility and accuracy of the information obtained by various image sensors are very important. , comprehensiveness, and anti-interference are all very high. These advantages make remote sensing image reconnaissance an important means of military intelligence reconnaissance; the processing, classification, extraction, recognition and monitoring of various major image targets are one of the main tasks of military image processing. The targets include ground and air targets, mainly various military equipment, equipment, buildings, etc.; with the development of science and technology, future military wars will gradually evolve towards networking, intelligent and unmanned warfare. In the future, for a certain task, a large number of drones equipped with various remote sensing equipment will be used to collect battlefield data. How to quickly and accurately identify the collected images has always been a research hotspot in the academic community.

[0058] Utilize sensors deployed on drones to detect remote sensing images of enemy strategic locations or aerodynamic targets that the enemy is attacking us. Save these remote sensing images locally through storage devices, and collect as many remote sensing images as possible to use as sample sets for local model training.

[0059] At the same time, the collected remote sensing image data needs to be manually preprocessed and labeled. The VOC-Lable labeling software developed for the Windows system is used to label the aerodynamic targets in the remote sensing images taken by the sensor. Secondly, a trainable data set is obtained from the original image through the labeled files to adapt to the data format requirements of federated learning; this includes but is not limited to data cleaning, denoising, alignment and calibration steps to ensure the quality and consistency of the data; through the above steps, a remote sensing image data set for training the aerodynamic target recognition model is obtained.

[0060] 2. Drone local model training algorithm.

[0061] On each drone, a local model training algorithm is used to train the collected remote sensing image data. Local model training uses deep learning algorithms, such as convolutional neural networks (CNNs), to learn the characteristics of aerodynamic targets.

[0062] The target detection algorithm is used to realize the recognition of aerodynamic targets in remote sensing images. Since the end-to-end algorithm has significant advantages in the speed and accuracy of target detection, the YOLO algorithm is proposed to be used as the local target detection algorithm for each distributed device. The development history of the YOLO series algorithm can be found in Figure 2 shown.

[0063] Taking into account the detection speed, generalization, and robustness of each YOLO classification algorithm in deep learning, the YOLOv8 algorithm is used to realize the recognition of aerodynamic target remote sensing image types; YOLOv8 is the latest version of the YOLO series algorithm. Compared with the previous version, YOLOv8 has improved detection accuracy, speed, and model structure, and has the following advantages:

[0064] (1) YOLOv8 adopts the CSPDarknet architecture, which reduces the computational complexity while maintaining high detection accuracy. In addition, YOLOv8 also introduces new modules such as FocalLoss and MaskRCNN to improve detection performance.

[0065] (2) YOLOv8 uses a variety of data enhancement methods, such as rotation, scaling, and flipping; these data enhancement methods help the model learn richer feature information, thereby improving detection performance.

[0066] (3) YOLOv8 adopts a training strategy that combines multi-task learning and transfer learning. By combining pre-trained models with fine-tuned models, the performance and generalization ability of the model are improved.

[0067] (4) YOLOv8 optimizes the algorithm by reducing the amount of calculation and using GPU acceleration to improve the algorithm's running speed, thus better meeting the real-time requirements.

[0068] As an advanced real-time target detection algorithm, YOLOv8 has good real-time performance while maintaining high detection accuracy. Each local drone uses the YOLOv8 algorithm to train the collected image data that has been manually annotated to obtain a preliminary aerodynamic target recognition model.

[0069] 2. Model parameter transfer and aggregation.

[0070] 1. The communication process between the drone and the central server.

[0071] In order to make full use of the aerodynamic target remote sensing image datasets collected by each drone and improve the accuracy of the YOLOv8 algorithm in identifying low-altitude aerodynamic targets, each local device needs to transmit the trained model parameter information to the central server for aggregation of model parameters.

[0072] Federated learning does not need to collect the data owned by each data party to collaboratively train a model; federated learning can be divided into the following three types: horizontal federated learning, vertical federated learning, and federated transfer learning; among them, the data features of horizontal federated learning are aligned between the participants, which is also called sample-partitioned federated learning; based on the collected aerodynamic target remote sensing image data features, consider training the target recognition model for each drone through the framework of horizontal federated learning.

[0073] 2. Selection and design of aggregation algorithm.

[0074] Considering the communication overhead and computational complexity, the FedAvg algorithm, a model parameter aggregation algorithm suitable for horizontal federated learning, is selected. Figure 3 The figure is a schematic diagram of horizontal federated learning. The FedAvg algorithm is a relatively simple federated learning average aggregation algorithm, which is easy to implement in Python programming based on Pytorch. It is easy to use to aggregate uploaded model parameters and analyze the effect of federated learning. The model parameters of each drone are aggregated to the central server, which obtains a global model while storing the collected remote sensing image data set confidentially locally. The training of the aerodynamic target recognition model is fully and securely completed, which improves the accuracy of aerodynamic target recognition while reducing communication overhead and computational complexity.

[0075] 3. Model parameter update and target recognition.

[0076] 1. Central server model update algorithm.

[0077] After the central server receives the model parameters from each drone, it uses the federated aggregation algorithm to update the model parameters. The FedAvg algorithm updates the model parameters without model compression. Instead, it uploads the full parameters of the local model YOLOv8 of each drone to the central server, and then averages the uploaded full model parameters to obtain the updated global model parameters. The central server then sends the updated global model parameters to each drone to complete the update aggregation of the model parameters.

[0078] The local model is updated on the client side. The formula for updating the local model on the client side is as follows:

[0079]

[0080] Where: μ is the learning rate; g k is the gradient uploaded by client k during communication; is the gradient updated by client k in the t+1th round of communication.

[0081] After each drone uploads its local model parameters to the server, the average aggregation algorithm of the central server is as follows:

[0082]

[0083] Where: n is the total amount of data of all clients; n k is the amount of local data of client k.

[0084] In summary, the FedAvg algorithm places the computational workload on each local drone, while the server is only used to aggregate and average the uploaded local model parameters; therefore, each drone can update the local model multiple times locally before uploading the local model parameters to the central server, reducing the computational complexity of the central server.

[0085] 2. Application of target recognition algorithm.

[0086] Each UAV uses the updated global model to identify the target model of the newly collected aerodynamic target remote sensing images. The newly collected aerodynamic target remote sensing images are as follows: Figure 4 As shown in the figure; by inputting the image into the updated and trained global model for prediction, it is possible to determine whether there is a target in the image and the model of the target, and to achieve accurate target recognition. The image after prediction of the discovered aerodynamic target image is shown in the figure Figure 5 shown.

[0087] After recognition, the predicted model and corresponding confidence level of the aerodynamic target will appear in the recognition prediction image, and different models will be distinguished by different colors.

[0088] Through the organic combination of the above steps, the target recognition method based on horizontal federated learning can quickly and accurately identify targets in a distributed environment while reducing the burden of communication overhead and computational complexity.

[0089] Example: Experimental design and result analysis.

[0090] 1. Introduction to experimental environment and dataset.

[0091] Aerodynamic targets are mainly divided into two categories: aircraft targets and cruise missile targets. The flight speeds and sizes of these two types of targets are similar. Since there are few cruise missile target data sets publicly available on the Internet, in order to facilitate the subsequent verification of the algorithm, we consider verifying the recognition of aircraft target models. As long as the accuracy of aircraft target recognition is guaranteed, it is also feasible to apply the model to the recognition of the entire aerodynamic target.

[0092] This experiment uses a dataset publicly available on the CSDN software on the Internet. The dataset is collected from an airport in a certain country. The dataset is shown in Table 1. There are 42 types of military and civilian aircraft in the aircraft classification, including the well-known Sukhoi series, MiG series, Antonov series, Il series, Yak series, and Tupolev series. The dataset contains a total of 1,000 images, with a size of 1024x768 and a color of visible light RGB image color. The labels are annotated using the labelimg tool in the xml format. The dataset images are shown in Table 1. Figure 6 shown.

[0093] This dataset is used as a remote sensing image of aircraft targets collected by a distributed device (UAV) remote sensing sensor, which is regarded as a traditional centralized data target recognition model training method.

[0094] Table 1 Signals and corresponding numbers of aircraft target datasets

[0095]

[0096]

[0097] 2. Aerodynamic target recognition model training and performance evaluation.

[0098] 1. UAV local model training and verification.

[0099] The experimental environment includes a central server and multiple drones, each of which is equipped with remote sensing equipment.

[0100] The data set for model training is divided into: 1,000 images are placed in a distributed device (drone), and the YOLOv8 algorithm is used to train the local aerodynamic target recognition model; 800 remote sensing image data are used as the training set of the local model, 100 remote sensing image data are used as the verification set of the local model, and 100 remote sensing image data are used as the test set of the local model; the local model training recognition results are shown in the figure below. Figure 7 shown.

[0101] In order to evaluate the performance of the model, an independent test data set is used to evaluate the performance of the model; the classification performance of the model is measured by calculating indicators such as precision, accuracy, recall, and F1 value; the precision curve is shown in the figure below: Figure 8 As shown in the figure, the accuracy curve is as follows Fig. 9 As shown in the figure, the recall rate curve is as follows Fig.10 As shown, the F1 value curve is as follows Fig.11 shown.

[0102] According to the performance curve of the traditional centralized data training model, the local aerodynamic target recognition algorithm of the UAV has achieved an accuracy rate of more than 95% for remote sensing images of aircraft targets. When used as a local model for aerodynamic target recognition of each UAV, the recognition of targets is efficient and accurate, which is conducive to timely and accurate analysis of the battlefield situation during combat and taking the initiative in the war.

[0103] 2. Experimental process of distributed UAV model training.

[0104] First, each UAV uses a local model training algorithm to train the collected and labeled remote sensing image data to obtain a preliminary target recognition model; then, the trained model parameters are transmitted to the central server for parameter aggregation; finally, the central server updates the model parameters and transmits the updated model back to each UAV to complete the update process of the aerodynamic target recognition model.

[0105] At this time, the original 1000 aircraft-type remote sensing image dataset is further divided, of which 200 remote sensing images are used as the global test set, and the rest are equally divided among the drones (clients); 80% of the dataset allocated to the drone is used as the training set, and 20% is used as the verification set of the client, and the data is randomly distributed; in this way, the original dataset is divided into datasets for horizontal federated learning. Next, each drone is trained locally, and then all the parameters of the local model are uploaded to the central server for parameter aggregation, and then transmitted back to the drone to update the global model locally, and the number of rounds of federated learning communication is completed. One round; recursively, the process of training the YOLOv8 local model through federated learning is carried out, and its specific implementation technology route is as follows: Fig.12 shown.

[0106] 3. Analysis of the effect of parameter aggregation algorithm.

[0107] In the experiment, a simple federated learning average aggregation algorithm FedAvg aggregation algorithm was used for effect analysis. The Loss Value, Accuracy, Time, and mAP graphs of the model training were plotted against the number of communication rounds of the simple average aggregation algorithm. The performance difference of the federated learning aggregation algorithm on local model training was compared to evaluate its impact on model training.

[0108] like Fig.13 As shown in the figure, it is the influence curve of communication rounds on Loss Value. It can be seen that when the communication round is 24, the Loss Value is the largest, which is 0.0049626827239990234; in other cases, the LossValue value is 0; this shows that the prediction results of the model on the validation set are very close to the true label, indicating that the model's fitting degree and learning effect are good.

[0109] like Fig.14 As shown in Figure 1, it is the influence curve of communication rounds on Accuracy. It can be seen that before the 26th communication round, the Accuracy value is very small, almost 0; when the communication round is 28, the Accuracy value increases sharply, with a maximum of about 72.03%; in the subsequent communication rounds, the Accuracy value gradually decreases to about 50%.

[0110] like Fig.15 As shown in the figure, it is the influence curve of communication rounds on Time. It can be seen that the Time value is basically in a linear relationship with the communication rounds, and the communication efficiency is about 280s / round; this means that the process of training the model must be fully prepared before the start of the operation to prevent the recognition of the target from being affected during the war because the model has not been trained.

[0111] like Fig.16 As shown in the figure, it is the influence curve of communication rounds on mAP. It can be seen that the mAP value is always 0 before the communication round is 16; when the communication round is about 20, the mAP value increases rapidly; when the communication round is 26, the mAP value is the largest, which is 0.04258092873130495; in subsequent communication rounds, the mAP value gradually decreases to about 0.015.

[0112] In terms of experimental results analysis, the training speed of the aerodynamic target recognition algorithm based on horizontal federated learning used in the experiment is faster than that of the traditional method because the local training sets of each distributed device are reduced, the training speed of the local model will be faster, and when the model parameters are aggregated on the central server, the computational complexity of the central server is reduced, and the cost of data transmission is reduced; but in terms of accuracy, it is lower than the traditional data centralized training method, and due to the influence of data heterogeneity, the number of communication rounds needs to be reasonably selected to prevent insufficient training from causing under-fitting of the model or too many communication rounds, resulting in excessive learning rate of the model on the training samples and resulting in over-fitting of the model, which is not conducive to efficient and accurate identification of targets in the actual intelligence collection process; overall, when the local model is YOLOv8, the training effect of the aerodynamic target recognition model is best when the number of communication rounds is 27.

[0113] Through the above comparative analysis, the performance of the proposed algorithm in the model training process was evaluated, and the optimal model training method was analyzed. In addition, a comprehensive analysis and discussion of the experimental results showed that the algorithm has certain applicability and adaptability in specific applications. When used in actual combat, it can break the limitations of the human brain and quickly identify the models of aerodynamic targets in large amounts of data.

[0114] From the experimental results, it can be found that the proposed target recognition method based on federated learning has a lower recognition accuracy compared with centralized training. This is caused by the heterogeneity of data and the asynchronous nature of model updates in each distributed device. At the same time, the simple federated average aggregation algorithm (FedAvg algorithm) cannot handle the impact caused by data heterogeneity, which may lead to data imbalance. Therefore, in future research, more flexible aggregation algorithms can be selected to achieve model aggregation, such as FedProx and SCAFFOLD algorithms. FedProx is a federated learning aggregation algorithm based on gradient constraints, and SCAFFOLD is an adaptive federated learning aggregation algorithm that can dynamically adjust model parameters according to the local data of the client. This algorithm, which adds a distance from the global model to the training loss, can consider the computing power of each distributed device (drone) to determine the degree of its own training, making the training of the global model faster and more accurate. Dynamic weighting can be considered to aggregate model parameters to achieve more accurate target recognition model training.

[0115] The target recognition method based on federated learning has high feasibility and application prospects; first, the method fully considers the need for privacy protection and maintains the privacy of data between multiple parties, which is in line with the modern society's concern for data privacy; second, the method has certain scalability and adaptability, and can be applied to other target recognition tasks and distributed data scenarios in multiple fields; finally, with the rapid development of drone technology and artificial intelligence, target recognition, as a key function of intelligent drones, has broad application prospects; the target based on federated learning can be widely used in the drone field and its related fields to improve the intelligence level and task execution capability of the system.

[0116] The embodiment of the present invention further provides a target recognition device based on federated learning, comprising:

[0117] In the image acquisition module, multiple devices respectively acquire multiple remote sensing images of the corresponding targets to form image data sets of the corresponding targets.

[0118] In the local model training module, each device uses the YOLOv8 algorithm to train the corresponding image dataset to obtain a preliminary target recognition model corresponding to each device.

[0119] The model parameter aggregation module uses the FedAvg aggregation algorithm under the horizontal federated learning framework to aggregate the model parameters in each preliminary target recognition model to obtain the full model parameters; the average value of the full model parameters is obtained to obtain the global model parameters.

[0120] In the target recognition module, each remote sensing device updates the corresponding preliminary target recognition model using the global model parameters, and each remote sensing device obtains the corresponding final target recognition model and uses the corresponding final target recognition model to recognize the target in the corresponding image data set.

[0121] An embodiment of the present invention further provides an electronic device, including a memory and a processor.

[0122] The memory is used to store computer programs.

[0123] When the processor is used to execute the computer program stored in the memory, the steps of the above-mentioned target recognition method based on federated learning are implemented.

[0124] An embodiment of the present invention also provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the steps of the above-mentioned target recognition method based on federated learning.

[0125] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A target recognition method based on federated learning, characterized in that: The following steps are involved: Multiple remote sensing devices respectively acquire multiple remote sensing images of corresponding targets, and respectively form image data sets of corresponding targets; Each remote sensing device uses the YOLOv8 algorithm to train the corresponding image data set to obtain a preliminary target recognition model corresponding to each remote sensing device; In the horizontal federated learning framework, the FedAvg aggregation algorithm is used to aggregate the model parameters in each preliminary target recognition model to obtain the full model parameters; the average value of the full model parameters is calculated to obtain the global model parameters; Each remote sensing device updates the corresponding preliminary target recognition model using the global model parameters, and each remote sensing device obtains the corresponding final target recognition model and uses the corresponding final target recognition model to recognize the target in the corresponding image data set.

2. According to the target recognition method based on federated learning in claim 1, it is characterized in that: The step of respectively forming image data sets corresponding to the targets comprises the following steps: Using sensors carried by multiple remote sensing devices, multiple corresponding target remote sensing images are obtained respectively; The VOC-Lable annotation software is used to perform data cleaning, denoising, alignment and calibration on the target remote sensing images to obtain the annotated target remote sensing images, and to form image datasets corresponding to the targets of each remote sensing device.

3. The target recognition method based on federated learning according to claim 1, characterized in that: The YOLOv8 algorithm is used to train the corresponding image data set, including: The YOLOv8 algorithm adopts the CSPDarknet network architecture, and introduces the FocalLoss loss function and the MaskRCNN module between the convolutional layers of the YOLOv8 algorithm, and fuses the FocalLoss loss function and the MaskRCNN module with the convolutional layers of the YOLOv8 algorithm to form an improved YOLOv8 algorithm; The improved YOLOv8 algorithm is used to train the corresponding image dataset.

4. The target recognition method based on federated learning according to claim 1, characterized in that: The obtaining of global model parameters comprises: After receiving the model parameters from each remote sensing device, the central server uses the federated aggregation algorithm to update the model parameters; The FedAvg algorithm updates model parameters no longer through model compression. Instead, it uploads the full parameters of the local model YOLOv8 of each remote sensing device to the central server and then averages the uploaded full model parameters to obtain the updated global model parameters.

5. The target recognition method based on federated learning according to claim 4, characterized in that: After obtaining the updated global model parameters, the central server sends the updated global model parameters to each remote sensing device, and completes the update aggregation of the model parameters on each remote sensing device.

6. A target recognition device based on federated learning, characterized in that: include: Image acquisition module: multiple remote sensing devices respectively acquire multiple remote sensing images of corresponding targets to form image data sets of corresponding targets; In the local model training module, each remote sensing device uses the YOLOv8 algorithm to train the corresponding image data set to obtain the preliminary target recognition model corresponding to each remote sensing device; The model parameter aggregation module aggregates the model parameters in each preliminary target recognition model using the FedAvg aggregation algorithm under the horizontal federated learning framework to obtain the full model parameters; the average value of the full model parameters is calculated to obtain the global model parameters; In the target recognition module, each remote sensing device updates the corresponding preliminary target recognition model using the global model parameters, and each remote sensing device obtains the corresponding final target recognition model and uses the corresponding final target recognition model to recognize the target in the corresponding image data set.

7. An electronic device, characterized in that: include: Memory and processor; The memory is used to store computer programs; The processor is used to implement the steps of a target recognition method based on federated learning as described in any one of claims 1 to 5 when executing the computer program stored in the memory.

8. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the steps of a target recognition method based on federated learning as described in any one of claims 1 to 5.

Citation Information

Cited By

  • Electronic sentry system based on array radar, infrared and optics and use method

    CN119233086A

  • Multi-client collaborative SAR image target recognition method based on federated learning

    CN119516406A

  • Self-organizing multi-teacher personalized federal learning method for multiple working conditions

    CN119539126A

  • Multi-robot target detection method for aircraft panel assembly

    CN119625284A

  • A multi-robot target detection method for aircraft panel assembly

    CN119625284B