Hyperspectral anomaly detection method based on low-rank representation and collaborative representation
By constructing a progressive background dictionary and a collaborative representation background dictionary selected by similarity, and combining the detection results of low rank and collaborative representation, the problems of background dictionary coverage and purity in hyperspectral anomaly detection are solved, and more accurate anomaly detection is achieved. Reduced false alarm rate.
Patent Information
- Application Number
- CN202410728919.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-06
AI Technical Summary
In existing hyperspectral anomaly detection methods, the coverage rate of the background dictionary is not high enough, resulting in missed detections. Moreover, the purity of the dictionary is poor and it is easily contaminated by abnormal pixels, resulting in poor detection results. Low-rank representation and collaborative representation are only considered respectively. Global and local information are not considered comprehensively, resulting in poor detection results.
A progressive framework is used to construct a background dictionary of low-rank representation, and the background dictionary of collaborative representation is selected based on similarity. Through the fusion of the detection results of low-rank representation and collaborative representation, the final detection result is obtained using the Hadamard product method to ensure the accuracy of the background dictionary. Purity and representativeness, comprehensively considering the global and local information of hyperspectral images.
It effectively reduces the false alarm rate, improves the performance of hyperspectral anomaly detection, improves detection accuracy, solves the problem of impure background dictionary and missed detection, and improves the accuracy of detection results.
Smart Images

Figure CN118711053A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of hyperspectral remote sensing image processing, and further relates to hyperspectral anomaly detection, specifically a hyperspectral anomaly detection method based on low-rank representation and collaborative representation, which can be used for precision agriculture, military reconnaissance, ocean monitoring, mineral exploration, etc. Background Art
[0002] Hyperspectral anomaly detection does not require any prior knowledge of the target. It can detect pixels in the scene that have different characteristics from the surrounding pixels and identify them as abnormal targets. As an unsupervised process, hyperspectral anomaly detection technology has been widely used in precision agriculture, military reconnaissance, marine monitoring, mineral exploration and other fields.
[0003] In recent years, in the field of hyperspectral anomaly detection, methods based on low-rank representation and collaborative representation have developed rapidly and have attracted widespread attention from many scientific researchers. For example, Xu Yang et al. proposed a hyperspectral anomaly detection method based on low-rank and sparse representation in the paper "Anomaly Detection in Hyperspectral Images Based on Low-Rank and Sparse Representation". Li Wei and Du Qian proposed a hyperspectral anomaly detection method based on collaborative representation in the paper "Collaborative Representation for Hyperspectral Anomaly Detection". In the above-mentioned representation-based anomaly detection methods, the construction of the background dictionary plays a decisive role in the representation effect. There are two problems: 1) The coverage of the ground object types is not high enough, which may cause missed detection; 2) The atoms of the background dictionary are not pure enough. When abnormal pixels are mixed in, the background dictionary will be contaminated, resulting in missed detection. In addition, in the existing hyperspectral anomaly detection tasks, the low-rank representation only considers global information, while the collaborative representation only considers local information. They both fail to comprehensively consider the global and local information of the hyperspectral image, resulting in poor detection results. Summary of the invention
[0004] The purpose of the present invention is to propose a hyperspectral anomaly detection method based on low-rank representation and collaborative representation in view of the deficiencies of the above-mentioned prior art, which is used to construct a corresponding background dictionary and effectively combine low-rank representation and collaborative representation, so as to solve the problem that the background dictionary of the existing method is not pure enough, there are missed detections and missed detections, resulting in poor detection results. The present invention adopts a progressive framework to construct a low-rank representation dictionary in steps, effectively selects a pure and representative background dictionary, and on this basis, selects a background dictionary based on similarity for collaborative representation, and effectively combines the detection results of low-rank representation and collaborative representation, further improving the performance of hyperspectral anomaly detection and effectively reducing the false alarm rate.
[0005] The idea of implementing the present invention is: first, construct a progressive background dictionary based on low-rank representation, establish a low-rank representation model, and optimize and solve it to obtain sparse abnormal parts; secondly, select a background dictionary based on similarity for each pixel to be tested, establish a collaborative representation model, optimize and solve it, and calculate the reconstruction residual of the collaborative representation; finally, the abnormal part obtained by the low-rank representation and the reconstructed residual obtained by the collaborative representation are fused in the Hadamard product manner to obtain the final detection result.
[0006] The specific steps of the present invention to achieve the above-mentioned purpose include the following:
[0007] (1) Constructing a progressive background dictionary:
[0008] (1.1) Input the original hyperspectral image X 3D ∈R w×h×b , where w represents width, h represents height, and b is the number of spectral bands. The sliding window is used to 3D Perform block processing, set the size of the sliding window to m×m, and divide the hyperspectral image into T sub-blocks For the t-th sub-block X t 3D ∈R m×m×b Two-dimensionalization gives X t ∈R (n / T)×b , n = w × h represents the number of pixels;
[0009] (1.2) The original hyperspectral image is two-dimensionalized to obtain the hyperspectral image X∈R n×b , calculate the average spectral vector of X according to the following formula And use it as the base vector:
[0010]
[0011] Among them, x ν represents the ν-th pixel in X, ν = 1, 2, ..., n;
[0012] (1.3) Calculate the pixel and The Rao-SID distance between them is selected, and the pixels corresponding to the maximum and minimum Rao-SID distances in each sub-block are selected as reference pixels, and a reference dictionary consisting of 2T pixels is obtained, that is, G = [g1, g2, ..., g 2T ]∈R 2T×b , where 2T<<n;
[0013] (1.4) Cluster the reference dictionary G and divide it into k different clusters ψ = {ψ1, ψ2, ..., ψ k};
[0014] (1.5) Calculate the approximation between each pixel in the cluster and all pixels in the cluster in turn and the proximity to pixels outside the cluster
[0015]
[0016]
[0017] Among them, n k represents the number of pixels in the kth cluster, represents the i-th pixel in the k-th cluster, represents the jth pixel in the kth cluster, i, j = 1, 2, ..., n k ; Represents the current cluster ψ k The j'th pixel outside, j'=1,2,...,(nn k ), nn k is the current cluster ψ k All pixels outside
[0018] For the current cluster ψ k Each pixel in Perform the following calculations and sort the results in ascending order. Sort and select the first p pixels as ψ k Representative pixels in:
[0019]
[0020] Calculate each cluster in turn to get k×p representative pixels, forming a representative dictionary D=[d1,d2,...,d k×p ];
[0021] (1.6) Calculate the Rao-SID distance between any two pixels in the representative dictionary and use the maximum distance as the threshold d Threshold :
[0022]
[0023] Among them, d a' represents the a'th pixel in the dictionary, d b' represents the b'th pixel in the dictionary, a' and b' represent the pixel index in the dictionary, a', b' = 1, 2, ..., k × p;
[0024] Calculate x ν and represents pixel d in dictionary D a' The Rao-SID distance d between RS (x ν ,d a' ), the smaller the distance, the closer the two pixels are; let the minimum distance be d' RS (x ν ), will be greater than d Threshold d' RS (x ν ) corresponds to the pixel x ν Defined as a potential representative pixel, that is, the pixel x is determined according to the following formula ν Is it a potential representative pixel?
[0025]
[0026] All potential representative pixels are added to the representative dictionary to construct the final progressive background dictionary D' = [d'1, d'2, ..., d' l ]∈R b×l , l is the number of pixels in the progressive background dictionary, l ≥ (k × p);
[0027] (2) Establish a low-rank representation model:
[0028] (2.1) Based on the progressive background dictionary D', a low-rank representation model is established for the entire hyperspectral image:
[0029] X=D'S+E
[0030] Where S = [s1, s2, ..., s n ]∈R l×n is the coefficient matrix, E=[e1,e2,...,e n ]∈R b×n For the abnormal part;
[0031] (2.2) The objective function of constructing a low-rank representation model is as follows:
[0032]
[0033] st X=D'S+E
[0034] Among them, ||·|| * represents the nuclear norm, which is the sum of the singular values of the matrix, ||·|| 2,1 Indicates l 2,1 norm, that is, the sum of the l2 norms of the matrix columns, λ LRR represents the balance parameter of the low-rank representation;
[0035] (2.3) The alternating direction multiplier method is used to optimize the objective function of the low-rank representation model and obtain the abnormal part E * ;
[0036] (2.4) Using E * The response value of the vth pixel is obtained as follows:
[0037]
[0038] Where u represents the band, u=1,2,...,b; T(x ν ) represents the matrix E * The l2 norm of the vth column, when it is greater than the threshold, x ν is judged as an abnormal pixel; otherwise, x ν is a normal pixel; the abnormality of all pixels is regarded as the low-rank representation result R LRR ;
[0039] (3) Based on the progressive background dictionary D' represented by low rank, the pixel x in the hyperspectral image X is ν As the pixel to be tested, select the pixel corresponding to x in D' ν The most similar s pixels form the local background dictionary Z = {z1,z2,...,z s}∈R b×s , i.e., similarity-based collaborative representation background dictionary;
[0040] (4) Establish a collaborative representation model. The steps are as follows:
[0041] (4.1) According to the local background dictionary Z, pixel x ν Building a collaborative representation model:
[0042] x ν =Zα+r v
[0043] Among them, α represents x ν The corresponding representation vector, r v represents the residual vector;
[0044] (4.2) The objective function of constructing the collaborative representation model is as follows:
[0045]
[0046] Among them, λ CR trade-off parameters for collaborative representation;
[0047] (4.3) The objective function of the collaborative representation model is rewritten, and the pixel to be tested is rewritten as Rewrite the background dictionary to Where 1 is a row vector of 1×s with a value of 1, so that α satisfies the constraint that the sum is 1; at the same time, the distance weighting matrix Γ is introduced to control the size of α;
[0048] (4.4) Optimize and solve the rewritten objective function, and calculate the objective function The partial derivative of , set the result to 0, and the result is as follows:
[0049]
[0050] In solving Then, the pixel x to be tested is calculated according to the following formula v The residual is represented by:
[0051]
[0052] (4.5) The representation residuals of all pixels in the hyperspectral image X are calculated in sequence to obtain the collaborative representation result:
[0053] R CR =[r1 CR ,r2 CR ,...,r n CR ];
[0054] (5) The low-rank representation result R LRR And the collaborative representation result R CR Feature fusion is performed according to the Hadamard product method, that is, R = R LRR ⊙R CR , and obtain the final anomaly detection result R = [r1, r2, ..., r n ].
[0055] Compared with the prior art, the present invention has the following advantages:
[0056] First, the present invention proposes a progressive background dictionary construction method, which selects a reference dictionary that can represent global features and a representative dictionary of local features in steps according to the spectral characteristics of the image, while avoiding the mixing of abnormal pixels while selecting pixels covering all types of ground objects, so that the selected global background dictionary is pure and representative; on this basis, the most similar pixel is selected for each pixel to be tested for collaborative representation, which solves the problem that the traditional double-window selection of pixel parameters is difficult to set and abnormal pixels are easily mixed in, thereby affecting the anomaly detection performance.
[0057] Second, the present invention effectively combines low-rank representation and collaborative representation, and obtains the final detection result by fusing the abnormal part of the low-rank representation and the reconstructed residual of the collaborative representation through the Hadamard product. It comprehensively considers the global and local information of the image, reduces the false alarm rate, and further improves the detection accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 Schematic diagram of the application process of the method of the present invention
[0059] Figure 2 Schematic diagram of the process of constructing a progressive dictionary in the method of the present invention;
[0060] Figure 3 Schematic diagram of the data set used in the present invention; wherein (I) represents the pseudo-color image and its label of the Gulfport data set; (II) represents the pseudo-color image and its label of the Texas Coast-I data set; (III) represents the pseudo-color image and its label of the Texas Coast-II data set;
[0061] Figure 4 : It is a comparison chart of the detection results of the method of the present invention and the mainstream method on three data sets; wherein (Ia) represents the label of the Gulfport data set; (Ib) to (Ij) respectively represent RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID and the detection chart of the method of the present invention on the Gulfport data set; (II-a) represents the label of the Texas Coast-I data set; (II-b) to (II-j) respectively represent RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID and the detection chart of the method of the present invention on the Texas Coast-I data set; (III-a) represents the label of the Texas Coast-II data set; (III-b) to (III-j) respectively represent RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID and the detection chart of the method of the present invention on the TexasCoast-II data set;
[0062] Figure 5 The results of the proposed method and the mainstream method on three data sets are shown in Figure 2. Curve graph; (I), (II), (III) respectively represent the results of the method of the present invention and the mainstream method on the Gulfport, Texas Coast-I and Texas Coast-II datasets Curve, where P D represents the true positive rate, P F represents the false positive rate;
[0063] Figure 6 The results of the proposed method and the mainstream method on three data sets are shown in Figure 2. Curve graph; (I), (II), (III) respectively represent the results of the method of the present invention and the mainstream method on the Gulfport, Texas Coast-I and Texas Coast-II datasets Curve, where P F represents the false positive rate, and τ represents the threshold. DETAILED DESCRIPTION
[0064] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0065] Example 1: Reference Figure 1 and Figure 2 The present invention proposes a hyperspectral anomaly detection method based on low-rank representation and collaborative representation, which is implemented in the following steps:
[0066] Step 1. Build a progressive background dictionary:
[0067] (1.1) Input the original hyperspectral image X 3D ∈R w×h×b , where w represents width, h represents height, and b is the number of spectral bands. The sliding window is used to 3D Perform block processing, set the size of the sliding window to m×m, and divide the hyperspectral image into T sub-blocks For the t-th sub-block X t 3D ∈R m×m×b Two-dimensionalization gives X t ∈R (n / T)×b , n = w × h represents the number of pixels;
[0068] (1.2) The original hyperspectral image is two-dimensionalized to obtain the hyperspectral image X∈R n×b , calculate the average spectral vector of X according to the following formula And use it as the base vector:
[0069]
[0070] Among them, x ν represents the ν-th pixel in X, ν = 1, 2, ..., n;
[0071] (1.3) Calculate the pixel and The Rao-SID distance between them is selected, and the pixels corresponding to the maximum and minimum Rao-SID distances in each sub-block are selected as reference pixels, and a reference dictionary consisting of 2T pixels is obtained, that is, G = [g1, g2, ..., g 2T ]∈R 2T×b , where 2T<<n.
[0072] The Rao-SID distance is used to characterize the dissimilarity between two pixels, that is, the greater the distance, the greater the difference between the two pixels; its calculation formula is as follows:
[0073]
[0074]
[0075] d RS (x u' ,x v' )=tan(d Rao (x u' ,x v' ))·d SID (x u' ,x v' )
[0076] Among them, d RS (x u' ,x v' ) represents pixel x u' and x v' The Rao-SID distance between them has a dimension of b×1; B is the band index.
[0077] (1.4) Cluster the reference dictionary G and divide it into k different clusters ψ = {ψ1, ψ2, ..., ψ k In this embodiment, the reference dictionary G is clustered using the density peak clustering method, and the implementation steps are as follows:
[0078] (1.4.1) Input reference dictionary G = [g1, g2, ..., g 2T ]∈R 2T×b , calculate the similarity matrix F between each pair of elements based on the Euclidean distance, and estimate the cutoff distance d c , the distance is d cDraw a circle with radius , and let the number of data points falling within the circle account for 2% of all points, and the result can be inferred.
[0079] The similarity matrix F is calculated according to the following formula:
[0080] f p'q' =||g p' -g q' ||2
[0081] Among them, f p'q' is the p'th row and q'th column element in the similarity matrix F, used to represent the element g in the reference dictionary G p' and g q' The similarity between them, p',q'=1,2,...,2T is the pixel index in the reference dictionary G.
[0082] (1.4.2) Calculate the local density ρ and the center offset distance δ according to the similarity matrix and the cutoff distance, and draw a decision diagram of ρ and δ. The local density ρ and the center offset distance δ are calculated by the following formula:
[0083]
[0084]
[0085] (1.4.3) Select the cluster center according to the decision diagram, and assign the remaining samples to clusters according to the principle of highest density and closest distance;
[0086] (1.4.4) Clustering is completed and the clustering result ψ={ψ1,ψ2,...,ψ k}.
[0087] (1.5) Calculate the approximation between each pixel in the cluster and all pixels in the cluster in turn and the proximity to pixels outside the cluster
[0088]
[0089]
[0090] Among them, n k represents the number of pixels in the kth cluster, represents the i-th pixel in the k-th cluster, represents the jth pixel in the kth cluster, i, j = 1, 2, ..., n k ; Represents the current cluster ψ k The j'th pixel outside, j'=1,2,...,(nn k ), nn kis the current cluster ψ k All pixels outside
[0091] For the current cluster ψ k Each pixel in Perform the following calculations and sort the results in ascending order. Sort and select the first p pixels as ψ k Representative pixels in:
[0092]
[0093] Calculate each cluster in turn to get k×p representative pixels, forming a representative dictionary D=[d1,d2,...,d k×p ];
[0094] (1.6) Calculate the Rao-SID distance between any two pixels in the representative dictionary and use the maximum distance as the threshold d Threshold :
[0095]
[0096] Among them, d a' represents the a'th pixel in the dictionary, d b' represents the b'th pixel in the dictionary, a' and b' represent the pixel index in the dictionary, a', b' = 1, 2, ..., k × p;
[0097] Calculate x ν and represents pixel d in dictionary D a' The Rao-SID distance d between RS (x ν ,d a' ), the smaller the distance, the closer the two pixels are; let the minimum distance be d' RS (x ν ), will be greater than d Threshold d' RS (x ν ) corresponds to the pixel x ν Defined as a potential representative pixel, that is, the pixel x is determined according to the following formula ν Is it a potential representative pixel?
[0098]
[0099] All potential representative pixels are added to the representative dictionary to construct the final progressive background dictionary D' = [d'1, d'2, ..., d' l ]∈R b×l , l is the number of pixels in the progressive background dictionary, l ≥ (k × p);
[0100] Step 2. Establish a low-rank representation model:
[0101] (2.1) Based on the progressive background dictionary D', a low-rank representation model is established for the entire hyperspectral image:
[0102] X=D'S+E
[0103] Where S = [s1, s2, ..., s n ]∈R l×n is the coefficient matrix, E=[e1,e2,...,e n ]∈R b×n For the abnormal part;
[0104] (2.2) The objective function of constructing a low-rank representation model is as follows:
[0105]
[0106] st X=D'S+E
[0107] Among them, ||·|| * represents the nuclear norm, which is the sum of the singular values of the matrix, ||·|| 2,1 Indicates l 2,1 norm, that is, the sum of the l2 norms of the matrix columns, λ LRR represents the balance parameter of the low-rank representation;
[0108] (2.3) The alternating direction multiplier method is used to optimize the objective function of the low-rank representation model and obtain the abnormal part E * ;
[0109] (2.4) Using E * The response value of the vth pixel is obtained as follows:
[0110]
[0111] Where u represents the band, u=1,2,...,b; T(x ν ) represents the matrix E * The l2 norm of the vth column, when it is greater than the threshold, x ν is judged as an abnormal pixel; otherwise, x ν is a normal pixel; the abnormality of all pixels is regarded as the low-rank representation result R LRR ;
[0112] Step 3. Based on the progressive background dictionary D' represented by low rank, the pixel x in the hyperspectral image X is ν As the pixel to be tested, select the pixel corresponding to x in D' ν The most similar s pixels form the local background dictionary Z = {z1,z2,...,zs}∈R b×s , that is, a collaborative representation background dictionary based on similarity; this embodiment specifically measures the degree of similarity based on the Euclidean distance, and its calculation formula is as follows:
[0113] d(d' l' ,x ν )=||d' l' -x ν ||2,
[0114] Among them, d(d' l' ,x ν ) is the pixel d' in D' l' With x ν The Euclidean distance between them, l' is the pixel index in D', l'=1,2,...,l.
[0115] Step 4. Establish a collaborative representation model. The steps are as follows:
[0116] (4.1) According to the local background dictionary Z, pixel x ν Building a collaborative representation model:
[0117] x ν =Zα+r v
[0118] Among them, α represents x ν The corresponding representation vector, r v represents the residual vector;
[0119] (4.2) The objective function of constructing the collaborative representation model is as follows:
[0120]
[0121] Among them, λ CR trade-off parameters for collaborative representation;
[0122] (4.3) The objective function of the collaborative representation model is rewritten, and the pixel to be tested is rewritten as Rewrite the background dictionary to Where 1 is a row vector of 1×s with a value of 1, so that α satisfies the constraint that the sum is 1; at the same time, the distance weighted matrix Γ is introduced to control the size of α.
[0123] The objective function of the collaborative representation model is rewritten as follows:
[0124]
[0125] in, is the new representation vector.
[0126] The above distance weighted matrix Γ is expressed as follows:
[0127]
[0128] (4.4) Optimize and solve the rewritten objective function, and calculate the objective function The partial derivative of , set the result to 0, and the result is as follows:
[0129]
[0130] In solving Then, the pixel x to be tested is calculated according to the following formula v The residual is represented by:
[0131]
[0132] (4.5) The representation residuals of all pixels in the hyperspectral image X are calculated in sequence to obtain the collaborative representation result:
[0133] R CR =[r1 CR ,r2 CR ,...,r n CR ];
[0134] Step 5. Represent the result R with low rank LRR And the collaborative representation result R CR Feature fusion is performed according to the Hadamard product method, that is, R = R LRR ⊙R CR , and obtain the final anomaly detection result R = [r1, r2, ..., r n ].
[0135] Embodiment 2: The overall implementation steps of the hyperspectral anomaly detection method proposed in this embodiment are the same as those in Embodiment 1. The construction process of the progressive background dictionary is now described in further detail:
[0136] First, for each cluster, the representative pixel in each cluster is selected according to the principle that the difference between pixels within the cluster is small and the difference between pixels outside the cluster is large, which is implemented as follows:
[0137] a) To meet the principle of small pixel differences within a cluster, the approximation between each pixel in the cluster and all pixels in the cluster is calculated in turn. The calculation formula is as follows:
[0138]
[0139] Among them, n k represents the number of pixels in the kth cluster, represents the i-th pixel in the k-th cluster, represents the jth pixel in the kth cluster, i, j = 1, 2, ..., n k ;
[0140] b) To meet the principle of large pixel differences between clusters, the approximation between each pixel in the cluster and the pixels outside the cluster is calculated in turn. The calculation formula is as follows:
[0141]
[0142] in, Represents the current cluster ψ k The j'th pixel outside, j'=1,2,...,(nn k ), nn k is the current cluster ψ k All pixels outside
[0143] c) The pixels in the representative dictionary, that is, the distance between the representative pixel and the least similar pixel in the current cluster should be the smallest, and the distance between the representative pixel and the most similar pixel outside the current cluster should be the largest. The selection strategy of the representative dictionary is as follows:
[0144]
[0145] According to the above strategy, in each cluster ψ k The p pixels with the smallest distance are selected as the representative pixels in the current cluster, and k×p representative pixels can be selected to form a representative dictionary, that is, D = [d1, d2, ..., d k×p ];
[0146] Then, the Rao-SID distance between any two pixels in the representative dictionary is calculated, and the maximum distance is used as the threshold d Threshold :
[0147]
[0148] Among them, d a' represents the a'th pixel in the dictionary, d b' represents the b'th pixel in the dictionary, a' and b' represent the pixel index in the dictionary, a', b' = 1, 2, ..., k × p;
[0149] Finally, for each pixel x in the hyperspectral image X ν , calculate the value representing each pixel d in the dictionary D a' With x ν The smaller the distance, the closer the two pixels are considered to be. The minimum distance is d' RS (x ν ), then the pixel corresponding to the minimum distance is the pixel closest to x in the representative dictionary. νPixels. RS (x ν ) and d Threshold For comparison, if d' RS (x ν ) is greater than d Threshold , then we think x ν Not in the representative dictionary, it is a potential representative pixel and needs to be added to the representative dictionary. ν Whether it is a potential representative pixel, determine whether it needs to be added to the representative dictionary.
[0150]
[0151] After the judgment is completed, the final progressive background dictionary D'=[d'1, d'2, ..., d' l ]∈R b×l , l is the number of pixels in the progressive background dictionary, l ≥ (k × p).
[0152] The effect of the present invention will be further described below in conjunction with experiments.
[0153] 1. Experimental conditions:
[0154] The experiments of the present invention were carried out in a hardware environment with a CPU main frequency of 2.00 GHz and a memory of 16 GB and a software environment of Windows 10 operating system and MATLAB R2021b.
[0155] 2. Experimental content:
[0156] This experiment evaluates the performance of the method of the present invention on the Gulfport, Texas Coast-I, and Texas Coast-II datasets. On each dataset, the detection effects of the method of the present invention and eight mainstream methods are compared from two perspectives: qualitative (including detection graphs and two ROC curves) and quantitative (including two AUC values).
[0157] The mainstream methods mainly include RX [paper: Adaptive multiple-band CFAR detection of an optical pattern with unknown spectral distribution], CRD [paper: Collaborative representation for hyperspectral anomaly detection], LRASR [paper: AnomalyDetection in Hyperspectral Images Based on Low-Rank and SparseRepresentation], LSMAD [paper: A low-rank and sparse matrix decomposition-basedmahalanobis distance method for hyperspectral anomaly detection], GTVLRR [paper: Graph and total variation regularized low-rank representation for hyperspectral anomaly detection], GAED [paper: Hyperspectral anomaly detection with guided autoencoder], NJCR [paper: Nonnegative-constrained jointcollaborative representation with union dictionary for hyperspectral anomaly detection] and AHMID [paper: Anomaly detection of hyperspectral image with hierarchical anti-noise mutual-incoherence-induced low-rank representation].
[0158] 3. Simulation results and analysis:
[0159] Figure 4The figure is a comparison chart of the detection results of the method of the present invention and the mainstream methods on three data sets; (I)-(III) correspond to the Gulfport, Texas Coast-I and Texas Coast-II data sets respectively, (a) represents the label, (b)-(i) correspond to RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID, a total of 8 existing methods, and (j) corresponds to the method of the present invention; specifically: Figure 4 Among them, (Ia) represents the label of the Gulfport dataset, (Ib) to (Ij) respectively represent the detection results of RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID and the method of the present invention on the Gulfport dataset; (II-a) represents the label of the Texas Coast-I dataset, (II-b) to (II-j) respectively represent the detection results of RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID and the method of the present invention on the Texas Coast-I dataset; (III-a) represents the label of the Texas Coast-II dataset, (III-b) to (III-j) respectively represent the detection results of RX, CRD, LRASR, LSMAD, GTVLRR, GAED, NJCR, AHMID and the method of the present invention on the Texas Coast-II dataset.
[0160] By comparing the existing methods, the method of the present invention and the label, it can be seen that the method of the present invention has the best effect and is significantly better than the mainstream methods in the existing 8 prior arts.
[0161] Figure 5 and Figure 6 The results of the proposed method and the mainstream method on three data sets are Curve and Curve; wherein, (I) represents the Gulfport dataset, (II) represents the Texas Coast-I dataset, and (III) represents the Texas Coast-II dataset.
[0162] The larger the area under the curve, the better the detection performance. Figure 5 It can be seen that the detection effect of the method of the present invention is the best; The smaller the area under the curve, the lower the false alarm rate and the stronger the ability to suppress the background. Figure 6 It can be seen that the false alarm rate of the method of the present invention is the lowest, the background suppression effect is better, and the detection performance is the best.
[0163] The following table (Table 1) lists the AUC values of the method of the present invention and 8 mainstream methods on 3 data sets (i.e. and The AUC value is between 0 and 1. The closer its value is to 1, the better the detection effect is. The closer its value is to 0, the lower the false alarm rate is and the better the background suppression ability is, that is, the better the performance is.
[0164] Table 1 Comparison of AUC values of the proposed method and eight mainstream methods on three data sets
[0165]
[0166] As can be seen from the table above, on three different data sets (Gulfport, Texas Coast-I and Texas Coast-II), the proposed method has the largest and the smallest It is further shown that the method of the present invention has the highest detection accuracy and the lowest false alarm rate compared with the existing methods, that is, the performance is the best.
[0167] The above experimental results prove the correctness and effectiveness of the method proposed in the present invention.
[0168] Parts of the present invention that are not described in detail belong to common knowledge among those skilled in the art.
[0169] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Obviously, for professionals in this field, after understanding the content and principles of the present invention, they may make various modifications and changes in form and details without departing from the principles and structures of the present invention. However, these modifications and changes based on the ideas of the present invention are still within the scope of protection of the claims of the present invention.
Claims
1. A hyperspectral anomaly detection method based on low-rank representation and collaborative representation, characterized in that: The steps include: (1) Constructing a progressive background dictionary: (1.1) Input the original hyperspectral image X 3D ∈R w×h×b , where w represents width, h represents height, and b is the number of spectral bands. The sliding window is used to 3D Perform block processing, set the size of the sliding window to m×m, and divide the hyperspectral image into T sub-blocks For the t-th sub-block X t 3D ∈R m×m×b Two-dimensionalization gives X t ∈R (n / T)×b , n = w × h represents the number of pixels; (1.2) The original hyperspectral image is two-dimensionalized to obtain the hyperspectral image X∈R n×b , calculate the average spectral vector of X according to the following formula And use it as the base vector: Among them, x ν represents the ν-th pixel in X, ν = 1, 2, ..., n; (1.3) Calculate the pixel and The Rao-SID distance between them is selected, and the pixels corresponding to the maximum and minimum Rao-SID distances in each sub-block are selected as reference pixels, and a reference dictionary consisting of 2T pixels is obtained, that is, G = [g1, g2, ..., g 2T ]∈R 2T×b , where 2T<<n; (1.4) Cluster the reference dictionary G and divide it into k different clusters ψ = {ψ1, ψ2, ..., ψ k }; (1.5) Calculate the approximation between each pixel in the cluster and all pixels in the cluster in turn and the proximity to pixels outside the cluster Among them, n k represents the number of pixels in the kth cluster, represents the i-th pixel in the k-th cluster, represents the jth pixel in the kth cluster, i, j = 1, 2, ..., n k ; Represents the current cluster ψ k The j'th pixel outside, j'=1,2,...,(nn k ), nn k is the current cluster ψ k All pixels outside For the current cluster ψ k Each pixel in Perform the following calculations and sort the results in ascending order. Sort and select the first p pixels as ψ k Representative pixels in: Calculate each cluster in turn to get k×p representative pixels, forming a representative dictionary D=[d1,d2,...,d k×p ]; (1.6) Calculate the Rao-SID distance between any two pixels in the representative dictionary and use the maximum distance as the threshold d Threshold : Among them, d a' represents the a'th pixel in the dictionary, d b' represents the b'th pixel in the dictionary, a' and b' represent the pixel index in the dictionary, a', b' = 1, 2, ..., k × p; Calculate x ν and represents pixel d in dictionary D a' The Rao-SID distance d between RS (x ν ,d a' ), the smaller the distance, the closer the two pixels are; let the minimum distance be d' RS (x ν ), will be greater than d Threshold d' RS (x ν ) corresponds to the pixel x ν Defined as a potential representative pixel, that is, the pixel x is determined according to the following formula ν Is it a potential representative pixel? All potential representative pixels are added to the representative dictionary to construct the final progressive background dictionary D' = [d'1, d'2, ..., d' l ]∈R b×l , l is the number of pixels in the progressive background dictionary, l ≥ (k × p); (2) Establish a low-rank representation model: (2.1) Based on the progressive background dictionary D', a low-rank representation model is established for the entire hyperspectral image: X=D'S+E Where S = [s1, s2, ..., s n ]∈R l×n is the coefficient matrix, E=[e1,e2,...,e n ]∈R b×n For the abnormal part; (2.2) The objective function of constructing a low-rank representation model is as follows: st X=D'S+E Among them, ||·|| * represents the nuclear norm, which is the sum of the singular values of the matrix, ||·|| 2,1 Indicates l 2,1 norm, that is, the sum of the l2 norms of the matrix columns, λ LRR represents the balance parameter of the low-rank representation; (2.3) The alternating direction multiplier method is used to optimize the objective function of the low-rank representation model and obtain the abnormal part E * ; (2.4) Using E * The response value of the vth pixel is obtained as follows: Where u represents the band, u=1,2,...,b; T(x ν ) represents the l2 norm of the vth column of the matrix E*. When it is greater than the threshold, x ν is judged as an abnormal pixel; otherwise, x ν is a normal pixel; the abnormality of all pixels is regarded as the low-rank representation result R LRR ; (3) Based on the progressive background dictionary D' represented by low rank, the pixel x in the hyperspectral image X is ν As the pixel to be tested, select the pixel corresponding to x in D' ν The most similar s pixels form the local background dictionary Z = {z1,z2,...,z s }∈R b×s , i.e., similarity-based collaborative representation background dictionary; (4) Establish a collaborative representation model. The steps are as follows: (4.1) According to the local background dictionary Z, pixel x ν Building a collaborative representation model: x ν =Zα+r v Among them, α represents x ν The corresponding representation vector, r v represents the residual vector; (4.2) The objective function of constructing the collaborative representation model is as follows: Among them, λ CR trade-off parameters for collaborative representation; (4.3) The objective function of the collaborative representation model is rewritten, and the pixel to be tested is rewritten as Rewrite the background dictionary to Where 1 is a row vector of 1×s with a value of 1, so that α satisfies the constraint that the sum is 1; at the same time, the distance weighting matrix Γ is introduced to control the size of α; (4.4) Optimize and solve the rewritten objective function, and calculate the objective function The partial derivative of , set the result to 0, and the result is as follows: In solving Then, the pixel x to be tested is calculated according to the following formula v The residual is represented by: (4.5) The representation residuals of all pixels in the hyperspectral image X are calculated in sequence to obtain the collaborative representation result: R CR =[r1 CR ,r2 CR ,...,r n CR ]; (5) The low-rank representation result R LRR and the collaborative representation result R CR Feature fusion is performed according to the Hadamard product method, that is, R = R LRR ⊙R CR , and obtain the final anomaly detection result R = [r1, r2, ..., r n ].
2. The method according to claim 1, characterized in that: The Rao-SID distance in step (1.3) is calculated as follows: d RS (x u' ,x v' )=tan(d Rao (x u' ,x v' ))·d SID (x u' ,x v' ) Among them, d RS (x u' ,x v' ) represents pixel x u' and x v' The Rao-SID distance between them has a dimension of b×1; B is the band index.
3. The method according to claim 2, characterized in that: The Rao-SID distance is used to characterize the dissimilarity between two pixels, that is, the greater the distance, the greater the difference between the two pixels.
4. The method according to claim 1, characterized in that: In step (1.4), the reference dictionary G is clustered using the density peak clustering method. The implementation steps are as follows: (1.4.1) Input reference dictionary G = [g1, g2, ..., g 2T ]∈R 2T×b , calculate the similarity matrix F between each pair of elements based on the Euclidean distance, and estimate the cutoff distance d c ; (1.4.2) Calculate the local density ρ and the center offset distance δ based on the similarity matrix and the cutoff distance, and draw the decision diagram of ρ and δ; (1.4.3) Select the cluster center according to the decision diagram, and assign the remaining samples to clusters according to the principle of highest density and closest distance; (1.4.4) Clustering is completed and the clustering result ψ={ψ1,ψ2,...,ψ k }.
5. The method according to claim 4, characterized in that: The similarity matrix F in step (1.4.1) is calculated according to the following formula: f p'q' =||g p' -g q' ||2 Among them, f p'q' is the p'th row and q'th column element in the similarity matrix F, used to represent the element g in the reference dictionary G p' and g q' The similarity between them, p',q'=1,2,...,2T is the pixel index in the reference dictionary G.
6. The method according to claim 4, characterized in that: The cut-off distance d in step (1.4.1) c , is d c Draw a circle with radius , and let the number of data points falling within the circle account for 2% of all points. It is inferred that d c The value of .
7. The method according to claim 4, characterized in that: The local density ρ and center offset distance δ in step (1.4.2) are calculated as follows:
8. The method according to claim 1, characterized in that: Step (3) Select the same value as x in D' ν The most similar s pixels form the local background dictionary Z = {z1,z2,...,z s }∈R b×s , specifically, the similarity is measured based on the Euclidean distance, and the calculation formula is as follows: d(d' l' ,x ν )=||d' l' -x ν ||2, Among them, d(d' l' ,x ν ) is the pixel d' in D' l' With x ν The Euclidean distance between them, l' is the pixel index in D', l'=1,2,...,l.
9. The method according to claim 1, characterized in that: In step (4.3), the objective function of the collaborative representation model is rewritten as follows: in, is the new representation vector.
10. The method according to claim 1 or 9, characterized in that: The distance weighted matrix Γ is expressed as follows:
Citation Information
Patent Citations
Hyperspectral image compression method based on spatial spectrum characteristics
CN105374054A
Hyperspectral anomaly detection method fusing robust dictionary and double-cooperative constraint regular term
CN115239694A
Background suppression for anomaly detection
US20200265227A1
Unsupervised Latent Low-Rank Projection Learning Method for Feature Extraction of Hyperspectral Images
US20230114877A1
Cited By
Abnormality detection method and device based on low-rank embedding and multiple scales and electronic equipment
CN119152374A
Anomaly detection method, device and electronic device based on low-rank embedding and multi-scale
CN119152374B
