Distributed deep learning remote sensing image change detection method and system with efficient communication

By constructing a distributed optimizer for parameter compression and momentum compensation in distributed deep learning remote sensing image change detection, the problem of low communication efficiency of model parameters is solved, the computing efficiency of the system and the model convergence speed are improved, and efficient change detection is achieved. .

CN118711065APending Publication Date: 2024-09-27GUANGDONG UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410877630.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In distributed deep learning remote sensing image change detection, the communication efficiency of model parameters is low, resulting in time delay and weakening the benefits of parallel computing. Especially in systems with limited network resources, it affects system performance.

Method used

By building a distributed optimizer, the parameters of the change detection model are compressed and transmitted between different nodes. The momentum compensation mechanism is used to update some parameters to reduce network resource occupation and low computational efficiency.

Benefits of technology

It significantly reduces the amount of data transmitted between nodes, improves the convergence speed and overall operating efficiency of the model on each distributed node, and maintains high-precision change detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118711065A
    Figure CN118711065A
Patent Text Reader

Abstract

The invention relates to the technical field of remote sensing image deep learning, and provides a communication-efficient distributed deep learning remote sensing image change detection method and system, and the method comprises the steps: carrying out the preprocessing of an input remote sensing image, obtaining an image data set, constructing a distributed calculation environment, setting a change detection model, and constructing a distributed optimizer; in the iteration process in each period, the parameters of the change detection model in each calculation node are compressed by the distributed optimizer and then are transmitted in different nodes, and part of the parameters of the change detection model are updated based on a momentum compensation mechanism; evaluating various performance indexes of the change detection model, and selecting an optimal change detection model for remote sensing image change detection according to an evaluation result to obtain a remote sensing image change detection result. According to the invention, the problem of low efficiency of the existing distributed training in the communication process can be effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of deep learning of remote sensing images, and specifically relates to a distributed deep learning remote sensing image change detection method and system with efficient communication. Background Art

[0002] Remote sensing image change detection is a computationally intensive image data processing task. The rapid development of deep learning technology has provided new solutions for remote sensing image change detection, but it has also brought higher computing requirements. In order to improve computing efficiency, distributed parallel computing has been applied to remote sensing image change detection. In a distributed computing environment, the data of the deep learning change detection model needs to be transmitted between different computing nodes. However, due to the huge size of the model, the time-consuming data transmission has become a new bottleneck, affecting the overall computing efficiency and weakening the benefits brought by distributed parallel computing. How to improve detection efficiency while ensuring detection accuracy has become the focus of distributed remote sensing change detection application research.

[0003] At present, for large-scale remote sensing image change detection tasks, we mainly use three parallel optimization methods: cluster computing, grid computing, and cloud computing. Cluster computing builds a distributed remote sensing image change detection processing system by directly maintaining homogeneous computing resources, and can also achieve high-performance parallel change detection computing within the local area network by coordinating multiple GPUs. Grid computing and cloud computing mainly rely on distributed programming models to dynamically coordinate and schedule storage and high-performance CPU computing resources to achieve distributed deep learning for large-scale remote sensing image change detection. Although the above optimization methods can improve the processing capabilities of remote sensing images through distributed parallel computing, the update and iterative training of the model in distributed deep learning change detection will generate a large amount of data communication. The time delay caused by these communication processes weakens the benefits brought by the improvement of parallel computing. In the implementation of some systems with limited network resources, the time delay caused by the communication of model parameters even completely offsets the acceleration of distributed computing, making the system performance unable to achieve the expected effect. Summary of the invention

[0004] In order to overcome the defect of low model parameter communication efficiency in the above-mentioned prior art, the present invention provides a distributed deep learning remote sensing image change detection method and system with efficient communication.

[0005] In order to achieve the above technical effects, the technical solution of the present invention is as follows:

[0006] The present invention proposes a distributed deep learning remote sensing image change detection method with efficient communication, comprising the following steps:

[0007] Preprocess the input remote sensing images to obtain image datasets, build a distributed computing environment based on multiple computing nodes, set up a change detection model, and build a distributed optimizer;

[0008] The image data set is input into the change detection model for periodic training. In the iterative process within each cycle, the parameters of the change detection model in each computing node are compressed by the distributed optimizer and then transmitted among different nodes, and some parameters of the change detection model are updated based on the momentum compensation mechanism;

[0009] Evaluate the performance indicators of the change detection model, and select the optimal change detection model for remote sensing image change detection based on the evaluation results to obtain the remote sensing image change detection results.

[0010] The present invention proposes a distributed deep learning remote sensing image change detection system with efficient communication, and applies the distributed deep learning remote sensing image change detection method with efficient communication proposed by the present invention. The system comprises:

[0011] The model building module is used to obtain input remote sensing images and perform preprocessing, build a distributed computing environment based on multiple computing nodes and set up a change detection model, and input the image data set into the change detection model for periodic training;

[0012] A distributed optimization module is used to construct a distributed optimizer. In the iterative process within each cycle, the parameters of the change detection model in each computing node are compressed by the distributed optimizer and then transmitted to different nodes.

[0013] A momentum compensation module is used to update the gradient parameters of the change detection model that are still stored locally after iterative training through a momentum compensation mechanism;

[0014] Performance evaluation module, used to evaluate the performance indicators of the change detection model and select the optimal change detection model based on the evaluation results;

[0015] The detection module is equipped with the optimal change detection model and is used for remote sensing image change detection to obtain remote sensing image change detection results.

[0016] Compared with the prior art, the present invention has the following beneficial effects:

[0017] The present invention constructs a distributed optimizer to compress the parameters and then transmit them between different nodes, thereby alleviating the problems of high network resource usage and low computing efficiency in existing distributed training, and reduces the potential impact of distributed model compression and update through a momentum compensation mechanism, thereby reducing the training time required for the convergence of the change detection model in distributed parallel training. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flowchart of the communication-efficient distributed deep learning remote sensing image change detection method of Example 1.

[0019] Figure 2 This is an architectural diagram of the communication-efficient distributed deep learning remote sensing image change detection system of Example 2. DETAILED DESCRIPTION

[0020] The accompanying drawings are only used for illustrative purposes and are not to be construed as limiting the present invention;

[0021] It is understandable to those skilled in the art that some well-known descriptions may be omitted in the drawings.

[0022] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0023] Example 1

[0024] This embodiment proposes a distributed deep learning remote sensing image change detection method with high communication efficiency, such as Figure 1 , which is a flow chart of the communication efficient distributed deep learning remote sensing image change detection method of this embodiment.

[0025] The communication efficient distributed deep learning remote sensing image change detection method proposed in this embodiment includes the following steps:

[0026] Preprocess the input remote sensing images to obtain image datasets, build a distributed computing environment based on multiple computing nodes, set up a change detection model, and build a distributed optimizer;

[0027] The image data set is input into the change detection model for periodic training. In the iterative process within each cycle, the parameters of the change detection model in each computing node are compressed by the distributed optimizer and then transmitted among different nodes, and some parameters of the change detection model are updated based on the momentum compensation mechanism;

[0028] Evaluate the performance indicators of the change detection model, and select the optimal change detection model for remote sensing image change detection based on the evaluation results to obtain the remote sensing image change detection results.

[0029] In this embodiment, in the distributed model training, efficient communication is achieved by compressing the information transmitted between different nodes; specifically, the parameters of the change detection model are compressed and transmitted among different nodes by constructing a distributed optimizer; further, a momentum compensation mechanism is used to update some parameters of the change detection model. The present invention effectively reduces the amount of data transmitted between nodes during the model training process by compressing the data in the distributed training transmission process, thereby significantly reducing the burden of network communication and ensuring data integrity and model performance during the training process. In addition, the momentum compensation mechanism is used to optimize the parameter update process, alleviating the problems of high network resource occupancy and low computational efficiency in existing distributed change detection methods. The present invention enables the model to converge more stably and quickly on each distributed node, especially for large-scale data sets and complex models such as remote sensing images, and can significantly improve the overall operating efficiency of the distributed deep learning system while maintaining high accuracy.

[0030] Exemplarily, the steps of constructing a distributed computing environment based on multiple computing nodes and setting a change detection model include:

[0031] Build a distributed computing environment and modify the optimizer in the distributed computing framework; set up a GPU graphics processing device on each node participating in model training, and set the number of threads that each node can use for image data reading; set basic modeling parameters and change detection models, obtain the training parameters of the change detection model, and group the parameters in the model.

[0032] As an exemplary illustration, a distributed computing environment based on Horovod is constructed, and the optimizer is modified to support the OpenMPI interface for data compression and distributed efficient communication, and ensure that each node in the distributed computing environment contains a GPU device with no less than 10GB of graphics memory, and the number of threads that each node can use for image pair data reading is set to 4; parameters such as image reading size, batch size, model iteration cycle, and learning rate are set, and a typical supervised learning change detection model with images as input and change labels as output is set, and the theoretical learning rate is calculated, and its expression is as follows:

[0033] lr=lr node ×Parallelism

[0034] Where lr is the theoretical learning rate, lr node is the initial configured learning rate on each distributed node, and Parallelism is the parallelism of distributed training.

[0035] The training parameters of the change detection model are extracted and grouped into common parameters and batch normalization parameters. The common parameters need to be compressed using the distributed gradient compression method and then transferred between distributed nodes. The batch normalization parameters have less data and can be directly transferred between nodes.

[0036] In an optional embodiment, the step of preprocessing the input remote sensing image includes: performing change and unchanged pixel statistics on the change detection data of the input remote sensing image, deleting images with pixel ratios below a preset minimum threshold, and generating an image data set.

[0037] In this embodiment, the distribution of remote sensing image data will interfere with the modeling effect of distributed optimization. Existing distributed training usually does not consider the changes within the remote sensing image and the distribution of unchanged pixels, resulting in the inability to objectively evaluate the gain of distributed computing on the modeling effect of remote sensing image changes. By screening and deleting images containing a small number of changed pixels, relatively reasonable remote sensing image change detection evaluation image data can be generated.

[0038] Exemplarily, the remote sensing image is first divided into a regular grid, in which the length and width of the grid are equal to facilitate the processing of the change detection model. Based on the data division, the training, verification and test data sets of the model are obtained by random sampling, and they are organized according to the file structure of time A, time B and change labels. The remote sensing images acquired at different times and their change labels are read, the minimum threshold of the change pixel ratio is specified, and according to the change pixels and the specified threshold, the image pairs below the threshold are filtered out.

[0039] As an exemplary illustration, the preset minimum threshold is set to 2%.

[0040] In an optional embodiment, the distributed optimizer includes: a compression component, a memory component, a learning rate scheduler and a basic optimizer on each node; wherein the compression component compresses the parameters of the change detection model by executing a distributed gradient compression method; the memory component memorizes and reconstructs the parameters of the change detection model during the compression process by executing a memory assembly method; the learning rate scheduler is set based on a training cycle or number of iterations, and updates the step size of the change detection model during the training process.

[0041] As an exemplary illustration, the distributed gradient compression method may be selected from a Top-K sparsification method, a QSGD quantization method, and a PowerSGD low-rank matrix decomposition method.

[0042] Furthermore, the distributed gradient compression method includes: a sparseness method and a compression method; the memory assembly method includes: a compensation method and an update method; wherein the gradient calculation method of the change detection model is defined in the compensation method, and the update method of the momentum parameter is defined in the update method.

[0043] Furthermore, the step of compressing the parameters of the change detection model in each computing node using the distributed optimizer and then transmitting them among different nodes includes:

[0044] The compression component selects the parameters to be processed from the parameters of the change detection model and compresses the parameters to be processed, and updates the momentum parameters in combination with the update method in the memory building method to obtain the compressed parameters;

[0045] Broadcasting the compressed parameters to each distributed node, the distributed node decompresses the compressed parameters after receiving them, and corrects the gradient of the decompressed change detection model in combination with the compensation method in the memory component;

[0046] The step size of the change detection model training is updated based on the learning rate scheduler.

[0047] As an exemplary explanation, the step size of the change detection model training step size update can be set according to the training cycle or the number of iterations. The calculation formula based on the training cycle is as follows:

[0048] step_=max(l epoch -warmup epoch -1,-1)

[0049] Among them, step_ is the update step size, max(·) is the maximum function, and total epoch is the total number of training cycles, warmup epoch The number of times the model has been trained when it starts preliminary training;

[0050] The calculation formula based on the total number of training iterations is as follows:

[0051] step_=max(l epoch -warmup epoch +1)

[0052] *step_per_rpoch,-1)

[0053] Among them, step__h is the number of times batch data needs to be iteratively read to train a periodic change detection model.

[0054] Furthermore, the step of filtering the parameters to be processed from the parameters of the change detection model through the compression component includes: filtering the filtering quantity obtained by the preset compression rate, and filtering the parameters that can participate in distributed computing from the parameters of the change detection model based on the preset compression rate and the sparseness method in the distributed gradient compression method.

[0055] In this embodiment, by constructing a distributed optimizer including a compression component, a memory component, a learning rate scheduler and a basic optimizer on each node, the parameters of the change detection model can be efficiently processed between the distributed computing nodes; specifically, the parameters that need to be transmitted in different nodes are first compressed by a distributed gradient compression technology through a preset compression rate, and the parameters are updated and compensated through the memory component to improve the communication efficiency between different distributed nodes while ensuring accuracy; wherein, the memory component can select a residual memory method or a data recovery parameter memory method according to different distributed compression methods; and subsequently, the compressed parameters of the change detection model are broadcast and transmitted in combination with the OpenMPI interface.

[0056] In an optional embodiment, the partial parameters include gradient parameters of the change detection model in distributed training that are still stored locally after multiple iterations of training.

[0057] Furthermore, the step of updating some parameters of the change detection model based on the momentum compensation mechanism includes: using the compensation mechanism to update the gradient parameters that are still stored locally after multiple trainings; the expression of the compensation mechanism is as follows:

[0058]

[0059] in, is the expected function, x i,t represents the eigenvalue of the i-th sample at time t, θ is the implicit momentum generated during the change detection model training process, μ is the momentum parameter, (θ+μ-θμ) is the overall momentum parameter, η represents the learning rate, Indicates that in x i,t The gradient at .

[0060] In this embodiment, the gradient parameters that are still stored locally after multiple trainings may become obsolete. As time goes by, these gradient data may no longer be synchronized with the state of the current model. During multiple iterations, if these obsolete gradients are used to update the model, the efficiency of model training may decrease, and even affect the accuracy of the final model. The present invention solves the problem of obsolete parameters during training through a momentum compensation mechanism.

[0061] In an optional embodiment, the step of evaluating various performance indicators of the change detection model includes: using a distributed communication interface to count the amount of data transmission required for training the change detection model, and calculating the performance indicators of the aggregated change detection model obtained from each distributed node after each training cycle iteration.

[0062] In this implementation, the data compression effect in the distributed modeling process is quantified by calculating the model parameter volume after processing by the communication efficient distributed compression method. The evaluation indicators of data transmission volume include the model gradient volume of the current iteration and the average model gradient volume up to the current iteration. At the same time, in order to record the performance of the distributed change detection model, it is also necessary to obtain the aggregated model accuracy, precision, recall rate, average IoU and F1 score.

[0063] As an exemplary explanation, the optimal distributed change detection model is screened by referring to the F1 score. After obtaining the optimal change detection model, the model's current iteration cycle number, model parameter status, optimizer status, performance evaluation index, compression method status and data transmission volume information are recorded and saved. After completing all cycles of iteration, the change detection model for distributed communication efficient compression training can be obtained.

[0064] Example 2

[0065] This embodiment proposes a communication efficient distributed deep learning remote sensing image change detection system, and applies the communication efficient distributed deep learning remote sensing image change detection method proposed in Example 1. Figure 2 , which is an architecture diagram of the communication efficient distributed deep learning remote sensing image change detection system of this embodiment.

[0066] This embodiment proposes a distributed deep learning remote sensing image change detection system with high communication efficiency, including:

[0067] The model building module is used to obtain input remote sensing images and perform preprocessing, build a distributed computing environment based on multiple computing nodes and set up a change detection model, and input the image data set into the change detection model for periodic training;

[0068] A distributed optimization module is used to construct a distributed optimizer. In the iterative process within each cycle, the parameters of the change detection model in each computing node are compressed by the distributed optimizer and then transmitted to different nodes.

[0069] A momentum compensation module is used to update the gradient parameters of the change detection model that are still stored locally after iterative training through a momentum compensation mechanism;

[0070] Performance evaluation module, used to evaluate the performance indicators of the change detection model and select the optimal change detection model based on the evaluation results;

[0071] The detection module is equipped with the optimal change detection model and is used for remote sensing image change detection to obtain remote sensing image change detection results.

[0072] It can be understood that the system of this embodiment corresponds to the method of the above-mentioned embodiment 1, and the options in the above-mentioned embodiment 1 are also applicable to this embodiment, so they will not be described repeatedly here.

[0073] The terms in the drawings are for illustrative purposes only and should not be construed as limiting this patent;

[0074] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the embodiments here. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the claims of the present invention.

Claims

1. A communication efficient distributed deep learning remote sensing image change detection method, characterized in that: The following steps are involved: Preprocess the input remote sensing images to obtain image datasets, build a distributed computing environment based on multiple computing nodes, set up a change detection model, and build a distributed optimizer; The image data set is input into the change detection model for periodic training. In the iterative process within each cycle, the parameters of the change detection model in each computing node are compressed by the distributed optimizer and then transmitted among different nodes, and some parameters of the change detection model are updated based on the momentum compensation mechanism; Evaluate the performance indicators of the change detection model, and select the optimal change detection model for remote sensing image change detection based on the evaluation results to obtain the remote sensing image change detection results.

2. According to claim 1, a distributed deep learning remote sensing image change detection method with high communication efficiency is characterized in that: The step of preprocessing the input remote sensing image includes: performing statistics on changed and unchanged pixels on the change detection data of the input remote sensing image, deleting images with pixel ratios below a preset minimum threshold, and generating an image data set.

3. The method for detecting changes in remote sensing images using distributed deep learning with high communication efficiency according to claim 1, characterized in that: The distributed optimizer includes: a compression component, a memory component, a learning rate scheduler and a basic optimizer; wherein the compression component compresses the parameters of the change detection model by executing a distributed gradient compression method; the memory component memorizes and reconstructs the parameters of the change detection model during the compression process by executing a memory assembly method; the learning rate scheduler is set based on a training cycle or the number of iterations, and updates the step size of the change detection model during the training process.

4. The method of distributed deep learning remote sensing image change detection with high communication efficiency according to claim 3, characterized in that: The distributed gradient compression method includes: a sparse method and a compression method; the memory assembly method includes: a compensation method and an update method; wherein the gradient calculation method of the change detection model is defined in the compensation method, and the update method of the momentum parameter is defined in the update method.

5. The method for detecting changes in remote sensing images using distributed deep learning with high communication efficiency according to claim 4, characterized in that: The step of compressing the parameters of the change detection model in each computing node using the distributed optimizer and then transmitting them to different nodes comprises: The compression component selects the parameters to be processed from the parameters of the change detection model and compresses the parameters to be processed, and updates the momentum parameters in combination with the update method in the memory building method to obtain the compressed parameters; Broadcasting the compressed parameters to each distributed node, the distributed node decompresses the compressed parameters after receiving them, and corrects the gradient of the decompressed change detection model in combination with the compensation method in the memory component; The step size of the change detection model training is updated based on the learning rate scheduler.

6. The method of distributed deep learning remote sensing image change detection with high communication efficiency according to claim 5, characterized in that: The step of filtering the parameters to be processed from the parameters of the change detection model through the compression component includes: filtering the filtering quantity obtained by the preset compression rate, and filtering the parameters that can participate in distributed computing from the parameters of the change detection model based on the preset compression rate and the sparseness method in the distributed gradient compression method.

7. The method of distributed deep learning remote sensing image change detection with high communication efficiency according to claim 1, characterized in that: The partial parameters include the gradient parameters of the change detection model in the distributed training that are still stored locally after iterative training.

8. The method of distributed deep learning remote sensing image change detection with high communication efficiency according to claim 7, characterized in that: The step of updating some parameters of the change detection model based on the momentum compensation mechanism includes: using the compensation mechanism to update the gradient parameters that are still stored locally after iterative training; the expression of the compensation mechanism is as follows: in, is the expected function, x i,t represents the eigenvalue of the i-th sample at time t, θ is the implicit momentum generated during the change detection model training process, μ is the momentum parameter, (θ+μ-θμ) is the overall momentum parameter, η represents the learning rate, Indicates that in x i,t The gradient at .

9. The method of claim 1, wherein: The step of evaluating various performance indicators of the change detection model includes: using a distributed communication interface to count the data transmission volume required for training the change detection model, and calculating the performance indicators of the aggregated change detection model obtained from each distributed node after each training cycle iteration.

10. A distributed deep learning remote sensing image change detection system with efficient communication, applying the method described in any one of claims 1 to 9, characterized in that: include: The model building module is used to obtain input remote sensing images and perform preprocessing, build a distributed computing environment based on multiple computing nodes and set up a change detection model, and input the image data set into the change detection model for periodic training; A distributed optimization module is used to construct a distributed optimizer. In the iterative process within each cycle, the parameters of the change detection model in each computing node are compressed by the distributed optimizer and then transmitted to different nodes. A momentum compensation module is used to update the gradient parameters of the change detection model that are still stored locally after iterative training through a momentum compensation mechanism; Performance evaluation module, used to evaluate the performance indicators of the change detection model and select the optimal change detection model based on the evaluation results; The detection module is equipped with the optimal change detection model and is used for remote sensing image change detection to obtain remote sensing image change detection results.