Hyperspectral image target detection method based on meta-learning and Siamese network

By designing a one-dimensional deep residual convolutional network and a three-channel deep residual convolutional conjoined network, combined with meta-learning and spectral triplet loss function, the problems of insufficient training samples and insufficient generalization ability in hyperspectral image target detection are solved. , achieving high-precision target detection.

CN114220008BActive Publication Date: 2024-09-17DALIAN MARITIME UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111494041.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2024-09-17
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

Insufficient training samples in hyperspectral image target detection lead to insufficient generalization capabilities of deep neural networks in target detection tasks. Moreover, traditional methods will lose the fine spectral characteristics of pixels when expanding samples, affecting detection accuracy.

Method used

Design a one-dimensional deep residual convolution network to embed the pixel spectrum in the hyperspectral image into the Euclidean feature space, construct a three-channel deep residual convolution conjoined network, and optimize the same and different classes through the spectral triplet loss function Spectral distance, a meta-learning method is used for double-layer optimization, and meta-knowledge is updated to improve detection accuracy.

Benefits of technology

It effectively solves the problems of lack of training samples and insufficient generalization ability, improves the accuracy and robustness of hyperspectral target detection, and obtains the final detection result map through cosine similarity judgment and guidance map filtering, significantly improving detection performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114220008B
    Figure CN114220008B
Patent Text Reader

Abstract

The present invention discloses a hyperspectral image target detection method based on meta-learning and Siamese network, comprising: firstly, designing a one-dimensional deep residual convolutional network to construct a three-channel deep residual convolutional Siamese network. Secondly, in order to make the intra-class distance of the spectrum of the same type of pixels small and the inter-class distance of the spectrum of different types of pixels large, a spectral triplet loss function is designed. By using the tasks constructed from the known labeled source domain hyperspectral data set on the designed three-channel deep residual convolutional Siamese network for meta-training, the similarities and differences between the spectra are learned in the Euclidean feature space. The learned meta-knowledge is updated by using the prior target pixel spectrum through the designed two-channel deep residual convolutional Siamese network to quickly adapt to new detection tasks. Among them, the structure and parameters of the one-dimensional deep residual convolutional network of each channel in the Siamese network are the same. Finally, the detection image of the two-channel deep residual convolutional Siamese network is processed by combining spatial information, using guided graph filtering and morphological closing operation to obtain the final detection result image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of hyperspectral image target detection, and in particular to a hyperspectral image target detection method based on meta-learning and Siamese networks. Background Art

[0002] Hyperspectral images are obtained by capturing the reflectivity of the surface of objects in hundreds of narrow and continuous bands using an imaging spectrometer to obtain three-dimensional cubic image data containing rich spectral and spatial information. The fine spectral features can effectively reflect the subtle features of different substances. Thanks to the rich spectral information, hyperspectral images have been applied and played an important role in the fields of civilian search and rescue, agricultural production, medical diagnosis, urban planning, etc. Target detection has received more and more attention in these fields, and being able to accurately detect targets has become an urgent need for people.

[0003] Traditional hyperspectral image target detection algorithms, such as target detectors based on constrained energy minimization (CEM), perform target detection by constructing a finite impulse response filter and constraining the characteristics of the target spectrum to be detected with a specific gain while minimizing the influence of the background. In recent years, methods based on deep learning have emerged in the field of hyperspectral image target detection. In order to train deep neural networks, methods based on transfer learning have emerged to address the problem of insufficient training samples. In order to expand the training samples, the spectra of the same type of pixels in the known labeled hyperspectral dataset are subtracted, and the spectra of different types of pixels are subtracted, thereby expanding the number of training samples. However, the subtraction of pixel spectra will lose the fine spectral features of the pixels, which will have a significant impact on the accuracy of target detection. Summary of the invention

[0004] In view of the problems existing in the prior art, the present invention discloses a hyperspectral image target detection method based on meta-learning and Siamese network, which specifically includes the following steps:

[0005] A one-dimensional deep residual convolutional network is designed to embed the pixel spectra in the hyperspectral image into the Euclidean feature space;

[0006] A three-channel deep residual convolutional network is constructed through a one-dimensional deep residual convolutional network. In order to make the distance within the spectral class of pixels of the same type small and the distance between the spectral classes of pixels of different types large, a spectral triplet loss function is designed, and the formula is as follows:

[0007]

[0008]

[0009]

[0010] where f θ(·) represents a one-dimensional deep residual convolutional network, which embeds the pixel spectrum x into the d-dimensional Euclidean feature space, expressed as represents the spectrum of the anchor pixel, represents the spectrum of positive sample pixels, Represents the negative sample pixel spectrum.

[0011] From labeled source domain hyperspectral dataset N categories are randomly selected from the task, and M spectra of each category are randomly selected to form a task Task T source The support set in From the randomly selected N categories, two sample spectra are randomly selected from each category, and a pixel spectrum is randomly selected from each category as an anchor point. Select positive samples from the class of the selected anchor point except the anchor point Select negative samples from different classes than the anchor composition The triple form of . The support set is constructed in the same way, where

[0012] The constructed task composition task batches are fed into the three-channel deep residual convolution Siamese network for meta-training. The meta-training process is transformed into a two-layer optimization problem, which refers to hierarchical optimization, where one optimization contains another optimization as a constraint. Using this method, meta-training can be formalized as follows:

[0013]

[0014]

[0015] Internally for each task Take the gradient update:

[0016]

[0017] Then in the external target replace Right now:

[0018]

[0019] The internal optimization only uses the support set of each task, and the external optimization only uses the query set of each task.

[0020] The one-dimensional deep residual convolutional network obtained after meta-training is used to construct a two-channel deep residual convolutional Siamese network. The known prior target spectrum is input into the two channels of the two-channel deep residual convolutional Siamese network, and the learned meta-knowledge is updated to obtain the optimal parameters of the one-dimensional deep residual convolutional network. The formula of the loss function of the two-channel deep residual convolutional Siamese network with meta-knowledge update is as follows:

[0021]

[0022] In the meta-testing phase, for a given detection task (e.g., task i), the learned meta-knowledge w * Update to obtain the optimal model parameters, the formula is as follows:

[0023]

[0024] The known prior target spectrum and the spectrum of each pixel in the hyperspectral image to be detected are sent to a two-channel deep residual convolutional network, and the spectrum of the pixel to be detected is judged whether it belongs to the target based on the cosine similarity;

[0025] The first principal component of the hyperspectral image to be detected is used as the guide image. The detection image obtained by the two-channel deep residual convolutional network is filtered by the guide image. The image after the guide image filtering is morphologically closed to obtain the final detection result image.

[0026] Due to the adoption of the above technical scheme, the present invention provides a hyperspectral image target detection method based on meta-learning and Siamese network. The method effectively solves the problem of lack of training samples for deep neural network training in the field of hyperspectral target detection and poor generalization ability of the model for hyperspectral target detection tasks after the deep neural network training is completed. First, a one-dimensional deep residual convolution network is designed to construct a three-channel deep residual convolution Siamese network. Then, a task is constructed on a labeled source domain hyperspectral data set, and the constructed task composition task batch is sent to the three-channel deep residual convolution Siamese network for meta-training. The trained one-dimensional deep residual convolution network is used to construct a two-channel deep residual convolution Siamese network, and the meta-knowledge of the one-dimensional deep residual convolution network in the two channels of the two-channel deep residual convolution Siamese network is updated by the known prior target spectrum. After the meta-knowledge is updated, the branch channel on the two-channel deep residual convolution Siamese network inputs the prior known target pixel spectrum, and the lower branch channel inputs the pixel spectrum to be detected, and the cosine similarity judgment is performed to obtain a detection image using spectral information. Finally, combined with the spatial information, the first principal component of the hyperspectral image to be detected is used as the guide map, and the detection map obtained using the spectral information is filtered by the guide map, followed by a morphological closing operation to obtain the final joint spectral-spatial information detection result map. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 is a flow chart of the method disclosed in the present invention;

[0029] Figure 2 It is a one-dimensional deep residual convolutional network structure diagram;

[0030] Figure 3 This is a three-channel deep residual convolution network structure diagram;

[0031] Figure 4 This is a two-channel deep residual convolution network structure diagram;

[0032] Figure 5a-Figure 5b Groundtruth annotation map and detection result map for the San Diego dataset;

[0033] Figure 6a-Figure 6b This is the groundtruth annotation map and detection result map of the HYDICE urban dataset.

[0034] Figure 7a-Figure 7b Schematic diagram of ROC curve for San Diego dataset and HYDICE urban dataset. DETAILED DESCRIPTION

[0035] In order to make the technical solutions and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention are clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention:

[0036] like Figure 1 A hyperspectral image target detection method based on meta-learning and Siamese network is shown, which specifically includes the following steps:

[0037] S1: Design a one-dimensional deep residual convolutional network to embed pixel spectra in hyperspectral images into Euclidean feature space.

[0038] The specific method used in S1 is as follows: each pixel spectrum is embedded into the Euclidean feature space through a one-dimensional deep residual convolutional network. The feature vector formed has deep feature information and can be used for hyperspectral image target detection tasks. The designed one-dimensional deep residual convolutional network contains seven 1D convolutional layers with a stride of 1 and 40 convolution kernels of size 1×3. The pooling layer is replaced by a 1D convolutional layer with a stride of 2 and 40 convolution kernels of size 1×3. Residual connections are added between convolutional layers, and the gradient is not easy to disappear, so the network can be deeper and deep feature information can be extracted, which is conducive to distinguishing the similarities and differences between spectra. The penultimate layer of the network uses a 1D convolutional layer with a convolution kernel size of 1×1, a stride of 1, and a number of convolution kernels of 1. This convolutional layer can change the number of channels, but it does not change the spatial dimension of the spectrum. Finally, a fully connected layer is used to obtain the final pixel spectrum embedding feature vector.

[0039] S2: Construct a three-channel deep residual convolutional Siamese network through a one-dimensional deep residual convolutional network and design a spectral triplet loss function.

[0040] The specific method used in S2 is as follows: the three channels in the three-channel deep residual convolutional network are all composed of a one-dimensional deep residual convolutional network. In order to make the distance within the spectral class of pixels of the same type small and the distance between the spectral classes of pixels of different types large, a spectral triplet loss function is designed. Use f θ (·) represents a one-dimensional deep residual convolutional network, Represent anchor points, positive samples and negative samples respectively. The formula is as follows:

[0041]

[0042] S3: Constructing a training set for meta-training from known labeled source domain hyperspectral datasets;

[0043] The specific method used in S3 is as follows: In order to construct the training set for meta-training, a hyperspectral dataset with known labels in the source domain is N categories are randomly selected from the task, and M spectra of each category are randomly selected to form a task Task T source The support set in From the randomly selected N categories, two sample spectra are randomly selected from each category, and a pixel spectrum is randomly selected from each category as an anchor point. Select positive samples from the class of the selected anchor point except the anchor point Select negative samples from different classes than the anchor composition The triple form of . The support set is constructed in the same way, where

[0044] S4: Send the constructed task batches into the three-channel deep residual convolution Siamese network for meta-training;

[0045] The specific method used in S4 is as follows:

[0046] S41: Group M tasks into a batch. The meta-goal is to find common parameters that act on multiple tasks, namely meta-knowledge w * , the formula is as follows:

[0047]

[0048] S42: Convert the meta-training process into a two-level optimization problem. Two-level optimization refers to hierarchical optimization, where one optimization contains another optimization as a constraint. Using this approach, meta-training can be formalized as follows:

[0049]

[0050]

[0051] S43: Internal for each task Take the gradient update:

[0052]

[0053] S44: Then replace in the external target Right now:

[0054]

[0055] S45: The internal optimization only uses the support set of each task, and the external optimization only uses the query set of each task.

[0056] S5: Use the one-dimensional deep residual convolutional network in the meta-trained three-channel deep residual convolutional Siamese network to construct a two-channel deep residual convolutional Siamese network. Input the known prior target spectrum into the two channels of the two-channel deep residual convolutional Siamese network, and update the learned meta-knowledge to obtain the optimal parameters of the one-dimensional deep residual convolutional network;

[0057] The specific method used in S5 is as follows:

[0058] S51: The hyperspectral image dataset to be detected is represented as The a priori known target pixel spectrum is The spectral vector of each pixel is expressed as Before target detection, the prior target spectrum is used to update the meta-knowledge of the one-dimensional deep residual convolutional network in the two-channel deep residual convolutional network. The loss function of the two-channel deep residual convolutional network during the meta-knowledge update process is:

[0059]

[0060] S52: In the meta-testing phase, for a given detection task (e.g., task i), the learned meta-knowledge w * Update to obtain the optimal model parameters, the formula is as follows:

[0061]

[0062] S53: After the meta-knowledge is updated, the parameter set of the model for a specific detection task is updated from θ to To quickly adapt to the corresponding detection scenarios. The parameter update only updates the parameters of the last fully connected layer in the one-dimensional deep residual convolutional network, and the parameters of the convolutional layer are frozen and not updated.

[0063] S6: The known prior target spectrum and the spectrum of each pixel in the hyperspectral image to be detected are sent to a two-channel deep residual convolutional network, and the cosine similarity is used to determine whether the spectrum of the pixel to be detected belongs to the target;

[0064] The specific method used in S6 is as follows: a two-channel deep residual convolutional Siamese network is used for target detection in the meta-test phase. Among them, the one-dimensional deep residual convolutional network of the two channels is a one-dimensional deep residual convolutional network that is updated after meta-training and meta-knowledge. The upper branch channel inputs the known prior target spectrum, and the lower branch channel inputs the pixel spectrum of the hyperspectral image to be detected. The corresponding embedded feature vectors are obtained through the upper and lower channels respectively, and the cosine similarity is used to judge the similarity between the two embedded feature vectors. The formula is as follows:

[0065]

[0066] Among them, k i The closer the value is to 1, The more likely it is to be the target. It is the detection map output by the Siamese network.

[0067] S7: Combined with spatial information, the first principal component of the hyperspectral image to be detected is used as the guide image, the detection image obtained by the two-channel deep residual convolutional network is filtered by the guide image, and the image after the guide image filtering is morphologically closed to obtain the final detection result image.

[0068] The specific method used in S7 is as follows:

[0069] S71: Hyperspectral P to be detected t Perform principal component analysis and select the first principal component as the guide image. Perform guide image filtering on the detection image obtained by the two-channel deep residual convolutional conjoined network. The formula is as follows:

[0070]

[0071]

[0072] Among them, e k is a window centered on the kth pixel, with a size of (2r+1)×(2r+1) (r is the radius of the window), μ k , are the mean and variance of the guided image I respectively. |e| is e k The number of pixels in , ε is a penalty value. i with I j It refers to the value of two adjacent pixels in the guidance image.

[0073] S72: Finally, a morphological closing operation is performed on the detection image Q after the guide image is filtered, first corroding and then dilating, to connect the discontinuous areas in the target area. The formula is as follows:

[0074]

[0075] Where Q final is the final joint spectral-spatial detection map, B is the structural element matrix (two rows and two columns are all 1), represents the dilation operation, and Θ represents the erosion operation.

[0076] The hyperspectral image target detection method based on meta-learning and Siamese network provided by the present invention will be evaluated and assessed on two sets of public real hyperspectral image datasets.

[0077] The first set of experimental data is the San Diego real hyperspectral image dataset, which was obtained by the Airborne Visible\Infrared Imaging Spectrometer (AVIRIS) taking photos of the San Diego Airport area in California, USA. The original image size is 400×400, the wavelength range is 370 to 2510nm, the spatial resolution of the image is 3.5m, and the spectral resolution is 10nm. The experiment selects a 120×120 part, where the target is an airplane, with a total of 134 target pixels. After removing the low signal-to-noise ratio and water absorption bands, 189 bands remain.

[0078] The second set of experimental data is the HYDICE urban real hyperspectral image dataset, which was collected by the Hyperspectral Digital Image Acquisition Experiment (HYDICE) airborne sensor in an urban area in California, USA. The original hyperspectral image size is 307×307. The wavelength range is from 400nm to 2500nm, and the spectral resolution is 10nm. The experiment is intercepted to a size of 80×100, and each pixel corresponds to 2×2m 2In the area with dense water vapor and atmospheric influence, 162 bands are retained. The roof and car in the image are taken as targets, with a total of 21 target pixels.

[0079] The present invention provides a hyperspectral image target detection method based on meta-learning and Siamese network. The detection results of the detection on two sets of real hyperspectral image data sets are shown in the figure below. Figure 5b , Figure 6b The receiver operating characteristic curve (ROC) and area under the curve (AUC) are used to quantitatively analyze the detection results. The detection ROC curve of the San Diego data set is shown in Figure 7a As shown, the area under the curve AUC value is 0.99667, and the detection ROC curve of the HYDICE urban data set is as follows Figure 7b As shown, the area under the curve AUC value is 0.99654.

[0080] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A hyperspectral target detection method based on meta-learning and Siamese networks, characterized in that include: Construct a three-channel deep residual convolutional Siamese network, where each channel is composed of a one-dimensional deep residual convolutional network; The spectral triplet loss function is constructed based on the principle that the distance within the spectral class of pixels of the same type is small, and the distance between the spectral classes of pixels of different types is large. Constructing a training set for meta-training of task groups from labeled source domain hyperspectral datasets; The constructed tasks are grouped into task batches and input into the three-channel deep residual convolutional Siamese network for meta-training. The process is as follows: M tasks are grouped into a batch, and the meta-goal is to find the common parameters that act on multiple tasks, that is, the meta-knowledge w * , the formula is as follows: The meta-training process is transformed into a two-level optimization problem. Two-level optimization refers to hierarchical optimization, where one optimization contains another optimization as a constraint. Meta-training is formalized as follows: Internally for each task Take the gradient update: Replace in external target Right now: The internal optimization only uses the support set of each task, and the external optimization only uses the query set of each task. The one-dimensional deep residual convolutional network obtained after meta-training is used to construct a two-channel deep residual convolutional Siamese network, the known prior target spectrum is input into two channels of the two-channel deep residual convolutional Siamese network, and the learned meta-knowledge is updated to obtain the optimal parameters of the one-dimensional deep residual convolutional network; The known prior target spectrum and the spectrum of each pixel in the hyperspectral image to be detected are input into a two-channel deep residual convolutional network, and the spectrum of the pixel to be detected is judged whether it belongs to the target based on the cosine similarity; Combined with spatial information, the first principal component of the hyperspectral image to be detected is used as the guide image, and the detection image obtained by the two-channel deep residual convolutional conjoined network is filtered by the guide image. The detection process is: The hyperspectral image P to be detected t Perform principal component analysis, select the first principal component as the guide image, and perform guide image filtering on the detection image obtained by the two-channel deep residual convolutional conjoined network. The formula is as follows: Among them, e k is a window centered on the kth pixel, with a size of (2r+1)×(2r+1), r is the radius of the window, μ k , are the mean and variance of the guided image I, respectively, and |e| is e k The number of pixels in, ε is a penalty value, I i with I j It refers to the value of two adjacent pixels in the guidance image; Finally, the detection image Q after the guide image is filtered is subjected to a morphological closing operation, which is first eroded and then expanded to connect the discontinuous areas in the target area. The formula is as follows: Where Q final is the final joint spectral-spatial detection map, B is the structural element matrix, represents the expansion operation, Θ represents the erosion operation; The image after the guide map filtering is subjected to morphological closing operation to obtain the final detection result map.

2. The method according to claim 1, characterized in that: The spectral triplet loss function of the construction is: where f θ (·) represents a one-dimensional deep residual convolutional network, which embeds the pixel spectrum x into the d-dimensional Euclidean feature space, expressed as They represent anchor points, positive samples, and negative samples respectively.

3. The method according to claim 1, characterized in that: When constructing the training set for meta-training: From labeled source domain hyperspectral dataset N categories are randomly selected from the task, and M spectra of each category are randomly selected to form a task Task T source The support set in From the randomly selected N categories, two sample spectra are randomly selected from each category, and a pixel spectrum is randomly selected from each category as an anchor point. Select positive samples from the class of the selected anchor point except the anchor point Select negative samples from different classes than the anchor composition The triple form of the query set The support set is constructed in the same way, where 4. The method according to claim 1, characterized in that: The process of updating the learned meta-knowledge and target detection is as follows: The hyperspectral image data to be detected is expressed as The a priori known target pixel spectrum is x t * , each pixel spectral vector is expressed as Before target detection, the prior target spectrum is used to update the meta-knowledge of the one-dimensional deep residual convolutional network through a two-channel deep residual convolutional network. The loss function of the two-channel deep residual convolutional network in the meta-knowledge update process is: In the meta-testing phase, for a given detection task i, the learned meta-knowledge w * Update to obtain the optimal model parameters, the formula is as follows: After the meta-knowledge is updated, the parameter set of the model for a specific detection task is updated from θ to The parameter update only updates the parameters of the last fully connected layer in the one-dimensional deep residual convolutional network, and the parameters of the convolutional layer are frozen and not updated; In the meta-testing stage, a two-channel deep residual convolutional conjoined network is used for target detection. The feature extraction network of the two channels is a one-dimensional deep residual convolutional network that is learned through meta-training and then updated with meta-knowledge. The upper branch channel inputs the known prior target spectrum, and the lower branch channel inputs the pixel spectrum of the hyperspectral image to be detected. The corresponding embedded feature vectors are obtained through the upper and lower channels respectively, and the cosine similarity is used to judge the similarity between the two embedded feature vectors. The formula is as follows: Among them, k i The closer the value is to 1, The more likely it is the target, It is the detection map output by the Siamese network.