A Fast Hyperspectral Anomaly Detection Algorithm Based on Greedy Bilateral Smoothing and Extended Multi-Attribute Profile

: To address the difficulty of separating background materials from similar materials associated with the use of “single-spectral information” for hyperspectral anomaly detection, a fast hyperspectral anomaly detection algorithm based on what we term the “greedy bilateral smoothing and extended multi-attribute profile” (GBSAED) method is proposed to improve detection precision and operation efficiency. This method utilizes “greedy bilateral smoothing” to decompose the low-rank part of a hyperspectral image (HSI) dataset and calculate spectral anomalies. This process improves the operational efficiency. Then, the extended multi-attribute profile is used to extract spatial anomalies and restrict the shape of anomalies. Finally, the two components are combined to limit false alarms and obtain appropriate detection results. This new method considers both spectral and spatial information with an improved structure that ensures operational efficiency. Using five real HSI datasets, this study demonstrates that the GBSAED method is more robust than eight representative algorithms under diverse application scenarios and greatly improves detection precision and operational efficiency.


Introduction
A hyperspectral image (HSI) is an image data product containing rich spatial and spectral information.An HSI includes hundreds of nearly continuous spectral bands [1][2][3].Compared to traditional optical and multispectral images, HSIs convey more features, significantly improving the ability to detect subtle differences in the characteristics of different materials [4].Therefore, it offers unique advantages for classification and target detection [5][6][7][8][9].
Target detection is essentially a binary classification problem that aims to extract specific pixels from images with various backgrounds.Target detection is a major application of HSI processing and is crucial in situations such as battle reconnaissance, hostage rescue, and ecological supervision [10,11].However, those practical applications lack prior information and thus require unsupervised anomaly target detection [12], which has become a focus of recent research [6,[13][14][15][16][17].
In the past few decades, a large number of anomaly detection algorithms have been proposed and improved.These algorithms are of two main types, namely statistical modeling algorithms and representation-based algorithms [18].These statistical modeling methods are often related to the Gaussian distribution.Academic Editor: Mi Wang detection, the benchmark is the typical Reed-Xiaoli (RX) algorithm [19].RX assumes that the background model conforms to a multidimensional Gaussian distribution and obtains detection results from the Mahalanobis distance between the spectral mean of selected pixels and the background pixels.This process impairs the performance of the statisticsbased detector due to contamination with abnormal data in the background statistics, improper modeling of the Gaussian distribution, and the usage of lower-order information.Many improved RX algorithms have been proposed to address these problems [20][21][22][23][24][25][26].Representatives of these algorithms include subspace RX (SSRX) [20], regularized RX [21], kernel RX (KRX) [22], cluster kernel RX (CKRX) [23], cluster-based anomaly detection (CBAD) [24], weighted RX [25], and blocked adaptive computationally efficient outlier nominators (BACON) [26].However, those algorithms do not solve the central problem, as they employ assumptions for the data.Therefore, their results are easily influenced by complex or contaminated backgrounds.
Starting with the inherent attributes of the HSI, the low-rank and sparse matrix decomposition-based anomaly detection method (LRaSMD) assumes low-rankness of the spectral vector of background pixels, represented by base vector linear combinations, as well as sparseness of the anomaly target, which occurs with low probability in small quantities [33].Therefore, the LRaSMD method decomposes the original HSI into low-rank, sparse, and noise matrices.Some LRaSMD methods show relatively good performance in hyperspectral anomaly detection, including Euclidean distance-based LRaSMD (EDLRaSMD) [34], two-norm-based LRaSMD [35], the LRaSMD-based Mahalanobis distance method for hyperspectral anomaly detection (LSMAD) [36] and the parts representation-based LRaSMD (PRLRaSAD) [4].
LRaSMD considers the low-rankness of the background and sparsity of anomalies to decompose low-rank and sparse components.This method is effective for addressing the problem of anomaly detection and avoids a situation in which a larger sample number in the neighboring window algorithm may increase the complexity and difficulty of the operation process [4].However, some background components may be classified as sparse parts due to noise in the image caused by complex ground object types, the presence of background objects with sparseness and few pixels, environmental changes, or sensor problems [37].In addition, such detectors generally use the pixel's spectral features but ignore their spatial distribution characteristics [38], influencing detection performance.Moreover, most methods based on LRaSMD are time-consuming.
The present study introduces a fast hyperspectral anomaly detection algorithm based on what we term the "greedy bilateral smoothing and extended multi-attribute profile" (GBSAED) method.In this method, the extended multi-attribute profile is effectively applied for modeling of spatial information.From spatial and spectral perspectives, the LRaSMD model decomposes the background and applies the extended morphological attribute profile (EMAP) to obtain data representing the spatial feature.Then, the Mahalanobis distance is employed to construct spectral anomaly components and spatial anomaly components.Finally, information from each process is integrated to obtain the final detection result.In this study, the GBSAED method showed good performance when applied to five real hyperspectral datasets.
The structure of this paper is organized as follows.The second section introduces the basic concepts of EMAP and LRaSMD method.The third section presents the proposed algorithm.The fourth section describes and discusses the experiments conducted using five datasets.Finally, the fifth section summarizes the full study.

Low-Rank and Sparse Matrix Decomposition
In hyperspectral data, adjacent pixels have similar spectral vectors because they have similar qualities [39].Due to the strong correlations among bands, the spectral vectors of smooth and continuous background pixels in HSI can be approximately represented as linear combinations of several base vectors.Thus, the background of HSI is characterized by low rankness in low-dimensionality subspace.In contrast to background pixels, anomalous pixels account for a small proportion of the image.Assuming that these pixels are distributed randomly, anomalous pixels are characterized by sparsity.The LRaSMD method treats the matrix as the sum of low-rank, sparse, and noise matrices.This process can describe the low-rankness and sparsity of HSI background and anomalous features.This method does not aim to establish a single model for each feature, but instead considers the two feature types simultaneously to extract useful information from the noise and acquire additional background components from restored data.The LRaSMD algorithm is represented by Equation (1) [40].
Where  ∈ ℝ × .(n and b represent pixel number and band number, respectively).B is the low-rank matrix representing spectral information for the image background.A is the sparse matrix representing spectral information for the anomaly target.N is the noise matrix.Noise in the image is assumed to be a Gaussian random variable.
The algorithm establishes a minimized decomposition error function by controlling model complexity through limiting the rank of the low-rank matrix B and sparsity of the sparse matrix A. Equation (1) can then be rewritten as Equation (2).Where r and k denote the rank of the low-rank matrix and sparsity of the sparse matrix.This equation can effectively express background information by controlling the maximum value of r. k expresses the occurrence probability of anomalous pixels in the image.As the number of iterations increases, decomposition error shows a monotonic decreasing trend.Therefore, Equation (2) can be transformed into two sub-problems; their functions are shown as Equation (3).
where Bt and St represent the optimal solution at the tth iteration.When decomposition errors uniformly converge to a local minimum, iteration stops and the low-rank matrix B, sparse matrix A, and noise matrix N are constructed.

Extended Morphological Attribute Profile
Attribute profiles (APs) originate from the morphological profile [41].APs are based on attribute filters that operate using an image's connected components (CC).Through two basic operators, thinning and thickening, filtration produces a series of image sequences.This process compares each CC's attributes and threshold value, , and then estimates whether this region satisfies the set standard.If not, the value is set to the nearest radiation value in the adjacent domain, merging that region into the adjacent CC.This domain can be merged into an adjacent domain with a lower or higher grayness level, resulting in thinning and thickening, respectively.The function underlying this process is given by Equation (4).() =  (), (), . . ., (),, (), (), . . ., () r (4) Where  and  , ( = 1,2, . . .,) represent thinning and thickening, respectively.However, APs are not easily expanded into multiple-value data (e.g., HSI data) because the sequence of data elements is not contained within the native definition [42].An extended AP (EAP) method for spatial feature extraction of HSIs is proposed to solve this problem.This technique connects APs with the same attributes for a number of principal components extracted from the original image.Then, one EAP is calculated using Equation (5).
EMAP method was proposed in [43].Compared to EAP, EMAP method considers numerous attributes as a whole.This allows for further exploration of spatial features in HSI modeling.

Fast Extraction of Abnormal Spectral Features Using Greedy Bilateral Smoothing
According to the description of the LRaSMD method provided in Section II, the model rebuilds HSI data into  =  +  +  ( ∈ ℝ × ).For the additive noise matrix N, the greedy bilateral smoothing method proposed by Zhou and Tao [44] is employed to reduce the time cost of single-value decomposition at each iteration in the traditional LRaSMD model.We replaced the low-rank matrix B with the bilateral factor B = MN and regularized the norm ℓ1 of sparse matrix A. This process is represented by Equation ( 6).
Where  is a regularization parameter.To solve Equation ( 6), this method introduces a soft threshold  = sgn() ⋅ max(||−,0) during regularization of ℓ1 and updating of A.
is the soft threshold operator for .Alternate optimization of M, N, and A in Equation (6) leads to Equation (7).
Where  is an orthogonal projection operator.According to Equation ( 7), the column space of  can be represented on a random orthonormal basis using (− ) columns.Based on (− ) = , the fast QR decomposition method,  is transformed into Q, and   can be computed as   =  (− ) =  (− ).
Then, a fast upgrading process was applied, as described in Equation ( 9).
In the GreBsmo method, Equation ( 9) iterates k times or until the object converges.Then, it adds ∆ rows to matrix N, reducing the object's value.To determine the fastest decreasing trend, it greedily uses the added ∆ rows as the singular vector of the top ∆ of the partial derivative.Then, the rank of matrix N is added to  =  + ∆.This function is shown as Equation (10).
Upon reaching the set fault tolerance, rank r stops increasing.Decomposed sparse components are generally considered to contain rich anomaly information.However, sparse components are susceptible to sparse parameters.The false alarm rate will be high if the small number of targets is not fully considered.Meanwhile, the background inhibitory effect is poor if important background component information is ignored in the low-rank component.Division into background and anomaly components can weaken the interference effect of anomalies on background statistics, so the decomposed low-rank component  =  should be treated as an initial spectral anomaly feature.

Extracting Abnormal Spatial Features Based on The Extended Multi-Attribute Profile
Based on m, the number of principal components in the original HSI, an EAP is established.Then, the EAP is calculated as four EMAP features with four different attributes: area, the diagonal of the target outline, inertia moment, and regional homogeneity.Some out-of-rule false alarms can be filtered out due to the spatial information restraint.Figure 2 shows a random area with four EMAP maps.We employed the first three principal components of HSI data to generate 36 spatial features based on their attributes.These features were designated as  .

Proposed GBSAED Algorithm
Anomaly detection based on spectral or spatial features often acquires similar anomaly targets, but different false alarms arise due to various types of attribute information.With spectrum-based anomaly detection methods, some background pixels have a larger initial detection value similar to anomalies because they account for a small number of pixels.However, the spatial features of such pixels are rarely similar in terms of other properties, such as area.Figure 3 shows an example with various false alarms in the initial results for spectral and spatial anomaly detection.Parts A-C in Figure 3 represent three background areas in San Diego that exhibit sparsity.Therefore, the algorithm considered similar anomaly targets and employed a strategy of mutual inhibition of the two backgrounds.This process reduced the false alarm rate.The initial spatial anomaly feature detection is conducted based on Mahalanobis distance, as shown in Equation (11).
The initial detection value  of the spectral anomaly feature is obtained similarly.Due to a rank defect in matrix inversion of the covariance matrix based on the lowrank background matrix, a large feature value is selected and the corresponding feature vector employs base vectors to approximate background components [36].In this process, the number of feature values is equal to the rank value.The matrix inversion function is presented as Equation (14).
The values at the positions corresponding to  and  are multiplied to suppress false alarms that differ from each other.The detector output is calculated using Equation (15).
Finally, the detailed procedure of the GBSAED algorithm is shown in Algorithm 1.

Experiment Setup
In this section, five real HSI datasets with differing features are used to validate the effectiveness of the proposed GBSAED algorithm.Then, the proposed algorithm is compared to the eight most advanced algorithms, namely the RX, LRX, KRX, SSRX, CRD, GTVLRR, LSMAD, and PRLRaSAD algorithms.Finally, the effects of parameters with different values in each dataset on the detection results are discussed.The experimental platform is a computer containing an Intel Core i9-10900K CPU at 3.70 GHz with 64 GB RAM.All procedures were conducted in MATLAB R2018a.

Hyperspectral Datasets
(1) Texas Coast Image: an Airport-Beach-Urban (ABU) dataset of the Texas coast in the United States obtained by the airborne visible/infrared imaging spectrometer (AVI-RIS) [45].The image size is 100 × 100 pixels, with 207 spectral bands ranging from 450 to 1,350 nm.Its spatial resolution is 17.2 m.The anomaly object of this image is a building, and the background object is vegetation.The dataset has serious stripe noise in the 144-153 and 196-207 spectral bands.However, this study retained these bands to increase detection difficulty.
(2) Belcher Bay Image: an image of Belcher Bay in Hong Kong, China, obtained by the hyperspectral imager onboard the GF-5 satellite.The dataset includes visible and near-infrared bands.The image size is 150 × 150 pixels, with 150 spectral bands in a spectral range of 390-1,030 nm.Its spatial resolution is 30 m.The anomaly objects are ships and ship tracks, and the background object includes water bodies, structures, and vegetation.Compared to the water area, buildings and vegetation represent a small proportion of the pixels.Many finely divided rocks are present in the water body and easily cause false alarms.
(3) PaviaC Image: an image of Pavia city center in northern Italy, obtained by an imaging spectrometer with a reflective optical system.Its size is 100 × 100 pixels, with 102 spectral bands from 430 to 860 nm.Its spatial resolution is 1.3 m.In the image data, cars on the bridge are anomaly objects, while the bridge and river are background objects.
(4) San Diego Image: an image of San Diego Airport in California, United States obtained by AVIRIS.Its size is 100 × 100 pixels, with a spatial resolution of 3.5 m.After removal of low-quality spectral bands due to water vapor absorption and the low signal-tonoise ratio, this image contains 189 spectral bands.Three airplanes in the right corner of the image are defined as anomaly objects, while buildings, landing fields, and bare land are background objects.Because several objects have unique qualities, distinguishing background from anomalous pixels is challenging.
(5) Xiong'an Image: an image of Anxin county, Xiong'an district in Hebei Province, China recorded with the visible and near-infrared imaging spectrometer of an airplane.The image size is 120 × 120 pixels, with a resolution of 0.5 m.It includes 251 spectral bands in the range of 395-994 nm.The anomaly objects are four cars on the road, and the background objects are vegetation and road.Notably, a yellow line occupies a small number of pixels in the middle of the road.This line may cause false alarms.This dataset has the largest number of spectral bands.In addition, due to flight conditions, the dataset contains bands with low signal-to-noise ratios and periodic noise.We retained all bands to test the ability of the algorithm to process redundant information, as well as its robustness.
False-color composite images and ground truth maps of the five datasets are shown in Figure 4.

Detection Performance
Several evaluation indicators were used to evaluate the performance of the nine algorithms described above, including a detection results map, receiver operating characteristic (ROC) curve, normalized target-background separation map, area under the ROC curve (AUC), and running time.Algorithmic detection results maps for the same dataset were obtained in the same stretching mode.ROC curves visualizes the performance of algorithms, with the horizontal axis representing the false alarm rate and the vertical axis representing the detection rate.If a model has good performance, its ROC curve is generally located in the upper left corner of the coordinate plane.Where two or more curves intersect or overlap, comparing the performance of algorithms can be difficult.In such cases, the AUC value can be used to quantitatively analyze the results, where larger AUC values indicate better performance.A target-background separation map divides normalized pixel values into two boxes.The red and green boxes represent the pixel distribution values of background and anomalous pixels.The line in the center of each box represents the median pixel values.The top and bottom borders are the quantiles, representing pixel values of 90 and 10.The two horizontal lines outside the box are extreme pixel values.If a gap is apparent between the two boxes, the detector has good performance in terms of distinguishing background and anomalous pixels.
The proposed algorithm is compared to the eight most advanced algorithms in terms of performance.Algorithmic parameter settings are presented in Table 1.RX and SSRX are excluded from the table because they do not require parameters.The AUC value of each algorithm is listed in Table 2, with the maximum values in bold type.The program running time of each algorithm is indicated in Table 3. Figure 5 visualizes the detection results for the Texas Coast Image obtained by each algorithm.As shown in the figure, the RX, LRX, and GTVLRR contained stripes because these methods retain spectral band data with stripe noise.The RX, LRX, and CRD results had numerous major false alarms.The SSRX, LSMAD, and PRLRaSAD results showed good performance, but had poorly restrained backgrounds.KRX had better detection results, but high time cost.GBSAED could restrain the background well and also clearly recognized anomalies.The ROC curves presented in Figure 6a indicate that the proposed GBSAED algorithm performed better performance than the other algorithms.In addition to a low false alarm rate, GBSAED also showed good performance.The box plots presented in Figure 6 show that the GBSAED algorithm is better able to restrain the background, and thus can easily separate background from anomalous pixels.The AUC value of GBSAED was 0.9993, which was higher than the values of all other algorithms tested.Combined with the operation time analysis outlined in Table 3, this result demonstrates that GBSAED is a promising detector with low processing cost.Figure 7 illustrates the detection results for the Belcher Bay Image.This dataset reflects the disadvantages of sliding window algorithms for processing small-scale, "messy" backgrounds.The LRX, KRX, CRD, and GTVLRR algorithms caused false alarms, in part due to classifying rocks in the water body as anomalies.RX wrongly classified a building with unusual materials and some vegetation as anomalies.The LSMAD and SSRX algorithms showed relatively good results, but had apparent false alarms for vegetation and some buildings.The GBSAED method restrained rocks, vegetation, and buildings and separated the anomalies.As shown in Figure 8a, the ROC curve area of GBSAED was significantly larger than all other curves, indicating a high detection rate and extremely low false alarm rate.Figure 8b illustrates that GBSAED had better restraint performance than the other methods; this method could well-separate background and anomalous pixels.The overlap between the two pixel types was markedly smaller for the other methods.As indicated in Tables 2 and 3, the AUC value of GBSAED was 0.9993.Even with its low time cost, GBSAED provided better detection results than the other methods.Figure 9 shows the detection results for the PaviaC Image.RX, LRX, SSRX, and PRLRaSAD detected cars and some bridge pixels as anomalies, leading to false alarms.LSMAD and GTVLRR were better at restraining the background, but false alarms also arose at the edge of the bridge.LRX and CRD classified some water body pixels as anomalies.Moreover, the overall images showed apparent noise.KRX had relatively good performance, but its operation time was high, reaching 19.447 s.Overall, GBSAED was the best method.The ROC curve analysis demonstrated its superior performance, as shown in Figure 10a.Figure 10b shows a large gap between the background box and anomaly box in the GBSAED method, indicating that this method provided good separation, and its background was restrained at a lower level.The AUC value of GBSAED was 0.9998, and its run time was 0.118 s.Thus, the GBSAED method achieved fast and accurate anomaly detection.Figure 11 shows the detection results for the San Diego Image.As the image contained sparse background pixels in the lower-left and upper-left corners, its background components were relatively complex.As shown in Figure 11, the RX method had difficulty identifying anomalies and classified many background materials as anomalies.LRX and GTVLRR filtered out some false alarms, but also showed poor detection of real anomalies.LRX also requires a large window to traverse, which increases its time cost considerably.KRX, CRD, LSMAD, and PRLRaSAD successfully detected anomalies, but also had many false alarms.GBSAED had the best background suppression and high operating efficiency.As shown in Figure 12a, the ROC curve of GBSAED leveled off toward the upper left corner and the area was larger than that under the other curves.As shown in Figure 12b, a gap was present between the background and anomaly boxes, indicating that separation performance was good.The AUC value of GBSAED was 0.9993.GBSAED's run time was only 0.117 s, compared to 49.263 s for LRX.From the perspectives of both qualitative and quantitative analysis, GBSAED showed relatively good performance.Figure 13 visualizes the detection results for the Xiong'an Image.The image quality significantly influenced RX, LRX, and CRD, and their results maps contained many noise stripes, which greatly affected the results and complex anomaly detection performance.In contrast to other datasets, for the Xiong'an Image, SSRX classified cars as background but classified some vegetation pixels as anomalies.This misclassification indicates that SSRX cannot be applied to all image types.In the detection results of the PRLRaSAD algorithm, the yellow line was brighter than the cars, and large areas of the road caused false alarms.The LSMAD and GTVLRR algorithm had relatively good results, but still produced a false alarm for the yellow line.The overall performance of the KRX algorithm was good, but it was also time-consuming.The GBSAED algorithm precisely detected all anomalies and had the fewest false alarms.Therefore, GBSAED was the best-performing method.Figure 14a,b qualitatively show the performance of GBSAED, which was characterized by a high detection rate, strong restraint of the background, and low false alarm rate.The AUC value of GBSAED was 0.9840 and the run time was 0.165 s; KRX had similarly excellent test results but required 6.389 s to run.

Parameter Setting Considerations
The GBSAED algorithm has four important parameters: rank r, rank step,∆ soft thresholding , and power K.In this section, all other parameters were set to their default values and thus not optimized.The default value for tolerance  was 0.001.Aside from rank, all other default values were set to 1.
Rank is one of the most critical parameters and it is generally believed that the optimal rank value is correlated with the number of irrelevant components in the background.Thus, the rank value depends on the number of predominant background objects.Meanwhile, the optimal rank value is often the minimum value.In this study, the rank values were based on the colors of the first three principal components within the HSI data, as shown in Figure 15.Less strongly correlated components in the background were represented as high-contrast colors.For the Texas Coast Image and PaviaC Image, which have simple backgrounds, the rank value was set to 1.For the San Diego Image with two main materials as the background, the rank parameter was set to 2. For the Belcher Bay Image with a background of buildings, vegetation, and water, and the Xiong'an Image with vegetation, road, and a yellow line in the background, the rank value was set to 3. Figure 15 shows changes in AUC values according to the values of r and ∆.Generally speaking, lower ∆ values indicate higher detection precision.As ∆ rises, the operation time of some HSI algorithms decreases significantly.For HSI data with a relatively simple background where r = 1, the AUC values shows no apparent change according to ∆, and the efficiency also changes little.For HSI data with a relatively complex background, where r≥2, assuming the other parameters are set properly, efficiency will improve significantly as ∆ rises, thereby providing stable and correct detection results.For tasks with complex backgrounds that require high precision, a smaller ∆ value may improve detection.In this study, the ∆ values of all five datasets were set to the minimum value of 1.For the three-dimensional AUC values of  and r, there is a clear rule within a small threshold range of , indicated in Figure 16 by a plane that does not change with changes in .Thus, within a small range of , the AUC value changes only with r, leading to high and stable detection accuracy.A method with these characteristics is applicable to HSIs with relatively simple backgrounds, such as the Texas Coast Image, PaviaC Image, and other application scenarios that require fast detection.Furthermore, changes in  have relatively little influence on precision when rank is set to the optimal value.For analysis of complex backgrounds, the values of  and K can be increased to improve detection accuracy.Figure 17 presents AUC values according to changes in  and K.For the Belcher Bay Image, San Diego Image, and Xiong'an Image, with r ≥ 2, as the two parameters increase, the AUC value increases gradually and then stabilizes.Notably, for the Texas Coast Image and PaviaC Image, with r = 1, the opposite trend occurs.Thus, for HSI data with a relatively simple background, increasing the values of these two parameters may slightly reduce detection accuracy.Therefore, smaller parameter values should be selected for such images.

Conclusions
This study introduces a fast hyperspectral anomaly detection algorithm based on the GBSAED method, with the aims of improving detection performance under conditions in which the background and anomalies of similar components are difficult to separate, and reducing the high time cost associated with the LRaSMD algorithm.In this study, the EMAP method was used to restrain the background and reduce false alarms.A greedy bilateral smoothing method was employed to detect spectral anomalies, which greatly improved the operational efficiency.A series of experiments using five real hyperspectral datasets with differences in image quality, spatial resolution, spectral resolution, and anomaly distribution characteristics demonstrated the robustness of the proposed algorithm.In a comparison of the RX, LRX, SSRX, KRX, CRD, GTVLRR, LSMAD and PRLRa-SAD detectors, the GBSAED method showed the best performance.This method increased the average AUC values of the five datasets by 4.276%, 4.436%, 12.044%, 1.662%, 2.638%, 3.775%, 0.504%, and 2.139%.In addition, it reduced run time, with an average run time for all datasets of 0.152 s, which was second only to 0.103 s for RX.Through full analysis of the parameters of the proposed algorithm, clear rules for the parameter settings of the GBSAED algorithm were determined for various types of datasets.Overall, the GBSAED algorithm offers improved performance and increased operational efficiency for HSI anomaly detection.
GBSAED algorithm has a better performance in processing anomalies with spatial characteristics rather than dealing with subpixels.Therefore, our further direction will focus on the adaptability improvement of the algorithm.

Figure 1
Figure 1 is a flowchart of the GBSAED method.It includes three steps: fast extraction of low-rank information based on "greedy bilateral smoothing"; extraction of spatial information based on EMAP method; and complementation of spectral and spatial anomalies based on Mahalanobis distance.The third step uses spatial anomalies to restrict spectral anomalies, which reduces the false alarm rate, and then determines the result.

Algorithm 1 : 6 :
GBSAED framework for hyperspectral anomaly detection Input: Hyperspectral image; rank r; rank step ∆; power K; soft thresholding ; tolerance ; Output: A two-dimensional detection result.1: Initialize  ∈ ℝ × and A 2: while residual error ≤ do Calculate the top ∆r right singular vectors v of ∂/ ∂ in (10) 7:Set : = [; ] 8: end 9: Extract the first three principal components of the original HSI 10: Calculate and obtain a set of EMAP features and extract the first four principal components ; 11: Calculate preliminary detection values via(11) 12: Calculate the detection result via(15)

Figure 4 .
Figure 4. False-color composite images and ground truth maps of the five datasets used: (a) Texas Coast Image, (b) Belcher Bay Image, (c) PaviaC Image, (d) San Diego Image, and (e) Xiong'an Image.

Figure 6 .
Figure 6.Quantitative analysis of the detection results of the various algorithms for the Texas Coast Image: (a) ROC curves and (b) target-background separation map.

Figure 8 .
Figure 8. Quantitative analysis of the detection results of the various algorithms for the Belcher Bay Image: (a) ROC curves and (b) target-background separation map.

Figure 10 .
Figure 10.Quantitative analysis of the detection results of the various algorithms for the PaviaC Image: (a) ROC curves and (b) target-background separation map.

Figure 12 .
Figure 12.Quantitative analysis of the detection results of the various algorithms for the San Diego Image: (a) ROC curves and (b) target-background separation map.

Figure 14 .
Figure 14.Quantitative analysis of the detection results of the various algorithms for the Xiong'an Image: (a) ROC curves and (b) target-background separation map.

Figure 15 .
Figure 15.Color composite images of the first three principal components of the HSI images: (a) Texas Coast Image, (b) Belcher Bay Image, (c) PaviaC Image, (d) San Diego Image, and (e) Xiong'an Image.

Figure 15 .
Figure 15.AUC values of GBSAED according to changes in rank step ∆ and rank r: (a) Texas Coast Image, (b) Belcher Bay Image, (c) PaviaC Image, (d) San Diego Image, and (e) Xiong'an Image.

Figure 16 .
Figure 16.AUC values of GBSAED according to changes in soft thresholding  and rank r: (a) Texas Coast Image, (b) Belcher Bay Image, (c) PaviaC Image, (d) San Diego Image, and (e) Xiong'an Image.

Figure 17 .
Figure 17.AUC values of GBSAED according to changes in soft thresholding  and power K: (a) Texas Coast Image, (b) Belcher Bay Image, (c) PaviaC Image, (d) San Diego Image, and (e) Xiong'an Image.f

Table 1 .
Parameter settings of various algorithms.

Table 2 .
AUC values of each algorithm for five datasets.

Table 3 .
Running times of each algorithm for five datasets.