Multi-temporal hyperspectral image change detection method based on multi-scale feature fusion

By using the dynamic convolution module of multi-scale feature fusion and channel attention mechanism in hyperspectral remote sensing image change detection, the problem of poor spectral feature capture in the existing technology is solved, and efficient and accurate change detection is achieved.

CN118570646AActive Publication Date: 2024-08-30LIAONING NORMAL UNIVERSITY
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410774330.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-30
Estimated Expiration
2044-06-17

AI Technical Summary

Technical Problem

Existing hyperspectral remote sensing image change detection methods are prone to losing detailed information during the sampling process and are difficult to accurately capture complex spectral features and local features. The problem of labeling samples and improving the efficiency and accuracy of network model construction still need to be studied.

Method used

A multi-temporal hyperspectral image change detection method based on multi-scale feature fusion is designed. It adopts a dynamic convolution module with a dual-branch network structure and channel attention mechanism to enhance the model's ability to perceive local information through multi-scale feature extraction and fusion. , improve the ability to perceive and capture the complex spectral features of hyperspectral data.

Benefits of technology

The efficiency and accuracy of change detection are significantly improved, the quality of feature extraction is good, and fewer training samples are required. The experimental results show superiority on real-world data sets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570646A
    Figure CN118570646A
Patent Text Reader

Abstract

The invention discloses a multi-temporal hyperspectral image change detection method based on multi-scale feature fusion, which adopts a double-branch network structure and is used for extracting features of different time phases. Meanwhile, in order to accurately capture complex spectral features and perform multi-scale consideration on the features, a dynamic convolution module is used, and a channel attention mechanism is introduced, so that adaptive adjustment of different wave band features is realized, and the perception and capture capability of the model on the complex spectral features in hyperspectral data is improved. The multi-scale feature fusion module operates on deep features, and the sensing ability of the model to local information is enhanced through multi-scale feature extraction and fusion. Experiments are carried out on three real-world hyperspectral image change detection data sets, and the result shows that compared with a current advanced change detection method, the method has remarkable superiority in effectiveness and performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of remote sensing image processing, and in particular to a multi-temporal hyperspectral image change detection method based on multi-scale feature fusion. Background Art

[0002] Satellite remote sensing data, with its objective, real, macro and comprehensive technical characteristics, has become the mainstay of natural resource development, utilization, protection and management. Remote sensing image change detection is a key technology in this field. It determines the changes in the surface area by analyzing and processing multi-temporal remote sensing data. As a type of remote sensing image, hyperspectral imagery contains hundreds of narrow and continuous bands, which form spectral vectors and can achieve fine recognition of super-visual attributes. The "map-to-spectrum" characteristic of hyperspectral imagery gives it a significant advantage in identifying subtle changes in the surface, and it is widely used in military reconnaissance, urban monitoring and other fields.

[0003] With the continuous development of deep learning, hyperspectral remote sensing image change detection with deep learning as the main means has become a cutting-edge research direction in recent years. For example, Mou et al. proposed a change detection method based on recurrent neural network, which achieved change detection results with high accuracy under unsupervised classification; Mostafa et al. proposed a hyperspectral image change detection method based on U-Net neural network, which used attention mechanism to enhance the information of interest. Wang et al. proposed a general end-to-end two-dimensional convolutional neural network (General End-to-End 2-D Convolutional Neural Network, GETNET) framework for hyperspectral image change detection. First, the abundance information of multi-phase hyperspectral images was obtained by applying the unmixing process, and then the abundance information was combined with the hyperspectral image to obtain the change result map. Zhan et al. proposed a new change detection network, called the three-directional spectral spatial convolutional network, which uses three-dimensional convolution to extract image features from three dimensions. In addition, Kevin et al. proposed a convolutional neural network model for semantic segmentation using pre-training.

[0004] In general, the hyperspectral image change detection method based on deep learning network has shown great development potential as an emerging detection technology. However, there are problems such as loss of detailed information in the sampling process, difficulty in accurately capturing complex spectral features, and unsatisfactory extraction of local features. How to solve the problem of labeled samples brought about by hyperspectral image big data, how to construct effective network models in a targeted manner to improve the efficiency and accuracy of change detection, etc., as a challenging task, needs further research. Summary of the invention

[0005] The present invention aims to solve the above-mentioned technical problems existing in the prior art and provides a multi-temporal hyperspectral image change detection method based on multi-scale feature fusion.

[0006] The technical solution of the present invention is: a multi-temporal hyperspectral image change detection method based on multi-scale feature fusion, which is carried out in the following steps:

[0007] Step 1. Establish and initialize the convolutional neural network N for hyperspectral image change detection CD , the N CD Contains 1 subnetwork N for feature extraction feature , 1 sub-network N for multi-scale feature fusion fusion and a subnetwork N for change detection cls ;

[0008] Step 1.1 Create and initialize subnetwork N feature , contains 5 groups of convolutional layers, namely Conv2_0, Conv2_1, Conv2_2, Conv2_3, Conv2_4;

[0009] The Conv2_0 includes, in order of operation, 1 layer of dynamic convolution operation, 1 layer of activation operation, 1 layer of convolution operation, 1 layer of activation operation and 1 layer of maximum pooling operation, wherein the size of the convolution kernel in the dynamic convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel, the size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel, and a nonlinear activation function ReLU is selected as the activation function for operation, and the pooling layer performs a maximum pooling operation with a pooling kernel of size 3×3;

[0010] The Conv2_1 includes, in order of operation, 1 convolution operation, 1 activation operation, 1 convolution operation, 1 activation operation, and 1 maximum pooling operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and uses a nonlinear activation function ReLU as an activation function for operation, and the pooling layer performs a maximum pooling operation with a pooling kernel of size 3×3;

[0011] The Conv2_2 includes, in order of operation, 1 convolution operation, 1 activation operation, 1 convolution operation, and 1 activation operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and uses a nonlinear activation function ReLU as an activation function for operation;

[0012] Conv2_3 includes one convolution operation and one activation operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, the convolution kernel performs convolution operation with a step size of 1 pixel, and a nonlinear activation function ReLU is selected as the activation function for operation;

[0013] Conv2_4 includes one convolution operation layer, the size of the convolution kernel in the convolution layer is 1×1, each convolution kernel performs convolution operation with a step size of 1 pixel, and then performs a Dropout operation with a parameter of 0.1;

[0014] Step 1.2 Create and initialize subnetwork N fusion , contains 3 groups of convolutional layers, namely Conv2_5, Conv2_6, Conv2_7, and 1 group of custom modules L MSF ;

[0015] The Conv2_5 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3;

[0016] The Conv2_6 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3;

[0017] The Conv2_7 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3;

[0018] The L MSF The module first performs one convolution operation, one activation operation, and one maximum pooling operation on the input feature F in the order of operation. The size of the convolution kernel in the convolution layer is 2×2, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is used as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then obtains the feature F2.

[0019] The feature F2 is subjected to one convolution operation, one activation operation, and one maximum pooling operation in the order of operation. The size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is selected as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then the feature F3 is obtained.

[0020] The feature F3 is subjected to one convolution operation, one activation operation, and one maximum pooling operation in the order of operation. The size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is selected as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then the feature F4 is obtained.

[0021] A convolution operation with a kernel size of 1×1 is performed on F4 to reduce the number of channels to obtain a new feature M4. M4 is upsampled by 2 times the nearest neighbor. M4 is combined with F3, which is also convolved with a kernel size of 1×1 to reduce the number of channels, to obtain a new feature M3. The combination method uses an addition operation between pixels, and upsample_2x(·) is a 2 times nearest neighbor upsampling operation:

[0022] M3=upsample_2x(M4)+f 1×1 (F3) (1)

[0023] M3 is upsampled by 2 times the nearest neighbor, and M3 is combined with F2, which also performs a convolution operation with a kernel size of 1×1 to reduce the number of channels, to obtain a new feature M2. The combination method uses the addition operation between pixels:

[0024] M2=upsample_2x(M3)+f 1×1 (F2) (2)

[0025] The size of the convolution kernel of M2 is 2×2, and each convolution kernel is convolved with a step size of 1 pixel to obtain the final multi-scale fusion feature F fusion ;

[0026] Step 1.3 Create and initialize subnetwork N cls , contains 1 convolutional layer Conv2_8 and 1 fully connected layer FC;

[0027] The Conv2_8 includes, in order of operation, 1 layer of convolution operation, 1 layer of BatchNorm normalization operation, 1 layer of activation operation, 1 layer of maximum pooling operation, 1 layer of convolution operation, 1 layer of BatchNorm normalization operation and 1 layer of activation operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and the nonlinear activation function LeakyReLU is selected as the activation function for operation, and the pooling layer performs maximum pooling operation with a pooling kernel of size 2×2;

[0028] The FC includes, in order of operation, one layer of maximum pooling operation, one layer of full connection operation, and one layer of activation operation, wherein the pooling layer performs the maximum pooling operation with a pooling kernel of size 2×2, and selects the nonlinear activation function sigmoid as the activation function for operation;

[0029] Step 2. Input the hyperspectral image I1∈R of the first phase M×N×D , the hyperspectral image of the second phase I2∈R M ×N×D , the manually labeled pixel point coordinate set and label set, for N CD Training is performed, where M and N are the spatial scales of the hyperspectral image, and D is the spectral dimension;

[0030] Step 2.1. Based on the manually labeled pixel point coordinate set, in the hyperspectral image I1∈R M×N×D and the hyperspectral image of the second phase I2∈R M×N×D Extract all pixel points with labels from and in, Represents X D1 The i-th Train Pixel points, Represents X D2 The i-th Train Pixel points, M Train Represents the total number of pixel points with labels;

[0031] Step 2.2. X D1 and X D2 As the training set of the convolutional neural network, let the number of iterations iter←1 and execute step 2.3;

[0032] Step 2.3. Use network N CD Extract features from the training set and perform change detection tasks;

[0033] Step 2.3.1 Using subnetwork N feature X D1 Perform feature extraction to obtain the feature F of the hyperspectral image in the first phase 11 ;

[0034] Step 2.3.2 Using subnetwork N feature X D2 Perform feature extraction to obtain the feature F of the hyperspectral image of the second phase 22 ;

[0035] Step 2.3.3 Using L MSF Module pair F 11 Perform feature extraction to obtain the multi-scale features F of the hyperspectral image in the first phase MS1 ;

[0036] Step 2.3.4 Using L MSF Module pair F 22 Perform feature extraction to obtain the multi-scale features F of the hyperspectral image of the second phase MS2 ;

[0037] Step 2.3.5 for F MS1 and F MS2 Difference:

[0038] F K1 =F MS1 -F MS2 (3)

[0039] Step 2.3.6 Using subnetwork N cls Classify the features and calculate the classification prediction result TR pred ;

[0040] Step 2.4: According to the definitions of formula (4) and formula (5), the weighted cross entropy is used as the loss function;

[0041]

[0042]

[0043] in, Indicates the jth cls The weight of the class, Indicates that the pixel belongs to the jth cls The probability of a ground-like object, Indicates the jth ground-truth training sample cls The number of features;

[0044] In step 2.5, if all pixel blocks in the training set have been processed, proceed to step 2.6; otherwise, take a group of unprocessed pixel blocks from the training set and return to step 2.3;

[0045] Step 2.6 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. CD , go to step 3, otherwise, use the reverse error propagation algorithm based on stochastic gradient descent and the prediction loss L ω-C Update N CD , go to step 2.3 to reprocess all pixel blocks in the training set, and the Total_iter represents the preset number of iterations;

[0046] Step 3. Input the hyperspectral image I1′∈R of the first phase M′×N′×D′ , the hyperspectral image of the second phase I2′∈R M′×N′×D′ , using the fully trained N CD The multi-temporal hyperspectral image to be tested is tested, where M′ and N′ are the spatial scales of the hyperspectral image, and D′ is the spectral dimension;

[0047] Step 3.1. Hyperspectral image I1′∈R in the first phase M′×N′×D′ and the hyperspectral image I2′∈R of the second phase M′×N′×D′ Extract all pixel point sets from and in, Represents X D1 ′ in the i test Pixel points, Represents X D2 ′ in the i test Pixel points, M test Represents the total number of pixel points with labels;

[0048] Step 3.2. X D1 ′ and X D2 ' as the sample to be tested, and execute step 3.3;

[0049] Step 3.3. Use network N CD Extract the features of the samples to be tested and perform change detection tasks;

[0050] Step 3.3.1 Using subnetwork N feature X D1 ′ to extract features and obtain the feature F of the hyperspectral image of the first phase 11 ′;

[0051] Step 3.3.2 Using subnetwork N feature X D2 ′ to extract features and obtain the feature F of the hyperspectral image of the second phase 22 ′;

[0052] Step 3.3.3 Using LMSF Module pair F 11 ′ to extract features and obtain the multi-scale features F of the hyperspectral image of the first phase MS1 ′;

[0053] Step 3.3.4 Using L MSF Module pair F 22 ′ to extract features and obtain the multi-scale features F of the hyperspectral image of the second phase MS2 ′;

[0054] Step 3.3.5: F MS1 ′ and F MS2 ′Find the difference:

[0055] F K1 ′=F MS1 ′-F MS2 ′ (6)

[0056] Step 3.3.6 Using subnetwork N cls Classify the features and calculate the classification prediction result TE pred .

[0057] The present invention adopts a dual-branch network structure to extract features of different phases; at the same time, in order to accurately capture complex spectral features, the features are considered at multiple scales, and a dynamic convolution module based on a channel attention mechanism is used to achieve adaptive adjustment of features of different bands, so that the network can focus more flexibly on important bands, and improve the perception and capture capabilities of complex spectral features in hyperspectral data; the multi-scale feature fusion module operates on deep features, and enhances the model's perception of local information through multi-scale feature extraction and fusion. Experiments were conducted on three real-world hyperspectral image change detection datasets, and the results showed that compared with current advanced change detection methods, the network proposed in the present invention has significant superiority in both effectiveness and performance. Therefore, the present invention has the characteristics of good feature extraction quality, high detection accuracy, and few required training samples. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 , 2 It is a schematic diagram of the structure and flow of an embodiment of the present invention.

[0059] Figure 3 This is a comparison chart of the change detection results of the Irrigated Agricultural Area dataset using the method of the present invention and the MMP method, GETNET method, DBDA method, SSCNN-S method, GTMSiam method and CSANet method.

[0060] Figure 4This is a comparison chart of the change detection results of the Wetland Agricultural Area data set by the method of the present invention and the MMP method, GETNET method, DBDA method, SSCNN-S method, GTMSiam method and CSANet method.

[0061] Figure 5 This is a comparison chart of the change detection results of the River Area data set between the method of the present invention and the MMP method, GETNET method, DBDA method, SSCNN-S method, GTMSiam method and CSANet method. DETAILED DESCRIPTION

[0062] A multi-temporal hyperspectral image change detection method based on multi-scale feature fusion of the present invention is as follows Figure 1 , 2 As shown, follow the steps below:

[0063] Step 1. Establish and initialize the convolutional neural network N for hyperspectral image change detection CD , the N CD Contains 1 subnetwork N for feature extraction feature , 1 sub-network N for multi-scale feature fusion fusion and a subnetwork N for change detection cls ;

[0064] Step 1.1 Create and initialize subnetwork N feature , contains 5 groups of convolutional layers, namely Conv2_0, Conv2_1, Conv2_2, Conv2_3, Conv2_4;

[0065] The Conv2_0 includes, in order of operation, 1 layer of dynamic convolution operation, 1 layer of activation operation, 1 layer of convolution operation, 1 layer of activation operation and 1 layer of maximum pooling operation, wherein the size of the convolution kernel in the dynamic convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel, the size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel, and a nonlinear activation function ReLU is selected as the activation function for operation, and the pooling layer performs a maximum pooling operation with a pooling kernel of size 3×3;

[0066] The Conv2_1 includes, in order of operation, 1 convolution operation, 1 activation operation, 1 convolution operation, 1 activation operation, and 1 maximum pooling operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and uses a nonlinear activation function ReLU as an activation function for operation, and the pooling layer performs a maximum pooling operation with a pooling kernel of size 3×3;

[0067] The Conv2_2 includes, in order of operation, 1 convolution operation, 1 activation operation, 1 convolution operation, and 1 activation operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and uses a nonlinear activation function ReLU as an activation function for operation;

[0068] Conv2_3 includes one convolution operation and one activation operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, the convolution kernel performs convolution operation with a step size of 1 pixel, and a nonlinear activation function ReLU is selected as the activation function for operation;

[0069] Conv2_4 includes one convolution operation layer, the size of the convolution kernel in the convolution layer is 1×1, each convolution kernel performs convolution operation with a step size of 1 pixel, and then performs a Dropout operation with a parameter of 0.1;

[0070] Step 1.2 Create and initialize subnetwork N fusion , contains 3 groups of convolutional layers, namely Conv2_5, Conv2_6, Conv2_7, and 1 group of custom modules L MSF ;

[0071] The Conv2_5 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3;

[0072] The Conv2_6 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3;

[0073] The Conv2_7 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3;

[0074] The L MSFThe module first performs one convolution operation, one activation operation, and one maximum pooling operation on the input feature F in the order of operation. The size of the convolution kernel in the convolution layer is 2×2, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is used as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then obtains the feature F2.

[0075] The feature F2 is subjected to one convolution operation, one activation operation, and one maximum pooling operation in the order of operation. The size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is selected as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then the feature F3 is obtained.

[0076] The feature F3 is subjected to one convolution operation, one activation operation, and one maximum pooling operation in the order of operation. The size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is selected as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then the feature F4 is obtained.

[0077] A convolution operation with a kernel size of 1×1 is performed on F4 to reduce the number of channels to obtain a new feature M4. M4 is upsampled by 2 times the nearest neighbor. M4 is combined with F3, which is also convolved with a kernel size of 1×1 to reduce the number of channels, to obtain a new feature M3. The combination method uses an addition operation between pixels, and upsample_2x(·) is a 2 times nearest neighbor upsampling operation:

[0078] M3=upsample_2x(M4)+f 1×1 (F3) (1)

[0079] M3 is upsampled by 2 times the nearest neighbor, and M3 is combined with F2, which also performs a convolution operation with a kernel size of 1×1 to reduce the number of channels, to obtain a new feature M2. The combination method uses the addition operation between pixels:

[0080] M2=upsample_2x(M3)+f 1×1 (F2) (2)

[0081] The size of the convolution kernel of M2 is 2×2, and each convolution kernel is convolved with a step size of 1 pixel to obtain the final multi-scale fusion feature F fusion ;

[0082] Step 1.3 Create and initialize subnetwork N cls , contains 1 convolutional layer Conv2_8 and 1 fully connected layer FC;

[0083] The Conv2_8 includes, in order of operation, 1 layer of convolution operation, 1 layer of BatchNorm normalization operation, 1 layer of activation operation, 1 layer of maximum pooling operation, 1 layer of convolution operation, 1 layer of BatchNorm normalization operation and 1 layer of activation operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and the nonlinear activation function LeakyReLU is selected as the activation function for operation, and the pooling layer performs maximum pooling operation with a pooling kernel of size 2×2;

[0084] The FC includes, in order of operation, one layer of maximum pooling operation, one layer of full connection operation, and one layer of activation operation, wherein the pooling layer performs the maximum pooling operation with a pooling kernel of size 2×2, and selects the nonlinear activation function sigmoid as the activation function for operation;

[0085] Step 2. Input the hyperspectral image I1∈R of the first phase M×N×D , the hyperspectral image of the second phase I2∈R M ×N×D , the manually labeled pixel point coordinate set and label set, for N CD Training is performed, where M and N are the spatial scales of the hyperspectral image, and D is the spectral dimension;

[0086] Step 2.1. Based on the manually labeled pixel point coordinate set, in the hyperspectral image I1∈R M×N×D and the hyperspectral image of the second phase I2∈R M×N×D Extract all pixel points with labels from and in, Represents X D1 The i-th Train Pixel points, Represents X D2 The i-th Train Pixel points, M Train Represents the total number of pixel points with labels;

[0087] Step 2.2. X D1 and X D2 As the training set of the convolutional neural network, let the number of iterations iter←1 and execute step 2.3;

[0088] Step 2.3. Use network N CD Extract features from the training set and perform change detection tasks;

[0089] Step 2.3.1 Using subnetwork N feature X D1Perform feature extraction to obtain the feature F of the hyperspectral image in the first phase 11 ;

[0090] Step 2.3.2 Using subnetwork N feature X D2 Perform feature extraction to obtain the feature F of the hyperspectral image of the second phase 22 ;

[0091] Step 2.3.3 Using L MSF Module pair F 11 Perform feature extraction to obtain the multi-scale features F of the hyperspectral image in the first phase MS1 ;

[0092] Step 2.3.4 Using L MSF Module pair F 22 Perform feature extraction to obtain the multi-scale features F of the hyperspectral image of the second phase MS2 ;

[0093] Step 2.3.5 for F MS1 and F MS2 Difference:

[0094] F K1 =F MS1 -F MS2 (3)

[0095] Step 2.3.6 Using subnetwork N cls Classify the features and calculate the classification prediction result TR pred ;

[0096] Step 2.4: According to the definitions of formula (4) and formula (5), the weighted cross entropy is used as the loss function;

[0097]

[0098]

[0099] in, Indicates the jth cls The weight of the class, Indicates that the pixel belongs to the jth cls The probability of a ground-like object, Indicates the jth ground-truth training sample cls The number of features;

[0100] In step 2.5, if all pixel blocks in the training set have been processed, proceed to step 2.6; otherwise, take a group of unprocessed pixel blocks from the training set and return to step 2.3;

[0101] Step 2.6 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. CD , go to step 3, otherwise, use the reverse error propagation algorithm based on stochastic gradient descent and the prediction loss L ω-C Update N CD , go to step 2.3 to reprocess all pixel blocks in the training set, and the Total_iter represents the preset number of iterations;

[0102] Step 3. Input the hyperspectral image I1′∈R of the first phase M′×N′×D′ , the hyperspectral image of the second phase I2′∈R M′×N′×D′ , using the fully trained N CD The multi-temporal hyperspectral image to be tested is tested, where M′ and N′ are the spatial scales of the hyperspectral image, and D′ is the spectral dimension;

[0103] Step 3.1. Hyperspectral image I1′∈R in the first phase M′×N′×D′ and the hyperspectral image I2′∈R of the second phase M′×N′×D′ Extract all pixel point sets from and in, Represents X D1 ′ in the i test Pixel points, Represents X D2 ′ in the i test Pixel points, M test Represents the total number of pixel points with labels;

[0104] Step 3.2. X D1 ′ and X D2 ' as the sample to be tested, and execute step 3.3;

[0105] Step 3.3. Use network N CD Extract the features of the samples to be tested and perform change detection tasks;

[0106] Step 3.3.1 Using subnetwork N feature X D1 ′ to extract features and obtain the feature F of the hyperspectral image of the first phase 11 ′;

[0107] Step 3.3.2 Using subnetwork N feature X D2 ′ to extract features and obtain the feature F of the hyperspectral image of the second phase 22 ′;

[0108] Step 3.3.3 Using LMSF Module pair F 11 ′ to extract features and obtain the multi-scale features F of the hyperspectral image of the first phase MS1 ′;

[0109] Step 3.3.4 Using L MSF Module pair F 22 ′ to extract features and obtain the multi-scale features F of the hyperspectral image of the second phase MS2 ′;

[0110] Step 3.3.5: F MS1 ′ and F MS2 ′Find the difference:

[0111] F K1 ′=F MS1 ′-F MS2 ′ (6)

[0112] Step 3.3.6 Using subnetwork N cls Classify the features and calculate the classification prediction result TE pred .

[0113] In order to verify the effectiveness of the present invention, experiments were conducted using the publicly available Irrigated Agricultural Area dataset, Wetland Agricultural Area dataset, and River Area dataset as examples. Overall Accuracy (OA) and Kappa Coefficient (KC) were used as objective indicators to evaluate the transformation detection results. The evaluation results of the present invention were compared with those of the MMP method, GETNET method, DBDA method, SSCNN-S method, GTMSiam method, and CSANet method. The comparison results are shown in Figure 2. Figure 2 , 3 , 4 and Tables 1, 2 and 3.

[0114] Figure 3 The Irrigated Agricultural Area dataset mainly records the increase in agricultural land area, and its development in time and space is relatively direct, so the texture details of this dataset are not rich enough. However, the result map of the present invention presents clearer and sharper edges. Compared with the true value map, the result map of the present invention has fewer cases of misjudgment or omission of pixels. Figure 4Compared with other algorithms, the proposed method produces less blur or confusion in the Wetland Agricultural Area dataset. Compared with the true value map, the proposed method has fewer cases of misjudgment or omission of pixels, and can well distinguish between changed and unchanged pixels, showing a certain degree of superiority. Figure 5 The comparison algorithm of the River Area dataset contains invariant points that are incorrectly marked as changes. The present invention improves the model's ability to perceive and capture complex spectral features in hyperspectral data, enhances the model's ability to perceive local information, and has a better response to more subtle changes in residential areas than the comparison algorithm.

[0115] According to Tables 1, 2, and 3, it can be seen that the OA and KC of the present invention are superior to the comparison algorithms. The KC value takes into account the accuracy of classification and the accuracy that may be caused by random selection, so it is more capable of making an accurate evaluation of the performance of the algorithm. The KC value of the present invention has been significantly improved on the three data sets, indicating that the present invention has more advantages in the change detection task. The dynamic convolution module introduced in the present invention can enable the network to focus on more important bands more flexibly, effectively improving the model's perception and capture capabilities for complex spectral features in hyperspectral data. The present invention also introduces a multi-scale feature fusion module to perform multi-scale feature extraction on deep feature maps and fuse multi-scale features to enrich the local information of feature maps, thereby improving the model's perception of local information. The combination of these two modules is of great help in improving the accuracy of change detection.

[0116] Table 1 Objective evaluation indicators of the Irrigated Agricultural Area dataset under different algorithms

[0117]

[0118] Table 3 Objective evaluation indicators of the Wetland Agricultural Area dataset under different algorithms

[0119]

[0120]

[0121] Table 4 Objective evaluation indicators of the River Area dataset under different algorithms

[0122]

[0123] The proposed method has achieved the result closest to the Ground Truth. In the change detection task, KC is considered to be the most convincing objective evaluation index. The KC value of the proposed algorithm in the Irrigated Agricultural Area, Wetland Agricultural Area, and River Area datasets is 0.6%, 0.9%, and 1.5% higher than the second-best algorithm, respectively. Therefore, it can be shown that the proposed algorithm is superior to other algorithms in terms of accuracy and has better performance.

Claims

1. A multi-temporal hyperspectral image change detection method based on multi-scale feature fusion, characterized in that Proceed as follows: Step 1. Establish and initialize the convolutional neural network N for hyperspectral image change detection CD , the N CD Contains 1 subnetwork N for feature extraction feature , 1 sub-network N for multi-scale feature fusion fusion and a subnetwork N for change detection cls ; Step 1.1 Create and initialize subnetwork N feature , contains 5 groups of convolutional layers, namely Conv2_0, Conv2_1, Conv2_2, Conv2_3, Conv2_4; The Conv2_0 includes, in order of operation, 1 layer of dynamic convolution operation, 1 layer of activation operation, 1 layer of convolution operation, 1 layer of activation operation and 1 layer of maximum pooling operation, wherein the size of the convolution kernel in the dynamic convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel, the size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel, and a nonlinear activation function ReLU is selected as the activation function for operation, and the pooling layer performs a maximum pooling operation with a pooling kernel of size 3×3; The Conv2_1 includes, in order of operation, 1 convolution operation, 1 activation operation, 1 convolution operation, 1 activation operation, and 1 maximum pooling operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and uses a nonlinear activation function ReLU as an activation function for operation, and the pooling layer performs a maximum pooling operation with a pooling kernel of size 3×3; The Conv2_2 includes, in order of operation, 1 convolution operation, 1 activation operation, 1 convolution operation, and 1 activation operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and uses a nonlinear activation function ReLU as an activation function for operation; Conv2_3 includes one convolution operation and one activation operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, the convolution kernel performs convolution operation with a step size of 1 pixel, and a nonlinear activation function ReLU is selected as the activation function for operation; Conv2_4 includes one convolution operation layer, the size of the convolution kernel in the convolution layer is 1×1, each convolution kernel performs convolution operation with a step size of 1 pixel, and then performs a Dropout operation with a parameter of 0.1; Step 1.2 Create and initialize subnetwork N fusion , contains 3 groups of convolutional layers, namely Conv2_5, Conv2_6, Conv2_7, and 1 group of custom modules L MSF ; The Conv2_5 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3; The Conv2_6 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3; The Conv2_7 includes 1 convolution operation, 1 activation operation and 1 maximum pooling operation in the order of operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and selects the nonlinear activation function ReLU as the activation function for operation, and the pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3; The L MSF The module first performs one convolution operation, one activation operation, and one maximum pooling operation on the input feature F in the order of operation. The size of the convolution kernel in the convolution layer is 2×2, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is used as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then obtains the feature F2. The feature F2 is subjected to one convolution operation, one activation operation, and one maximum pooling operation in the order of operation. The size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is selected as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then the feature F3 is obtained. The feature F3 is subjected to one convolution operation, one activation operation, and one maximum pooling operation in the order of operation. The size of the convolution kernel in the convolution layer is 3×3, and each convolution kernel performs convolution operation with a step size of 1 pixel. The nonlinear activation function ReLU is selected as the activation function for operation. The pooling layer performs the maximum pooling operation with a pooling kernel of size 3×3, and then the feature F4 is obtained. A convolution operation with a kernel size of 1×1 is performed on F4 to reduce the number of channels to obtain a new feature M4. M4 is upsampled by 2 times the nearest neighbor. M4 is combined with F3, which is also convolved with a kernel size of 1×1 to reduce the number of channels, to obtain a new feature M3. The combination method uses an addition operation between pixels, and upsample_2x(·) is a 2 times nearest neighbor upsampling operation: <h2 style=";text-align:left;direction:ltr">M3 = upsample_2x(M4) + f<h2 style=";text-align:left;direction:ltr"> 1×1 <h2 style=";text-align:left;direction:ltr"> (F3) (1) M3 is upsampled by 2 times the nearest neighbor, and M3 is combined with F2, which also performs a convolution operation with a kernel size of 1×1 to reduce the number of channels, to obtain a new feature M2. The combination method uses the addition operation between pixels: <h2 style=";text-align:left;direction:ltr">M2 = upsample_2x(M3) + f<h2 style=";text-align:left;direction:ltr"> 1×1 <h2 style=";text-align:left;direction:ltr"> (F2) (2) The size of the convolution kernel of M2 is 2×2, and each convolution kernel is convolved with a step size of 1 pixel to obtain the final multi-scale fusion feature F fusion ; Step 1.3 Create and initialize subnetwork N cls , contains 1 convolutional layer Conv2_8 and 1 fully connected layer FC; The Conv2_8 includes, in order of operation, 1 layer of convolution operation, 1 layer of BatchNorm normalization operation, 1 layer of activation operation, 1 layer of maximum pooling operation, 1 layer of convolution operation, 1 layer of BatchNorm normalization operation and 1 layer of activation operation, wherein the size of the convolution kernel in the convolution layer is 3×3, each convolution kernel performs convolution operation with a step size of 1 pixel, and the nonlinear activation function LeakyReLU is selected as the activation function for operation, and the pooling layer performs maximum pooling operation with a pooling kernel of size 2×2; The FC includes, in order of operation, one layer of maximum pooling operation, one layer of full connection operation, and one layer of activation operation, wherein the pooling layer performs the maximum pooling operation with a pooling kernel of size 2×2, and selects the nonlinear activation function sigmoid as the activation function for operation; Step 2. Input the hyperspectral image I1∈R of the first phase M×N×D , the hyperspectral image of the second phase I2∈R M×N×D , the manually labeled pixel point coordinate set and label set, for N CD Training is performed, where M and N are the spatial scales of the hyperspectral image, and D is the spectral dimension; Step 2.

1. Based on the manually labeled pixel point coordinate set, in the hyperspectral image I1∈R M×N×D and the hyperspectral image I2∈R of the second phase M×N×D Extract all pixel points with labels from and in, Represents X D1 The i-th Train Pixel points, Represents X D2 The i-th Train Pixel points, M Train Indicates the total number of pixel points with labels; Step 2.

2. X D1 and X D2 As the training set of the convolutional neural network, let the number of iterations iter←1 and execute step 2.3; Step 2.

3. Use network N CD Extract features from the training set and perform change detection tasks; Step 2.3.1 Using subnetwork N feature X D1 Perform feature extraction to obtain the feature F of the hyperspectral image in the first phase 11 ; Step 2.3.2 Using subnetwork N feature X D2 Perform feature extraction to obtain the feature F of the hyperspectral image of the second phase 22 ; Step 2.3.3 Using L MSF Module pair F 11 Perform feature extraction to obtain the multi-scale features F of the hyperspectral image in the first phase MS1 ; Step 2.3.4 Using L MSF Module pair F 22 Perform feature extraction to obtain the multi-scale features F of the hyperspectral image of the second phase MS2 ; Step 2.3.5 for F MS1 and F MS2 Difference: F K1 =F MS1 -F MS2 (3) Step 2.3.6 Using subnetwork N cls Classify the features and calculate the classification prediction result TR pred ; Step 2.4: According to the definitions of formula (4) and formula (5), the weighted cross entropy is used as the loss function; in, Indicates the jth cls The weight of the class, Indicates that the pixel belongs to the jth cls The probability of a ground-like object, Indicates the jth ground-truth training sample cls The number of features; In step 2.5, if all pixel blocks in the training set have been processed, proceed to step 2.6; otherwise, take a group of unprocessed pixel blocks from the training set and return to step 2.3; Step 2.6 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. CD , go to step 3, otherwise, use the reverse error propagation algorithm based on stochastic gradient descent and the prediction loss L ω-C Update N CD , go to step 2.3 to reprocess all pixel blocks in the training set, and the Total_iter represents the preset number of iterations; Step 3. Input the hyperspectral image I1′∈R of the first phase M′×N′×D′ , the hyperspectral image of the second phase I2′∈R M ′×N′×D′ , using the fully trained N CD The multi-temporal hyperspectral images to be tested are tested, where M′ and N′ are the spatial scales of the hyperspectral images, and D′ is the spectral dimension; Step 3.

1. Hyperspectral image I1′∈R in the first phase M′×N′×D′ and the hyperspectral image I2′∈R of the second phase M ′×N′×D′ Extract all pixel point sets from and in, Represents X D1 ′ in the i test Pixel points, Represents X D2 ′ in the i test Pixel points, M test Indicates the total number of pixel points with labels; Step 3.

2. X D1 ′ and X D2 ' as the sample to be tested, and execute step 3.3; Step 3.

3. Use network N CD Extract the features of the samples to be tested and perform change detection tasks; Step 3.3.1 Using subnetwork N feature X D1 ′ to extract features and obtain the feature F of the hyperspectral image of the first phase 11 ′; Step 3.3.2 Using subnetwork N feature X D2 ′ to extract features and obtain the feature F of the hyperspectral image of the second phase 22 ′; Step 3.3.3 Using L MSF Module pair F 11 ′ to extract features and obtain the multi-scale features F of the hyperspectral image of the first phase MS1 ′; Step 3.3.4 Using L MSF Module pair F 22 ′ to extract features and obtain the multi-scale features F of the hyperspectral image of the second phase MS2 ′; Step 3.3.5: F MS1 ′ and F MS2 ′Find the difference: F K1 ′=F MS1 ′-F MS2 ′ (6) Step 3.3.6 Using subnetwork N cls Classify the features and calculate the classification prediction result TE pred .

Citation Information

Patent Citations

  • Rainwater removing method and system based on multi-scale hourglass dense connection network and medium

    CN113673590A

  • Multi-temporal hyperspectral image change detection method based on time-space-spectrum attention mechanism

    CN114663779A

  • Method for classifying hyperspectral images on basis of adaptive multi-scale feature extraction model

    WO2022160771A1