Hyperspectral image target detection method based on tensor learning
Through the combination of the tensor learning network and the constraint module based on ridge regression, the problems of long processing time and insufficient constraint of detection results in hyperspectral image target detection are solved, and the accuracy and efficiency of hyperspectral image target detection are improved.
Patent Information
- Application Number
- CN202210699264.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-06-20
AI Technical Summary
Existing hyperspectral image target detection methods have problems such as long processing time and insufficient detection results. In particular, the capture of target edge information is incomplete, resulting in low detection accuracy and increased errors.
The tensor learning network based on ridge regression is used to enhance the model discrimination through Rank-1 decomposition and non-negative prior knowledge. It is combined with the constraint module to constrain the detection results, reduce parameters and improve sparsity, and capture the edge information of the target and background.
It improves the accuracy and efficiency of hyperspectral image target detection, ensures the integrity of target and background edge information, and reduces processing time and detection errors.
Smart Images

Figure CN115131661B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of image processing technology, and further relates to a method for detecting hyperspectral image targets based on tensor learning in the field of hyperspectral image target detection technology. The present invention can be used to detect targets in hyperspectral images such as water pollution detection, military target detection, and precise monitoring and fine classification of crops. Background Art
[0002] Hyperspectral images contain rich geometric spatial information and spectral information, which provide rich spectral features for target detection. These spectral features have excellent analytical capabilities and are a representation of the reflectivity characteristics of the target material, which is very valuable for target detection. However, due to the high dimensionality of hyperspectral images and the complex and diverse internal background, the number of targets is far less than the number of backgrounds in most cases, and information mining cannot be performed from the three-dimensional data as a whole, resulting in low accuracy of hyperspectral image target detection and insufficient utilization of spatial information.
[0003] Nanjing University of Science and Technology proposed a hyperspectral image target detection method in its patent document "Hyperspectral Target Detection Method Based on Constrained Energy Minimization Variational Autoencoder" (patent application number: CN202210091082.X, application publication number: CN 114118308 A). The implementation steps of this method are: using the constrained energy minimization algorithm to roughly detect and obtain background samples for network training, inputting the background samples into the variational autoencoder network for training, suppressing the influence of suspected target pixels, better reconstructing the background, subtracting the original image from the reconstructed background to obtain the residual, and then using constrained energy minimization to detect the residual to obtain the detection map. This method proposes to calculate the autocorrelation matrix of constrained energy minimization using the reconstructed background, eliminating the influence of the target on the calculation of the autocorrelation matrix and improving the detection accuracy. However, the method still has the disadvantage that using this network for training and continuously updating the model in an iterative manner requires more processing time, and the final detection result is insufficiently constrained by the constrained energy minimization rough detection, resulting in detection errors.
[0004] K.Makantasis et al. proposed a method for hyperspectral target detection in “Tensor-based classification models for hyperspectral data analysis,” IEEE Trans.Geosci.Remote Sens., vol.56, no.12, pp.6884–6898, Dec.2018. The implementation steps of this method are to use the principle of tensor algebra to introduce a new detection architecture whose weight parameters satisfy the Rank-1 canonical decomposition property. Then, a learning algorithm, namely logistic tensor regression (LTR) and Rank-1 feedforward neural network, is introduced to train linear and nonlinear detectors for hyperspectral target detection. This method reduces the number of required parameters and the number of corresponding training samples required for training the model, retains the spatial and spectral coherence of the input samples, and improves the performance of hyperspectral target detection. However, the method still has the disadvantage that the logical features that follow the predefined arrangement are ignored when constructing the tensor physically, and the tensor is not constructed in a general sense to capture the generalized relationship, resulting in incomplete information detection of the target edge. Summary of the invention
[0005] The purpose of the present invention is to propose a hyperspectral image target detection method based on tensor learning in view of the shortcomings of the above-mentioned prior art, aiming to solve the problems of long processing time for hyperspectral data and insufficient constraints on detection results in the prior art, and incomplete capture of target edge information by the LTR network model.
[0006] The idea of realizing the purpose of the present invention is that the present invention constructs a tensor learning network GTR, based on the ridge regression RR algorithm, and utilizes the structural information of the tensor by combining the Rank-1 decomposition, and at the same time includes the use of prior knowledge of different modes, that is, non-negativity. This decomposition contains discriminant information to enhance the discrimination of the model and enhance the sparsity of GTR. Compared with the existing LTR method, this method captures the logical relationship between sample pixels in a broad sense, and can obtain target and background edge block information, thereby solving the problem of incomplete capture of target and background edge information. The present invention preliminarily analyzes the position of the target point through preprocessing according to the spectral information d, obtains a rough inspection result, generates a weak supervision label, and finally constrains the detection result by constructing a constraint module, and this constraint module does not introduce any other parameters, thereby solving the problem of long processing time for hyperspectral and errors caused by insufficient constraints on the detection results.
[0007] The specific steps of the present invention include the following:
[0008] Step 1. Generate training set:
[0009] Step 1.1: Select a high-resolution hyperspectral image to be detected with a size of L×M1×M2 L represents the total number of bands of the hyperspectral image to be detected, M1×M2 represents the total number of pixels in each band of the hyperspectral image to be detected, and the constrained energy minimization algorithm is used to preprocess the high-resolution hyperspectral image to be detected to obtain the pseudo label matrix f;
[0010] Step 1.2, select background samples and target samples from the pseudo-label matrix f;
[0011] Step 1.3, find the elements corresponding to each row and column of the pseudo-label matrix f from the high-resolution hyperspectral image to be detected described in step 1.1, and then select the element points corresponding to the element value of 1 in the pseudo-label matrix f from all the found elements as target samples, and select the element points corresponding to the element value of 0 in the pseudo-label matrix f as background samples, arrange the background samples in order from small to large according to the element value, and select the first 25% of the background samples and all the target samples to form a training set;
[0012] Step 2: According to the RR regression algorithm, the tensor learning network is constructed as follows:
[0013]
[0014] Among them, g(w) represents the tensor learning network, Indicates that W is the value that makes the formula in brackets reach the minimum value (n) The value of Represents the tensor form of the label matrix, Represents the tensor form of the training set, W represents the weight matrix, represents the operation of finding the square of the F norm, express The n-modular product of W, λ represents the regularization parameter, 0<λ<1;
[0015] Step 3. Train the tensor learning network;
[0016] Step 3.1, generate label tensor and tensors And set the network training window size;
[0017] Step 3.2, and Input them into the tensor learning network respectively, iteratively update each element value in the weight matrix W in the tensor learning network until the element value in W no longer changes, and obtain a trained tensor learning network;
[0018] Step 4. Perform target detection on the hyperspectral image to be detected according to the following formula:
[0019]
[0020] Among them, y represents the detection result output by the hyperspectral image to be detected input into the tensor learning network, represents the value of a that makes the formula in the brackets reach the maximum value, β a (·) represents the a-th element of the one-dimensional vector in the brackets;
[0021] Step 5. Update the target detection result y matrix:
[0022] Find all elements with element values of 0 from the target detection result matrix y output by the tensor learning network, and then find the elements in the matrix f that correspond to the elements with element values of 0 in the y matrix, and determine whether the two element values are equal. If they are equal, keep the element value in the y matrix unchanged, otherwise, update the element value to 1;
[0023] Step 6. Use the updated matrix y as the result of hyperspectral image target detection.
[0024] Compared with the prior art, the present invention has the following advantages:
[0025] First, from the perspective of tensors, the present invention constructs a tensor learning network based on the ridge regression RR algorithm, which overcomes the defect that the existing technology captures insufficient logical relationship between sample pixels in a narrow sense, resulting in incomplete edge information of the target and the background. This allows the present invention to distinguish target pixels and non-target pixels more accurately, ensure the integrity of target and background edge information, and improve the accuracy of target detection.
[0026] Second, the present invention preliminarily analyzes the position of the target point through preprocessing according to the spectral information, obtains a rough inspection result, generates a weak supervision label, provides a label basis for network training, and finally constrains the detection result by constructing a constraint module, and this constraint module does not introduce any other parameters. It avoids the waste of resources caused by the long processing time of the prior art and the problem of increased detection error caused by insufficient constraints. While making the pixels selected by the present invention more reliable, it greatly reduces unnecessary parameters and improves the efficiency of target detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a flow chart of the present invention;
[0028] Figure 2 It is the Groundtruth of the Sandiego_sub hyperspectral image used in the simulation experiment of the present invention;
[0029] Figure 3 It is a comparison diagram of the simulation experiment results of the present invention. DETAILED DESCRIPTION
[0030] The present invention is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0031] Reference Figure 1 The implementation steps of the present invention are further described in detail with reference to the accompanying drawings and embodiments.
[0032] Step 1. Generate a training set.
[0033] Step 1.1: Select a high-resolution hyperspectral image to be detected with a size of L×M1×M2 L represents the total number of bands of the hyperspectral image to be detected, and M1×M2 represents the total number of pixels in each band of the hyperspectral image to be detected. The following constrained energy minimization algorithm is used to preprocess the hyperspectral image to be detected, so that it can ensure the maximum target spectral energy while limiting the output energy of the background sample:
[0034]
[0035]
[0036] in, represents the value of b when the formula in the brackets reaches the minimum value, N represents the total number of pixels of the hyperspectral image to be detected, d represents the target prior spectral vector, y i It represents the output energy of each pixel after passing through the linear filter, r represents the matrix of the hyperspectral image to be detected after two-dimensionalization and normalization, R represents the autocorrelation matrix of the hyperspectral image to be detected, and f represents the output pseudo-label matrix.
[0037] Step 1.2, select background and target samples from the output matrix f according to the following formula, and determine the pixels greater than or equal to τ in the output matrix f as target samples, and the pixels less than τ as background samples:
[0038]
[0039] Among them, τ represents the threshold set to 0.5, C(i,j) represents the sample value of the i-th row and j-th column of the matrix f, and 0 <i<M1,0<j<M2。
[0040] Step 1.3, find the elements corresponding to each row and column of the matrix f from the high-resolution hyperspectral image to be detected described in step 1.1, and then select the element points corresponding to the element value of 1 in the matrix f as the target samples from all the found elements, and select the element points corresponding to the element value of 0 in the matrix f as the background samples, arrange the background samples in order from small to large according to the element value, and select the first 25% of the background samples and all the target samples to form a training set.
[0041] The embodiment of the present invention adopts a Sandiego_sub hyperspectral image to be detected with a size of 100*100*189 taken by an AVIRS sensor, with a spatial resolution of 3.5m and a spectral resolution of 10nm, and uses a constrained energy minimization algorithm to process the above hyperspectral image to be detected to obtain an image matrix with a size of 100*100, and sets the pixel values greater than or equal to 0.5 in the image matrix to 1, which are determined as target samples, and the pixel values less than 0.5 are set to 0, which are determined as background samples, and the pixels corresponding to each row and column of the image matrix are found from the Sandiego_sub hyperspectral image to be detected, and then the pixel points corresponding to the pixel value of 1 in the image matrix are selected from all the found pixels as target samples, and the pixel points corresponding to the pixel value of 0 in the image matrix are selected as background samples, and the background samples are arranged in order of element value from small to large, and the first 500 background samples and 134 target samples are selected from the background samples to form a training set.
[0042] Step 2: According to the RR regression algorithm, the tensor learning network is constructed as follows:
[0043]
[0044] Among them, g(w) represents the tensor learning network, Indicates that W is the value that makes the formula in brackets reach the minimum value (n) The value of Represents the tensor form of the label matrix, Represents the tensor form of the training set, W represents the weight matrix, represents the operation of finding the square of the F norm, express and the n-modular product of W, λ represents the regularization parameter, 0<λ<1.
[0045] Step 3. Train the tensor learning network.
[0046] Step 3.1, set the size of the network training window to 3×3, perform matrix expansion operation on the label matrix obtained in step 1.1 and the training window to obtain a 4-dimensional label tensor Perform matrix expansion operation on the training set and training window obtained in step 1.3 to obtain a 4-dimensional tensor
[0047] Step 3.2, set the regularization parameter λ = 0.001, and They are input into the tensor learning network respectively, and each element value in the weight matrix W in the tensor learning network is iteratively updated until the element value in W no longer changes, thereby obtaining a trained tensor learning network.
[0048] Step 4. Perform target detection on the hyperspectral image to be detected according to the following formula:
[0049]
[0050] Among them, y represents the detection result output by the hyperspectral image to be detected input into the tensor learning network, represents the value of a that makes the formula in the brackets reach the maximum value, β a (·) represents the a-th element of the one-dimensional vector in the brackets.
[0051] Step 5. Update the target detection result y matrix:
[0052] Find all elements with element value 0 from the target detection result y matrix output by the tensor learning network, and then find the elements corresponding to the elements with element value 0 in the y matrix from the matrix f, and determine whether the two element values are equal. If they are equal, keep the element value in the y matrix unchanged, otherwise, update the element value to 1.
[0053] Step 6. Use the updated matrix y as the result of hyperspectral image target detection.
[0054] The effects of the present invention are further described below in conjunction with simulation experiments.
[0055] 1. Simulation experimental conditions.
[0056] The simulation experiment of the present invention is carried out on Windows 10 Professional Chinese version, configured with an Intel i7-10700 CPU of 2.9 GHz, an NVIDIA GeForce RTX 2080Ti GPU with a video memory of 11 GB, and the programming environment is Matlab 2019a.
[0057] The images used in the simulation experiment of the present invention are Sandiego_sub hyperspectral images taken by AVIRS sensor, and Groundtruth is as follows: Figure 2 As shown, the size is 100×100×189, containing 189 bands, with a spatial resolution of 3.5m and a spectral resolution of 10nm.
[0058] In the simulation experiment of the present invention, the window training size is set to 3×3, and the regularization parameter λ=0.001.
[0059] 2. Simulation experiment content and result analysis.
[0060] The simulation experiment of the present invention adopts the method of the present invention and two existing technologies (HCEM method and CSCR method) to detect targets on hyperspectral images respectively, and compares the evaluation index AUC and FPR values obtained by the three methods. The results are shown in Table 1.
[0061] The two prior arts refer to:
[0062] The hyperspectral target detection method proposed by Zou et al. in their paper “Hierarchical Suppression Method for Hyperspectral Target Detection.” IEEE Transactions on Geoscience & Remote Sensing 54.1 (2015) is referred to as the HCEM method.
[0063] The hyperspectral target detection method proposed by Qian et al. in their paper “Combined sparse and collaborative representation for hyperspectral target detection.” Pattern Recognition: The Journal of the Pattern Recognition Society 48.12 (2015) is referred to as the CSCR method.
[0064] Two evaluation indicators (detection accuracy AUC and false alarm rate FPR) are used to evaluate the detection results of the present invention and the existing detection method respectively.
[0065] In the simulation experiment of the present invention, the evaluation index AUC is defined as the area under the ROC curve, and its value range is [0.5, 1].
[0066] The calculation formula of the evaluation index FPR in the simulation experiment of the present invention is as follows:
[0067] FPR=FP / FP+TN
[0068] Among them, FP represents the number of samples predicted as positive samples from negative samples, TN represents the number of samples predicted correctly, and the FPR indicator means the probability of incorrectly predicting positive samples among all negative samples.
[0069] Table 1 Comparison of AUC and FPR of three methods in simulation experiments
[0070]
[0071] It can be seen from Table 1 that the tensor learning-based hyperspectral image target detection method proposed in this invention has significantly improved AUC results compared with the existing traditional methods CSCR and HCEM hyperspectral target detection methods. The detection results of CSCR are as follows: Figure 3 As shown in (a), the detection results of HCEM are as follows Figure 3 (b) shows that the detection results of the present invention are as follows Figure 3 As shown in (c), it is obvious from the detection result graph that the detection result graph of the present invention is clearer and has a good detection effect. This shows that the present invention effectively retains the integrity of background information and target information, and reduces the impact of data deviation with the help of constraint methods, thereby improving the target detection accuracy.
Claims
1. A hyperspectral image target detection method based on tensor learning, characterized in that: A tensor learning network is constructed to train the hyperspectral image, and a constraint module is constructed to constrain the hyperspectral image target detection results; the steps of the detection method include the following: Step 1. Generate training set: Step 1.1: Select a high-resolution hyperspectral image to be detected with a size of L×M1×M2 L represents the total number of bands of the hyperspectral image to be detected, M1×M2 represents the total number of pixels in each band of the hyperspectral image to be detected, and the constrained energy minimization algorithm is used to preprocess the high-resolution hyperspectral image to be detected to obtain the pseudo label matrix f; Step 1.2, select background samples and target samples from the pseudo-label matrix f; Step 1.3, find the elements corresponding to each row and column of the pseudo-label matrix f from the high-resolution hyperspectral image to be detected described in step 1.1, and then select the element points corresponding to the element value of 1 in the pseudo-label matrix f from all the found elements as target samples, and select the element points corresponding to the element value of 0 in the pseudo-label matrix f as background samples, arrange the background samples in order from small to large according to the element value, and select the first 25% of the background samples and all the target samples to form a training set; Step 2: According to the RR regression algorithm, the tensor learning network is constructed as follows: Among them, g(w) represents the tensor learning network, Indicates that W is the value that makes the formula in brackets reach the minimum value (n) The value of Represents the tensor form of the label matrix, Represents the tensor form of the training set, W represents the weight matrix, represents the operation of finding the square of the F norm, express The n-modular product of W, λ represents the regularization parameter, 0<λ<1; Step 3. Train the tensor learning network; Step 3.1, generate label tensor and tensors And set the network training window size; Step 3.2, and Input them into the tensor learning network respectively, iteratively update each element value in the weight matrix W in the tensor learning network until the element value in W no longer changes, and obtain a trained tensor learning network; Step 4. Perform target detection on the hyperspectral image to be detected according to the following formula: Among them, y represents the detection result output by the hyperspectral image to be detected input into the tensor learning network, represents the value of a that makes the formula in the brackets reach the maximum value, β a (·) represents the a-th element of the one-dimensional vector in the brackets; Step 5. Update the target detection result y matrix: Find all elements with element values of 0 from the target detection result matrix y output by the tensor learning network, and then find the elements in the matrix f that correspond to the elements with element values of 0 in the y matrix, and determine whether the two element values are equal. If they are equal, keep the element value in the y matrix unchanged, otherwise, update the element value to 1; Step 6. Use the updated matrix y as the result of hyperspectral image target detection.
2. The method for hyperspectral image target detection based on tensor learning according to claim 1, characterized in that: The formula for the constrained energy minimization algorithm described in step 1.1 is as follows: in, represents the value of b when the formula in the brackets reaches the minimum value, N represents the total number of pixels of the hyperspectral image to be detected, d represents the target prior spectral vector, and y i It represents the output energy of each pixel after passing through the linear filter, r represents the matrix of the hyperspectral image to be detected after two-dimensionalization and normalization, R represents the autocorrelation matrix of the hyperspectral image to be detected, and f represents the pseudo-label matrix.
3. The method for hyperspectral image target detection based on tensor learning according to claim 1, characterized in that: The selection of background samples and target samples from the pseudo-label matrix f described in step 1.2 is implemented by the following formula: Among them, τ represents the threshold value, which ranges from [0,1], C(i,j) represents the sample value of the i-th row and j-th column of the pseudo-label matrix f, 0 <i<M1,0<j<M2; The pixels in the pseudo-label matrix f that are greater than or equal to τ are judged as target samples, and the pixels that are less than τ are judged as background samples.
4. The method for hyperspectral image target detection based on tensor learning according to claim 1, characterized in that: Generate the label tensor as described in step 3.1 and tensors It means: perform matrix expansion operation on the label matrix obtained in step 1.1 and the training window to obtain the label tensor Perform matrix expansion operation on the training set and training window obtained in step 1.3 to obtain the tensor 5. The method for hyperspectral image target detection based on tensor learning according to claim 1, characterized in that: The network training window size is set as described in step 3.1 by randomly selecting a window from the windows of sizes 3×3, 5×5, and 7×7.
