Hyperspectral anomaly detection method based on residual learning and background estimation
Through a hyperspectral anomaly detection method based on residual learning and background estimation, non-central convolution kernels and lightweight convolutional neural networks are used to reconstruct the abnormal components, combined with cross approximation and consistency loss, to solve the problem of difficult background assessment under complex backgrounds. problem, achieving efficient anomaly detection and background suppression effects.
Patent Information
- Application Number
- CN202410442883.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-04-12
AI Technical Summary
Existing hyperspectral anomaly detection methods are difficult to accurately evaluate background statistical characteristics and construct background dictionaries under complex backgrounds, which affects detection performance. In particular, statistical methods are easily affected by abnormal pixels.
A method based on residual learning and background estimation is used to calculate pseudo background through non-central convolution kernel, use lightweight convolutional neural network to reconstruct abnormal components, and calculate abnormality detection results through Mahalanobis distance, combined with cross approximation and consistency loss to Improve detection accuracy.
It effectively enhances the anomaly detection performance, suppresses background noise, improves the accuracy and efficiency of detection results, and is better than the performance of traditional methods on multiple real data sets.
Smart Images

Figure CN118747845A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hyperspectral anomaly detection, and in particular to a hyperspectral anomaly detection method based on residual learning and background estimation. Background Art
[0002] Hyperspectral images (HSI) acquired by remote sensing systems contain scene information of hundreds of continuous spectral bands, and the image band range includes ultraviolet, visible light and infrared bands. The rich spectral information of hyperspectral images is conducive to distinguishing various targets of interest through spectral characteristics. Therefore, hyperspectral images have been widely used in target detection.
[0003] The purpose of hyperspectral anomaly detection is to distinguish pixels that show differences from the surrounding background in spatial and spectral dimensions without spectral prior information. This technology has been widely used in resource exploration, environmental monitoring, and precision agriculture. Despite its unique advantages, hyperspectral anomaly detection still faces different challenges in practical applications, such as lack of prior information and complex background categories.
[0004] In the past few decades, many hyperspectral anomaly detection methods have emerged. Existing hyperspectral anomaly detection methods can be divided into two categories: traditional methods and deep learning-based methods. Traditional methods include statistics-based methods and data representation-based methods. Among the statistics-based methods, one of the representative methods is the famous ReedXiaoli (RX) method. It assumes that the background follows a multivariate Gaussian distribution and detects anomalies by calculating the Mahalanobis distance between the tested pixel and the background pixel. However, in real hyperspectral images, the mean and covariance used in the RX method are easily affected by abnormal pixels. This factor will affect the detection performance of the RX method. Therefore, based on the above problems, scholars have proposed methods such as local RX and kernel RX. The data representation-based method assumes that the test pixel can be represented by several similar pixels. Among them, the collaborative representation detector assumes that each background pixel can be approximated by neighboring pixels, while the anomaly cannot (be approximated by neighboring pixels). Low-rank and sparse representation detectors assume that the background is low-rank and the anomaly is sparse. Their goal is to obtain low-rank matrices and sparse matrices by construction. In order to preserve the three-dimensional information of the hyperspectral image, the vector low-rank sparse representation method is used instead of the traditional two-dimensional low-rank sparse representation to reconstruct the background. Traditional methods have been successfully applied due to their high execution efficiency. However, due to the complexity of the background of real hyperspectral images, it is difficult for statistical methods to evaluate accurate background statistical features, which will affect the performance of anomaly detection. It is difficult for methods based on data representation to construct an accurate background dictionary, which will affect the accuracy of background reconstruction. Summary of the invention
[0005] Based on this, it is necessary to propose a hyperspectral anomaly detection method based on residual learning and background estimation to address the above problems.
[0006] A hyperspectral anomaly detection method based on residual learning and background estimation, the method comprising:
[0007] The reconstructed hyperspectral background is obtained by background estimation method;
[0008] Down-sampling the reconstructed hyperspectral background by two different filters to obtain two down-sampled hyperspectral images;
[0009] training a network based on the two downsampled hyperspectral images by a background loss of cross approximation;
[0010] The input hyperspectral image will be fed into the loss training network to predict the abnormal components, obtain the abnormal components, and then use the Mahalanobis distance to calculate the abnormal detection results.
[0011] In the above scheme, the reconstructed hyperspectral background is obtained by the background estimation method, specifically including:
[0012] Convolution kernel c is used to concatenate each band of the input hyperspectral image HSI Y with the jth non-central convolution kernel c. j Perform convolution, convolution feature map pass get; among them, is the image of the oth spectral band of the hyperspectral image;
[0013] The local spectrum similarity score of the hyperspectral image is obtained by Determine; In the formula, represents the j-th local spectral similarity score of HSI.
[0014] The maximum value of the local spectrum similarity score is taken as the background number
[0015] The background number G is binarized to extract the clean background HSI.
[0016] In the above scheme, the binarization operation is performed on the background data G to extract clean original background data, which specifically includes:
[0017] Sort the values in G in ascending order using the sort(.) function to obtain a ranking score vector: R = sort(G);
[0018] Binarize G Among them, E m,n represents the number of binary backgrounds at position (m,n), G m,nis the value of the background number G at position (m,n), T is the background ratio threshold, and [.] is the upper limit function, r [T·M·N] is the [T·M·N]th element in R;
[0019] Reconstructed hyperspectral background Calculated as Among them, m and n represent the two-dimensional coordinates of space, m = 1, 2, ..., M, n = 1, 2, ... N, binary binary, represents the hyperspectral image reconstructed by the spectral pixel at position (m, n), represents the spectral pixel of the input hyperspectral image at position (m, n), represents the background spectrum mean of the neighborhood centered at (m, n).
[0020] In the above scheme, the background spectrum average vector Calculated as: Wherein, U represents the set of spectral pixels between the outer window and the inner window centered at (m, n), and W represents the number of spectral pixels in the U set.
[0021] In the above scheme, the reconstructed hyperspectral background is filtered by two different filters. Downsample to obtain two downsampled hyperspectral background images and Specifically include:
[0022] For the reconstructed hyperspectral background of the input Two downsampled hyperspectral images are obtained by performing a convolution operation with a step size of 2 through two fixed downsampling filters v1 and v2.
[0023] in, Represents a convolution operation with a stride of 2.
[0024] In the above scheme, the input hyperspectral image will be sent to a lightweight network based on residual learning to predict the abnormal component and obtain the abnormal component A, which specifically includes:
[0025] The abnormal component is determined according to A=f(Y;θ), where A represents the predicted abnormal result of the input HSI. A1 and A2 represent the abnormal components of the downsampled hyperspectral images Y1 and Y2 predicted by the lightweight network based on residual learning, respectively.
[0026] In the above scheme, the input hyperspectral image will be sent to the training network, and the input HIS Y is downsampled using a pair of downsamplers to obtain HSIY1 and HSIY2, specifically including:
[0027]
[0028]
[0029] in, Represents a convolution operation with a stride of 2.
[0030] In the above scheme, the input hyperspectral image will be sent to the loss training network to predict the abnormal component and obtain the abnormal component, which specifically includes:
[0031] Two 3×3 convolutional layers are used to extract spatial-spectral features from HSI;
[0032] A 1×1 convolutional layer is used to fine-tune the learned spectral information;
[0033] For the i-th layer feature F i , the output feature F after the convolution layer i+1 Expressed as F i+1 =max(α slope ×Z i+1 ,Z i+1 ),i=1,2,3.; where w i and b i denote the weight and bias of the i-th layer respectively, represents the convolution operation, Z i+1 represents the output of the i-th convolutional layer, α slope The parameter represents the slope of the negative axis.
[0034] In the above scheme, the background loss is expressed as:
[0035]
[0036] The consistency loss can be expressed as:
[0037] Prediction background D A1 ,D A2 It is expressed as:
[0038] D A1 =Y1-A1
[0039] D A2 =Y2-A2;
[0040] Downsampled background prediction X D1 , X D2 Expressed as
[0041] XD1 =D1(YA)
[0042] X D2 =D2(YA),
[0043] D1(.), D2(.) denote the downsampling operations using filters v1 and v2 respectively.
[0044] In the above scheme, the anomaly detection result of the lightweight network based on residual learning calculated by using Mahalanobis distance specifically includes:
[0045] According to D(a j )=(a j -ξ) T Λ -1 (a j -ξ) calculates the anomaly detection result; where, a j represents the pixel spectrum of the predicted abnormal component A at position j, and The equations are the global mean vector and inverse covariance matrix A of the entire predicted anomaly component, and D represents the anomaly detection result.
[0046] The embodiments of the present invention have the following beneficial effects:
[0047] The present invention adopts a background estimation method based on a non-central convolution kernel to calculate the pseudo background, uses the difference between the pseudo background and the hyperspectral image to obtain the abnormal component, and uses the proposed lightweight convolutional neural network based on residual learning to reconstruct the abnormal component. Finally, according to the predicted abnormal component, the anomaly detection result is calculated by the Mahalanobis distance. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0049] in:
[0050] Figure 1 A framework diagram of a hyperspectral anomaly detection method based on residual learning and background estimation is provided for an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a non-central convolution kernel in a hyperspectral anomaly detection method based on residual learning and background estimation is provided for an embodiment of the present invention;
[0052] Figure 3 A schematic diagram of paired downsampling in a hyperspectral anomaly detection method based on residual learning and background estimation is provided for an embodiment of the present invention;
[0053] Figure 4 Pseudo-color images and ground truth values of five datasets: (a) WHU-Hi-River (b) Pavia (c) Texas Coast (d) San Diego I (e) San Diego II;
[0054] Figure 5 Comparison of anomaly detection results of different methods on five datasets: (a) WHU-Hi-River (b) Pavia (c) Texas Coast (d) San Diego I (e) San Diego II;
[0055] Figure 6 3D-ROC curves of different algorithms on five data sets: (a) WHU-Hi-River (b) Pavia (c) Texas Coast (d) San Diego I (e) San Diego II;
[0056] Figure 7 2DROC (detection rate, false alarm rate) curves for five data sets (a) WHU-Hi-River (b) Pavia (c) Texas Coast (d) San Diego I (e) San Diego II;
[0057] Figure 8 2DROC (detection rate, threshold) curves for five data sets (a) WHU-Hi-River (b) Pavia (c) Texas Coast (d) San Diego I (e) San Diego II;
[0058] Fig. 9 2DROC (false alarm rate, threshold) curves for five data sets: (a) WHU-Hi-River (b) Pavia (c) Texas Coast (d) San Diego I (e) San Diego II. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The embodiment of the present invention provides a hyperspectral anomaly detection method based on residual learning and background estimation, such as Figure 1 As shown, the method includes:
[0062] Step 101: Obtain a reconstructed hyperspectral background by a background estimation method;
[0063] Specifically, this application proposes a three-layer lightweight CNN, such as Figure 2 As shown in Figure 2, this network is used to learn anomalies instead of background.
[0064] First, the mathematical model of the hyperspectral image Y is:
[0065] Y=X+A
[0066] in, is the input hyperspectral image, is the background matrix, is the anomaly matrix, M and N are the spatial dimensions of the input HSI, and B is the number of spectral bands of the input hyperspectral image of the input HSI.
[0067] Compared with reconstructing complex background, learning abnormal features directly through CNN is more efficient and requires fewer parameters. Therefore, the proposed light CNN method is used to reconstruct the abnormal components. The reconstruction process can be expressed as
[0068] A=f(Y;θ)
[0069] Where f(·) is the function that the light CNN needs to fit, and θ is the parameter set that needs to be optimized in the light CNN.
[0070] Specifically, the proposed lightweight CNN consists of three convolutional layers. Its architecture is as follows Figure 1 As shown in Figure 2, two 3×3 convolutional layers are used to extract spatial-spectral features from HSI. Then, a 1×1 convolutional layer is used to fine-tune the learned spectral information. For the i-th layer feature F i , the output feature F after the convolution layer i+1 It can be expressed as
[0071] Z i+1 =w i #F i +b i ,i=1,2,3.
[0072] F i+1 =max(α slope ×Z i+1 ,Z i+1 ),i=1,2,3.
[0073] where w i and b i denote the weight and bias of the i-th layer respectively. represents the convolution operation, Z i+1 represents the output of the i-th convolutional layer. Formula 4 defines the activation function, using the LeakyReLU function, α slope The parameter represents the slope of the negative axis. In the experiment, α slope = 0.2. F1 = Y, F4 is the reconstructed hyperspectral anomaly component.
[0074] Non-central convolution kernels such as Figure 2 As shown in . The edge or corner pixels of the kernel are used as test pixels. In this way, the information on one side of the test pixel is considered for each convolution kernel. By integrating the information of all eight non-center convolution kernels, the image details can be retained to the maximum extent. In order to improve the efficiency of the proposed method, a fixed weight is used for convolution. The weight of the convolution kernel is shown in Figure 2 (d) as shown.
[0075] Convolution kernel c is used to concatenate each band of the input hyperspectral image HSI Y with the jth non-central convolution kernel c. j Perform convolution, convolution feature map pass get; among them, is the image of the oth spectral band of the hyperspectral image;
[0076] The local spectrum similarity score of the hyperspectral image is obtained by Determine; In the formula, represents the j-th local spectral similarity score of HSI.
[0077] The maximum value of the local spectrum similarity score is taken as the background number
[0078] The background number G is binarized to extract the clean background HSI.
[0079] Sort the values in G in ascending order using the sort(.) function to obtain a ranking score vector: A = sort(G);
[0080] Binarize G Among them, E m,n represents the number of binary backgrounds at position (m,n), G m,n is the value of the background number G at position (m,n), T is the background ratio threshold, and [.] is the upper limit function, r [T·M·N] is the [T·M·N]th element in R;
[0081] In order to obtain a clean background hyperspectral image, a background rendering method based on a double window is used. Figure 3 As shown in Figure 2. In the background values, large score values are associated with background locations, and small score values are associated with abnormal locations. Reconstructed hyperspectral background Calculated as Among them, m and n represent the two-dimensional coordinates of space, m = 1, 2, ..., M, n = 1, 2, ... N, binary binary, represents the hyperspectral image reconstructed by the spectral pixel at position (m, n), represents the spectral pixel of the input hyperspectral image at position (m, n), represents the background spectrum mean of the neighborhood centered at (m, n).
[0082] Through the background estimation method, a clean background HSI is obtained and used to support the subsequent training process.
[0083] The background spectrum average vector Calculated as: Wherein, U represents the set of spectral pixels between the outer window and the inner window centered at (m, n), and W represents the number of spectral pixels in the U set.
[0084] Step 102: down-sampling the reconstructed hyperspectral background through two different filters to obtain two down-sampled hyperspectral images;
[0085] Specifically, the proposed downsampler is Figure 3 As shown. For the input background hyperspectral image, Using two fixed downsampling filters v1 and v2 in Perform a convolution operation with a step size of 2 on the input. Two downsampled hyperspectral images are obtained by performing a convolution operation with a step size of 2 through two fixed downsampling filters v1 and v2.
[0086] in, Represents a convolution operation with a stride of 2.
[0087] The abnormal component is determined according to A=f(Y;θ), where A represents the predicted abnormal result of the input HSI. A1 and A2 represent the abnormal components of the downsampled hyperspectral images Y1 and Y2 predicted by the lightweight network based on residual learning, respectively.
[0088] The input hyperspectral image will be fed into the training network, and the input HIS Y will be downsampled using a pair of downsamplers to obtain HSI Y1 and HSI Y2, specifically including:
[0089]
[0090]
[0091] in, Represents a convolution operation with a stride of 2.
[0092] The input hyperspectral image Y and the downsampled hyperspectral images Y1 and Y2 are fed into the proposed lightweight CNN for training. After forward reasoning, their corresponding network outputs are obtained as follows:
[0093] A=f(Y;θ)
[0094] A1=f(Y1;θ)
[0095] A2=f(Y2;θ)
[0096] Where A represents the prediction result of the input HSI. A1 and A2 represent the prediction results of the downsampled hyperspectral images Y1 and Y2, respectively.
[0097] In order to further reduce the impact of anomalies and noise on the background, a background loss based on cross approximation is proposed. After paired downsampling, the edges of the two downsampled hyperspectral images are mainly oriented in orthogonal directions. When the hyperspectral images obtained by two different downsampling filters are mapped to another downsampled background hyperspectral image, the low-frequency background information is retained in the background matrix, and the high-frequency details are mainly in the predicted anomaly matrix. Anomalies are usually considered to be high-frequency information. Through cross approximation, as many anomalies as possible are assigned to the anomaly matrix, which is beneficial to the task of anomaly detection.
[0098] Background prediction HSID A1 and D A2 It can be calculated as
[0099] D A1 =Y1-A1
[0100] D A2 =Y2-A2
[0101] Expected predicted background hyperspectral image D A1 Should be compared with the downsampled background hyperspectral image Very good match. Similarly, the predicted background hyperspectral image D A2 Should be compared with the downsampled background hyperspectral image The match is very good, and the background loss can be expressed as:
[0102]
[0103] Using manual downsampling methods will introduce artificial bias and may lead to overfitting during training, thus hindering network optimization. Therefore, in order to mitigate the impact of downsampling on the training process, a consistency loss is proposed. A pair of downsamplers is set after the prediction result to obtain the downsampled background prediction X D1 , X D2 ,
[0104] X D1 =D1(YA)
[0105] X D2 =D2(YA)
[0106] D1(.), D2(.) denote the downsampling operations using filters v1 and v2 respectively.
[0107] Expect X D1 With D A1 Good match, X D2 With D A2 Well matched. This ensures that the position of the paired downsamplers does not affect the training process. The consistency loss can be expressed as:
[0108]
[0109]
[0110] Step 103: training a network based on the two downsampled hyperspectral images by a background loss of cross approximation;
[0111] Step 104: The input hyperspectral image will be sent to the loss training network to predict the abnormal component, obtain the abnormal component, and then use the Mahalanobis distance to calculate the abnormal detection result.
[0112] Specifically, two 3 × 3 convolutional layers are used to extract spatial-spectral features from HSI;
[0113] A 1×1 convolutional layer is used to fine-tune the learned spectral information;
[0114] For the i-th layer feature F i , the output feature F after the convolution layer i+1 Expressed as F i+1 =max(α slope ×Z i+1 ,Z i+1 ),i=1,2,3.; where w i and b i denote the weight and bias of the i-th layer respectively, represents the convolution operation, Z i+1represents the output of the i-th convolutional layer, α slope The parameter represents the slope of the negative axis.
[0115] According to D(a j )=(a j -ξ) T Λ -1 (a j -ξ) calculates the anomaly detection result; where, a j represents the pixel spectrum of the predicted abnormal component A at position j, and The equations are the global mean vector and inverse covariance matrix A of the entire predicted anomaly component, and D represents the anomaly detection result.
[0116] like Figure 2 As shown in Figure 2, the method consists of four steps. First, the pseudo background is calculated by using the background estimation method based on the non-central convolution kernel. Second, the anomaly component is obtained by using the difference between the pseudo background and the hyperspectral image. Third, the anomaly component is reconstructed using the proposed lightweight convolutional neural network based on residual learning. Finally, the anomaly detection result is calculated based on the predicted anomaly component using the Mahalanobis distance.
[0117] Experimental Results
[0118] In order to verify the performance of this method, it is compared with eight existing well-performing anomaly detection algorithms, including RX, CRD, PCA-TLRSR, HAD-AHMID, RGAE, Auto-AD, LREN and DeCNNAD.
[0119] Experimental Dataset
[0120] 1) WHU-Hi-River: This dataset was collected on March 21, 2018 at the bank of a long river in Honghu Lake, Hubei Province, China. The size of this hyperspectral image is 105×168, and the spatial resolution is 6 cm. Figure 4 (a) shows the hyperspectral image with 135 bands. Two plastic plates and two gray plates are considered as abnormal targets.
[0121] 2) Pavia: This dataset was collected by the Reflection Optical System Imaging Spectrometer (ROSSI-03) sensor in Pavia, Italy. The HSI size is 150×150 and the spatial resolution is 1.3m. Figure 4 (b) The HSI shown has 102 bands. The vehicles on the bridge are considered as abnormal targets.
[0122] 3) Texas Coast: This dataset was collected by the Airborne Visible / Infrared Imager Specification Surveyor (AVIRIS) sensor on the coast of Texas, USA on August 29, 2010. The size of the HSI is 100×100 and the spatial resolution is 17.2m. Figure 4 (c) HSI has 204 bands. All bands were used in the experiment.
[0123] 4) San Diego I: This dataset was collected by the AVIRIS sensor in San Diego, USA. The HSI size is 400×400, the number of bands is 244, and the spectral resolution is 0.37℃m~2.51℃m. In the experiment, 189 bands were selected by removing low signal-to-noise ratio and absorption bands. Two 100×100 areas were cropped from the HSI, such as Figure 4 (d) and (e). The aircraft was considered an anomalous target. The two HSIs were donated as San Diego 1 and San Diego 2, respectively.
[0124] Evaluation indicators
[0125] The experiment uses three evaluation indicators: three-dimensional ROC curve (3-D ROC) Chang (2020), two-dimensional ROC curve (2-D ROC) and area under the 2-D ROC curve (AUC) to objectively evaluate the performance of various anomaly detection methods. In the experiment, the parameters of the eight methods are set according to the author's suggestions and the performance of the AUC value.
[0126] Experimental Results
[0127] The detection results of this method on different data sets are as follows Figure 5As shown. For the results of the RX method, no anomalies are detected on the SanDiego II dataset in the 5th row. The target is detected on other datasets, but the background is also clear, which may cause some false alarms. For the detection results of the CRD method on the five datasets, the target of the WHU-Hi-River dataset in the first row is not clear, while the background of other datasets is still relatively clear. For PCA-TLRSR, the background of all datasets is clear. In addition, there is some noise on the San Diego II dataset, which makes the detection results less than ideal. For the HAD-AHMID method, the anomalies on these 5 datasets are effectively enhanced. However, on the Texas Coast, SanDiego I, and San Diego II datasets, the background is still relatively clear. Although the RGAE method can clearly detect anomalies on the 5 datasets, the background is also relatively clear. The results of the Auto-AD method effectively detect the target on the first three datasets. On the Pavia dataset, the results of both the target and the background are satisfactory, but the background is still relatively clear on the WHU-Hi-River and TexasCoast datasets. The anomalies on the San Diego I and San Diego II datasets cannot be clearly detected. For the LREN method, the anomaly can be detected, but the background is still relatively clear. For the results of DeCNNAD, the target is detected on all five datasets, but the background is clear on the Texas Coast dataset, which leads to some false alarms. From the results of the anomaly detection algorithm proposed in this paper, it can be seen that the proposed method can effectively detect anomalies and has a good background suppression effect. In general, from the perspective of subjective evaluation, the results of the proposed method are better than those of other methods.
[0128] From the perspective of objective evaluation, 3D-ROC curve and AUC value are used to evaluate the performance of the method. The 3D-ROC curves on different data sets are as follows: Figure 6 shown. Figure 6 The curve of the method marked in red is close to other methods, except for the Auto-AD method on SanDiego I. The relatively lower curve means a lower detection rate or a higher false alarm rate.
[0129] The 2D-ROC (detection rate, false alarm rate) curves on different data sets are as follows: Figure 7 The corresponding variables are shown in Table 1. Figure 7As shown, the method marked with a red line is almost at the top of the curve. On the Pavia, Texas Coast, and San DiegoII datasets, the curve of this method is not at the top of all the curves on the left, but is relatively close to some other state-of-the-art methods. On these datasets, the overall position remains in the upper part. Overall, the method has satisfactory performance. In Table 1, the best values are shown in bold. As can be seen, the proposed method achieves the best values on all datasets. On different datasets, compared with the second-best methods, the values of this method on the WHU-Hi-River, Pavia, Texas Coast, San Diego I, and San Diego II datasets are 0.0005, 0.0227, 0.0056, 0.0004, and 0.0018 higher, respectively.
[0130] 2D-ROC curves (detection probability, threshold) on different data sets are as follows Figure 8 The corresponding values of the variables are shown in Table 2. Figure 8 As shown, the results of the method marked with a red line are close to the other methods. On the Pavia, Texas Coast, and San Diego I datasets, the curve of the proposed method is at the top of all curves. In Table 2, the best values are shown in bold. It can be seen that PCA-TLRSR achieves the best values on the WHU-Hi-River and Texas Coast datasets, while DeCNND achieves the best values on the San Diego I and San Diego II datasets. On the Pavia dataset, the CRD method achieves the best value. In this metric, the proposed method does not achieve the best performance. This is because the detected targets in the results of the proposed method appear relatively blurred, resulting in relatively low target pixel values on the edge, which cannot be effectively separated with a high threshold. However, on some datasets, the variable () value is close to other state-of-the-art methods and can achieve suboptimal or third-best results.
[0131] See 2D-ROC curves (false alarm rate, threshold) on different data sets Fig. 9 The corresponding values of each variable are shown in Table 3. Fig. 9As shown, the results of the proposed method are marked with a red line, which is relatively low relative to most other state-of-the-art methods. This shows that the proposed method has good background suppression performance. On the WHU-Hi-River dataset, the CRD method outperforms the method proposed in this paper. On the Pavia, San Diego I, and San Diego II datasets, the Auto-AD method outperforms the method proposed in this paper. However, on these datasets, the results of the proposed method are close to the best performance. In Table 3, the best values are shown in bold. It can be seen that CRD achieves the best value on the WHU-Hi-River dataset, and Auto-AD achieves the best value on the Pavia, SanDiego I, and San Diego II datasets. On the Texas Coast dataset, the method achieves the best value. Although it did not achieve the best performance on some datasets, its value still achieved the second or third best performance. Overall, the proposed method achieved a satisfactory background suppression effect.
[0132] Table 1 AUC (detection probability, false alarm rate) values of detection results of five data sets
[0133]
[0134] Table 2 AUC (detection probability, threshold) values of detection results of five data sets
[0135]
[0136] Table 3 AUC (false alarm rate, threshold) values of detection results of five data sets
[0137]
[0138] In addition, in order to evaluate the execution efficiency of these methods, the time consumption of the proposed method and the comparison methods on five datasets are given. Among them, Auto-AD, LREN and the proposed method are implemented by Python3. The remaining methods are performed using Matlab 2022b. All methods are executed on a computer equipped with an Intel Core Ti9-12900H, 16GB RAM and an NVDIA GeForce RTX 3060 laptop GPU. The speed of the methods with and without GPU acceleration is measured respectively. The time consumption results are shown in Table 4, and the best value is shown in bold. It can be seen that without GPU acceleration, the RX method has the fastest processing speed. With GPU acceleration, the method obtains the best processing time. This means that the method has satisfactory execution efficiency.
[0139] Table 4. Running results of different algorithms under five data sets
[0140]
[0141] The present invention proposes a light CNN hyperspectral anomaly detection method based on residual learning and background estimation. In the training stage, the residual learning method is used to directly learn the anomaly component instead of the background component. This conversion reduces the complexity of learning and makes it possible to design a lightweight CNN. Based on residual learning, a lightweight CNN with only three layers is proposed to extract the features of the anomaly. In order to constrain the training, the camouflaged background is obtained by a background estimation method based on a non-center convolution kernel. In order to further improve the purity of the pseudo background, a downsampling method is introduced, and a joint loss function combining background loss and consistency loss is introduced. In the prediction stage, the Mahalanobis distance of the predicted anomaly component is used to obtain the anomaly detection result. Comparative experiments of eight state-of-the-art methods are carried out on five real data sets. The results show that the method can enhance the anomaly and suppress the background. The method obtains high AUC values on these five test data sets, indicating that the method has good anomaly detection performance.
[0142] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0143] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A hyperspectral anomaly detection method based on residual learning and background estimation, It is characterized in that The method comprises: The reconstructed hyperspectral background is obtained by background estimation method; Down-sampling the reconstructed hyperspectral background by two different filters to obtain two down-sampled hyperspectral images; training a network based on the two downsampled hyperspectral images by a background loss of cross approximation; The input hyperspectral image will be fed into the loss training network to predict the abnormal components, obtain the abnormal components, and then use the Mahalanobis distance to calculate the abnormal detection results.
2. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 1, It is characterized in that The method of obtaining the reconstructed hyperspectral background by the background estimation method specifically includes: Convolution kernel c is used to concatenate each band of the input hyperspectral image HSI Y with the jth non-central convolution kernel c. j Perform convolution, convolution feature map pass get; among them, is the image of the oth spectral band of the hyperspectral image; The local spectrum similarity score of the hyperspectral image is obtained by Determine; In the formula, represents the j-th local spectral similarity score of HSI. The maximum value of the local spectrum similarity score is taken as the background number The background number G is binarized to extract the clean background HSI.
3. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 2, It is characterized in that The binarization operation is performed on the background data G to extract clean original background data, specifically including: Sort the values in G in ascending order using the sort(.) function to obtain a ranking score vector: R = sort(G); Binarize G Among them, E m,n represents the number of binary backgrounds at position (m,n), G m,n is the value of the background number G at position (m,n), T is the background ratio threshold, and [.] is the upper limit function, r [T·M·N] is the [T·M·N]th element in R; Reconstructed hyperspectral background Calculated as Among them, m and n represent the two-dimensional coordinates of space, m = 1, 2, ..., M, n = 1, 2, ... N, binary binary, represents the hyperspectral image reconstructed by the spectral pixel at position (m, n), represents the spectral pixel of the input hyperspectral image at position (m, n), represents the background spectrum mean of the neighborhood centered at (m, n).
4. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 3, It is characterized in that The background spectrum average vector Calculated as: Wherein, U represents the set of spectral pixels between the outer window and the inner window centered at (m, n), and W represents the number of spectral pixels in the U set.
5. The hyperspectral anomaly detection method based on residual learning and background estimation according to any one of claims 1 to 4, It is characterized in that The reconstructed hyperspectral background is filtered by two different filters. Downsample to obtain two downsampled hyperspectral background images and Specifically include: For the reconstructed hyperspectral background of the input Through two fixed downsampling filters v 1 and v 2 Perform a convolution operation with a step size of 2 to obtain two downsampled hyperspectral images in, Represents a convolution operation with a stride of 2.
6. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 5, It is characterized in that The input hyperspectral image will be sent to a lightweight network based on residual learning to predict abnormal components and obtain abnormal components A, which specifically includes: The abnormal component is determined according to A=f(Y;θ), where A represents the predicted abnormal result of the input HSI. 1 and A 2 Represents: downsampled hyperspectral image Y 1 and Y 2 The anomaly component predicted by a lightweight network based on residual learning.
7. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 6, It is characterized in that The input hyperspectral image will be fed into the training network, and the input HIS Y will be downsampled using a pair of downsamplers to obtain HSI Y 1 and HSI Y 2 , specifically including: in, Represents a convolution operation with a stride of 2.
8. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 7, It is characterized in that The input hyperspectral image will be sent to the loss training network to predict the abnormal components and obtain the abnormal components, which specifically include: Two 3×3 convolutional layers are used to extract spatial-spectral features from HSI; A 1×1 convolutional layer is used to fine-tune the learned spectral information; For the i-th layer feature F i , the output feature F after the convolution layer i+1 Expressed as i=1,2,3.、F i+1 =max(α slope ×Z i+1 ,Z i+1 ),i=1,2,3.; where w i and b i denote the weight and bias of the i-th layer respectively, represents the convolution operation, Z i+1 represents the output of the i-th convolutional layer, α slope The parameter represents the slope of the negative axis.
9. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 8, It is characterized in that The background loss is expressed as: The consistency loss can be expressed as: Prediction background D A1 ,D A2 It is expressed as: D A1 =Y 1 -A 1 D A2 =Y 2 -A 2 ; Downsampled background prediction X D1 , X D2 Expressed as X D1 =D 1 (Y-A) X D2 =D 2 (Y-A), D 1 (.), D 2 (.) indicates that the downsampling operation uses the filter v 1 and v 2 express.
10. The hyperspectral anomaly detection method based on residual learning and background estimation according to claim 9, It is characterized in that The anomaly detection result of the lightweight network based on residual learning using Mahalanobis distance calculation specifically includes: According to D(a j )=(a j -ξ) T Λ -1 (a j -ξ) calculates the anomaly detection result; where, a j represents the pixel spectrum of the predicted abnormal component A at position j, and The equations are the global mean vector and inverse covariance matrix A of the entire predicted anomaly component, and D represents the anomaly detection result.
Citation Information
Patent Citations
Hyperspectral anomaly detection method based on matching pursuit generative adversarial network
CN114037842A
Target detection and target detection model training method and device
CN114549926A
Image processing apparatus, imaging system, and method for estimating error in reconstructed images
US20240037798A1
