A Method and System for Remote Sensing Image Change Detection Based on Adversarial Dual Autoencoder Networks
By combating the dual autoencoder network and the multi-head attention mechanism, dual-temporal remote sensing image features are extracted and feature distribution is constrained, which solves the problem of low accuracy in remote sensing image change detection without annotation and achieves efficient change detection effects.
Patent Information
- Application Number
- CN202210642111.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-08
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-08
AI Technical Summary
Existing remote sensing image change detection methods have low prediction accuracy when there are no annotations or a small number of annotated samples, and the cost of obtaining annotated data is high, making it difficult to effectively detect changes in surface features.
Using a method based on the adversarial dual autoencoder network, by constructing two branch autoencoder networks and a multi-head attention mechanism, the features of dual-temporal remote sensing images are extracted, and the feature distribution is constrained through the discriminator network, and an unsupervised method is used to generate pseudo Labels, train models to improve change detection accuracy.
In the case of no annotation or a small number of annotated samples, it significantly improves the prediction accuracy of remote sensing image change detection, enhances the detection accuracy of change detection, can effectively separate changed and unchanged pixels, and improves the effect and numerical indicators of change detection.
Smart Images

Figure CN115063359B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of remote sensing image change detection, and in particular relates to a remote sensing image change detection method and system based on an adversarial dual autoencoder network. Background Art
[0002] As one of the important applications of remote sensing information, change detection has very important practical significance and is widely used in many fields. The purpose of change detection is to analyze the information of the same spatial area at different times, detect the change information of surface objects, filter out the pseudo-change information caused by interference factors, and find the real change information. The current change detection can be divided into supervised and unsupervised methods according to whether there is labeled data in the remote sensing data. The supervised method relies on labeled training samples. However, it is very costly to obtain a large amount of annotated data that directly represents the change area. Summary of the invention
[0003] In order to overcome the shortcomings of the above-mentioned prior art, the purpose of the present invention is to provide a remote sensing image change detection method and system based on an adversarial dual autoencoder network, so as to improve the prediction accuracy of remote sensing image change detection in the case of no labeled or a small number of labeled samples.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is:
[0005] The remote sensing image change detection method based on the adversarial dual autoencoder network includes the following steps:
[0006] S1. Preprocessing dual-temporal remote sensing images;
[0007] S2, making a data set from the dual-temporal remote sensing images preprocessed by S1;
[0008] S3. Construct an adversarial dual autoencoder network, including:
[0009] S301, build two branch autoencoder networks to extract features of dual-temporal remote sensing images respectively;
[0010] S302, adding a discriminator network between the two branch autoencoder network feature layers built in S301 to construct an adversarial discriminant module;
[0011] S303, adding a multi-head attention mechanism to the feature layers of the two branch autoencoder networks built in S301 respectively, and forming an attention constraint module with the two branch autoencoder networks and the multi-head attention mechanism;
[0012] S4, use the data set produced by S2 to train the adversarial dual autoencoder network built by S3;
[0013] S5. Input the data set produced by S2 into the adversarial dual autoencoder network trained by S4, determine whether the central pixel of the input remote sensing image pair changes according to the output result, and complete the remote sensing image change detection.
[0014] Furthermore, in S1, two remote sensing images of the same geographical area but in different time directions are read in, and normalization preprocessing is performed on the two remote sensing images.
[0015] Furthermore, in S2, firstly, a pseudo label is obtained by a traditional unsupervised change detection method, and paired image blocks with a size of 16×16 are cropped from the dual-phase remote sensing image with the pixel as the center, and the unchanged part of the pseudo label is selected as the data set.
[0016] Furthermore, in S301, each branch autoencoder network is composed of three shallow autoencoders, and the network structures of the two branch autoencoder networks are the same, but the network parameters are not shared.
[0017] Furthermore, in S301, each branch autoencoder network is formed by stacking two-dimensional convolutional layers.
[0018] Furthermore, in S302, the deepest feature layer of the two branch autoencoder networks has a discriminator network composed of multiple convolutional layers, BN layers and pooling layers as an adversarial discriminant module; in S303, a multi-head attention mechanism is added to the deepest feature layer of the two branch autoencoder networks.
[0019] Furthermore, the discriminator network inputs the feature image F1 and the feature image F2 output by the two branch autoencoder networks for discrimination, and presets F1 and F2 as true and false respectively; then, adversarial training is used to make the F1 and F2 features similar in distribution; the two multi-head attention mechanisms correspond to the two branch autoencoder networks respectively, and F1 and F2 are respectively input into the multi-head attention mechanisms and feature constraints are performed through the average error loss function.
[0020] Furthermore, in S4, the λ value of the cross loss is 0.05-0.5, the initial learning rate is 0.0001-0.0005, and the batchsize is 64-256; the training is iterated 10-20 times, and the learning rate is decayed in a three-stage manner, and the learning rate decays to one tenth of the original every 5-10 generations; the average error loss and cross entropy loss are used as loss functions, and Adam is used as the optimization method.
[0021] Furthermore, in S5, the change map is binarized using the automatic threshold segmentation method Otsu to obtain a change detection map.
[0022] Furthermore, the present invention also provides a remote sensing image change detection system based on an adversarial dual autoencoder network, comprising:
[0023] A processing module pre-processes the dual-temporal remote sensing images;
[0024] The data module converts the dual-temporal remote sensing images preprocessed by the processing module into a data set;
[0025] A network module is provided to construct an adversarial dual autoencoder network; the adversarial dual autoencoder network includes two branch autoencoder networks, a discriminator network and a multi-head attention mechanism; the two branch autoencoder networks are used to extract the features of dual-phase remote sensing images respectively, the discriminator network is arranged between the feature layers of the two branch autoencoder networks, and constitutes an adversarial discriminant module with the two branch autoencoder networks; the multi-head attention mechanism is respectively added to the feature layers of the two branch autoencoder networks, and constitutes an attention constraint module with the two branch autoencoder networks;
[0026] The training module uses the dataset created by the data module to train the adversarial dual autoencoder network built by the network module;
[0027] The detection module inputs the data module into the adversarial dual autoencoder network trained by the training module, obtains the change map according to the output results, and then uses the automatic threshold segmentation method Otsu to binarize the change map to obtain the change detection map, thus completing the remote sensing image change detection.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] The present invention discloses a remote sensing image change detection method based on an adversarial dual autoencoder network, which uses a branch network as a basic structure to extract the features of remote sensing images of the same location and different times. The algorithm adds an attention mechanism and a discriminator to the branch network, constrains the interdependence of features in the two branch networks, and enables the weights to be assigned to the channels of each feature image according to the feedback of the network loss. Through continuous iterative training, the dual autoencoder network can effectively constrain unchanged pixel blocks, thereby separating changed and unchanged pixels. The design of this mode greatly enhances the detection accuracy of change detection.
[0030] Furthermore, deep neural networks require a large amount of data to train the network. S2 selects some pixels from the dual-temporal remote sensing images to produce a training data set, and uses all the pixels of the dual-temporal images to input the trained network.
[0031] Furthermore, a deep learning-based unsupervised change detection network was designed through S3.
[0032] Furthermore, the dual autoencoder network is used to extract features of the dual-phase images respectively through S301. If the ground object information of the dual-phase remote sensing images is the same, the features extracted by the two branch networks are also similar. If the ground object information of the dual-phase images is different, the features extracted by the two branch networks are also quite different; this is helpful for judging whether the input image pair has changed.
[0033] Furthermore, by adding a discriminator network to the dual autoencoder network through S302, the discriminator network can constrain the feature image and reallocate weights to each channel of the feature image, so that features of pseudo-change information are assigned smaller weights.
[0034] Furthermore, the two branch networks have a pair of independent multi-head attention mechanism modules, and the multi-head attention mechanism module and the adversarial dual autoencoder network constitute an attention constraint module.
[0035] Furthermore, in order to make the model fit the current dataset, the network is trained using the dataset generated by S2.
[0036] Furthermore, in order to verify the performance of the model, the model was tested using the dataset generated by S2. The input of the model is a pair of dual-phase remote sensing images, and the output is a two-dimensional vector representing the change intensity of the pixel. The change map is obtained based on the output result, and then the automatic threshold segmentation method Otsu is used to binarize the change map to obtain the change detection map, completing the remote sensing image change detection.
[0037] In summary, the present invention designs a new change detection model based on generative adversarial networks, dual autoencoder networks and multi-head attention mechanism. This model can improve the effect of change detection to a certain extent and obtain change detection results with better visual effects and higher numerical indicators. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is an overall structural diagram of the remote sensing image change detection method and system based on the adversarial dual autoencoder network of the present invention.
[0039] Figure 2 This is the network structure diagram of the dual autoencoder branch.
[0040] Figure 3 This is the network structure diagram of the multi-head attention mechanism.
[0041] Figure 4 Figure 1 is the first set of simulation experiment result diagrams, where (a) is the remote sensing image of phase 1, (b) is the remote sensing image of phase 2, (c) is the label, and (d) is the experimental result.
[0042] Figure 5Figure 2 is the second set of simulation experiment result diagram, where (a) is the remote sensing image of phase 1, (b) is the remote sensing image of phase 2, (c) is the label, and (d) is the experimental result. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0044] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0045] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0046] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0047] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0048] The present invention provides a remote sensing image change detection method based on an adversarial dual autoencoder network, preprocessing dual-phase remote sensing images; making a data set; constructing an adversarial dual autoencoder; using the data set to train a model; and using the data set to obtain the final result. The method uses an unsupervised method to avoid the problem of annotation cost. Specifically, the present invention is an unsupervised deep learning algorithm, and the pseudo-twin structure can increase the flexibility of the network. Moreover, for dual-time images, it is more logical to extract features independently, so two independent autoencoder branch networks with the same structure are used to extract the features of the two remote sensing images respectively. At the same time, because most areas of multi-phase images are unchanged and pseudo-changed areas, in the absence of any annotated data, it is hoped that the distances of multi-time image feature pairs are made as close as possible, so as to screen out the ones with larger distances as change feature pairs. Therefore, a discriminator is used to distribute the feature images, and a multi-head attention mechanism is used to establish a connection between the two branch networks, constrain the feature images, and indirectly realize the constraint of the feature images through cross loss. The attention mechanism and the discriminator constrain the interdependence of the features in the two branch networks, so that they can assign weights to the channels of each feature image according to the feedback of the network loss, and enhance the extraction of change features. In addition, the present invention also uses change vector analysis to calculate the feature pairs and generate a difference map, and finally performs threshold segmentation on the difference map to generate a change detection map, thereby realizing change detection of the entire image. Therefore, the present invention has important significance in the fields of land resource estimation, earthquake relief and disaster relief.
[0049] Specifically, the present invention provides a remote sensing image change detection method based on a twin attention fusion network, comprising the following steps:
[0050] S1. Preprocessing of dual-temporal remote sensing images
[0051] Two remote sensing images of the same geographical area but different phases are read in, that is, two remote sensing images with one-to-one spatial positions but at different times, and then the pixel values of the two remote sensing images are normalized and preprocessed.
[0052] S2. Create a dataset
[0053] When generating the dataset, we first obtain the pseudo-labels through the traditional unsupervised change detection method. Centered on the pixel, we cropped paired image blocks of 16×16 in size and the same spatial position from the dual-phase remote sensing images preprocessed by S1, and selected the unchanged part of the pseudo-labels as the dataset.
[0054] S3. Construct an adversarial dual autoencoder network as follows:
[0055] S301, building two branch autoencoder networks, the two branch autoencoder networks are used to respectively extract features of dual-temporal remote sensing images.
[0056] Both branch autoencoder networks are composed of three shallow autoencoders stacked together. The feature extraction capability of the network is improved by stacking multiple autoencoders. Each shallow autoencoder consists of a two-dimensional convolutional layer, a maximum pooling layer, and a BN layer. The network structures of the two branch autoencoder networks are the same, but they do not share network parameters.
[0057] S302, adding a discriminator network between the two branch autoencoder network feature layers to construct an adversarial discriminant module;
[0058] Specifically, the present invention arranges a discriminator network at the deepest feature layer of the two-branch autoencoder network. The discriminator network consists of multiple layers of convolutional layers, BN layers and pooling layers to construct an adversarial discriminant module.
[0059] In the forward propagation process, the output of the two-branch autoencoder network is the input of the discriminator network. The input data of the two-branch autoencoder network are I1∈R H×W×C and I2∈R H×W×C , and its calculated feature images are and like Figure 1 In the figure, x, y, h1, and h2 are shown. H, W, and C are the height, width, and dimension of the image block, respectively. Usually, H = W = 16 and C = 3.
[0060] See also Figure 1 and Figure 2 , the input data of the two branch autoencoder networks are I1∈R H×W×C and I2∈R H ×W×C , and then use the maximum pooling through each layer of the encoder to compress the data into a dimension of The discriminator network inputs the dual autoencoder output feature image F1 and feature image F2 for discrimination, and presets F1 and F2 as "true" labels and "false" labels respectively; then, adversarial training is used to make the F1 and F2 features similar in distribution.
[0061] Thus, the discriminator network establishes the connection between the two branch channels through connection, and re-assigns the weights to the channels through back propagation. Through the above steps, the discriminator network constrains the distribution of feature images F1 and F2, constrains the weights of the dual autoencoders, and adaptively adjusts the feature response of the channel according to the correlation information. Information that is beneficial to change detection is assigned a larger weight, and information that has a smaller impact on the change detection result is assigned a smaller weight.
[0062] S303, adding a multi-head attention mechanism to the feature layers of the two branch autoencoder networks respectively, and the two branch autoencoder networks and the multi-head attention mechanism constitute an attention constraint module. For example, the multi-head attention mechanism can be added to the deepest feature layer of the two branch autoencoder networks.
[0063] See also Figure 3 The multi-head attention mechanism is similar to the self-attention mechanism, but it decomposes the input data into three matrices Q, V, and K, and Q, V, and K are transformed linearly n times to obtain n groups of Q i 、V i , K i , and then get the corresponding output Head through Attention (scaled Dot-product Attention) i , and finally splice all Head0-Head n , and linearly map it to the final output. Dividing the model into multiple heads and forming multiple subspaces allows the model to focus on different aspects of information.
[0064] Since the two multi-head attention mechanisms correspond to two branch autoencoder networks respectively, F1 and F2 are input into the multi-head attention mechanisms respectively, and feature constraints can be performed through the average error loss function.
[0065] S4. Use the dataset to train the model (i.e., adversarial dual autoencoder network).
[0066] Use the dataset generated in S2 and the network training model built in S3. The lambda value of the cross loss during model training is 0.05-0.5, the initial learning rate is 0.0001-0.0005, and the batch size is 64-256. The model training is iterated 10-20 times, and the learning rate is decayed in three stages. Every 5-10 generations, the learning rate decays to one tenth of the original value. Use average error loss and cross entropy loss as loss functions, and use Adam as the optimization method.
[0067] S5. Use the dataset to obtain the final result.
[0068] The model is tested using the dataset generated by S2. The input of the model is a pair of dual-phase remote sensing images, and the output is a two-dimensional vector representing the change intensity of the pixel. The change map is obtained based on the output result, and then the automatic threshold segmentation method Otsu is used to binarize the change map to obtain a change detection map, which determines whether the central pixel of the input remote sensing image pair has changed, and completes the remote sensing image change detection.
[0069] In another embodiment of the present invention, a remote sensing image change detection system based on an adversarial dual autoencoder network is provided. The system can be used to implement the above-mentioned remote sensing image change detection method based on the adversarial dual autoencoder network. Specifically, the remote sensing image change detection system based on the adversarial dual autoencoder network includes a processing module, a data module, a network module, a training module and a detection module.
[0070] Among them, the processing module pre-processes the dual-temporal remote sensing image;
[0071] The data module converts the dual-temporal remote sensing images preprocessed by the processing module into a data set;
[0072] Network module, building adversarial dual autoencoder network and multi-head attention mechanism module;
[0073] The training module uses the dataset created by the data module to train the adversarial dual autoencoder network built by the network module;
[0074] The detection module makes the data module and inputs the data set into the adversarial dual autoencoder network trained by the training module. The change map is obtained according to the output results, and then the automatic threshold segmentation method Otsu is used to binarize the change map to obtain the change detection map, thus completing the remote sensing image change detection.
[0075] In another embodiment of the present invention, a terminal device is provided, the terminal device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding functions.
[0076] The processor described in the embodiment of the present invention can be used for the operation of the remote sensing image change detection method based on the adversarial autoencoder network, including:
[0077] Preprocess the dual-temporal remote sensing images; use the preprocessed dual-temporal remote sensing images to make a data set; build an adversarial dual autoencoder network; use the data set to train the adversarial dual autoencoder network; input the data set into the trained adversarial dual autoencoder network, obtain a change map based on the output results, and then use the automatic threshold segmentation method Otsu to binarize the change map to obtain a change detection map, thereby completing remote sensing image change detection.
[0078] In another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage.
[0079] The processor may load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the remote sensing image change detection method based on the adversarial dual autoencoder network in the above embodiment; the processor may load and execute the following steps:
[0080] Preprocess the dual-temporal remote sensing images; use the preprocessed dual-temporal remote sensing images to make a data set; build an adversarial dual autoencoder network; use the data set to train the adversarial dual autoencoder network; input the data set into the trained adversarial dual autoencoder network, obtain a change map based on the output results, and then use the automatic threshold segmentation method Otsu to binarize the change map to obtain a change detection map, thereby completing remote sensing image change detection.
[0081] The effect of the present invention is further described below in combination with the simulation results.
[0082] 1. Experimental Platform
[0083] The simulation test hardware platform of the present invention is: NVIDIA TITAN XP, 12G video memory.
[0084] The software platform of the present invention is: Windows 10 operating system, python 3.6, tensorflow2
[0085] 2. Experimental Dataset
[0086] Figure 4 It is a set of remote sensing images in the SZTAKI AirChange Benchmark dataset. The image size is 952×640, the spatial resolution is 1.5 meters, and the labels are manually drawn by experts. Figure 5 It is a set of remote sensing images in the QuickBird dataset provided by the Guangdong Government Data Innovation Competition. The image size is 512×512.
[0087] 3. Simulation experiment evaluation indicators
[0088]
[0089]
[0090]
[0091]
[0092]
[0093]
[0094] Among them, pre is the precision rate, rec is the recall rate, acc is the prediction accuracy, F1 is the F1 coefficient, kappa is the Kappa coefficient, TP is the true positive example, TN is the true negative example, FP is the false positive example, and FN is the false negative example.
[0095] 4. Experimental Results
[0096] Table 1
[0097] F1 ACC PCC RC Kappa SCCN 0.767 0.938 0.729 0.827 0.535 DNN 0.721 0.951 0.793 0.681 0.444 ACE-Net 0.776 0.949 0.767 0.785 0.551 The present invention 0.829 0.961 0.815 0.844 0.658
[0098] Table 2
[0099] F1 ACC PCC RC Kappa SCCN 0.868 0.956 0.829 0.923 0.737 DNN 0.894 0.967 0.81 0.923 0.788 ACE-Net 0.879 0.961 0.846 0.922 0.759 The present invention 0.896 0.971 0.918 0.876 0.791
[0100] In the above table, the symmetric convolutional coupled network (SCCN) maps the discriminative features of heterogeneous images to a common feature space and generates the final change map by setting a threshold. DNN performs change detection through an iterative coupled dictionary learning method. ACE-Net is an adversarial recurrent encoder network with two autoencoders.
[0101] Table 1 represents Figure 4 The numerical indicators of the data shown in Table 2 under different methods represent Figure 5 The numerical indicators of the data under different methods are shown in Table 1, Table 2 and Figure 4 (a)~(d) Figure 5 From (a) to (d), it can be clearly seen that the adversarial dual autoencoder network performs well on different types of data.
[0102] In summary, the remote sensing image change detection method and system based on the adversarial dual autoencoder network of the present invention can greatly improve the change detection effect of remote sensing images.
[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0104] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0105] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0107] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. A remote sensing image change detection method based on an adversarial dual autoencoder network, characterized in that: The following steps are involved: S1. Preprocessing dual-temporal remote sensing images; S2, making a data set from the dual-temporal remote sensing images preprocessed by S1; S3. Construct an adversarial dual autoencoder network, including: S301, building two branch autoencoder networks to extract features of dual-phase remote sensing images respectively; each branch autoencoder network is composed of three shallow autoencoders, and the two branch autoencoder networks have the same network structure, but do not share network parameters; S302, adding a discriminator network between the feature layers of the two branch autoencoder networks built in S301 to construct an adversarial discriminant module; wherein the deepest feature layers of the two branch autoencoder networks have a discriminator network composed of multiple convolutional layers, BN layers and pooling layers, as an adversarial discriminant module; S303, adding a multi-head attention mechanism to each of the deepest feature layers of the two branch autoencoder networks built in S301, and forming an attention constraint module by the two branch autoencoder networks and the multi-head attention mechanism; S4, use the data set produced by S2 to train the adversarial dual autoencoder network built by S3; S5. Input the data set produced by S2 into the adversarial dual autoencoder network trained by S4, determine whether the central pixel of the input remote sensing image pair changes according to the output result, and complete the remote sensing image change detection.
2. The remote sensing image change detection method based on the adversarial dual autoencoder network according to claim 1 is characterized in that: In S1, two remote sensing images of the same geographical area but in different time directions are read in, and normalization preprocessing is performed on the two remote sensing images.
3. The remote sensing image change detection method based on the adversarial dual autoencoder network according to claim 1 is characterized in that: In S2, firstly, a pseudo label is obtained by a traditional unsupervised change detection method, and paired image blocks with a size of 16×16 are cropped from the dual-phase remote sensing image with the pixel as the center, and the unchanged part of the pseudo label is selected as the data set.
4. The remote sensing image change detection method based on the adversarial dual autoencoder network according to claim 1 is characterized in that: In S301, each branch autoencoder network is formed by stacking two-dimensional convolutional layers.
5. The remote sensing image change detection method based on the adversarial dual autoencoder network according to claim 1 is characterized in that: The discriminator network inputs the feature image F1 and the feature image F2 output by the two branch autoencoder networks for discrimination, and presets F1 and F2 as true and false respectively; then, adversarial training is used to make the F1 and F2 features similar in distribution; the two multi-head attention mechanisms correspond to the two branch autoencoder networks respectively, and F1 and F2 are respectively input into the multi-head attention mechanisms and feature constraints are performed through the average error loss function.
6. The remote sensing image change detection method based on the adversarial dual autoencoder network according to claim 1, characterized in that: In S4, the λ value of the cross loss is 0.05~0.5, the initial learning rate is 0.0001~0.0005, and the batch size is 64~256; the training is iterated 10~20 times, and the learning rate is decayed in three stages. Every 5~10 generations, the learning rate decays to one tenth of the original; The average error loss and cross entropy loss are used as loss functions, and Adam is used as the optimization method.
7. The remote sensing image change detection method based on the adversarial dual autoencoder network according to claim 1, characterized in that: In the step S5, the change map is binarized using the automatic threshold segmentation method Otsu to obtain a change detection map.
8. A remote sensing image change detection system based on an adversarial dual autoencoder network, characterized in that: include: A processing module pre-processes the dual-temporal remote sensing images; The data module converts the dual-temporal remote sensing images preprocessed by the processing module into a data set; A network module is provided to construct an adversarial dual autoencoder network; the adversarial dual autoencoder network includes two branch autoencoder networks, a discriminator network and a multi-head attention mechanism; the two branch autoencoder networks are used to extract the features of dual-phase remote sensing images respectively, and the discriminator network is arranged between the feature layers of the two branch autoencoder networks. The deepest feature layers of the two branch autoencoder networks have a discriminator network, which is composed of multiple convolutional layers, BN layers and pooling layers, as an adversarial discriminant module; A multi-head attention mechanism is added to the deepest feature layer of each of the two branch autoencoder networks. The two branch autoencoder networks and the multi-head attention mechanism form an attention constraint module. Each branch autoencoder network consists of three shallow autoencoders. The two branch autoencoder networks have the same network structure, but do not share network parameters. The training module uses the dataset created by the data module to train the adversarial dual autoencoder network built by the network module; The detection module inputs the data module into the adversarial dual autoencoder network trained by the training module, obtains the change map according to the output results, and then uses the automatic threshold segmentation method Otsu to binarize the change map to obtain the change detection map, thus completing the remote sensing image change detection.
