A hyperspectral image classification method and system based on two-dimensional convolution and LSTM

By combining two-dimensional convolution and LSTM network structure, the spatial and spectral features of hyperspectral images are extracted, and feature fusion is performed, which solves the problems of confusion and feature loss in the existing technology, improves the classification accuracy of hyperspectral images, and achieves The classification effect is about 98%.

CN114528918BActive Publication Date: 2024-09-24CHONGQING UNIV OF POSTS & TELECOMM
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202210042588.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2024-09-24
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

Confusion, feature loss, and gradient disappearance exist in existing hyperspectral remote sensing image classification technologies, resulting in low classification accuracy. In particular, convolutional neural networks ignore band context information when extracting spectral features, and training labeled samples are limited.

Method used

A hyperspectral image classification method based on two-dimensional convolution and LSTM is adopted, spatial features are extracted through a four-layer structure two-dimensional convolution network, spectral features are extracted using a combination of two-dimensional convolution and LSTM networks, and feature fusion methods are used to reduce information loss. The contextual information between spectral bands is retained and input into the Softmax classifier for prediction.

Benefits of technology

It improves the classification accuracy of hyperspectral images, reduces the impact of confusion, avoids the loss of feature information and gradient disappearance, enhances the training performance and classification performance of the model, and achieves a classification accuracy of about 98%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114528918B
    Figure CN114528918B
Patent Text Reader

Abstract

The present invention claims a method and system for classifying hyperspectral images based on two-dimensional convolution and LSTM, including the following steps: preprocessing the hyperspectral image data, using a two-dimensional convolutional network with a four-layer structure to extract spatial features, using a maximum pooling layer after each convolutional layer to obtain spatial features; using a two-dimensional convolutional network and LSTM hybrid for spectral feature extraction to obtain context information between spectral bands to obtain spectral features; using a feature fusion method to effectively combine spatial features and spectral features, and obtaining comprehensive feature information through a Flatten layer; using Relu and Dropout to avoid redundancy; finally, inputting the obtained features into a Softmax classifier layer to obtain a final prediction result. The model can effectively alleviate the gradient vanishing phenomenon, extract more feature information for classification, and improve classification performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of remote sensing image classification. Specifically, it relates to a convolutional neural network and an LSTM network structure. The spatial features and spectral features of a hyperspectral image are extracted by combining these two models, a feature fusion method is introduced to obtain the final feature information, and a final prediction result is obtained by a classifier. The method model is mainly used for classifying hyperspectral images. Background Art

[0002] In recent years, hyperspectral image classification technology has received widespread attention and has played a role in many different fields. At present, this technology has been widely used in national defense, agriculture, geology, environment, marine exploration and other fields. Therefore, improving the classification accuracy of hyperspectral remote sensing images is of great significance.

[0003] Deep learning models play an important role in the feature extraction of hyperspectral remote sensing images, and convolutional neural networks are one of the representative algorithms of deep learning. A typical convolutional neural network consists of convolutional layers, pooling layers, and fully connected layers, and has two major advantages: weight sharing and local perception. It is a type of feedforward neural network structure that includes convolutional calculations and has a deep structure. It has good feature extraction capabilities and generalization performance, and is widely used in the field of hyperspectral images.

[0004] However, there are some problems with some current methods and models that are worth studying.

[0005] (1) Confusion phenomenon. The spectral resolution of hyperspectral images is getting higher and higher, but the spatial resolution of hyperspectral remote sensing images is generally low and lacks spatial structural characteristics, which easily leads to the fact that the pixels in the acquired hyperspectral images often contain more than one type of ground object. Figure 2 The figure shows a spectrum graph of the Indian Pines data. Figure 2 The fluctuation of the middle curve shows the changes in the spectral values ​​of different pixels. In the natural environment, there are often various weeds growing together and symbiotically with plants, so mixed pixels will appear. A pixel may contain different spectral values ​​of ground objects, which will lead to the existence of misclassification and affect the classification accuracy.

[0006] (2) Feature loss and gradient vanishing phenomenon. Convolutional neural networks usually ignore the loss of some important feature information during model training and testing, which affects the classification performance of the model. For example, the most representative and important feature information in hyperspectral remote sensing images is likely to be lost during the convolution and pooling process.

[0007] Convolutional neural networks often suffer from the gradient vanishing phenomenon when extracting spectral features of hyperspectral images, and cannot better focus on the contextual information between adjacent bands of spectral features. Since hyperspectral images have strong band correlation and many bands, this phenomenon will have a certain impact on classification performance.

[0008] Therefore, in response to the above problems, the present invention proposes a hyperspectral image classification method based on two-dimensional convolution and LSTM to further improve the classification accuracy of hyperspectral images. Figure 3 The LSTM structure is briefly described.

[0009] After searching, the application publication number CN106845381A, a hyperspectral image classification method based on dual channel convolutional neural network (DC-CNN) spatial spectrum joint, takes into account the characteristics of the three-dimensional structure of hyperspectral image data, and uses a combination of one-dimensional convolutional network (1D-CNN) channel and two-dimensional convolutional network (2D-CNN) channel to extract spatial spectrum features to complete the spatial spectrum joint classification of hyperspectral images. In view of the problem of less artificially labeled data for hyperspectral images, a data expansion method suitable for hyperspectral images is used to increase the scale of training samples, improve the training efficiency of convolutional networks, and reduce overfitting problems.

[0010] Technical aspects: The technology used in the CN106845381A patent is: using an eight-layer one-dimensional convolution to extract spectral features, using an eight-layer two-dimensional convolution to extract spatial features, then combining the spectral and spatial features, and obtaining a classification model after tuning. This model may have the problem of partial feature information loss during convolution and pooling, and the number of network layers is relatively large; at the same time, the spectral features of hyperspectral images extracted based on one-dimensional convolution often ignore the band context information. The present invention combines two-dimensional convolution with LSTM to extract spatial features and spectral features. In the spatial feature extraction branch, a two-dimensional convolution network with a four-layer structure is used for spatial feature extraction. The four-layer structure is: two two-dimensional convolution layers, the convolution kernel sizes are 3×3 and 5×5 respectively, and two maximum pooling layers with a size of 2×2, to obtain spatial features and reduce the influence of confusion; in the spectral extraction branch, the network structure combining two-dimensional convolution and LSTM improves the gradient vanishing phenomenon in the traditional convolution network to extract spectral information, and avoids the problem of the traditional LSTM network input model with a deep level by band. It can take into account the high dimensionality of hyperspectral images and retain the contextual information between adjacent spectral bands.

[0011] CN111914922A, a hyperspectral image classification method based on local convolution and dilated convolution, firstly performs PCA preprocessing on the original hyperspectral remote sensing image to reduce dimension; then, extracts rich spatial spectral information through the fusion operation of local convolution and dilated convolution; then, performs standard convolution, average pooling, dropout and batch normalization on the data after the local convolution channel and dilated convolution channel are merged; finally, different convolution layers are collected into the residual fusion network, and finally input into the Softmax layer for classification. The present invention not only extracts detailed hyperspectral local information, but also extracts rich hyperspectral spatial information by expanding the perception field.

[0012] Technical aspects: The technology used in the CN111914922A patent is to use local convolution and dilated convolution to extract the spatial spectral information of hyperspectral images, and then input different convolution layers into the softmax layer through the residual fusion network for classification. It is a method model based on different ways of convolution to extract spatial spectral features. This method model is based on the extraction of local information and global spatial information for classification. The local convolution has more parameters than the standard convolution, and the model tuning process requires a large amount of training labeled data to fine-tune the training parameters. The present invention extracts spatial features and spectral features based on two-dimensional convolution and LSTM structure respectively, and then uses the feature fusion method to obtain joint spatial spectral features, which improves the feature utilization of hyperspectral images and avoids the limitations of classification performance caused by limited hyperspectral image training labeled samples. Summary of the invention

[0013] The present invention aims to solve the above problems of the prior art. A hyperspectral image classification method and system based on two-dimensional convolution and LSTM is proposed. The technical solution of the present invention is as follows:

[0014] A hyperspectral image classification method based on two-dimensional convolution and LSTM, comprising the following steps:

[0015] The hyperspectral image is preprocessed and spatial features are extracted using a two-dimensional convolutional network with a four-layer structure: two two-dimensional convolutional layers with convolution kernel sizes of 3×3 and 5×5, two maximum pooling layers with a size of 2×2, and a maximum pooling layer is used after each convolution layer to obtain spatial features;

[0016] A hybrid of two-dimensional convolutional network and LSTM is used for spectral feature extraction to obtain contextual information between spectral bands and obtain spectral features;

[0017] The feature fusion method is used to effectively combine spatial features and spectral features, and the comprehensive feature information is obtained through the Flatten layer; Relu and Dropout are used to avoid redundancy; finally, the obtained features are input into the Softmax classifier layer to obtain the final prediction results.

[0018] Furthermore, the data preprocessing of the hyperspectral image specifically includes:

[0019] Assuming that the spectral dimension of the hyperspectral image is P, i.e. the number of bands, the height and width of the image are H and K respectively, then each image contains H×K pixels; the hyperspectral image can be represented as a three-dimensional data cube of size H×K×P; firstly, principal component analysis is performed on the hyperspectral remote sensing image data, and it is divided into three-dimensional data blocks; the obtained data is divided into a training sample set and a test sample set.

[0020] Furthermore, the two-dimensional convolutional network utilizes the local spatial consistency in the hyperspectral image to share weights. In the two-dimensional convolutional neural network, the connection value of the neuron at position (x, y) in the j-th feature map of the i-th layer is The calculation formula is as follows:

[0021]

[0022] Where Q(·) is the Relu activation function, S i and T i is the height and width of the convolution kernel spatial dimension, m is the connection index from the current j-th feature map to the feature map of the i-1th layer, represents the connection value with the position (s, t) in the mth feature map, is the value of the mth feature map of the i-1 layer at position (x+s,y+t). Further, the use of a two-dimensional convolutional network and a LSTM hybrid for spectral feature extraction specifically includes:

[0023] In the spectral feature extraction branch, a two-layer two-dimensional convolutional network structure is first used for feature extraction. The two-dimensional convolution kernels used in this structure are 3×3 and 5×5, respectively, and the corresponding number of filters is 128 and 64; then TimeDistributed (wrapping layer) is used to process the features obtained through the above two layers of two-dimensional convolution and input them into the LSTM model for spectral feature extraction. In this branch, the network structure combining two-dimensional convolution and LSTM improves the gradient vanishing phenomenon in the traditional convolutional network to extract spectral information, and avoids the problem of the traditional LSTM network inputting the model with a deep level band by band. It can take into account the high dimensionality of hyperspectral images and pay attention to the contextual information between adjacent spectral bands.

[0024] Furthermore, the LSTM network structure mainly includes the following:

[0025] The forget gate generates a probability value between 0 and 1 (0 means completely discarded, 1 means completely passed), which controls the information R in the previous memory unit. m-1 How much has been forgotten?

[0026] Input gate: It and the tanh function jointly control the extent to which the new information of the current unit is updated to the memory unit, that is, what new information can be added to the memory unit. The input gate can be Generate a series of probability values ​​between 0 and 1 to control the addition of new information;

[0027] Output gate: It generates a corresponding probability value between 0 and 1 to control the degree to which the memory unit is filtered and to control how much the current output depends on the current memory unit information tanh (C m ).

[0028] Furthermore, the feature fusion method can be expressed as follows:

[0029] I=F([f(C1,C2)],[f(C3)])

[0030] Where I represents the output feature vector of the model, C1 and C2 represent the output vectors of the fully connected layer in the spatial branch, C3 represents the output vector of the fully connected layer in the spectral branch, f(x) represents the add function, and F(x) represents the concat function.

[0031] Furthermore, assuming that the training sample set is X, the probability that the sample x belongs to category l can be expressed as P(y=l|x)

[0032]

[0033] Among them, θ represents the parameters of the model, y (i) Represents sample x (i) The predicted label of .

[0034] A hyperspectral image classification system using two-dimensional convolution and LSTM using any of the methods described, comprising:

[0035] Preprocessing module: used to preprocess the data of hyperspectral images;

[0036] Spatial feature extraction module: used to extract spatial features using a two-dimensional convolutional network with a four-layer structure, which includes two two-dimensional convolutional layers with convolution kernel sizes of 3×3 and 5×5, two maximum pooling layers with a size of 2×2, and a maximum pooling layer after each convolution layer to obtain spatial features;

[0037] Spectral feature extraction module: It uses a hybrid of two-dimensional convolutional network and LSTM for spectral feature extraction to obtain contextual information between spectral bands and obtain spectral features;

[0038] Fusion module: used to effectively combine spatial features and spectral features using feature fusion methods, and obtain comprehensive feature information through the Flatten layer; Relu and Dropout are used to avoid redundancy;

[0039] Prediction classification module: used to input the obtained features into the Softmax classifier layer to obtain the final prediction results.

[0040] The advantages and beneficial effects of the present invention are as follows:

[0041] As a typical algorithm of deep learning, convolutional neural network has the ability to extract different levels of features from images, which is something that traditional networks cannot do. Convolutional neural networks can exploit the local spatial consistency in hyperspectral images, allowing them to share weights and reduce the number of parameters. Compared with three-dimensional convolutional neural networks, two-dimensional convolutional neural networks have fewer parameters and a lower risk of overfitting. Two-dimensional convolutional neural networks have good performance in extracting spatial features from hyperspectral images.

[0042] In the spectral feature extraction branch, however, due to the large number of bands in hyperspectral images, convolutional neural networks have limitations in extracting spectral features, and gradients are likely to vanish, which in turn affects the classification performance of the model. Therefore, based on the two-dimensional convolution feature extraction, LSTM is used for spectral feature extraction. LSTM introduces memory units and gate structures to achieve long-term memory functions and extract more contextual information between bands.

[0043] The present invention combines convolutional neural networks and LSTM network structures to extract more features for hyperspectral image classification. Since hyperspectral images often lack spatial structural features, a two-dimensional convolutional network is used as a spatial feature extraction branch in the present invention, which is introduced in step 4. The two-dimensional convolutional neural network has fewer parameters than the three-dimensional convolutional network, which greatly improves the training performance of the model. At the same time, considering that the spectral information of hyperspectral images is rich, the use of band-by-band input to the LSTM network model has limitations. The present invention uses a method based on the combination of two-dimensional convolution and LSTM to extract spectral information, which is introduced in steps 5 and 6. The LSTM structure is used on the basis of extracting information through two layers of two-dimensional convolution, which reduces the network level, and uses LSTM to further retain the context feature information between adjacent spectra.

[0044] In traditional convolutional neural networks, the complementary and strongly correlated spatial and spectral features between layers are ignored, which may lead to a large amount of information feature loss during the convolution and pooling process. Therefore, in step 7 of the present invention, the shallow features and deep features are combined to reduce the phenomenon of feature information loss during the pooling process. At the same time, the information redundancy is reduced by the Dropout layer to obtain the feature information finally input into the classifier. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a model structure diagram of a preferred embodiment of the present invention, that is, a hyperspectral image classification model diagram based on two-dimensional convolution and LSTM;

[0046] Figure 2 The spectrum curve of Indian Pines data is given;

[0047] Figure 3 This is the LSTM structure diagram;

[0048] Figure 4 It is a technical roadmap for hyperspectral image classification based on two-dimensional convolution and LSTM proposed in this invention. DETAILED DESCRIPTION

[0049] The following will describe the technical solutions in the embodiments of the present invention in detail in conjunction with the accompanying drawings in the embodiments of the present invention. The described embodiments are only part of the embodiments of the present invention.

[0050] The technical solution of the present invention to solve the above technical problems is:

[0051] See also Figure 4 , the specific steps of the present invention are:

[0052] (1) Download and prepare the hyperspectral dataset (public dataset) required for the experiment.

[0053] (2) First, the hyperspectral remote sensing image data is preprocessed. 30 principal components are selected from the Indian Pines dataset by principal component analysis, and 15 principal components are selected from the Pavia University dataset. The hyperspectral image is represented as a three-dimensional data cube of size H×K×P. The data cube size used in the Indian Pines dataset is 25×25×30, and the data cube size used in the Pavia University dataset is 25×25×15.

[0054] (3) The experimental data set is divided into a training set and a test set according to a certain ratio, with the training set accounting for 20% and the test set accounting for 80%.

[0055] (4) A two-dimensional convolutional neural network with a four-layer structure is used to extract spatial features of the input data (training sample set), which includes two layers of convolution and two layers of maximum pooling.

[0056] Furthermore, convolutional neural networks can exploit local spatial consistency in hyperspectral images, so that they can share weights, thereby reducing the number of parameters, and two-dimensional convolutional neural networks have good performance in extracting spatial features of hyperspectral images. In a two-dimensional convolutional neural network, the connection value of the neuron at position (x, y) in the jth feature map of the i-th layer is The calculation formula is as follows:

[0057]

[0058] Where Q(·) is the Relu activation function, S i and T i is the height and width of the convolution kernel spatial dimension, m is the connection index of the current (jth) feature map to the feature map of the i-1th layer, represents the connection value with the position (s, t) in the mth feature map, It is the value of the mth feature map of the i-1 layer at position (x+s,y+t).

[0059] (5) In the spectral feature extraction branch, a structure with two layers of two-dimensional convolutional network is first used for feature extraction.

[0060] Furthermore, the two-dimensional convolution kernels used in this structure are (3×3) and (5×5), and the corresponding number of filters is 128 and 64. The obtained features are then processed using the TimeDistributed layer and input into the LSTM model.

[0061] (6) Based on the features extracted by the two-dimensional convolutional network in step (5), the obtained features are input into the LSTM structure through the TimeDistributed operation for spectral feature extraction.

[0062] Furthermore, the LSTM network uses a gate structure to determine whether information should be retained, what information needs to be forgotten, and the degree of forgetting, so that the memory unit in the network structure contains the information of the entire state, that is, to achieve long-term memory function. Figure 3 As shown, the LSTM network structure mainly includes the following:

[0063] Forget gate, which can generate a probability value between 0 and 1 (0 means completely discarded, 1 means completely passed), thereby controlling the information R in the previous memory unit m-1 How much has been forgotten?

[0064] f m =σ(w f .[R m-1 ,x m ]+b f )

[0065] In the formula, f m is the output of the forget gate, σ is the sigmoid function, and w f is the weight matrix, R m-1 is the output of the previous unit, x m is the input of the current unit, [R m-1 ,x m ] is the input of the forget gate to the memory unit, b f is the bias value.

[0066] Input gate: It works together with the tanh function to control the extent to which the new information of the current unit is updated to the memory unit, that is, what new information can be added to the memory unit. The input gate can be Generate a series of probability values ​​between 0 and 1 to control the addition of new information.

[0067] i m =σ(w i .[R m-1 ,x m ]+b i )

[0068]

[0069] In the formula, i m is the output of the input gate, w i ,w c is the weight matrix, is a candidate vector generated by the tanh function, i.e., the newly added information, b i , b c is the bias value. The calculation formula of the tanh function is as follows.

[0070]

[0071] Output gate: It generates a corresponding probability value between 0 and 1 to control the degree to which the memory unit is filtered, and to control how much the current output depends on the current memory unit information tanh (C m ).

[0072] O m =σ(w o .[R m-1 ,x m ]+b o )

[0073] R m =O m *tanh(C m )

[0074] In the formula, O m is the output of the output gate, w o is the weight matrix, R m is the output of the current memory unit, tanh(C m ) All information of the current memory unit, b o is the bias value.

[0075] (7) The spatial features obtained in step (4) and the spectral features obtained in steps (5) and (6) are combined using a multi-scale feature fusion method.

[0076] Furthermore, the feature fusion method used can be expressed as follows:

[0077] I=F([f(C1,C2)],[f(C3)])

[0078] Where I represents the output feature vector of the model, C1 and C2 represent the output vectors of the fully connected layer in the spatial branch, C3 represents the output vector of the fully connected layer in the spectral branch, f(x) represents the add function, and F(x) represents the concat function.

[0079] (8) The combined features are input into the Dropout layer, part of the feature information is discarded, and the redundancy of the extracted features is reduced as much as possible.

[0080] (9) The final features are input into the Softmax classifier layer, and then the prediction results are output for the input training samples.

[0081] Furthermore, assuming that the training sample set is X, the probability that the sample x belongs to category l can be expressed as P(y=l|x)

[0082]

[0083] Among them, θ represents the parameters of the model, y (i) Represents sample x (i) The predicted label of .

[0084] (10) Continuously optimize the model structure constructed by steps (2)-(9) by minimizing the loss function.

[0085] (11) Use the model optimized in step (10) to classify different data sets of hyperspectral images and output a classification effect graph.

[0086] Furthermore, the method model was experimentally verified on the Indian Pines dataset and the Pavia University dataset, and the experiments showed that the overall classification accuracy of the method proposed in the present invention reached about 98%.

[0087] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0088] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0089] The above embodiments should be understood to be only used to illustrate the present invention and not to limit the protection scope of the present invention. After reading the contents of the present invention, technicians can make various changes or modifications to the present invention, and these equivalent changes and modifications also fall within the scope defined by the claims of the present invention.

Claims

1. A hyperspectral image classification method based on two-dimensional convolution and LSTM, characterized in that: The following steps are involved: After data preprocessing of the hyperspectral image, a two-dimensional convolutional network with a four-layer structure is used to extract spatial features. The four-layer structure is: two two-dimensional convolutional layers with convolution kernel sizes of 3×3 and 5×5, two maximum pooling layers with a size of 2×2, and a maximum pooling layer is used after each convolution layer to obtain spatial features; A hybrid of two-dimensional convolutional network and LSTM is used for spectral feature extraction to obtain contextual information between spectral bands and obtain spectral features; The feature fusion method is used to effectively combine spatial features and spectral features, and the comprehensive feature information is obtained through the Flatten layer; Relu and Dropout are used to avoid redundancy; finally, the obtained features are input into the Softmax classifier layer to obtain the final prediction result; The data preprocessing of the hyperspectral image specifically includes: Assuming that the spectral dimension of the hyperspectral image is P, i.e. the number of bands, and the height and width of the image are H and K respectively, each image contains H×K pixels; the hyperspectral image is represented as a three-dimensional data cube of size H×K×P; firstly, the principal component analysis is performed on the hyperspectral remote sensing image data, and it is divided into the form of three-dimensional data blocks; the obtained data is divided into a training sample set and a test sample set; The two-dimensional convolutional network feature extraction can effectively utilize the local spatial consistency in the hyperspectral image, thereby sharing weights and reducing parameters. In the two-dimensional convolutional neural network, the connection value of the neuron at position (x, y) in the jth feature map of the i-th layer is The calculation formula is as follows: Where Q(·) is the Relu activation function, s i and T i is the height and width of the convolution kernel spatial dimension, m is the connection index from the current j-th feature map to the feature map of the i-1th layer, represents the connection value with the position (s, t) in the mth feature map, is the value of the mth feature map of the i-1 layer at position (x+s,y+t); the use of a two-dimensional convolutional network and a LSTM hybrid for spatial feature and spectral feature extraction specifically includes: In the spatial feature extraction branch, a two-dimensional convolutional network with a four-layer structure is used for spatial feature extraction. The four-layer structure is: two two-dimensional convolutional layers with convolution kernel sizes of 3×3 and 5×5 respectively, two maximum pooling layers with a size of 2×2, and a maximum pooling layer is used after each convolution layer to obtain spatial features; In the spectral feature extraction branch, a two-layer two-dimensional convolutional network structure is first used for feature extraction. The two-dimensional convolution kernels used in this structure are 3×3 and 5×5, respectively, and the corresponding number of filters is 128 and 64; then the TimeDistributed wrapper layer is used to process the features obtained by the above two layers of two-dimensional convolution and input them into the LSTM model for spectral feature extraction; in this branch, the network structure combining two-dimensional convolution and LSTM improves the gradient vanishing phenomenon in the traditional convolutional network to extract spectral information, and avoids the problem of the traditional LSTM network inputting the model with a deep level band by band; it can take into account the high dimensionality of hyperspectral images and pay attention to the contextual information between adjacent spectral bands; The feature fusion method is expressed as follows: I=F([f(C1,C2)],[f(C3)]) Where I represents the feature vector obtained by the model of this method, C1 and C2 represent the output vectors of the fully connected layer in the spatial branch, C3 represents the output vector of the fully connected layer in the spectral branch, f(x) represents the add function, and F(x) represents the concat function.

2. The hyperspectral image classification method based on two-dimensional convolution and LSTM according to claim 1, characterized in that: The LSTM network structure includes the following: The forget gate can generate a probability value between 0 and 1, where 0 means completely discarded and 1 means completely passed, thereby controlling the information R in the previous memory unit. m-1 How much has been forgotten? Input gate: It and the tanh function jointly control the extent to which the new information of the current unit is updated to the memory unit, that is, what new information can be added to the memory unit. The input gate can be Generate a series of probability values ​​between 0 and 1 to control the addition of new information; Output gate: It generates a corresponding probability value between 0 and 1 to control the degree to which the memory unit is filtered and to control how much the current output depends on the current memory unit information tanh (C m ).

3. The hyperspectral image classification method based on two-dimensional convolution and LSTM according to claim 1, characterized in that: The feature fusion method is expressed as follows: I=F([f(C1,C2)],[f(C3)]) Where I represents the feature vector obtained by the model of this method, C1 and C2 represent the output vectors of the fully connected layer in the spatial branch, C3 represents the output vector of the fully connected layer in the spectral branch, f(x) represents the add function, and F(x) represents the concat function.

4. The hyperspectral image classification method based on two-dimensional convolution and LSTM according to claim 1, characterized in that: Assuming that the training sample set is X, the probability that the sample x belongs to category l can be expressed as P(y=l|x) Among them, θ represents the parameters of the model, y (i) Represents sample x (i) The predicted label of .

5. A hyperspectral image classification system using two-dimensional convolution and LSTM of the method according to any one of claims 1 to 4, characterized in that: include: Preprocessing module: used to preprocess the data of hyperspectral images; Spatial feature extraction module: used to extract spatial features using a two-dimensional convolutional network with a four-layer structure, which includes two two-dimensional convolutional layers with convolution kernel sizes of 3×3 and 5×5, two maximum pooling layers with a size of 2×2, and a maximum pooling layer after each convolution layer to obtain spatial features; Spectral feature extraction module: It uses a hybrid of two-dimensional convolutional network and LSTM for spectral feature extraction, retaining more contextual information between spectral bands and obtaining spectral features; Fusion module: used to effectively combine spatial features and spectral features using feature fusion methods, and obtain comprehensive feature information through the Flatten layer; Relu and Dropout are used to avoid redundancy; Prediction classification module: used to input the obtained features into the Softmax classifier layer to obtain the final prediction results.

Citation Information

Patent Citations

  • Dual-channel convolutional neural network-based spectral-spatial cooperative classification method for hyperspectral images

    CN106845381A

  • Hyperspectral image classification method based on local convolution and cavity convolution

    CN111914922A

  • Hyperspectral image classification method based on depth feature cross fusion

    CN111191736A

  • Hyperspectral image classification method based on deep learning space-spectrum joint network

    CN111914907A

  • Image classification method and related device

    WO2021082480A1