Multi-temporal hyperspectral remote sensing image change detection method
Through the joint method of CNN and GCN and the dynamic feature selection module, the spatio-temporal spectral features of hyperspectral images are extracted, which solves the problem of inaccurate multi-temporal image detection in the existing technology, achieves efficient change detection performance, and reduces the cost of labeling samples. dependence.
Patent Information
- Application Number
- CN202410723658.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-08-30
AI Technical Summary
Existing hyperspectral remote sensing image change detection methods are difficult to effectively capture the temporal information and subtle features in multi-temporal images, resulting in inaccurate detection results. In addition, deep learning-based methods are highly dependent on labeled samples and are inefficient.
A joint method of CNN and GCN is used to extract super-pixel and pixel-level features of hyperspectral images, and the most effective channel features of changing areas are screened out at the spectral level through a dynamic feature selection module, combined with semi-supervised learning to reduce the need for labeled samples. dependence.
It improves hyperspectral feature extraction capabilities, enhances feature expression capabilities, achieves change detection performance similar to that of supervised algorithms, and can achieve accurate detection with a small number of labeled samples and capture the spatiotemporal spectral features of images.
Smart Images

Figure CN118570643A
Abstract
Description
Technical Field
[0001] The invention relates to a hyperspectral remote sensing image processing technology, and in particular to a multi-temporal hyperspectral remote sensing image change detection method. Background Art
[0002] Remote sensing image change detection refers to the use of remote sensing images captured in different periods of the same area to identify whether the surface has changed. This is one of the research hotspots in the field of remote sensing image processing, and it has been widely used in urban planning, environmental monitoring, disaster prevention, etc. Hyperspectral images (HSIs), as one of the important data sources for remote sensing image change detection, can present hundreds of spectral bands of ground objects, providing strong support for improving the accuracy of change detection and obtaining more detailed change information. For this reason, hyperspectral image change detection technology occupies a pivotal position in remote sensing image research. Traditional hyperspectral image change detection methods lack consideration of the correlation between multi-phase hyperspectral image bands and their time series, and often perform poorly in capturing complex surface change information.
[0003] In recent years, deep learning methods have attracted the attention of scholars in many fields due to their powerful learning representation capabilities. Convolutional Neural Network (CNN), as a classic deep learning framework, has been widely used in the field of hyperspectral image change detection. However, CNN-based methods are limited by the receptive field and are difficult to model long-range relationships in images; transformer-based methods are good at capturing long-range dependencies, but these methods require a large number of labeled samples during the training process, resulting in low efficiency; semi-supervised algorithms only require a small number of training samples to achieve detection accuracy similar to that of supervised algorithms, but the detection results are inaccurate due to the limited training samples; graph convolutional neural networks (GCN) have attracted the attention of many scholars due to their ability to flexibly extract features and structural information of non-Euclidean data and their potential for semi-supervision, but their temporal features are still not fully utilized, and feature extraction is performed based on objects, ignoring the subtle features between pixels. All of these make it difficult for existing models to accurately detect change areas when processing multi-temporal hyperspectral images, resulting in inaccurate detection results. Summary of the invention
[0004] Technical problem to be solved by the present invention: In view of the above problems in the prior art, the present invention proposes a multi-temporal hyperspectral remote sensing image change detection method under the joint extraction of CNN and GCN, focusing on the temporal information in the multi-temporal hyperspectral image, and extracting large-scale super-pixel-level features and subtle pixel-level features in the hyperspectral image respectively. A dynamic feature selection module is proposed to select the most effective features of the change area from the features obtained from CNN and GCN at the spectral level.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: a multi-temporal hyperspectral remote sensing image change detection method, which specifically includes the following steps:
[0006] S1, cascading the given dual-phase hyperspectral images and their differential images along the spectral dimension to obtain a cascade image of the multi-phase hyperspectral image;
[0007] S2, performing superpixel segmentation on the cascaded image of the multi-phase hyperspectral image to obtain a superpixel segmentation result;
[0008] S3. According to the superpixel segmentation result, the average value of all pixels in each superpixel is used as the graph node to construct a graph structure input into GCN and temporal convolution, and the superpixel-level features of the cascade image of the multi-temporal hyperspectral remote sensing image are extracted. At the same time, the cascade image of the multi-temporal hyperspectral image is input into CNN to extract the pixel-level features of the cascade image of the multi-temporal hyperspectral image;
[0009] S4. Dynamically select the most effective channel features of the change area from the superpixel-level features of the cascaded image of the multi-temporal hyperspectral image and the pixel-level features of the cascaded image of the multi-temporal hyperspectral image, and input the most effective channel feature selection result into the Softmax function to obtain the change detection result.
[0010] Preferably, step S2 uses a SLIC (simple linear iterative clustering) superpixel segmentation algorithm to segment the cascade image of the multi-temporal hyperspectral image into superpixels to obtain a superpixel segmentation result, which can be specifically expressed by the formula:
[0011] f=f SLIC ([X1||X2||X3])
[0012] Among them, f represents the superpixel segmentation result, represents the nth (n=1,2,3) phase image, H, W, C represent the height, width and number of channels of the hyperspectral image respectively, || represents the cascade operation, f SLIC Represents a superpixel segmentation operation.
[0013] Preferably, in S3, the average value of all pixels in each superpixel is used as the graph node to construct the graph structure, and the specific formula is expressed as:
[0014]
[0015] Among them, H represents the superpixel-level graph node matrix, which is composed of the feature set of superpixels. represents the i-th superpixel, i represents an integer from 1 to Z, and Z represents the number of superpixels. represents the jth pixel of the i-th superpixel, i represents an integer from 1 to Z, and N i represents the number of pixels contained in the i-th superpixel, i represents an integer from 1 to Z, and
[0016] Preferably, a certain proportion of cascade image marker labels are randomly selected from the cascade images of the multi-temporal hyperspectral images, and the GCN and CNN are trained in a semi-supervised manner.
[0017] Preferably, in step S3, GCN and temporal convolution extract superpixel-level features of the cascaded image of the multi-temporal hyperspectral remote sensing image, specifically:
[0018] S31, the GCN is a graph convolutional neural network that captures spatial-spectral dependencies. The convolution process of GCN extracting superpixel-level features of the cascaded images of multi-temporal hyperspectral remote sensing images by aggregating the information of neighbor nodes of the graph nodes can be expressed as:
[0019]
[0020] H l represents the output of the l-th layer of the graph convolutional neural network. When l>1, H l-1 represents the output of the l-1th layer of graph convolutional neural network and the input of the lth layer of graph convolutional neural network. When l = 1, H l-1 Indicates that the input of the graph convolutional neural network is a superpixel-level graph node matrix, σ represents a nonlinear activation function, and W l and b l Represent the trainable weight matrix and bias respectively, It represents the adjacency matrix with self-connection added, and D represents the diagonal matrix;
[0021] S32. After GCN extracts superpixel-level features, a convolution in the time dimension is added to extract the time series context information. The time convolution process can be expressed as:
[0022]
[0023] Among them, H ltrepresents the super-pixel-level features of the temporal convolution output, σ represents the nonlinear activation function, Ψ represents the parameters of the temporal convolution kernel, and W l represents the trainable weight matrix, represents the adjacency matrix with self-connection added, D represents the diagonal matrix, when l>1, H l-1 represents the output of the l-1th layer of convolutional neural network and the input of the lth layer of convolutional neural network. When l = 1, H l-1 It means that the input of GCN is a superpixel-level graph node matrix.
[0024] Preferably, the pixel convolution process of extracting the pixel-level features of the cascaded image of the multi-temporal hyperspectral image by CNN in step S3 is expressed as:
[0025]
[0026] Among them, when l>1, X l 、x l-1 They represent the pixel-level features of the output of the lth layer and the pixel-level features of the input of the lth layer respectively. When l=1, X l represents the pixel-level features output by the lth layer, x l-1 Represents the cascade image of CNN input. Let the input cascade image be Among them, C represents the number of spectral channels, N represents the number of phases, H represents the image height, W represents the image width, and bn represents the batch-normalized operation. The representative filter is a 3D convolutional layer with a size of 3×3×3.
[0027] Preferably, the most effective channel features of the changed area are dynamically screened out in step S4, aiming to dynamically screen out the most effective channel features for the change detection task from the spectral dimension from the superpixel-level features F1 of the cascaded images of the multi-temporal hyperspectral images and the pixel-level features F2 of the cascaded images of the multi-temporal hyperspectral images. The specific steps are as follows:
[0028] S41, input the super-pixel level feature F1 and the pixel level feature F2 into the weight-shared 1×1 convolution respectively;
[0029] S42, perform global average pooling and sigmoid operations on the features obtained after convolution to obtain spectral weights V of size 1×1×C respectively. i (i=1,2), C represents the number of channels of the hyperspectral image
[0030] The calculation process is as follows:
[0031]
[0032] Among them, F i(i=1, 2) represents the input features, represents a convolutional layer with a filter size of 1×1, Avgpool(·) is a global average pooling operation, and ρ(·) represents the Sigmod function;
[0033] S43, subtract the spectral weight V2 of the pixel-level feature F2 from the spectral weight V1 of the superpixel-level feature F1, find the larger spectral weight of V1 and V2, set the larger spectral weight to 1, otherwise to 0, expressed as:
[0034]
[0035] in, represents the weight of the kth spectrum in the superpixel feature F1, represents the weight of the kth spectrum in the pixel-level feature F2, represents the spectral weight after super-pixel feature F1 screening, Represents the spectral weight after filtering of pixel-level feature F2;
[0036] S44, the spectral weights obtained after screening are and Multiply the superpixel level features F1 and F2 element by element, and then add the obtained results pixel by pixel to obtain the most effective channel feature, which is expressed as:
[0037]
[0038] F out represents the most effective channel feature for screening, F1 represents super-pixel-level features, and F2 represents pixel-level features. represents the spectral weight after super-pixel feature F1 screening, Represents the spectral weight after filtering the pixel-level feature F2.
[0039] Compared with the prior art, the present invention has the following advantages:
[0040] (1) The present invention combines CNN and GCN to extract the spatiotemporal spectral features of images, and can simultaneously extract pixel-level features and super-pixel-level features in hyperspectral data, thereby improving the network's ability to extract hyperspectral features and enhancing feature expression capabilities.
[0041] (2) The present invention trains the network in a semi-supervised manner. Even with a small number of hyperspectral labeled samples, it can achieve change detection performance similar to that of the supervised algorithm, thus getting rid of the deep learning network's dependence on a large number of labeled samples during the training process.
[0042] (3) The present invention provides a new idea for hyperspectral change detection. It proposes a spatiotemporal graph convolution subnetwork composed of graph convolution for capturing spatial-spectral dependency and phase convolution for capturing temporal dependency. It can not only extract the spatial-spectral features in hyperspectral images, but also capture the temporal dependency between multi-phase images.
[0043] (4) The present invention also proposes a dynamic feature selection module, which can dynamically screen superpixel-level features and pixel-level features at the spectral level to select the most effective channel features. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 It is the overall framework of the multi-temporal hyperspectral remote sensing image change detection method based on the joint extraction of CNN and GCN;
[0045] Figure 2 It is a superpixel segmentation and pixel and superpixel based graph encoding module;
[0046] Figure 3 It is a dynamic feature selection module. DETAILED DESCRIPTION
[0047] In order to enable those skilled in the art to better understand the technical solution of the present invention, the invention is further described in detail below in conjunction with the accompanying drawings.
[0048] A multi-temporal semi-supervised hyperspectral remote sensing image change detection method, such as Figure 1 As shown, the specific steps include:
[0049] S1, cascading the given dual-phase hyperspectral images and their differential images along the spectral dimension to obtain a cascade image of the multi-phase hyperspectral image;
[0050] S2, performing superpixel segmentation on the cascaded image of the multi-phase hyperspectral image to obtain a superpixel segmentation result;
[0051] S3. According to the superpixel segmentation result, the average value of all pixels in each superpixel is used as the graph node to construct a graph structure input into GCN and temporal convolution, and the superpixel-level features of the cascade image of the multi-temporal hyperspectral remote sensing image are extracted. At the same time, the cascade image of the multi-temporal hyperspectral image is input into CNN to extract the pixel-level features of the cascade image of the multi-temporal hyperspectral image;
[0052] S4. Dynamically select the most effective channel features of the change area from the superpixel-level features of the cascaded image of the multi-temporal hyperspectral image and the pixel-level features of the cascaded image of the multi-temporal hyperspectral image, and input the most effective channel feature selection result into the Softmax function to obtain the change detection result.
[0053] CNN can model regular grid data, but its receptive field is limited, and large-scale spatial structure information is difficult to obtain; GCN can process non-Euclidean data of arbitrary structure, but it cannot capture subtle pixel-level features. The present invention combines the advantages of these two networks to extract feature information of different scales to enhance the expressiveness of features. However, due to the incompatibility of the two network structures, CNN processes regular grid data and GCN processes graph structures. Therefore, it is necessary to first encode the data into a processable format. Although each pixel of the image can be used as a node to construct a graph structure, this will cause a huge amount of calculation.
[0054] In order to solve this problem, the present invention adopts the superpixel segmentation algorithm of simple linear iterative clustering (SLIC) to segment the hyperspectral image into superpixels, and uses each superpixel as a graph node, which greatly reduces the number of graph nodes. The research object of multi-phase change detection is multiple phases. If the images of different phases are segmented separately, there will be certain differences in the segmentation results. In order to ensure the consistency of the superpixel boundaries after segmentation, the cascaded multi-phase image X n (n=1,2,3) performs superpixel segmentation to obtain a unified segmentation result.
[0055] Preferably, step S2 uses a superpixel segmentation algorithm of SLIC (simple linear iterative clustering) to segment the cascade image of the multi-temporal hyperspectral image into superpixels to obtain a superpixel segmentation result:
[0056] f=f SLIC ([X1||X2||X3])
[0057] Among them, f represents the superpixel segmentation result, represents the nth (n=1,2,3) phase image, H, W, C represent the height, width and number of channels of the hyperspectral image respectively, || represents the cascade operation, f SLIC Represents a superpixel segmentation operation.
[0058] Based on the superpixels generated above, the image is converted into an undirected graph containing spatiotemporal spectral features. Considering that SLIC divides pixels with similar features on the image into a superpixel, the present invention represents the features of the superpixel with the average value of all pixels in each superpixel, and uses this as the feature vector of the graph node in the graph structure. For the labels corresponding to the superpixels, adjacent pixels with high spatial consistency are clustered into the same node of the graph structure, and the node belongs to only one category, so the labels of the pixels in the superpixel can represent the labels of the superpixel.
[0059] Preferably, in step S3, the average value of all pixels of each superpixel in the superpixel segmentation result is used as the feature of the superpixel, and the average value of all pixels of each superpixel is used as the graph node to construct a graph structure, which is specifically expressed as:
[0060]
[0061] Among them, H represents the superpixel-level graph node matrix, which is composed of the feature set of superpixels. represents the i-th superpixel, represents the jth pixel of the i-th superpixel, N i represents the number of pixels contained in the i-th superpixel, and i represents an integer from 1 to Z, where Z represents the number of superpixels.
[0062] Since convolutional neural networks use pixels as basic units and graph convolutional neural networks use superpixels as basic units, and a superpixel contains multiple pixels, in order for the network to detect each pixel, it is necessary to establish an association between pixels and superpixels.
[0063] Preferably, Figure 2 As shown, an association is established between pixels and superpixels, specifically:
[0064] S21. Flatten the cascade image X of the multi-temporal hyperspectral image in the spatial dimension and transform it into set up is the correlation matrix, then the correlation matrix Q can be expressed as:
[0065]
[0066] in, represent The i-th pixel, S j represents the jth superpixel, Q i,j represents the value in the i-th row and j-th column of the Q matrix, H, W, and C represent the height, width, and number of channels of the hyperspectral image, respectively;
[0067] S22, converting pixel features into superpixel features, the cluster center of the superpixel, i.e., the feature vector of the graph node of the graph structure, can be expressed as:
[0068]
[0069] Among them, V represents the feature vector of the graph node, Encode() represents the graph encoding operation, Represents the normalization operation of Q in the column dimension. Through the above operation, the cascade image of multi-temporal hyperspectral images can be converted into graph nodes of the graph structure according to the correlation matrix Q, and GCN can be easily processed;
[0070] S23. The change detection task is to classify each pixel, so it is necessary to reallocate the superpixel features extracted by GCN to each pixel and inversely transform the superpixel features into pixel features. The inverse transformation process can be expressed as:
[0071] X * =Decode(V,Q)=Q*V
[0072] X * represents pixel features, Decode() represents graph decoding operation, and V represents the feature vector of graph node.
[0073] In general, Encode can convert pixel features into superpixel features, and Decode can inversely transform graph node features into pixel features. The two operations are combined into graph convolution to achieve end-to-end network training.
[0074] Preferably, 1% of the cascade image labeling labels are randomly selected from the cascade images of the multi-temporal hyperspectral images, and the GCN and CNN are trained in a semi-supervised manner. Using a small amount of labeling labels, change detection performance similar to that of the supervised algorithm can be achieved.
[0075] Preferably, step S3 extracts superpixel-level features of the concatenated image of the multi-phase hyperspectral image through GCN and phase convolution, wherein the GCN is a graph convolutional neural network that captures spatial-spectral dependencies, wherein the spatial-spectral features are extracted by aggregating the information of the neighboring nodes of the central graph node, and the temporal features are captured by utilizing the temporal dependencies of adjacent phases, so as to achieve modeling and extraction of the spatial-temporal-spectral features of the objects at the superpixel level.
[0076] Assume that a complete undirected graph structure is represented as in represents a graph node, and ε represents a connecting edge. The mathematical expressions of and ε are the graph node feature matrix H and the adjacency matrix A. The properties of are obtained by analyzing the Laplacian matrix and eigenvectors. The Laplacian matrix The normalized form is expressed as Where D is a diagonal matrix representing the degree of the adjacency matrix A, defined as D ii =∑ j A i,j . I is an identity matrix. A i,j Represents the weight of the edge connecting nodes i and j. According to the principle of graph convolution in spectral domain, Fourier transform is first performed to convert the spatial domain into spectral domain for convolution, and then inverse Fourier transform is performed to convert it into spatial domain. Therefore, in the Fourier domain of the graph, the spectral convolution operation based on the graph can be defined as signal x and convolution kernel g θThe product of .
[0077] g θ *x=U((U T g)⊙(U T x)) = g θ (L) = g θ (UΛU T )x=Ug θ (Λ)U T x
[0078] Among them, g θ It can be considered as the weight of a learnable convolution kernel, x represents the input signal of the graph; ⊙ represents the Hadamard product. The eigenvalue of the Laplacian matrix can be decomposed into L = UΛU T , where U is an orthogonal matrix composed of the eigenvectors of the Laplace matrix L, U T is the transpose of U; Λ is a diagonal matrix consisting of the eigenvalues of the matrix L, λ i is the eigenvalue of L.
[0079] However, since the decomposition of the Laplace matrix in the above formula is computationally intensive, in order to avoid this problem, the spectral filter g is approximately fitted using Chebyshev’s K-order polynomial. θ .
[0080]
[0081] Among them, T k represents the K-order Chebyshev polynomial, β k represents the trainable polynomial coefficients, λ max is the largest eigenvalue of L. The purpose of the calculation is to scale Λ to limit it to the range of Chebyshev polynomials. The K-order local spectral graph convolution can be expressed as
[0082]
[0083] in, Obtained through recursion, that is As can be seen from the above formula, it has K-order locality, because it only relies on K-order neighboring nodes to update the central node. In addition, this formula has only K parameters and does not require eigendecomposition, which greatly reduces the amount of calculation.
[0084] Considering that the use of linear functions in graph-based spectral convolution can improve modeling capabilities, the second-order polynomial is used to simplify the model, that is, the 0th and 1st order Chebyshev polynomials are used to approximate the spectral filter; and λmax Set to 2. Through the above simplification, the above formula becomes a linear function of the Laplacian matrix
[0085]
[0086] Where θ'0 and θ'1 represent the coefficients of the Chebyshev polynomial. Setting θ'0 = -θ'1 = θ solves the overfitting problem and minimizes the parameters of each convolution operation. The above formula can be simplified to
[0087]
[0088] θ is a scalar quantity that acts as a Perform scale transformation. In graph neural networks, scale transformation is usually replaced by normalization operation, so θ=1 is set. However, due to The value range of is [0, 2]. Repeated operations may cause the gradient to disappear or explode. Kipf and Welling
[76] proposed to normalize it using Alternative in Indicates the adjacency matrix with self-connection added, Therefore, based on the first-order approximation of the local spectral filter, the rule for GCN to transfer from layer l-1 to layer l is
[0089]
[0090] H l represents the output of the l-th layer of the graph convolutional neural network. When l>1, H l-1 represents the output of the l-1th layer of graph convolutional neural network and the input of the lth layer of graph convolutional neural network. When l = 1, H l-1 Indicates that the input of the graph convolutional neural network is a superpixel-level graph node matrix, σ represents a nonlinear activation function, and W l and b l Represent the trainable weight matrix and bias respectively, It represents the adjacency matrix with self-connection added, and D represents the diagonal matrix.
[0091] The graph convolution operation captures the spatial spectral correlation of graph nodes in the spatial dimension. The temporal features of the image are also important one-dimensional features for change detection. Therefore, the temporal convolution in the time dimension is added after the graph convolution operation to extract the time series context information. The temporal convolution process can be expressed as
[0092]
[0093] Among them, H lt represents the output of the time-phase convolution, Ψ represents the parameters of the time-phase convolution kernel, and Wl represents the trainable weight matrix, represents the adjacency matrix with self-connection added, D represents the diagonal matrix, when l>1, H l-1 represents the output of the l-1th layer of convolutional neural network and the input of the lth layer of convolutional neural network. When l = 1, H l-1 Indicates that the input of GCN is a superpixel-level graph node matrix. In general, the spatiotemporal graph convolution module composed of GCN and phase convolution can effectively capture the temporal and spatial-spectral features of the image. A spatiotemporal block consists of a graph convolution module and a phase convolution module, which can extract deeper and larger-scale spatiotemporal spectral features.
[0094] 2-D CNN, also known as space-based classification method, has been widely used in dual-temporal change detection tasks and has been verified in multiple public change detection datasets, but it ignores the characteristics of the image time dimension. For change detection tasks, the change of ground objects is a dynamic process. Multi-temporal remote sensing images can provide important information in the time dimension, but these time features are often partially ignored. 3-D convolution is suitable for the expression of spatiotemporal data. Therefore, this paper proposes a 3-D CNN subnetwork to extract pixel-level spatiotemporal spectral features, such as Figure 1 As shown in Figure 2. During the construction process, we use small-scale convolution kernels to extract features, and the number of channels and kernels in each layer depends on the complexity of the problem.
[0095] Preferably, in step S3, pixel-level features are extracted by a pixel-level three-dimensional convolutional subnetwork, wherein the pixel-level three-dimensional convolutional subnetwork takes spatiotemporal spectral information as the main feature, and superimposes the cascaded images of multi-phase hyperspectral images in the spatial dimension before inputting the network. Where C represents the number of spectral channels, N represents the number of phases, H represents the image height, W represents the image width, and X represents the image width. l Represents the features of the l-th layer convolution output, and the pixel convolution process is expressed as:
[0096]
[0097] Among them, when l>1, X l 、x l-1 They represent the pixel-level features of the output of the lth layer and the pixel-level features of the input of the lth layer respectively. When l=1, X l represents the pixel-level features output by the lth layer, x l-1 Represents the cascaded image of CNN input, w l k ij represents the three-dimensional convolution kernel of the lth layer, bn represents the batch-normalized operation, · represents the inner product, b lrepresents the bias of the lth layer, and f(·) represents the activation function.
[0098] From the above formula, we can see that 3D convolution can extract the spatiotemporal and spectral features of an image at the same time. By combining multiple convolutional layers, normalization layers, and nonlinear layers, we can obtain deeper features.
[0099] The superpixel-level spatiotemporal spectrogram convolution subnetwork extracts larger-scale features, while the pixel-level three-dimensional convolution subnetwork extracts subtle features. The common way to combine the features of the two branches is to directly add or cascade them, but if some features of a branch are not fully extracted, this type of operation will cause the final features to contain this part of the unfavorable features, which is not conducive to the change detection task. Therefore, in order to solve this problem, the present invention proposes a dynamic feature selection module. This module aims to dynamically screen out the most effective channel features for the change detection task from the spectral dimension from the superpixel-level features F1 of the cascaded image of the multi-phase hyperspectral image and the pixel-level features F2 of the cascaded image of the multi-phase hyperspectral image. The specific structure is as follows: Figure 3 shown.
[0100] Preferably, the most effective channel features of the changed area are dynamically screened out in step S4, aiming to dynamically screen out the most effective channel features for the change detection task from the spectral dimension from the superpixel-level features F1 of the cascaded images of the multi-temporal hyperspectral images and the pixel-level features F2 of the cascaded images of the multi-temporal hyperspectral images. The specific steps are as follows:
[0101] S41, input the super-pixel level feature F1 and the pixel level feature F2 into the weight-shared 1×1 convolution respectively;
[0102] S42, perform global average pooling and sigmoid operations on the features obtained after convolution to obtain spectral weights V of size 1×1×C respectively. i (i=1,2), C represents the number of channels of the hyperspectral image, and the calculation process is as follows:
[0103]
[0104] Among them, F i (i=1,2) represents the input features, represents a convolutional layer with a filter size of 1×1, Avgpool(·) is a global average pooling operation, and ρ(·) represents the Sigmod function;
[0105] S43, subtract the spectral weight V2 of the pixel-level feature F2 from the spectral weight V1 of the superpixel-level feature F1, find the larger spectral weight of V1 and V2, set the larger spectral weight to 1, otherwise to 0, expressed as:
[0106]
[0107] in, represents the weight of the kth spectrum in the superpixel feature F1, represents the weight of the kth spectrum in the pixel-level feature F2, represents the spectral weight after super-pixel feature F1 screening, Represents the spectral weight after filtering of pixel-level feature F2;
[0108] S44, the spectral weights obtained after screening are and Multiply the superpixel-level feature F1 and the pixel-level feature F2 element by element, and then add the obtained results pixel by pixel to obtain the most effective channel feature, which is expressed as:
[0109]
[0110] F out represents the most effective channel feature for screening, F1 represents super-pixel-level features, and F2 represents pixel-level features. represents the spectral weight after super-pixel feature F1 screening, Represents the spectral weight after filtering the pixel-level feature F2.
[0111] In summary: the present invention combines CNN and GCN to extract the spatiotemporal spectral features of images, and can simultaneously extract pixel-level features and superpixel-level features in hyperspectral data, thereby improving the network's ability to extract hyperspectral features and enhancing feature expression capabilities; the present invention trains the network in a semi-supervised manner, and even with a small number of hyperspectral labeled samples, it can achieve change detection performance similar to that of a supervised algorithm; the present invention proposes a spatiotemporal spectrogram convolution consisting of GCN and time convolution, which can not only extract spatial-spectral features in hyperspectral images, but also capture the temporal dependencies between multi-phase images; the present invention also proposes a dynamic feature selection module, which can dynamically screen superpixel-level features and pixel-level features at the spectral level to select the most effective channel features.
[0112] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. A method for detecting changes in multi-temporal hyperspectral remote sensing images, characterized in that: The specific steps include: S1, cascading the given dual-phase hyperspectral images and their differential images along the spectral dimension to obtain a cascade image of the multi-phase hyperspectral image; S2, performing superpixel segmentation on the cascaded image of the multi-phase hyperspectral image to obtain a superpixel segmentation result; S3. According to the superpixel segmentation result, the average value of all pixels in each superpixel is used as the graph node to construct a graph structure input into GCN and temporal convolution, and the superpixel-level features of the cascade image of the multi-temporal hyperspectral remote sensing image are extracted. At the same time, the cascade image of the multi-temporal hyperspectral image is input into CNN to extract the pixel-level features of the cascade image of the multi-temporal hyperspectral image; S4. Dynamically select the most effective channel features of the change area from the superpixel-level features of the cascaded image of the multi-temporal hyperspectral image and the pixel-level features of the cascaded image of the multi-temporal hyperspectral image, and input the most effective channel feature selection result into the Softmax function to obtain the change detection result.
2. The method for detecting changes in multi-temporal hyperspectral remote sensing images according to claim 1, characterized in that: In step S2, the SLIC superpixel segmentation algorithm is used to perform superpixel segmentation on the cascaded image of the multi-temporal hyperspectral image to obtain a superpixel segmentation result, which can be specifically expressed by the formula: f=f SLIC ([X1||X2||X3]) Among them, f represents the superpixel segmentation result, represents the nth (n=1,2,3) phase image, H, W, C represent the height, width and number of channels of the hyperspectral image, respectively, represents the cascade operation, and f SLIC Represents a superpixel segmentation operation.
3. The method for detecting changes in multi-temporal hyperspectral remote sensing images according to claim 1, characterized in that: In step S3, the average value of all pixels in each superpixel is used as the graph node to construct the graph structure. The specific formula is expressed as: Among them, H represents the superpixel-level graph node matrix, which is composed of the feature set of superpixels. represents the i-th superpixel, i represents an integer from 1 to Z, and Z represents the number of superpixels. represents the jth pixel of the i-th superpixel, i represents an integer from 1 to Z, and N i represents the number of pixels contained in the i-th superpixel, i represents an integer from 1 to Z, and 4. The method for detecting changes in multi-temporal hyperspectral remote sensing images according to claim 3, characterized in that: A certain proportion of cascade image label labels are randomly selected from the cascade images of multi-temporal hyperspectral images, and GCN and CNN are trained in a semi-supervised manner.
5. The method for detecting changes in multi-temporal hyperspectral remote sensing images according to claim 4, characterized in that: In step S3, GCN and temporal convolution extract superpixel-level features of the cascaded image of multi-temporal hyperspectral remote sensing images, specifically: S31, the GCN is a graph convolutional neural network that captures spatial-spectral dependencies. The convolution process of GCN extracting superpixel-level features of the cascaded images of multi-temporal hyperspectral remote sensing images by aggregating the information of neighbor nodes of the graph nodes can be expressed as: H l represents the output of the l-th layer graph convolutional neural network. When l>1, H l-1 represents the output of the l-1th layer of graph convolutional neural network and the input of the lth layer of graph convolutional neural network. When l = 1, H l-1 Indicates that the input of the graph convolutional neural network is a superpixel-level graph node matrix, σ represents a nonlinear activation function, and W l and b l Represent the trainable weight matrix and bias respectively, It represents the adjacency matrix with self-connection added, and D represents the diagonal matrix; S32. After GCN extracts superpixel-level features, a time-phase convolution is added in the time dimension to extract time series context information. The time-phase convolution process can be expressed as Among them, H lt represents the super-pixel-level features of the temporal convolution output, σ represents the nonlinear activation function, Ψ represents the parameters of the temporal convolution kernel, and W l represents the trainable weight matrix, represents the adjacency matrix with self-connection added, D represents the diagonal matrix, when l>1, H l-1 represents the output of the l-1th layer of convolutional neural network and the input of the lth layer of convolutional neural network. When l = 1, H l-1 It means that the input of GCN is a superpixel-level graph node matrix.
6. The method for detecting changes in multi-temporal hyperspectral remote sensing images according to claim 1, characterized in that: The pixel convolution process of extracting the pixel-level features of the cascaded image of the multi-temporal hyperspectral image by CNN in step S3 is expressed as: Among them, when l>1, X l 、x l-1 They represent the pixel-level features of the output of the lth layer and the pixel-level features of the input of the lth layer respectively. When l=1, X l represents the pixel-level features output by the lth layer, x l-1 Represents the cascade image of CNN input. Let the input cascade image be Among them, C represents the number of spectral channels, N represents the number of phases, H represents the image height, W represents the image width, and bn represents the batch-normalized operation. The representative filter is a 3D convolutional layer with a size of 3×3×3.
7. The method for detecting changes in multi-temporal hyperspectral remote sensing images according to claim 1, characterized in that: The most effective channel features of the changed area are dynamically screened out in step S4, aiming to dynamically screen out the most effective channel features for the change detection task from the spectral dimension from the superpixel-level features F1 of the cascaded images of the multi-temporal hyperspectral images and the pixel-level features F2 of the cascaded images of the multi-temporal hyperspectral images. The specific steps are as follows: S41, input the super-pixel level feature F1 and the pixel level feature F2 into the weight-shared 1×1 convolution respectively; S42, perform global average pooling and sigmoid operations on the features obtained after convolution to obtain spectral weights V of size 1×1×C respectively. i (i=1,2), C represents the number of channels of the hyperspectral image, and the calculation process is as follows: Among them, F i (i=1, 2) represents the input features, represents a convolutional layer with a filter size of 1×1, Avgpool(·) is a global average pooling operation, and ρ(·) represents the Sigmod function; S43, subtract the spectral weight V2 of the pixel-level feature F2 from the spectral weight V1 of the superpixel-level feature F1, find the larger spectral weight of V1 and V2, set the larger spectral weight to 1, otherwise to 0, expressed as: in, represents the weight of the kth spectrum in the superpixel feature F1, represents the weight of the kth spectrum in the pixel-level feature F2, represents the spectral weight after super-pixel feature F1 screening, Represents the spectral weight after filtering of pixel-level feature F2; S44, the spectral weights obtained after screening are and Multiply the superpixel-level feature F1 and the pixel-level feature F2 element by element, and then add the obtained results pixel by pixel to obtain the most effective channel feature, which is expressed as: F out represents the most effective channel feature for screening, F1 represents super-pixel-level features, and F2 represents pixel-level features. represents the spectral weight after super-pixel feature F1 screening, Represents the spectral weight after filtering the pixel-level feature F2.
Citation Information
Patent Citations
Hyperspectral classification method combining graph structure and convolutional neural network
CN113920442A
Unsupervised hyperspectral image change detection method based on stripe characterization and modeling
CN118135208A
Method and system for extracting and classifying features of hyperspectral remote sensing image
US20180260657A1
Cited By
Building change detection method based on unmanned aerial vehicle image and medium
CN122329258A
