Remote sensing image change detection method and system based on cascaded U-Net
Through the cascaded U-Net model and multi-scale deep feature extraction technology, the problem of insufficient generalization ability and robustness of the U-Net model in remote sensing images is solved, and higher detection accuracy and robustness are achieved. It is suitable for areas such as ground object change detection and disaster warning.
Patent Information
- Application Number
- CN202411024560.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-29
AI Technical Summary
The existing U-Net model has insufficient generalization ability and robustness in remote sensing images, resulting in possible omissions in the detection process and large detection result errors, especially poor performance under interference factors.
A remote sensing image change detection method based on cascaded U-Net is used to extract feature vectors through dual-temporal remote sensing image preprocessing and block embedding layers. The cascaded U-Net model performs multi-scale deep feature extraction, and effectively performs cascading The training module dynamically adjusts the weight of the feature map, and finally integrates it in the block recovery layer to generate complete remote sensing image change detection results.
It significantly improves the accuracy and robustness of remote sensing image change detection, reduces false detections and missed detections due to image quality problems, and improves the model's flexibility and detection accuracy.
Smart Images

Figure CN118865154A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing and pattern recognition, and in particular relates to a remote sensing image change detection method and system based on cascaded U-Net. Background Art
[0002] At present, the application of remote sensing technology is becoming more and more extensive in fields such as environmental monitoring, land management, agriculture and rural areas, and urban planning. As an important data source for monitoring surface changes, remote sensing images have many advantages such as wide coverage, large amount of information, and fast update speed, which can obtain information on the earth's surface more quickly and accurately. However, due to the complexity and diversity of surface changes, such remote sensing images are easily affected by various interference factors in real scenes, such as illumination changes, noise, occlusion, etc. Therefore, how to effectively extract accurate change information from remote sensing images has become a relatively important problem that needs to be solved.
[0003] As an improvement, there are currently existing remote sensing image change detection methods based on U-Net, but the current detection methods of this type have problems such as insufficient generalization ability and insufficient robustness of the model. Due to the complexity and diversity of remote sensing images, the problem that the model performs well on the training set but performs poorly on the test set is common. Based on this, it can be seen that the generalization ability of the model is limited and it is difficult to cope with various unknown and complex remote sensing image changes. The model needs to have strong robustness to accurately analyze in complex environments. However, the current existing U-Net model has insufficient generalization ability and robustness under interference factors, which may lead to omissions in the detection process and large errors in the detection results. Summary of the invention
[0004] The purpose of the present invention is to provide a remote sensing image change detection method and system based on cascade U-Net, so as to solve the problem that the existing U-Net model has insufficient generalization ability and robustness under interference factors, which may lead to omissions in the detection process and large errors in the detection results.
[0005] In order to achieve the above object, the present invention adopts the following technical scheme:
[0006] The present invention provides a remote sensing image change detection method based on cascade U-Net, comprising the following steps:
[0007] S1, collecting remote sensing images at different time points according to preset time to form dual-phase remote sensing images, preprocessing the dual-phase remote sensing images, and obtaining preprocessed images;
[0008] S2, input the preprocessed image into the block embedding layer, and obtain the feature vector set in the image through the block embedding layer's block segmentation and transformation;
[0009] S3, input the feature vector set in the image into the cascade U-Net model, perform encoding and decoding operations, obtain multi-scale and deep features in the image, and output a feature map;
[0010] S4, inputting the feature map into the cascade effective training module, dynamically adjusting the weight ratio of the feature map in the final decision through the cascade effective training module, and obtaining the optimal output feature map;
[0011] S5. The optimal output feature map is input into the block recovery layer. The block recovery layer integrates the optimal output feature map, accurately splices the interpolated block features according to the block layout of the original image, and finally generates a complete remote sensing image change detection result.
[0012] In some embodiments, in S1, the preprocessing is to use a multi-scale Gaussian filtering technique, and set a Gaussian kernel to perform multiple convolution operations on the image to obtain image data.
[0013] Furthermore, S1 is specifically:
[0014] S11. The dual-phase remote sensing image is captured with Gaussian kernels at different scales. Multiple Gaussian kernels are selected, each with a different standard deviation σ. The Gaussian kernel is defined as follows:
[0015]
[0016] Where x and y are the position coordinates relative to the center of the Gaussian kernel, and G(x, y, σ) is the Gaussian kernel;
[0017] S12. For each Gaussian kernel, perform the convolution operation of the following formula (2) to obtain a multi-scale filtered image of the image:
[0018]
[0019] Among them, i represents different scales, I(x,y) represents the original image, represents the filtered image, and * represents the convolution operation;
[0020] S13. For each selected σ i , repeat S12 to obtain a multi-scale filtered image;
[0021] S14, fusing the image results after filtering at multiple scales by weighted averaging to obtain the final denoised image.
[0022] Furthermore, the S14 is specifically:
[0023] The final image of weighted average I fCalculated using the following formula (3):
[0024]
[0025] in, is to use a standard deviation of σ i The image after Gaussian kernel filtering, w i is the weight corresponding to the filtering result, the denominator is the sum of all weights, I f is the final image of the weighted average.
[0026] In some embodiments, S2 is specifically:
[0027] S21, using a sliding window strategy to divide the image into blocks on the preprocessed image to extract local features; using a preset pixel sliding window to traverse the block image;
[0028] S22, for an area near the edge of the image, if the area is less than the preset pixels, fill in the missing pixels by zero filling;
[0029] S23. Design an embedding layer to convert the image block of each preset pixel into a feature vector of fixed length through forward propagation calculation, and collect all feature vectors to form a feature vector set.
[0030] In some implementations, S3 is specifically:
[0031] S31, using the ConvNeXT architecture as the backbone network and taking the feature vector set as the input of the cascaded U-Net model;
[0032] S32, passing the feature vector set through an encoder part including a series of convolutional layers and pooling layers to reduce the spatial size of the feature map and increase the feature depth to generate a feature map;
[0033] S33, passing the feature map through a decoder part, and the decoder part restores the spatial resolution of the feature map through an upsampling operation, thereby increasing the size of the feature map;
[0034] S34. The output feature map of the previous U-Net is used as one of the additional inputs of the next U-Net and combined with the input feature vector of the current U-Net. Repeat this operation to obtain the optimal output feature map.
[0035] Further, S32 is specifically:
[0036] The initial feature map is generated from the input feature vector, and the input feature map is converted into the feature map of the next layer through the convolution operation according to the following formula (4):
[0037] X l+1 =σ(Wl *X l +b l )(4);
[0038] Among them, X l is the input feature map, X l+1 is the feature map of the next layer, W l and b l They are the weight matrix and bias term respectively, * represents the convolution operation, and σ is the Relu activation function;
[0039] Its spatial resolution is then reduced through a pooling layer to generate feature maps with different spatial resolutions and feature depths.
[0040] In some embodiments, S4 is specifically:
[0041] S41. Assign weight W to the optimal output feature map output by a certain U-Net n , the final predicted feature block is expressed by the following formula (5):
[0042]
[0043] Among them, N is the number of cascaded U-Nets, O is the predicted feature block, and W n is the weight;
[0044] S42. Select diceloss to measure the difference between the predicted feature block and the actual result, and get the gradient of the loss function with respect to the model parameters:
[0045]
[0046] Where N is the number of samples, y i is the true label of the i-th sample, is the probability value predicted by the model;
[0047] S43, use the back propagation algorithm to calculate the gradient of the loss function with respect to the model parameters, update the model parameters, and use the gradient descent method to update the weight W n and model parameters until convergence conditions are reached;
[0048]
[0049] When the preset error threshold is met, the training process is stopped and the optimal output feature map is obtained.
[0050] Furthermore, S5 is specifically:
[0051] S51, performing an upsampling operation on the final predicted feature block using a bilinear interpolation upsampling technique;
[0052]
[0053] Among them, V(x+i,y+j) represents the value of the surrounding pixels, and w(i,j) is the distance weight relative to (x,y), which is calculated by the following formula:
[0054]
[0055] S52. For any non-integer point (x, y) between two integer coordinate points (x0, y0) and (x1, y1), bilinear interpolation technology is used, and its value I(x, y) can be calculated by the following formula:
[0056] I(x,y)=(1-Δ x )(1-Δ y )I(x0,y0)+Δ x (1-Δ y )I(x1,y0)+(1-Δ x )Δ y I(x0,y1)+Δ x Δ y I(x1,y1)(10);
[0057] Among them, Δ x =x-x0 and Δ y =y-y0 respectively represents the offset of point (x,y) relative to (x0,y0);
[0058] S53, splicing the feature blocks obtained by upsampling and bilinear interpolation according to the original layout:
[0059] F(x,y)=B i,j (xi·B w ,yj·B h )for x∈[i·B w ,(i+1)·B w ],y∈[j·B h ,(j+1)·B h ](11);
[0060] Among them, B w and B h are the width and height of the feature block, B i,j Represents the feature block of row i and column j;
[0061] The block features extracted from the cascaded U-Net structure are integrated and reconstructed to form a complete remote sensing image change detection result.
[0062] The present invention also provides a remote sensing image change detection system based on cascade U-Net, comprising a block embedding module, a cascade U-Net model, a cascade effective training module and a block recovery module; wherein:
[0063] The block embedding module is used to process image data and obtain a set of feature vectors;
[0064] The cascaded U-Net model is used to obtain multi-scale deep features in the image based on a set of feature vectors and output a feature map;
[0065] The cascade effective training module is used to dynamically adjust the weight ratio of the feature map in the final decision based on the feature map to obtain the optimal output feature map;
[0066] The block recovery module is used to accurately splice the interpolated block features based on the optimal output feature map and the block layout of the original image, and finally generate a complete remote sensing image change detection result.
[0067] Compared with the prior art, the remote sensing image change detection method and system based on cascade U-Net of the present invention have the following beneficial technical effects.
[0068] The invention discloses a remote sensing image change detection method based on cascade U-Net, comprising the following steps: S1, collecting remote sensing images at different time points according to preset time to form a dual-phase remote sensing image, preprocessing the dual-phase remote sensing image, and obtaining the preprocessed image; S2, inputting the preprocessed image into a block embedding layer, and obtaining a feature vector set in the image through block segmentation and conversion of the block embedding layer; S3, inputting the feature vector set in the image into a cascade U-Net model, performing encoding and decoding operations, obtaining multi-scale and deep-level features in the image, and outputting a feature map; S4, inputting the feature map into a cascade effective training module, dynamically adjusting the weight ratio of the feature map in the final decision through the cascade effective training module, and obtaining an optimal output feature map; S5, inputting the optimal output feature map into a block recovery layer, and the block recovery layer integrates the optimal output feature map, and according to the block layout of the original image, accurately splices the interpolated block features, and finally generates a complete remote sensing image change detection result. Based on the above, the present invention can be applied to the fields of ground object change detection, disaster warning, ecological monitoring, etc., and can provide a remote sensing image change detection method with higher accuracy. The present invention cascades more U-Nets at a lower computing cost, thereby significantly improving the accuracy of the model detection results, and providing technical support for the analysis and application of remote sensing image changes. The present invention extracts multi-scale deep-level features in the image by cascading U-Net models. These features not only contain rich spatial information, but also cover the details of changes at different scales. The cascade structure enables the features to be fused and enhanced at multiple levels, thereby improving the detection accuracy of remote sensing image changes. The present invention combines multi-scale Gaussian filtering, adaptive median filtering, image sharpening, and a method based on feature point matching to effectively remove image noise, enhance image details, and accurately align dual-phase images, thereby significantly improving the robustness of the system and reducing false detections and missed detections caused by image quality problems. The cascaded U-Net model used in the present invention is highly flexible, and the network structure and parameters can be adjusted according to specific task requirements.
[0069] The present invention assists training by dynamically adjusting the weights in multi-scale deep features through cascading effective training modules, so that the model can automatically adjust the learning focus according to the importance of the features, thereby optimizing the accuracy of the detection results. The present invention can maintain high efficiency when processing large-scale remote sensing images through block embedding and recovery. Block processing reduces the complexity of a single calculation, while block recovery ensures the integrity of the final result. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] The drawings in the specification are used to provide further understanding of the present invention and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0071] Figure 1 It is a flow chart of a remote sensing image change detection method and a method in a system based on a cascaded U-Net of the present invention;
[0072] Figure 2 It is a schematic diagram of the network structure of the remote sensing image change detection method and system based on cascade U-Net of the present invention;
[0073] Figure 3 It is a schematic diagram of the visualized detection results of remote sensing image data sets under different changes in the embodiments of the remote sensing image change detection method and system based on cascade U-Net of the present invention. DETAILED DESCRIPTION
[0074] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0075] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0076] How to solve the problem of low accuracy of remote sensing image change detection, and how to provide a remote sensing image change detection method with strong model generalization ability and high robustness.
[0077] Based on this, the present invention provides a remote sensing image change detection method based on cascade U-Net, comprising the following steps:
[0078] S1, collecting remote sensing images at different time points according to preset time to form dual-phase remote sensing images, preprocessing the dual-phase remote sensing images, and obtaining preprocessed image data;
[0079] S2, input the preprocessed image data into the block embedding layer, and obtain a set of feature vectors in the image after processing by the block embedding layer;
[0080] S3, input the feature vector set in the image into the cascade U-Net model to obtain multi-scale deep features in the image;
[0081] S4, inputting the multi-scale deep features in the image into the cascade effective training module, which assists in training by dynamically adjusting the weights in the multi-scale deep features to obtain the final block features;
[0082] S5. The final block features are input into the block recovery layer, and the block recovery layer forms the final complete remote sensing image change detection result by recombining.
[0083] The present invention discloses a remote sensing image change detection method based on cascade U-Net, which significantly improves the detection accuracy and efficiency of remote sensing image changes by combining preprocessing, block embedding, multi-scale feature extraction and fusion, dynamic weight adjustment training and efficient block recovery. The method of the present invention combines a variety of image processing technologies to effectively remove noise and enhance image details, while using the cascade U-Net model to deeply mine multi-scale features to ensure the capture of subtle changes. The dynamic weight adjustment strategy further optimizes the model training process, while the block recovery technology ensures the integrity and accuracy of the detection results. Overall, the method of the present invention not only improves the robustness and flexibility of remote sensing image change detection, but also has the potential to achieve automated and efficient remote sensing monitoring.
[0084] like Figure 1 and Figure 2 As shown, the remote sensing image change detection method and system based on cascade U-Net of the present invention are further described in detail below through specific embodiments.
[0085] Step 1: Use the hyperspectral camera carried by the drone to collect a dual-temporal remote sensing image dataset in a certain area.
[0086] The purpose of step 1 is to obtain dual-temporal remote sensing images of the same location.
[0087] Step 2: Perform fine denoising preprocessing on the dual-phase remote sensing image collected in step 1. Use multi-scale Gaussian filtering technology and set the Gaussian kernel to perform multiple convolution operations on the image to effectively suppress Gaussian noise and salt and pepper noise in the image, while keeping the edge information of the image from being overly blurred, so as to eliminate noise interference and obtain clearer image data.
[0088] Step 2 is to obtain a denoised image while retaining the important features of the original image as much as possible; the Gaussian filtering method is used. The principle is: by setting the Gaussian kernel and performing multiple convolution operations on the image, the Gaussian noise and salt and pepper noise in the image can be effectively suppressed, while keeping the edge information of the image from being overly blurred.
[0089] Step 3: Segment the clear image data obtained after processing in step 2 into multiple 4×4 pixel blocks. Each block is converted into a fixed-length 92-dimensional feature vector through an embedding layer, which stores the image information.
[0090] The role of step 3 is to capture the intrinsic features of the image block, obtain the embedding vector, and reduce the complexity of model processing;
[0091] This process can be expressed as:
[0092] in, Represents a 4×4 image block e i,j is the corresponding embedding vector.
[0093] Step 4: Input the feature vector obtained in step 3 into the cascaded U-Net model. The core of each U-Net model uses ConvNeXT as the backbone network. Through encoding and decoding operations, multi-scale and deep features in the image are obtained and feature maps are output.
[0094] The role of step 4 is to extract and fuse multi-scale variation features from the embedding vector. The encoder of each U-Net extracts features of different scales through convolution and pooling operations, while the decoder gradually restores the spatial resolution through upsampling and convolution operations. Adjacent U-Nets perform feature fusion through jump connections. Specifically, the input of the nth U-Net can be expressed as: Input n =e i,j ∪U n-1 (e i,j );
[0095] Among them, U n-1 (e i,j ) represents the previous U-Net model embedding vector e i,j This cascade structure enables the model to gradually capture the change information in the remote sensing image from coarse to fine, and obtain the optimal output feature map.
[0096] Step 5: Dynamically adjust the weight ratio of the output feature map of each level of U-Net in step 4 in the final decision through the cascade effective training module to obtain the optimal output feature map.
[0097] The purpose of step 5 is to improve the training effect of the cascaded U-Net structure. Since the cascaded structure contains multiple U-Net models, directly optimizing the final output may lead to poor learning effects of the early models. Therefore, the cascaded effective training module is introduced to assist training by dynamically adjusting the weights of different U-Net output feature maps in the final result.
[0098] Step 6: Use the block recovery layer to integrate the optimal output of step 5. According to the block layout of the original image, the interpolated block features are accurately spliced to finally generate a complete remote sensing image change detection result.
[0099] The role of step 6 is to use the block recovery layer to integrate the predicted feature blocks to obtain the complete remote sensing image change detection result. The previous block embedding layer divides the input stacked dual-phase remote sensing image into multiple small blocks, and these small blocks are processed separately in the cascade U-Net structure. Therefore, in step 6, these processed block features need to be recombined according to their original positions to form the final change detection result.
[0100] As a preferred embodiment, in the present invention, step 1 is specifically implemented according to the following steps:
[0101] Using the hyperspectral camera carried by a drone, the first phase image was collected in the spring of a certain year, and the second phase image was collected in the autumn of a certain year. The image resolution was set to 10 meters / pixel, and a dual-phase remote sensing image covering the same area was obtained.
[0102] Step 2 is implemented as follows:
[0103] Step 2.1: Use Gaussian kernel to capture different scale features of the dual-phase remote sensing image obtained in step 1. Select a series of Gaussian kernels, each with a different standard deviation σ. The Gaussian kernel is defined as:
[0104]
[0105] Where x and y are the position coordinates relative to the center of the Gaussian kernel.
[0106] Step 2.2: For each Gaussian kernel G(x,y,σ) in step 2.1, perform the convolution operation:
[0107]
[0108] Get the multi-scale filtered image of the image, where i represents different scales, I(x,y) is the original image, is the filtered image, and * indicates the convolution operation.
[0109] Step 2.3: For each selected σ i , repeat step 1.2 to obtain the effect of multi-scale filtering.
[0110] Step 2.4: Fuse the image results after filtering at n scales by weighted averaging to obtain the final denoised image.
[0111] Specifically, each result is recorded as where σ i is the standard deviation of the corresponding Gaussian kernel. The weight of each filtering result is recorded as w i The larger the standard deviation of the Gaussian kernel, the blurrier the image will be. The smaller the weight is, the smaller the weight is. The final image of the weighted average is I f It can be obtained by the following formula:
[0112]
[0113] in, is to use a standard deviation of σ i The image after Gaussian kernel filtering, w i is the weight corresponding to the filtering result, the denominator is the sum of all weights and is used to normalize the weighted average;
[0114] The input of the nth U-Net can be expressed as: Input n =e i,j ∪U n-1 (e i,j );
[0115] Among them, U n-1 (e i,j ) represents the previous U-Net model embedding vector e i,j This cascade structure enables the model to gradually capture the change information in the remote sensing image from coarse to fine, and obtain the optimal output feature map.
[0116] Step 3 is implemented as follows:
[0117] Step 3.1: On the final denoised image after preprocessing in step 2, a sliding window strategy is used to divide the image into blocks to extract local features. f is the preprocessed image with size H×W, where H and W are the height and width of the image respectively.
[0118] The image is traversed using a sliding window of size k×k, where k = 4. The image block covered by each window is defined as Where (i, j) is the position coordinate of the upper left corner of the window in the original image.
[0119] Step 3.2: For the area near the edge of the image, if it is less than 4×4 pixels, fill in the missing pixels by zero filling. That is, if i+k>H or j+k>W, then let The pixel values outside the H×W range are 0.
[0120] Step 3.3: Design the embedding layer E to embed each 4×4 image block obtained in step 3.1 and step 3.2 The forward propagation is converted into a fixed-length feature vector e i,j , take length d = 92, collect all e i,j Form a feature vector set ε, which captures the intrinsic characteristics of the image block.
[0121] Step 4 is implemented according to the following steps:
[0122] Step 4.1: Set the feature vector set ε generated in step 3.3 to {e i,j} as the input of the cascaded U-Net model. The ConvNeXT architecture is used as the backbone network, which captures the deep features in the image with lower computational complexity by improving the standard convolution operation.
[0123] Step 4.2: Pass the feature vector input in step 4.1 through the encoder part, which contains a series of convolutional layers and pooling layers to gradually reduce the spatial size of the feature map while increasing the feature depth.
[0124] Specifically, from the input feature vector e i,j Generate the initial feature map X0, and transform the input feature map X0 through convolution operation. l Convert to the feature map X of the next layer l+1 :
[0125] X l+1 =σ(W l *X l +b l )(4);
[0126] Among them, W l and b l are the weight matrix and bias term respectively, * represents the convolution operation, and σ is the Relu activation function.
[0127] Then, the spatial resolution is gradually reduced through the pooling layer to generate a series of feature maps X1, X2, ..., X with different spatial resolutions and feature depths. L .
[0128] Step 4.3: Pass the feature map generated in step 4.2 through the decoder part. The decoder part gradually restores the spatial resolution of the feature map through upsampling operations and increases the size of the feature map.
[0129] Feature fusion is performed between the upsampled feature map and the feature map of the corresponding layer of the encoder to restore the lost detail information and obtain a complete output feature map.
[0130] Specifically, is the output feature map of the l-th layer decoder, and the skip connection is realized by addition, which is expressed as Where ⊕ represents the feature fusion operation.
[0131] Step 4.4: Output feature map Y of the previous U-Net n-1 As one of the additional inputs of the next U-Net, it is combined with the input feature vector e of the current U-Net i,j Combined, expressed as Input n =e i,j ∪Y n-1 ;
[0132] Repeat step 4 to obtain the optimal output feature map.
[0133] Step 5 is implemented according to the following steps:
[0134] Step 5.1: Assign weight W to the optimal output feature map of the nth U-Net output obtained in step 4.4 n , N is the number of cascaded U-Nets, and N=4. The final predicted feature block can be expressed as:
[0135]
[0136] Step 5.2, select dice loss to measure the difference between the predicted feature block and the actual result:
[0137]
[0138] Where N is the number of samples, y i is the true label of the i-th sample, is the probability value predicted by the model.
[0139] By minimizing the loss function L, the predicted feature blocks of the model are made as close as possible to the actual change detection results, thereby improving the accuracy of the model.
[0140] Step 5.3: Use the back propagation algorithm to calculate the gradient of the loss function obtained in step 5.2 with respect to the model parameters and update the model parameters. Use the gradient descent method to update the weight W. n and model parameters until convergence conditions are reached.
[0141]
[0142] The preset error threshold of 0.00001 stops the training process and obtains the optimal model.
[0143] Step 6 is implemented according to the following steps:
[0144] Step 6.1: The final predicted feature block obtained in step 5.1 is upsampled using bilinear interpolation technology. For any point (x, y) in the upsampled feature map, its value V′(x, y) can be calculated by the following formula:
[0145]
[0146] Among them, V(x+i,y+j) represents the value of the surrounding pixels, and w(i,j) is the distance weight relative to (x,y), which is calculated by the following formula:
[0147]
[0148] Step 6.2: For any non-integer point (x, y) between two integer coordinate points (x0, y0) and (x1, y1), a bilinear interpolation technique is used, and its value I(x, y) can be calculated by the following formula to ensure a smooth transition:
[0149] I(x,y)=(1-Δ x )(1-Δ y )I(x0,y0)+Δ x (1-Δ y )I(x1,y0)+(1-Δ x )Δ y I(x0,y1)+Δ x Δ y I(x1,y1)(10);
[0150] Among them, Δ x =x-x0 and Δ y =y-y0 respectively represents the offset of point (x,y) relative to (x0,y0).
[0151] Step 6.3: Splice the feature blocks obtained by upsampling in step 6.1 and bilinear interpolation in step 6.2 according to the original layout:
[0152] F(x,y)=B i,j (xi·B w ,yj·B h )for x∈[i·B w ,(i+1)·B w ],y∈[j·B h ,(j+1)·B h ](11);
[0153] Among them, B w and B h are the width and height of the feature block, B i,j Represents the feature block at the i-th row and j-th column.
[0154] Through the above steps, the block features extracted from the cascaded U-Net structure are effectively integrated and reconstructed to form a complete remote sensing image change detection result.
[0155] Based on the above-mentioned remote sensing image change detection method based on cascade U-Net, the present invention also provides a remote sensing image change detection system based on cascade U-Net for executing the method, the system includes a block embedding module, a cascade U-Net model, a cascade effective training module and a block recovery module; wherein:
[0156] The block embedding module is used to process image data and obtain a set of feature vectors; the cascade U-Net model is used to obtain multi-scale deep features in the image based on the set of feature vectors; the cascade effective training module is used to assist training based on the multi-scale deep features in the image by dynamically adjusting the weights in the multi-scale deep features to obtain the final block features; the block recovery module is used to form the final complete remote sensing image change detection result by recombination based on the final block features.
[0157] The present invention verifies the effectiveness of the method and system of the present invention through the following experiments. Specifically, this experiment uses the public building change detection dataset LEVIR-CD to train and evaluate the change detection model.
[0158] To ensure the effectiveness of the model training, validation, and testing process, the dataset is divided into three subsets: training set, validation set, and test set. The model is optimized on the validation set and the results are reported on the test set. In change detection, F1 score and IoU score are better indicators for comparing different models because these indicators consider both precision and recall, and can more comprehensively evaluate model performance.
[0159] The performance of this experiment on the LEVIR-CD dataset is shown in Table 1:
[0160] Table 1 Performance data on the LEVIR-CD dataset
[0161] method Accuracy (%) Recall rate (%) F1(%) IoU(%) DeepLab V3 95.74 95.01 95.28 90.93 RDPNet 97.81 97.33 97.54 95.48 U-Net 96.36 95.71 95.61 92.34 Ours 97.95 97.54 97.72 95.57
[0162] It can be seen from Table 1 that the remote sensing image change detection method and system based on cascade U-Net proposed in the present invention can achieve good detection accuracy. Compared with U-Net, the precision and recall rate of the present invention are respectively improved by 1.59% and 1.83%. In order to further illustrate the superiority of the present invention, Figure 3 The visualization results of different methods are shown, such as Figure 3 As shown, from Figure 3 It can be seen from the results that the remote sensing image change detection method of the present invention has a better detection effect, can significantly improve the accuracy of the model detection results, and has better practicality.
[0163] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any ordinary technician in the industry can smoothly implement the present invention as shown in the specification and described above. However, any equivalent changes, modifications and evolutions made by technicians familiar with the profession without departing from the scope of the technical solution of the present invention using the technical content disclosed above are all equivalent embodiments of the present invention. At the same time, any equivalent changes, modifications and evolutions made to the above embodiments based on the essential technology of the present invention are still within the protection scope of the technical solution of the present invention.
Claims
1. A remote sensing image change detection method based on cascaded U-Net, characterized in that: The steps include: S1, collecting remote sensing images at different time points according to preset time to form dual-phase remote sensing images, preprocessing the dual-phase remote sensing images, and obtaining preprocessed images; S2, input the preprocessed image into the block embedding layer, and obtain the feature vector set in the image through the block embedding layer's block segmentation and transformation; S3, input the feature vector set in the image into the cascade U-Net model, perform encoding and decoding operations, obtain multi-scale and deep features in the image, and output a feature map; S4, inputting the feature map into the cascade effective training module, dynamically adjusting the weight ratio of the feature map in the final decision through the cascade effective training module, and obtaining the optimal output feature map; S5. The optimal output feature map is input into the block recovery layer. The block recovery layer integrates the optimal output feature map, accurately splices the interpolated block features according to the block layout of the original image, and finally generates a complete remote sensing image change detection result.
2. The remote sensing image change detection method based on cascaded U-Net according to claim 1 is characterized in that: In S1, the preprocessing is to use multi-scale Gaussian filtering technology, set the Gaussian kernel to perform multiple convolution operations on the image to obtain image data.
3. The remote sensing image change detection method based on cascaded U-Net according to claim 2 is characterized in that: The S1 is specifically: S11. The dual-phase remote sensing image is captured with Gaussian kernels at different scales. Multiple Gaussian kernels are selected, each with a different standard deviation σ. The Gaussian kernel is defined as follows: Where x and y are the position coordinates relative to the center of the Gaussian kernel, and G(x, y, σ) is the Gaussian kernel; S12. For each Gaussian kernel, perform the convolution operation of the following formula (2) to obtain a multi-scale filtered image of the image: Among them, i represents different scales, I(x,y) represents the original image, represents the filtered image, and * represents the convolution operation; S13. For each selected σ i , repeat S12 to obtain a multi-scale filtered image; S14, fusing the image results after filtering at multiple scales by weighted averaging to obtain the final denoised image.
4. The remote sensing image change detection method based on cascaded U-Net according to claim 3 is characterized in that: The S14 is specifically: The final image of weighted average I f Calculated using the following formula (3): in, is to use a standard deviation of σ i The image after Gaussian kernel filtering, w i is the weight corresponding to the filtering result, the denominator is the sum of all weights, I f is the final image of the weighted average.
5. The remote sensing image change detection method based on cascaded U-Net according to claim 1, characterized in that: The S2 is specifically: S21, using a sliding window strategy to perform image segmentation on the preprocessed image to extract local features; Use a preset pixel sliding window to traverse the block image; S22, for an area near the edge of the image, if the area is less than the preset pixels, fill in the missing pixels by zero filling; S23. Design an embedding layer to convert the image block of each preset pixel into a feature vector of fixed length through forward propagation calculation, and collect all feature vectors to form a feature vector set.
6. The remote sensing image change detection method based on cascaded U-Net according to claim 1, characterized in that: The S3 is specifically: S31, using the ConvNeXT architecture as the backbone network and taking the feature vector set as the input of the cascaded U-Net model; S32, passing the feature vector set through an encoder part including a series of convolutional layers and pooling layers to reduce the spatial size of the feature map and increase the feature depth to generate a feature map; S33, passing the feature map through a decoder part, and the decoder part restores the spatial resolution of the feature map through an upsampling operation, thereby increasing the size of the feature map; S34. The output feature map of the previous U-Net is used as one of the additional inputs of the next U-Net and combined with the input feature vector of the current U-Net. Repeat this operation to obtain the optimal output feature map.
7. The remote sensing image change detection method based on cascaded U-Net according to claim 6, characterized in that: The S32 is specifically: The initial feature map is generated from the input feature vector, and the input feature map is converted into the feature map of the next layer through the convolution operation according to the following formula (4): X l+1 =σ(W l *X l +b l )(4); Among them, X l is the input feature map, X l+1 is the feature map of the next layer, W l and b l They are the weight matrix and bias term respectively, * represents the convolution operation, and σ is the Relu activation function; Its spatial resolution is then reduced through a pooling layer to generate feature maps with different spatial resolutions and feature depths.
8. The remote sensing image change detection method based on cascaded U-Net according to claim 1, characterized in that: The S4 is specifically: S41. Assign weight W to the optimal output feature map output by a certain U-Net n , the final predicted feature block is expressed by the following formula (5): Among them, N is the number of cascaded U-Nets, O is the predicted feature block, and W n is the weight; S42. Select diceloss to measure the difference between the predicted feature block and the actual result, and get the gradient of the loss function with respect to the model parameters: Where N is the number of samples, y i is the true label of the i-th sample, is the probability value predicted by the model; S43, use the back propagation algorithm to calculate the gradient of the loss function with respect to the model parameters, update the model parameters, and use the gradient descent method to update the weight W n and model parameters until convergence conditions are reached; When the preset error threshold is met, the training process is stopped and the optimal output feature map is obtained.
9. The remote sensing image change detection method based on cascaded U-Net according to claim 8, characterized in that: The S5 is specifically: S51, performing an upsampling operation on the final predicted feature block using a bilinear interpolation upsampling technique; Among them, V(x+i,y+j) represents the value of the surrounding pixels, and w(i,j) is the distance weight relative to (x,y), which is calculated by the following formula: S52. For any non-integer point (x, y) between two integer coordinate points (x0, y0) and (x1, y1), bilinear interpolation technology is used, and its value I(x, y) can be calculated by the following formula: I(x,y)=(1-Δ x )(1-D y )I(x0,y0)+Δ x (1-D y )I(x1,y0)+(1-Δ x )D y I(x0,y1)+Δ x D y I(x1,y1)(10); Among them, Δ x =x-x0 and Δ y =y-y0 respectively represents the offset of point (x,y) relative to (x0,y0); S53, splicing the feature blocks obtained by upsampling and bilinear interpolation according to the original layout: F(x,y)=B i,j (x-i·B w ,y-j·B h )for x∈[i·B w ,(i+1)·B w ],y∈[j·B h ,(j+1)·B h ](11); Among them, B w and B h are the width and height of the feature block, B i,j Represents the feature block of row i and column j; The block features extracted from the cascaded U-Net structure are integrated and reconstructed to form a complete remote sensing image change detection result.
10. A remote sensing image change detection system based on cascaded U-Net, characterized in that: It includes a block embedding module, a cascaded U-Net model, a cascaded effective training module, and a block recovery module; among which: The block embedding module is used to process image data and obtain a set of feature vectors; The cascaded U-Net model is used to obtain multi-scale deep features in the image based on a set of feature vectors and output a feature map; The cascade effective training module is used to dynamically adjust the weight ratio of the feature map in the final decision based on the feature map to obtain the optimal output feature map; The block recovery module is used to accurately splice the interpolated block features based on the optimal output feature map and according to the block layout of the original image, and finally generate a complete remote sensing image change detection result.
