SAR (Synthetic Aperture Radar) image feature information restoration method based on distributed training
Through the combination of distributed training and quasi-Newton method optimizer, the efficiency and accuracy problems of automatic annotation of SAR images under resource-limited conditions are solved, and efficient image feature information restoration and automatic annotation are achieved, which is suitable for SAR in complex scenes. Image data processing.
Patent Information
- Application Number
- CN202410699787.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-20
AI Technical Summary
It is difficult for existing technologies to effectively utilize massive SAR image information for automatic annotation. As a result, automatic image annotation technology cannot meet the needs of deep learning networks under resource constraints, and cannot store and adapt to a variety of complex scenarios in advance.
The SAR image feature information restoration method based on distributed training is adopted, and the YOLOv5S network is used for model training. Through the distributed computing network and the quasi-Newton method optimizer, virtual data is generated and the gradient difference is calculated, and the model parameters are gradually optimized to realize the image feature information. Restoration and automatic annotation.
It reduces the computing power resource limit of a single computing node, improves computing efficiency and accuracy, provides an automatic annotation method under conditions of limited computing power, enriches automatic image annotation technology, and reduces computing costs and cycles.
Smart Images

Figure CN118675173A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of communication technology, and relates to feature restoration under transmission conditions with limited communication resources, and in particular to a SAR image feature information restoration method based on distributed training. Background Art
[0002] SAR is an active microwave remote sensing imaging device that can be installed on flying platforms such as aircraft, satellites, and spacecraft to conduct ground observations around the clock and in all weather conditions. It has a wide range of application needs in monitoring, navigation, remote sensing and other fields, and its research value is very significant.
[0003] SAR data is essentially an image. The difference from common optical remote sensing images is that optical remote sensing is a passive imaging system, and the instrument records electromagnetic wave information reflected by the target object itself or from natural radiation sources (mainly the sun); SAR is a type of microwave remote sensing (microwave remote sensing includes active and passive types). SAR is active microwave remote sensing, that is, it actively transmits electromagnetic waves to the target object, and then the sensor it carries receives and records its reflected waves.
[0004] SAR-Ship-Dataset is a multi-source and multi-scale SAR ship slice dataset, including nearly 40,000 SAR ship detection slices, using data from the domestic Gaofen-3 satellite and the European Space Agency's Sentinel-1 satellite. The image resolution covers 1.7 meters to 25 meters, the polarization modes include HH, HV, VH and VV, and the imaging modes include ultra-fine strip mode, fine strip mode, full polarization strip mode, strip scanning mode and interferometric wide-width mode. The scenes of this dataset include ports, nearshore, islands and offshore, and the types include various common ship targets such as tankers, bulk carriers, large container ships and fishing boats. The slice size is 256×256 pixels, and the format is a three-channel grayscale image, 24-bit deep JPG. The annotation file is in TXT format, with one target annotated in one line, recording the ship type, normalized ship center position (column and row number), normalized ship width and normalized ship length respectively, which meets the format requirements of mainstream detection networks such as Yolo series, PolarMask, SSD and Resnet.
[0005] The label prior knowledge of SAR images provides effective supervision information for deep neural networks. However, due to the existence of massive SAR image information in reality, the ability of manual annotation is very limited and is far from meeting the data volume requirements of deep learning networks. A large amount of SAR image information cannot be effectively utilized, and it is impossible to store massive self-data in advance to adapt to various complex scenarios.
[0006] The technology of automatic image annotation is currently in a stage of rapid development and continuous progress. The development of this technology is mainly due to the integration and innovation of deep learning, computer vision and remote sensing technology. However, the current automatic image annotation technology mainly includes image super-resolution and restoration based on AIGC diffusion model and image restoration method based on deep learning (especially convolutional neural network (CNNs). The former technology requires large computing power and is difficult to support on edge nodes, while the latter model is large in scale and the algorithm is relatively traditional. Summary of the invention
[0007] The technical problem solved by the present invention is to overcome the shortcomings of the prior art and propose a SAR image feature information restoration method based on distributed training.
[0008] The solution of the present invention is:
[0009] A method for restoring SAR image feature information based on distributed training, the method comprising the following steps:
[0010] (1) Use open source SAR images and corresponding annotated datasets to train the YOLOv5S network model;
[0011] (2) Generate random virtual SAR image data and corresponding virtual output features;
[0012] (3) The interconnection mode of multiple "drones" in the scene is regarded as a distributed scene, and the distributed computing interconnection communication network and the trained YOLOv5S network are deployed in the "drone" intelligent module;
[0013] (4) Each “drone” acts as a computing node, uses random virtual SAR image data as input, performs forward propagation through the YOLOv5S network, and obtains the output result;
[0014] (5) For each "drone" computing node, the loss function is calculated based on its output results and virtual output features, and the virtual gradient is calculated using the back propagation method;
[0015] (6) Use virtual gradients for back propagation to update the parameters of the YOLOv5S network. The update method in the distributed computing environment is as follows: each "drone" computing node updates its local parameters and synchronizes them through inter-drone communication;
[0016] (7) Repeat steps (4)-(6) until the YOLOv5S network performance reaches the predetermined standard or the number of training rounds reaches the preset upper limit;
[0017] (8) Evaluate the performance of the YOLOv5S network on the validation set or test set. Once the performance meets the requirements, solidify its local parameters on each drone computing node.
[0018] (9) Each "drone" computing node uses real SAR image data as input and performs forward propagation through the YOLOv5S network. The output results of all "drone" computing nodes are fused to obtain the restored SAR image feature information.
[0019] Preferably, the training method of step (1) is as follows:
[0020] (1.1) The open-source SAR image dataset is divided into annotated SAR image dataset B and unannotated SAR image dataset A;
[0021] (1.2) Input the SAR image dataset B into the YOLOv5S network for model training;
[0022] (1.3) Input some images in the SAR image dataset A to be annotated into the trained YOLOv5S network, and the YOLOv5S network outputs the annotated SAR image information;
[0023] (1.4) performing manual intervention on the annotated SAR image outputted in step (1.3), and adding the intervened SAR image to the SAR image dataset B;
[0024] (1.5) Repeat step (1.2) and input the updated SAR image dataset B into the YOLOv5S network for model training to achieve fine-tuning of the YOLOv5S network;
[0025] (1.6) Repeat steps (1.3)-(1.5), traverse all images in the SAR image dataset A, and obtain the trained YOLOv5S network.
[0026] Preferably, in the step (1.1), the open source SAR image is randomly scaled, randomly cropped, and randomly arranged to achieve SAR image data enhancement.
[0027] Preferably, in the step (1.3), the YOLOv5S network outputs annotated SAR image information, where the annotation refers to annotating the location and category information of the target.
[0028] Preferably, in the step (1.4), manual intervention is performed on the annotated SAR image outputted in the step (1.3), including using a non-maximum suppression algorithm to remove redundant bounding boxes, retaining only the bounding boxes with the highest confidence, and visualizing or formatting the annotations as needed.
[0029] Preferably, in step (8), the validation set or test set refers to a data set prepared in advance that contains real SAR image data and corresponding output features, and the non-high-quality data therein is cleaned to remove noise, erroneous labels or irrelevant information.
[0030] Preferably, in step (5), the loss function is the mean square error between the output result and the virtual output feature.
[0031] Preferably, when performing model training on the YOLOv5S network, a quasi-Newton method deep learning optimizer is introduced to optimize the YOLOv5S network.
[0032] The beneficial effects of the present invention compared with the prior art are:
[0033] (1) The present invention combines drone application scenarios and image restoration methods, introduces distributed computing technology, and alleviates the problem of limited computing power resources of a single computing node.
[0034] (2) In addition to optimizers such as SGD stochastic gradient descent and adam, the present invention introduces the quasi-Newton method to further optimize the algorithm, thereby reducing the computational cost and computational cycle.
[0035] (3) The present invention creatively proposes the concept of using the gradient information difference between features in an image to restore the original image and annotate it, enriching the technical means for automatic image annotation. At the same time, the present invention also provides a new method for the study of online automatic annotation under conditions of limited computing power. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 This is the training flow chart of the YOLO network;
[0037] Figure 2 Schematic diagram of the SAR image feature information restoration method. DETAILED DESCRIPTION
[0038] The present invention will be further described below in conjunction with the accompanying drawings.
[0039] The present invention uses gradient data to explain the characteristics of training data to a certain extent when using gradient-based optimization algorithms (such as gradient descent, stochastic gradient descent, Adam, etc.) for model training. Although the gradient data itself does not directly explain the training data, it can provide key clues for understanding how the model learns and adapts to the data. Through the gradient data, we can obtain the update direction of the model, the importance of the data, the changes in the training process, etc. The present invention analyzes the data gradient according to the input SAR image and annotation information and output feature of the model, and uses the intermediate gradient information difference to perform training to achieve a method for restoring SAR image data.
[0040] SAR (Synthetic Aperture Radar) is an active aerospace remote sensing tool. SAR is widely used in military fields such as battlefield monitoring and identification. First, the experiment collects its own radar data, uses the SAR image target automatic annotation method based on the YOLO network to form its own sample virtual data as virtual input, inputs the virtual data into the Resnet model to obtain the simulated gradient, and calculates the difference between the simulated gradient and the real gradient. The above process is repeated iteratively to continuously reduce the difference between the simulated gradient and the real gradient, and finally optimizes the input and label data.
[0041] The specific steps of the present invention are as follows:
[0042] The SAR image target automatic labeling method based on the YOLOv5S network uses deep learning technology to automatically add labels to targets in SAR images.
[0043] 1. Data preparation:
[0044] First, we use open-source SAR images and corresponding annotated datasets. This experiment annotates the locations (bounding boxes) and categories of covered targets, such as various objects on the ground, such as buildings, vehicles, roads, etc.
[0045] 2 Model training:
[0046] The YOLOv5S network is used for model training. During the training process, the Resnet network is used to learn how to extract features from SAR images and predict the location and category of the target. The training process first performs forward propagation (calculating the prediction results and losses) and back propagation (calculating gradients and updating network parameters), and finally completes iterative optimization (repeating forward propagation and back propagation to minimize losses).
[0047] 3. Data enhancement:
[0048] In order to improve the generalization ability of the model, Mosaic data enhancement technology is used in the training process. Four SAR images are spliced in a random scaling, random cropping, and random arrangement manner to enable the model to better learn the features in SAR images.
[0049] 4. Model optimization:
[0050] According to the loss function and evaluation indicators in the training process, the model is optimized, and parameters such as network structure, learning rate, batch size, etc. are appropriately adjusted to improve the performance of the model.
[0051] 5 Prediction and annotation:
[0052] After training is complete, the trained YOLOv5S model is used to predict and annotate new SAR images. The image is input into the model, and the model outputs the location and category information of the target. Then, this information is converted into an annotation format (such as VOC format) and added to the image.
[0053] 6. Post-processing:
[0054] To improve the accuracy and readability of the annotations, some post-processing steps are performed. The non-maximum suppression (NMS) algorithm is used to remove redundant bounding boxes and only retain the bounding boxes with the highest confidence. At the same time, the annotations are visualized or formatted as needed.
[0055] 7Evaluation and Improvement:
[0056] Finally, evaluate the results of automatic annotation. Use precision, recall, and F1 score to measure the accuracy and completeness of annotation. If the current results are not ideal, adjust the model parameters, optimize the training process, and collect more annotated data to improve the model.
[0057] At the same time, the SAR images in the experiment are different from common RGB images in terms of features. Therefore, when applying the YOLOv5S network for automatic target annotation, adjustments and optimizations are made based on the characteristics of the SAR images according to the scene requirements. In addition, the experiment shows that different YOLOv5 versions and parameter settings will affect the accuracy and efficiency of annotation. In practical applications, this experiment chooses YOLOv5S for parameter setting.
[0058] 8SAR image restoration data generation:
[0059] Firstly, random virtual SAR image data are generated as input.
[0060] For each input data, generate corresponding virtual output features or labels (these data are treated as real data during training).
[0061] 9Distributed computing network settings:
[0062] In the experiment, the interconnection mode of multiple "drones" in the scene is used as a distributed scene. A distributed computing interconnection communication network is deployed in the "drone" intelligent module.
[0063] 10Forward propagation:
[0064] Each drone acts as a computational node and forward propagates through the model using virtual input data. The output of each drone computational node is compared to the virtual output features.
[0065] 11 Virtual gradient calculation:
[0066] For each drone computing node, the loss function is calculated based on the model’s output and virtual output features. The virtual gradient is calculated using the back-propagation method.
[0067] 12Define the loss function:
[0068] The mean squared error between the predicted output and the virtual output is equivalent to the loss function (instead of the square of the difference between the virtual gradient and the true gradient).
[0069] 13 Back propagation and optimization again:
[0070] The calculated virtual gradient is used for back propagation to update the model parameters. In a distributed computing environment, each drone computing node updates its local parameters and synchronizes them through inter-drone communication.
[0071] 14 Iteration and optimization again:
[0072] Repeat steps 10 to 13 until the model performance reaches the predetermined standard or the number of training rounds reaches the preset upper limit.
[0073] 15 Model Evaluation:
[0074] The performance of the model is evaluated on a validation set or a test set (prepared in advance and containing real SAR image data and corresponding output features, and the non-high-quality data is cleaned in advance: noise, incorrect labels or irrelevant information are removed).
[0075] The training process in step 2 is as follows Figure 1 shown.
[0076] (2.1) The open-source SAR image dataset is divided into annotated SAR image dataset B and unannotated SAR image dataset A;
[0077] (2.2) Input the SAR image dataset B into the YOLOv5S network for model training;
[0078] (2.3) Input some images in the SAR image dataset A to be annotated into the trained YOLOv5S network, and the YOLOv5S network outputs the annotated SAR image information;
[0079] (2.4) performing manual intervention on the annotated SAR image outputted in step (2.3), and adding the intervened SAR image to the SAR image dataset B;
[0080] (2.5) Repeat step (2.2) and input the updated SAR image dataset B into the YOLOv5S network for model training to achieve fine-tuning of the YOLOv5S network;
[0081] (2.6) Repeat steps (2.3)-(2.5) 5 times to obtain the trained YOLOv5S network.
[0082] Since the experiment started with virtual data, the performance of the trained model on real data will be affected to a certain extent. Therefore, before applying the model to actual tasks, we still need to fully verify and test it on real data and fine-tune it again using real SAR image data to improve the performance of the model on real tasks.
[0083] At the same time, since it is a distributed training system composed of "drone" computing nodes, it is necessary to pay attention to adjustment to ensure the synchronization and communication efficiency between different nodes, design a reasonable network topology structure, ensure that a stable communication link can be formed between drones, and be able to dynamically adjust the network structure according to task requirements. This experiment uses a drone-specific communication protocol.
[0084] The central idea of the present invention is to input the self-generated SAR image data and SAR tag data into the existing known transmission model. Figure 2 As shown in the figure, a distributed network composed of known models is used to train the data, and then the trained model gradient is compared with the original model gradient. After multiple rounds of iterative training, the generated gradient is the same as the original model gradient. At this time, the SAR image and label data generated by oneself are consistent with the real image and label data state, and finally a SAR image with real sample data set weight is reconstructed.
[0085] First, the radar is used to collect similar image materials near the transmission target, and the YOLO network is used to automatically annotate the SAR image. The SAR image and label at this time are distributed to each training client of the distributed training as the virtual input and output of the experiment to calculate the virtual model gradient at this time. Then, the virtual data label is continuously updated by continuously reducing the gradient difference between the virtual model and the real model, and the corresponding real and effective label is obtained under the supervision of the real model gradient, and finally the real SAR image in transmission is reconstructed.
[0086] The gradient update calculation formula used to calculate the change gradient is:
[0087]
[0088] After multiple iterations, the objective function is updated:
[0089]
[0090] W is the parameter (weight) of the model, W ′ is the updated weight parameter, (F(x ′ ,W),y ′) is the rate of change of the objective function, is the absolute variance value, is the gradient of the loss function with respect to W (weights).
[0091] During the calculation implementation process, due to the need to perform optimization solution (argmin), the present invention creatively introduces the quasi-Newton method deep learning optimizer Apollo, because the distributed computing nodes need to be carried on the "drone", and the drone computing nodes have limited computing power, but require high-speed response capabilities. Therefore, it is necessary to introduce this algorithm function with fast convergence speed and strong generalization performance. Experiments on multiple tasks such as machine vision and natural language processing show that Apollo has significant improvements in convergence speed over other random optimization methods (including variants of SGD and Adam). This means that using Apollo as an optimizer can complete model training faster. At the same time, based on the fact that the peak computing power of our "drone" computing node is only 20TOPS, we need to use a lighter algorithm to complete the calculation, which is also the reason why the present invention introduces the Apollo method-reducing computational complexity. Compared with the traditional Newton method, the quasi-Newton method reduces computational complexity by constructing an approximate Hessian matrix. Apollo approximates Hessian through a diagonal matrix, so that the time and space complexity of its diagonal approximation of Hessian is comparable to that of the adaptive first-order optimization method.
[0092] By approximating the Hessian with a diagonal matrix, the curvature of the loss function is dynamically applied to the optimization process. In order to deal with the non-convexity of the objective function, the corrected absolute value of the Hessian is used to replace the original Hessian to ensure its positive definiteness. In such tasks, by consulting relevant materials, in common tasks including Image Classification, Language Modeling, and Neural Machine Translation, involving neural network models including ResNet, LSTM, and Transformer, Apollo has significant improvements in convergence speed and generalization performance compared to other random optimization methods (SGD / ADAM, etc.).
[0093] The present invention integrates the quasi-Newton method into Pytorch and adjusts the parameters (learning rate / number of iterations) again. When setting the parameters, Apollo is passed to the model as the optimizer. At the same time, the present invention evaluates the performance of Apollo in real time by monitoring the changes in the loss function and adjusting the parameters. By comparing with other optimizers such as SGD and Adam, it is evaluated that Apollo does show an effect of increasing the convergence speed by 10% while reducing the number of parameters by 12% in terms of convergence speed and generalization performance.
[0094] Figure 2 The process principle for realizing the present invention.
[0095] The YOLOV5S model used in the present invention can upgrade the model effect, and at the same time, the distributed networking technology between computing nodes is added to achieve the effect of improving computing power. At the same time, the present invention introduces an optimizer (quasi-Newton method deep learning optimizer) that is more suitable for edge devices with limited power consumption and computing resources, and improves the overall solution of the SAR image feature information restoration method based on distributed training.
[0096] The present invention proposes to solve the problem of automatic annotation of SAR image targets based on the YOLOV5S network and distributed cross-multi-node training to complete automatic reconstruction of SAR image feature information in the sea scene, and proposes to consider the depth of the realistic model in the real ship target scene, perform SAR image classification tasks, and reconstruct high-resolution SAR image data using the gradient parameters of the training model. The present invention uses the YOLO network automatic annotation technology and the SAR image feature information restoration method based on distributed training conditions to quickly reconstruct real SAR image data using similar virtual SAR image data under limited communication resource transmission conditions.
[0097] The present invention uses its own radar to obtain local materials and extract image data that is strongly related to the scene. The present invention uses automatic target monitoring and recognition technology to collect data similar to the real experimental data set during the experiment, improve the model iteration efficiency, and shorten the iteration time. With the help of the solution of inferring the original data from the gradient, the present invention adds the randomly generated virtual input and output SAR image data and output features to the distributed computing network for training, calculates the virtual gradient, optimizes the square of the difference between the virtual gradient and the real gradient as the loss function, continues to do back propagation, updates the virtual input and output, matches the calculated gradient with the real gradient, approximates the real input and output, and infers the original SAR data.
[0098] The contents not described in detail in the specification of the present invention belong to the common knowledge of the professionals in this field.
Claims
1. A method for restoring SAR image feature information based on distributed training, characterized in that The steps of the method include: (1) Use open source SAR images and corresponding annotated datasets to train the YOLOv5S network model; (2) Generate random virtual SAR image data and corresponding virtual output features; (3) The interconnection mode of multiple "drones" in the scene is used as a distributed scene, and the distributed computing interconnection communication network and the trained YOLOv5S network are deployed in the "drone" intelligent module; (4) Each "drone" acts as a computing node, uses random virtual SAR image data as input, performs forward propagation through the YOLOv5S network, and obtains the output result; (5) For each "drone" computing node, the loss function is calculated based on its output results and virtual output features, and the virtual gradient is calculated using the back propagation method; (6) Use virtual gradients for back propagation to update the parameters of the YOLOv5S network. The update method in the distributed computing environment is as follows: each "drone" computing node updates its local parameters and synchronizes them through communication between "drones"; (7) Repeat steps (4)-(6) until the YOLOv5S network performance reaches the predetermined standard or the number of training rounds reaches the preset upper limit; (8) Evaluate the performance of the YOLOv5S network on the validation set or test set. Once the performance meets the requirements, solidify its local parameters on each "drone" computing node; (9) Each "drone" computing node uses real SAR image data as input and performs forward propagation through the YOLOv5S network. The output results of all "drone" computing nodes are fused to obtain the restored SAR image feature information.
2. The method for restoring SAR image feature information based on distributed training according to claim 1, characterized in that: The training method of step (1) is as follows: (1.1) The open-source SAR image dataset is divided into annotated SAR image dataset B and unannotated SAR image dataset A; (1.2) Input the SAR image dataset B into the YOLOv5S network for model training; (1.3) Input some images in the SAR image dataset A to be annotated into the trained YOLOv5S network, and the YOLOv5S network outputs the annotated SAR image information; (1.4) performing manual intervention on the annotated SAR image outputted in step (1.3), and adding the intervened SAR image to the SAR image dataset B; (1.5) Repeat step (1.2) and input the updated SAR image dataset B into the YOLOv5S network for model training to achieve fine-tuning of the YOLOv5S network; (1.6) Repeat steps (1.3)-(1.5), traverse all images in the SAR image dataset A, and obtain the trained YOLOv5S network.
3. The method for restoring SAR image feature information based on distributed training according to claim 2, characterized in that: In the step (1.1), the open source SAR image is randomly scaled, randomly cropped, and randomly arranged to achieve SAR image data enhancement.
4. The method for restoring SAR image feature information based on distributed training according to claim 2, characterized in that: In the step (1.3), the YOLOv5S network outputs the labeled SAR image information, where the labeling refers to labeling the location and category information of the target.
5. The method for restoring SAR image feature information based on distributed training according to claim 2, characterized in that: In the step (1.4), the annotated SAR image outputted in the step (1.3) is manually intervened, including using a non-maximum suppression algorithm to remove redundant bounding boxes, retaining only the bounding boxes with the highest confidence, and visualizing or formatting the annotations as needed.
6. The method for restoring SAR image feature information based on distributed training according to claim 1, characterized in that: In step (8), the validation set or test set refers to a data set prepared in advance that contains real SAR image data and corresponding output features, and the non-high-quality data is cleaned to remove noise, erroneous labels or irrelevant information.
7. The method for restoring SAR image feature information based on distributed training according to claim 1, characterized in that: In step (5), the loss function is the mean square error between the output result and the virtual output feature.
8. The method for restoring SAR image feature information based on distributed training according to claim 1, characterized in that: When training the YOLOv5S network model, the quasi-Newton method deep learning optimizer is introduced to optimize the YOLOv5S network.
