Global anomaly weighted hyperspectral remote sensing image constraint cooperative representation anomaly detection method
Through the global anomaly weighted hyperspectral image constrained collaborative representation method, the problem of strong single constraints and insufficient feature utilization in the collaborative representation model is solved, which improves the reconstruction effect of hyperspectral images and the accuracy of anomaly detection, and achieves better detection. performance and robustness.
Patent Information
- Application Number
- CN202410643882.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-23
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-23
AI Technical Summary
Existing hyperspectral anomaly detection algorithms have strong and single constraints in the collaborative representation model. The sliding dual window model makes insufficient use of the characteristics of hyperspectral images, which affects the detection effect of anomaly targets, and the mapping of data to a higher dimensional space leads to computational complexity. and the amount of data increases.
A global anomaly weighted hyperspectral graph constrained cooperative representation method is used to construct a local dictionary set through sliding double windows, calculate the adjacency matrix and symmetric normalized Laplacian matrix between dictionary atoms, add graph regularization terms as constraints, and combine the best The optimal clustering framework and spectral residual model construct global anomaly saliency weights and conduct nonlinear fusion to improve the reconstruction effect and detection accuracy.
It improves the detection accuracy and stability of abnormal targets, enhances the reconstruction effect of graph constrained collaborative representation model, reduces computational complexity, and improves the performance and robustness of abnormal detection.
Smart Images

Figure CN118587586A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of hyperspectral remote sensing image processing, and in particular relates to a global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method. Background Art
[0002] Hyperspectral remote sensing technology combines imaging technology and spectral technology, and can simultaneously obtain spatial information and spectral information of objects, and obtain a hyperspectral image with "image and spectrum integration". The main difference between hyperspectral images and traditional multispectral images is narrowband imaging. Hyperspectral images can be regarded as three-dimensional data cubes with two spatial dimensions and one spectral dimension. It not only records the spatial information of object imaging, but also records its continuous spectral information. Different objects have different materials, different reflection and absorption information, and different spectral curves. Therefore, hyperspectral images bring good opportunities for fine identification of objects. Since hyperspectral images contain a lot of information, have the characteristics of multiple bands and high spectral resolution, they can be used to solve many problems that cannot be solved by optical images or multispectral images. In particular, hyperspectral images have incomparable advantages in identifying objects based on the spectral characteristics of different materials, but this also brings difficulties such as dimensionality disaster and data redundancy to hyperspectral images. At present, hyperspectral images have important application value and broad development prospects in the fields of precision agriculture, environmental monitoring, object coverage classification, target detection, etc.
[0003] Target detection is to detect and identify the ground objects of interest or small ground objects that are different from most ground objects in the hyperspectral image. According to whether the prior information of the detected ground object is known, hyperspectral target detection can be divided into supervised target detection with known target prior information and unsupervised target detection with unknown target prior information. Unsupervised target detection is anomaly detection. In actual scenarios, it is difficult to obtain prior spectral information of many ground object types. In addition, during atmospheric transmission, due to the influence of atmospheric absorption, light and sensor signals, the obtained ground object spectrum is variable, resulting in the occurrence of the same object with different spectra and the same spectrum with different objects, which hinders the detection of targets that require prior information. In this case, anomaly detection without any prior information makes it of great research value. Since no prior knowledge is required, hyperspectral anomaly detection technology has been widely used in civil search and rescue, national defense security, medical examination and other fields.
[0004] In hyperspectral remote sensing anomaly detection, abnormal targets usually have the characteristics of low probability of occurrence, small number, small area, and spectral characteristics that are significantly different from those of surrounding pixels. Existing hyperspectral anomaly detection algorithms can be roughly divided into three categories, namely, anomaly detection algorithms based on statistical models, nonlinear anomaly detection methods, and anomaly detection algorithms based on representation learning. The Reed-Xiaoli (RX) anomaly detection algorithm is considered to be the most classic algorithm in the statistical model. This method assumes that the background pixels obey the multivariate Gaussian distribution and determines the pixels that deviate from the multivariate Gaussian distribution characteristics of the background objects as abnormal targets. However, the background assumption of the statistical model is single, and it does not take into account the various types of objects and their uneven distribution in actual hyperspectral images. The nonlinear anomaly detection algorithm maps the background and abnormal data that are originally difficult to distinguish linearly to a higher-dimensional feature space, thereby increasing the separability between the data. The SVDD algorithm is a support vector method using a kernel method. It avoids the prior assumption of the distribution of the original background data, models the background through the minimum closed hypersphere, and determines the spectral pixels that exceed the hypersphere model as abnormal. Although nonlinear anomaly detection methods increase or decrease the separability between data, they map data to a higher-dimensional space, which leads to problems such as increased data volume and complex calculations. In recent years, representation-based methods without any statistical assumptions have attracted widespread attention. Anomaly detection algorithms based on representation models believe that normal background pixels can be well linearly represented by a dictionary, while abnormal pixels cannot. According to different constraints, anomaly detection based on representation models can be divided into sparse representation, collaborative representation, and low-rank representation. Its representative algorithms include the BJSR algorithm, the CRD algorithm, the LRASR algorithm, etc. Anomaly detection algorithms based on representation models have become a hot topic of research due to their simple models, strong generalization ability, and high efficiency.
[0005] The anomaly detection method based on the representation model can better achieve the modeling of the background and improve the detection accuracy of abnormal targets. It has the advantages of high computational efficiency and strong generalization ability. However, there are still some problems in the hyperspectral anomaly detection based on the representation model. The constraints of the existing collaborative representation model are rigid and single. At the same time, the dictionary atoms constructed by the sliding double-window model are affected by unknown abnormal pixels. These interferences will affect the reconstruction effect of the representation model. In addition, the double-window model does not make sufficient use of the features of hyperspectral images, which also affects the detection effect of abnormal targets. Therefore, how to improve the reconstruction effect under the representation model and give full play to the features of hyperspectral images to improve the effect of anomaly detection is an urgent problem to be solved. Summary of the invention
[0006] Purpose of the invention: The present invention provides a global anomaly weighted hyperspectral image constrained collaborative representation anomaly detection method, which can maintain the local geometric structure in the dictionary atomic space and make the hyperspectral image reconstruction effect better and the abnormal part more prominent under the representation model, further improving the detection accuracy of abnormal targets.
[0007] Technical solution: To achieve the above-mentioned invention object, the global anomaly weighted hyperspectral image constraint collaborative representation anomaly detection method of the present invention comprises the following steps:
[0008] Step 1: Convert the hyperspectral remote sensing image into a two-dimensional matrix X∈R b×n , where b is the number of bands and n is the number of pixels;
[0009] Step 2: For each pixel, use the sliding double window to construct a local dictionary set X s , where s is the number of dictionary atoms;
[0010] Step 3: Calculate the adjacency matrix W between dictionary atoms, and obtain the symmetric normalized Laplace matrix L according to the adjacency matrix W. sym ; The obtained symmetric normalized Laplace matrix is constructed as a graph regularization term, and the graph regularization term is used as one of the constraints to increase the constraint term of the optimized collaborative representation model, and the graph constraint collaborative representation model is constructed, and the closed-form solution of the coefficient vector is obtained to obtain the initial anomaly detection result; the global anomaly significance weight of the hyperspectral image is calculated using the global information and spectral residual model;
[0011] The global anomaly significance weight of the hyperspectral image is constructed using the spectral residual model. The specific steps are as follows:
[0012] (a) Using the Optimal Clustering Framework (OCF) method to select the bands of the hyperspectral remote sensing image, the image I(x) generated by the first three bands with the richest information is obtained, and then the grayscale image of the image is obtained;
[0013] (b) Performing Fourier transformation on the grayscale image, performing logarithmic transformation on the grayscale image A(f) after Fourier transformation, and obtaining the logarithmic amplitude spectrum L(f);
[0014] (c) Use the local average filter to convolve the log spectrum L(f) to obtain the average log amplitude spectrum
[0015] (d) The spectral residual R(f) is obtained by subtracting the average logarithmic amplitude spectrum from the logarithmic amplitude spectrum;
[0016] (e) Perform inverse Fourier transform on the spectral residual R(f) and smooth it using Gaussian filter G(x) to obtain the global anomaly significance weight;
[0017] Step 4: nonlinearly fuse the initial anomaly detection results and the global anomaly significance weights;
[0018] Step 5: Output the final anomaly detection results.
[0019] Furthermore, the adjacency matrix W constructed in step 3 is W = (w ij ) s×s , and its specific implementation formula is:
[0020]
[0021] In the formula, σ is usually taken as 1, d ij To improve the spectral Jaccard similarity distance and reduce the running time, the improved Jaccard similarity matrix d = (d ij ) s×s , the specific implementation formula is:
[0022]
[0023] Where J∈R s×1 For the similarity vector of each pixel, the specific calculation formula is:
[0024] J i =b 00 +b 11
[0025] Where b 00 is the number of first-order derivatives of the spectrum curve of the i-th dictionary atom that is less than or equal to 0, b 11 is the number of first-order derivatives of the spectrum curve of the i-th dictionary atom that are greater than 0.
[0026] Furthermore, in step 3, graph regularization term constraints are added on the basis of collaborative representation to construct a graph constraint collaborative representation model, and its specific function form is:
[0027]
[0028] where Γ y is the spectral distance between the pixel to be measured and the dictionary atom, L sym To symmetric normalize the Laplace matrix, the specific calculation formula is:
[0029]
[0030] In the formula, is the degree matrix of the adjacency matrix W, L is the Laplacian matrix of the adjacency matrix The closed-form solution of the coefficient vector is specifically expressed as:
[0031]
[0032] Furthermore, the global anomaly significance weight constructed by using the optimal clustering framework and the spectral residual model in step 3 is specifically implemented as follows:
[0033]
[0034] In the formula is the inverse Fourier transform, P(f) is the phase spectrum of the logarithmic spectrum L(f), R(f) is the spectrum residual, and the specific calculation formula is:
[0035]
[0036]
[0037] where h n (f) is the local average filter, is the average logarithmic amplitude spectrum.
[0038] Furthermore, the nonlinear fusion method in step 4 is specifically implemented as follows:
[0039]
[0040] In the formula, is the initial anomaly detection result of the graph-constrained collaborative representation model, and S is the global anomaly significance weight.
[0041] Working principle: The similarity in the original space is transferred to the feature space to maintain the local geometric structure in the dictionary atomic space, and the coefficient matrix is constrained by the joint collaboration and graph regularization terms to achieve a better reconstruction effect; at the same time, the improved Jaccard similarity matrix and spectral distance are used to construct the adjacency matrix to enhance the effect of the graph regularization term constraint. In addition, the global information of the hyperspectral image is used, and the optimal clustering band selection method is adopted to determine the first three bands with the richest information, and the spectral residual model is used to construct the global anomaly significance weight for the selected bands; finally, the established graph constraint collaborative representation model is nonlinearly fused with the constructed global anomaly significance weight. The method implemented by the present invention not only improves the accuracy and stability of anomaly detection in different target scenarios, and has strong applicability, but also has important theoretical and practical significance for promoting research related to anomaly detection in hyperspectral remote sensing images.
[0042] The present invention proposes a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method is implemented.
[0043] The present invention provides a computer program product, comprising a computer program and / or instructions, which, when executed by a processor, implements the global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method.
[0044] Beneficial effects: The global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method of the present invention has the following beneficial effects compared with the prior art:
[0045] 1. The present invention adds graph regularization term constraints to the collaborative representation and constructs a constraint coefficient matrix of the graph constraint collaborative representation model, so as to achieve better reconstruction effect of the pixels to be measured.
[0046] 2. The present invention utilizes the global characteristics of hyperspectral images, introduces the research of information theory into the field of anomaly detection, regards the redundant parts as background and the changing parts as anomalies, and uses the optimal clustering framework and spectral residual model to construct a global anomaly significance weight to achieve the purpose of highlighting anomalies. Finally, the established graph constraint collaborative representation model is nonlinearly fused with the constructed global anomaly significance weight to obtain the final result. The method has good detection performance in different data scenarios and has strong robustness and applicability.
[0047] 3. In order to make the graph regularization term have a better constraint effect on the coefficient matrix, the Jaccard similarity coefficient is added on the basis of the spectral distance to construct the adjacency matrix. In addition, the Jaccard similarity matrix between dictionary atoms is constructed using the matrix calculation method, which reduces the running time. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 It is a flow chart of the global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method of the present invention;
[0049] Figure 2 (a) and (b) are respectively a hyperspectral remote sensing image and an abnormal pixel distribution map of an embodiment;
[0050] Figure 3 A surface plot for searching for the best regularization parameters λ and β for the method of the present invention;
[0051] Figure 4 (a) to (e) are the anomaly detection result diagrams obtained by algorithms RX, CRD, GTVLRR, VABS and GS-GCR respectively;
[0052] Figure 5 Figure 2 is the ROC curve of five anomaly detection methods: RX, CRD, GTVLRR, VABS and GS-GCR. DETAILED DESCRIPTION
[0053] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments.
[0054] Example 1
[0055] The experimental data Los Angeles was collected by the AVIRIS sensor in the Los Angeles Airport area of California, USA, containing 100×100 pixels, 205 effective bands, and a spatial resolution of 7.1m. The corresponding hyperspectral remote sensing image and abnormal pixel distribution map are shown in Figure 2 As shown in (a) and (b) in the figure. The background of this dataset is relatively complex, mainly consisting of hangars, airport runways and aprons. The anomaly is the two aircraft in the center, which consists of 87 pixels. In the experiment, the outer window size is set to 19, the inner window size is set to 17, and the parameter c is set to 0.5.
[0056] The global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method of the present invention has the following process: Figure 1 As shown, the specific implementation steps are:
[0057] (1) Preprocess the original hyperspectral remote sensing image data and convert it into a two-dimensional matrix X of size b×n, where b is 205 and n is 10000;
[0058] (2) For each pixel, the sliding double window model is used to obtain the dictionary atomic set X s ∈R b×s , where s is the number of dictionary atoms;
[0059] (3) Calculate dictionary atom x i and x j The weighted distance w between ij , obtain the adjacency matrix W between dictionary atoms = (w ij ) s×s , using the adjacency matrix W to obtain the symmetric normalized Laplace matrix L sym ;
[0060] (4) Using the normalized Laplace matrix L sym Obtain graph constraint regularization terms, add the graph constraint regularization terms to the collaborative representation model, and construct the graph constraint collaborative representation model;
[0061] (5) According to the objective function constructed by the graph constraint collaborative representation model, the closed-form solution of the coefficient vector α is obtained to obtain the initial anomaly detection result.
[0062] (6) Using the Optimal Clustering Framework (OCF) method to select the bands of the hyperspectral remote sensing image, the image I(x) generated by the first three bands with the richest information is obtained, and the grayscale image of image I(x) is constructed at the same time;
[0063] (7) Performing Fourier transformation on the grayscale image, performing logarithmic transformation on the grayscale image A(f) after the Fourier transformation, and obtaining the logarithmic amplitude spectrum L(f);
[0064] (8) Using a local average filter to perform a convolution operation on the logarithmic spectrum L(f) to obtain an average logarithmic amplitude spectrum L(f), and at the same time obtain a phase spectrum P(f) of the logarithmic spectrum L(f);
[0065] (9) Using the spectral residual model to obtain the spectral residual R(f), the specific operation is to subtract the average logarithmic amplitude spectrum L(f) from the logarithmic spectrum L(f);
[0066] (10) Perform inverse Fourier transform on the spectral residual R(f) and smooth it using a Gaussian filter G(x) to obtain the global anomaly significance weight;
[0067] (11) Using nonlinear fusion formula The initial anomaly detection results The final anomaly detection result is obtained by fusing it with the global anomaly significance weight; where e is the final anomaly detection result, c is the adjustment parameter of the constant term, and S represents the global anomaly significance weight.
[0068] (12) Output the final anomaly detection result image.
[0069] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method when executing the computer program.
[0070] In one embodiment, a computer program product is provided, including a computer program / instruction, which, when executed by a processor, implements the global anomaly weighted hyperspectral remote sensing image constrained collaborative representation anomaly detection method.
[0071] The anomaly detection method (GS-GCR) of the present invention is used to experimentally analyze the hyperspectral remote sensing image data and compare it with some representative anomaly detection algorithms, including the classic RX algorithm, CRD, GTVLRR and VABS algorithms. Firstly, the settings of the regularization parameters λ and β of the GS-GCR algorithm of the present invention are analyzed. The setting range of parameters λ and β is in {1e-5 ,1e -4 ,1e -3 ,1e -2 ,1e -1 ,1e 0 ,1e 1}, as the parameters change, the AUC value of the ROC curve for anomaly detection changes as shown in the figure below. Figure 3 As shown, in this example, the parameters λ and β are set to 1e 1 and 1e -1 . Figure 4 The anomaly detection results of each algorithm are shown, including five anomaly detection results of algorithms RX, CRD, GTVLRR, VABS and GS-GCR. It can be seen from the figure that the method of the present invention (GS-GCR) has a better suppression effect on the background and more obvious detection of abnormal targets. In addition, the ROC curves of each anomaly detection algorithm on the Los Angeles dataset are shown in the figure. Figure 5 The corresponding area under the ROC curve AUC is shown in Table 1. It can be seen that GS-GCR has better anomaly detection results. In summary, the method proposed in the present invention has better performance and is superior to other similar anomaly detection algorithms.
[0072] Table 1 Figure 5 The area under the ROC curve of each algorithm (%)
[0073]
Claims
1. A global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method, characterized by: The following steps are involved: Step 1: Convert the hyperspectral remote sensing image into a two-dimensional matrix X∈R b×n , where b is the number of bands and n is the number of pixels; Step 2: For each pixel, use the sliding double window to build a local dictionary set X s , where s is the number of dictionary atoms; Step 3: Calculate the adjacency matrix W between dictionary atoms, and obtain the symmetric normalized Laplace matrix L according to the adjacency matrix W. sym ; The obtained symmetric normalized Laplace matrix is constructed as a graph regularization term, and the graph regularization term is used as one of the constraints to increase the constraint term of the optimized collaborative representation model, and the graph constraint collaborative representation model is constructed, and the closed-form solution of the coefficient vector is obtained to obtain the initial anomaly detection result; The global anomaly significance weight of hyperspectral images is calculated using global information and spectral residual model; Step 4: nonlinearly fuse the initial anomaly detection results and the global anomaly significance weights; Step 5: Output the fused anomaly detection results.
2. The method for anomaly detection based on global anomaly weighted hyperspectral remote sensing image constraint collaborative representation according to claim 1 is characterized in that: The method of calculating the global abnormal significance weight of the hyperspectral image by using the global information and the spectral residual model comprises the following steps: (a) Using the optimal clustering framework method to select the bands of the hyperspectral remote sensing image, after obtaining the image I(x) generated by the first three bands with the richest information, the grayscale image of the image is obtained; (b) Performing Fourier transformation on the grayscale image, performing logarithmic transformation on the grayscale image A(f) after Fourier transformation, and obtaining the logarithmic amplitude spectrum L(f); (c) performing a convolution operation on the log spectrum L(f) using a local average filter to obtain an average log amplitude spectrum L(f); (d) The spectral residual R(f) is obtained by subtracting the average logarithmic amplitude spectrum from the logarithmic amplitude spectrum; (e) The spectral residual R(f) is inversely Fourier transformed and smoothed using a Gaussian filter to obtain the global anomaly significance weight.
3. The method for anomaly detection based on global anomaly weighted hyperspectral remote sensing image constraint collaborative representation according to claim 1 is characterized in that: The adjacency matrix W = (w ij ) s×s The calculation formula is: In the formula, w ij For the dictionary atom x i and x j The weight distance between them, σ is a constant, d ij is the improved spectral Jaccard similarity distance.
4. The method for anomaly detection based on global anomaly weighted hyperspectral remote sensing image constraint collaborative representation according to claim 3 is characterized in that: Improved spectral Jaccard similarity distance matrix d = (d ij ) s×s The calculation formula is: Where I is the unit matrix, b is the number of bands, and J∈R s×1 For each pixel's similarity vector, the calculation formula is: J i =b 00 +b 11 Where b 00 is the number of first-order derivatives of the spectrum curve of the i-th dictionary atom that is less than or equal to 0, b 11 is the number of first-order derivatives of the spectrum curve of the i-th dictionary atom that are greater than 0.
5. The global anomaly weighted hyperspectral remote sensing image constraint collaborative representation anomaly detection method according to claim 1 is characterized by: On the basis of collaborative representation, graph regularization term constraints are added to construct a graph constraint collaborative representation model. The calculation formula is: Among them, y represents the spectral vector of the pixel to be measured, α represents the coding coefficient vector, λ and β are regularization parameters, Γ y is the spectral distance between the pixel to be measured and the dictionary atom, L sym is the symmetric normalized Laplace matrix, and Tr(·) represents the Tr function.
6. The method for anomaly detection based on global anomaly weighted hyperspectral remote sensing image constraint collaborative representation according to claim 1, characterized in that: The global abnormal significance weight is calculated as follows: Where S(x) is the global anomaly significance weight, G(x) is the Gaussian filter function, is the inverse Fourier transform, P(f) is the phase spectrum of the logarithmic spectrum L(f), and R(f) is the spectral residual.
7. The method for anomaly detection based on global anomaly weighted hyperspectral remote sensing image constraint collaborative representation according to claim 6 is characterized in that: The calculation formula of the spectral residual is: where h n (f) is the local average filter, is the average logarithmic amplitude spectrum.
8. The method for anomaly detection based on global anomaly weighted hyperspectral remote sensing image constraint collaborative representation according to claim 1, characterized in that: The initial anomaly detection results and the global anomaly significance weight are nonlinearly fused, and the calculation formula is: In the formula, is the initial anomaly detection result of the graph constraint collaborative representation model, S is the global anomaly significance weight, e is the fused anomaly detection result, and c represents the adjustment parameter, which is a constant term.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the global anomaly weighted hyperspectral remote sensing image constrained collaborative representation anomaly detection method according to any one of claims 1 to 8 is implemented.
10. A computer program product comprising a computer program and / or instructions, characterized in that: When the computer program / instruction is executed by a processor, the global anomaly weighted hyperspectral remote sensing image constrained collaborative representation anomaly detection method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Hyperspectral remote sensing image anomaly detection method based on low-rank joint collaborative representation
CN110619263A
Nonlinear hyperspectral image anomaly detection algorithm based on kernel function and joint dictionary
CN112819769A
Hyperspectral image nonlinear anomaly detection method
CN114596483A
Hyperspectral anomaly detection method fusing robust dictionary and double-cooperative constraint regular term
CN115239694A
