Hyperspectral image classification method based on spatial spectrum collaborative sparse unmixing
Through a method based on spatial spectral collaborative sparse unmixing, the problems of threshold sensitivity and high computational complexity in hyperspectral image classification are solved, and efficient sub-pixel level classification is achieved. The smooth induction effect of the total variation term is used to improve the efficiency of hyperspectral image classification. Classification accuracy and efficiency, especially suitable for large-scale hyperspectral image data processing.
Patent Information
- Application Number
- CN202410916136.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-09
AI Technical Summary
Existing hyperspectral image classification methods have problems such as sensitive threshold selection at the sub-pixel level, high computational complexity, possible loss of differential features during pure pixel elimination, and insufficient use of image spatial distribution features, resulting in insufficient classification efficiency and accuracy.
A method based on spatial-spectral collaborative sparse unmixing is adopted. By obtaining hyperspectral images and spectral libraries, pruning the matching spectral library subsets, constructing a spatial-spectral collaborative sparse unmixing model, extracting sub-pixel representation information, and using SVM classifiers Classification is performed, and the smooth induction effect of the total variation term is combined to achieve category merging and noise suppression.
Significantly improves the classification accuracy of hyperspectral images, reduces feature dimensions, simplifies classifier input, improves classification efficiency, suppresses noise and occlusion to varying degrees, promotes the merging of similar pixel categories, and achieves better classification results .
Smart Images

Figure CN118710984A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of hyperspectral image classification, and in particular relates to a hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing. Background Art
[0002] Image classification is an important part of remote sensing image processing and application. Its goal is to classify each pixel in the image into a unique category. Hyperspectral remote sensing images contain richer spectral information of ground objects than other remote sensing images, and their classification research is also more challenging. At present, there are three mainstream categories of hyperspectral image classification methods: pixel level, object level and sub-pixel level. Pixel level classification uses the spectral information at the pixel level to achieve pixel classification through methods such as feature extraction and difference measurement of spectral vectors. Machine learning algorithms can also be used to learn pixel label data, grasp the potential feature differences of pixel spectra, and construct supervised classifiers; object level classification considers the spatial information of the image, uses image segmentation technology, such as multi-scale segmentation algorithm to obtain different objects or regions, and then extracts object-level features and uses them for classification; sub-pixel level classification considers the subtle material composition and structural information inside the pixel, explores the feature similarities and differences of the pixel in material composition, and achieves more refined classification of ground objects. With the development of hyperspectral imaging technology and the advancement of imaging equipment, the spatial resolution and spectral resolution of hyperspectral images are increasing, providing realistic conditions for refined sub-pixel classification of hyperspectral images.
[0003] There are two main methods for hyperspectral image classification based on sub-pixel information: ① Classification method based on soft classification technology and spectral unmixing (DOI of the paper where this method is located: 10.1109 / JSTSP.2010.2096798). This method is aimed at hyperspectral images with mixed pixels and proposes a spatial regularization method based on unmixed abundance information. This method first uses support vector machines to classify pixels with strong category certainty. For pixels with category uncertainty, the abundance coefficients of different classes are mined at the sub-pixel scale, and the simulated annealing method is used for spatial regularization to spatially locate the land cover class in each pixel, thus achieving sub-pixel classification of mixed pixels. ② Hyperspectral image sub-pixel classification method based on SVM (support vector machine) (DOI of the paper where this method is located: 10.13203 / j.whugis20150443). This method first uses simplified training samples to train an SVM classifier based on the radial basis kernel function. Then, the total variation regularized denoising model is used to denoise the random noise that may exist in the hyperspectral image first, and the pixel unmixing result is obtained by fully constrained mixed pixel decomposition, and the pure pixels are eliminated. Finally, the mixed pixels are brought into the SVM classifier for regression analysis to obtain the sub-pixel classification results. This method comprehensively considers the influence of the abundance values of the central pixel and its neighboring pixels on the sub-pixel classification, and reduces the number of samples by eliminating pure pixels, thereby improving the efficiency of the algorithm while ensuring accuracy.
[0004] The classification method based on the combination of soft classification technology and spectral unmixing has the following limitations: on the one hand, it is necessary to select an appropriate threshold to determine the pixels with strong category certainty, and at the same time, it is necessary to set a scaling factor to determine the granularity of sub-pixel classification; on the other hand, the spatial regularization method based on the simulated degradation algorithm is sensitive to the scaling factor. A larger scaling factor will increase the computational complexity while improving the sub-pixel classification granularity. In addition, the sub-pixel classification method of hyperspectral images based on SVM also has the following limitations: on the one hand, although the elimination of pure pixels can improve the classification efficiency, it may lose the difference characteristics of different categories and blur the classification margins of pixels of different categories; on the other hand, only the total variation regularization model is used for image denoising, and the smoothing induction effect of the total variation term is not used to achieve the category merging and noise removal of similar hyperspectral pixels.
[0005] Although there are other hyperspectral image classification methods that use sub-pixel information, most of them are used as auxiliary means, and image classification methods that purely rely on hyperspectral unmixing information are still scarce. Moreover, the existing sub-pixel image classification methods do not fully explore and utilize the ground object composition information of the image, and do not effectively combine the spatial distribution characteristics of the image. Therefore, it is necessary to explore the effective use of the sub-pixel composition information of hyperspectral images, combine the spatial structure prior of hyperspectral images, realize its low-dimensional feature representation and difference measurement at the sub-pixel level, and establish an efficient sub-pixel classification method for hyperspectral images. Summary of the invention
[0006] In order to solve the above problems existing in the prior art, the present invention provides a hyperspectral image classification method based on spatial spectral collaborative sparse unmixing. The technical problem to be solved by the present invention is achieved by the following technical solutions:
[0007] A hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing includes:
[0008] S100, obtaining a hyperspectral image Y to be classified, an applicable spectral library A, and category labels of some pixels in the spectral library A, wherein the spectral library A includes spectral features of a plurality of basic substances, and the pixel spectrum of the hyperspectral image is composed of spectral features of the basic substances in the spectral library A, and the composition coefficient is represented by an abundance matrix X;
[0009] S200, pruning the spectral library A according to the hyperspectral image Y to obtain a spectral library subset A1 matching the hyperspectral image Y;
[0010] S300, constructing a spatial-spectral collaborative sparse unmixing model using the spectral library subset A1, and solving its sub-pixel representation {A1, X};
[0011] S400, extracting non-zero rows of the abundance matrix X in the sub-pixel representation {A1, X}, and recombining them to obtain sub-pixel representation information X1;
[0012] S500, training a preset SVM classifier model using any column of the sub-pixel representation information X1 and the category label corresponding to the column;
[0013] S600 , using the trained SVM classifier model, classify the remaining columns in the sub-pixel representation information X1 to obtain category labels, and use them as classification results of corresponding pixels in the hyperspectral image Y.
[0014] Beneficial effects:
[0015] The present invention provides a hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing, comprising: obtaining a hyperspectral image Y to be classified and an applicable spectral library A; pruning the spectral library A according to the hyperspectral image Y to obtain a spectral library subset A1 matching the hyperspectral image Y; constructing a spatial-spectral collaborative sparse unmixing model using the spectral library subset A1, and solving its sub-pixel representation {A1, X}; extracting non-zero rows of an abundance matrix X in the sub-pixel representation {A1, X}, and recombining to obtain sub-pixel representation information X1; training a preset SVM classifier model using the sub-pixel representation information X1 and category label information in S100; and using the trained SVM classifier model to classify the columns of the matrix X1 to obtain the classification result of the hyperspectral image Y. The present invention obtains the abundance matrix X of the hyperspectral image Y by unmixing it, and classifies the pixels according to the matrix, which significantly improves the accuracy; and the image classification method based on the abundance matrix reduces the feature dimension, simplifies the input of the classifier, thereby improving the efficiency of classification, especially for the processing of large-scale hyperspectral image data; and the present invention uses the total variation term to induce the similarity of the pixel composition in the local neighborhood, which can suppress different degrees of noise and occlusion. Moreover, by inducing the similarity of the abundance vectors of adjacent pixels, it can promote the merging of the categories to which similar pixels belong, and achieve better classification results.
[0016] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of a hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing provided by the present invention;
[0018] Figure 2 is a comparison chart of the classification results of the method proposed in the present invention and the classification method based on pixel spectrum on the Pavia data set;
[0019] Figure 3 It is a heat map of the classification accuracy of the classification method of the present invention under different regularization parameters. DETAILED DESCRIPTION
[0020] The present invention is further described in detail below with reference to specific embodiments, but the embodiments of the present invention are not limited thereto.
[0021] Before introducing the present invention, a brief introduction to the technical concept of the present invention is first given.
[0022] Hyperspectral images contain a large amount of pixel spectral information due to their excellent spectral resolution, which can be used for the fine interpretation of ground objects. However, existing hyperspectral image classification methods do not make sufficient use of sub-pixel information in images. Therefore, the present invention aims to explore effective ways to utilize sub-pixel information in hyperspectral images, and further analyze the similarities and differences of image pixels in sub-pixel composition by mining the low-dimensional feature representation of images at the sub-pixel level, so as to improve the accuracy and efficiency of hyperspectral classification. Therefore, the present invention proposes an image classification method based on hyperspectral neighborhood spatial similarity and collaborative sparse unmixing information, which has the advantages of low computational complexity, strong noise robustness, algorithm applicability and strong generalization ability.
[0023] The details of the solution of the present invention are described in detail below.
[0024] like Figure 1 As shown, the present invention provides a hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing, including:
[0025] S100, obtaining a hyperspectral image Y to be classified, an applicable spectral library A, and category labels of some pixels in the spectral library A, wherein the spectral library A includes spectral features of a plurality of basic substances, and the pixel spectrum of the hyperspectral image is composed of spectral features of the basic substances in the spectral library A, and the composition coefficient is represented by an abundance matrix X;
[0026] It is worth noting that the parameters of the spectral library A end members, the number of random unit vectors, the population size, the number of neighborhood subproblems, the maximum number of iterations, etc. of the present invention can be preset and adjusted according to actual conditions.
[0027] S200, pruning the spectral library A according to the hyperspectral image Y to obtain a spectral library subset A1 matching the hyperspectral image Y;
[0028] In this step, in addition to pruning by calculating the projection operator, the spectral library A may also be pruned by using a subspace matching method.
[0029] S300, constructing a spatial-spectral collaborative sparse unmixing model using the spectral library subset A1, and solving its sub-pixel representation {A1, X};
[0030] S400, extracting non-zero rows of the abundance matrix X in the sub-pixel representation {A1, X}, and recombining them to obtain sub-pixel representation information X1;
[0031] S500, training a preset SVM classifier model using any column of the sub-pixel representation information X1 and the category label corresponding to the column;
[0032] S600 , using the trained SVM classifier model, classify the remaining columns in the sub-pixel representation information X1 to obtain category labels, and use them as classification results of corresponding pixels in the hyperspectral image Y.
[0033] The traditional method uses the spectral vectors in the hyperspectral image Y for classification. The present invention uses the abundance matrix X to classify the hyperspectral image Y. The abundance matrix X is used as the representation information of Y. It has low-dimensional characteristics and is conducive to classification. And because each column of the hyperspectral image Y corresponds to each column of X, the present invention uses the classification result of the abundance matrix X as the classification result of Y. The classification result is a matrix composed of the category labels of each pixel in the hyperspectral image Y.
[0034] In a specific implementation of the present invention, S200 includes:
[0035] S210, calculating a set of orthogonal bases E of the subspace where the hyperspectral image Y is located;
[0036] S220, using the set of orthogonal bases E, calculating the projection operator on the orthogonal complement space of the subspace where the hyperspectral image Y is located; the projection operator is expressed as:
[0037] P=IE*E T ;
[0038] Where I represents the identity matrix;
[0039] S230, calculating the projection length of each end member in the spectrum library A on the projection operator P, and normalizing it according to a normalization formula to obtain a normalized projection length;
[0040] Among them, the normalization formula is expressed as:
[0041]
[0042] Among them, α j represents the jth column in the spectral library A, ε j Represents the normalized projection length.
[0043] S240, sorting the normalized projection lengths from small to large, and extracting the basic material spectra corresponding to the first k values to form a spectrum library subset A1.
[0044] In an optional implementation manner of the present invention, S300 includes:
[0045] S310, introducing row sparse regularization terms and neighborhood space regularization terms for the abundance matrix X, and constructing an initial sparse mixed model using the spectral library subset A1; the initial sparse mixed model is expressed as:
[0046]
[0047] Where, λ1 and λ2 are regularization parameters, q is the number of end members in the spectral library subset A1, represents the total variation term of the matrix X, where σ{ i} is the index set of neighboring pixels of pixel i, and the superscript T indicates transposition;
[0048] The regularization parameters of the sparse regularization term and the neighborhood space regularization term of the present invention can be adjusted and set.
[0049] S320, introducing auxiliary variables Z1 and Z2 into the initial sparse unmixing model to obtain a spatial-spectral collaborative sparse unmixing model; the spatial-spectral collaborative sparse unmixing model is expressed as:
[0050]
[0051] S330, transforming the spatial-spectral collaborative sparse unmixing model using a Lagrange multiplier method to obtain a transformed model; the transformed model is expressed as:
[0052]
[0053] Among them, U1 and U2 represent Lagrange multipliers, ρ>0 represents the regularization parameter, and the subscript F represents the Frobenius norm.
[0054] S340, using the ADMM algorithm to iteratively solve the transformed model to obtain a sub-pixel representation {A1, X} of the hyperspectral image.
[0055] In an optional implementation manner of the present invention, S400 includes:
[0056] S410, extracting the abundance matrix X in the sub-pixel representation {A1, X};
[0057] S420, calculating the squares of the elements in the abundance matrix X, and summing them row by row to obtain a summed column vector S;
[0058] S430, determining the row where the non-zero element in the column vector S is located, and recording its index vector as IdX;
[0059] S440, extracting the row vector corresponding to the index vector IdX in the abundance matrix X, and recombining them to form sub-pixel representation information X1.
[0060] In an optional implementation manner of the present invention, S500 includes:
[0061] S510, selecting an abundance vector corresponding to a training sample from the sub-pixel representation information X1, and pairing the corresponding category label with the abundance vector to form training data;
[0062] S520, establishing a SVM classifier model;
[0063] In addition to the SVM classifier model using a linear kernel function, the present invention can also use an SVM model using a radial basis kernel function.
[0064] S530: Use the training data to train the SVM classifier model to obtain a trained SVM classifier model.
[0065] The classification effect of the present invention is explained below through simulation.
[0066] refer to Figure 2 and Figure 3 , Figure 2 Comparison of the classification results of this algorithm (left), the classification algorithm based on pixel spectrum (middle) and the reference image (right) when the training samples account for 5% of the pixels. Figure 3 This is a heat map of the classification accuracy changing with the regularization parameter when the training samples account for 5% of the pixels. Figure 2 It can be concluded that the classification result obtained by the present invention can classify the pixels in the neighborhood into the same class, which greatly suppresses the generation of noise categories and is closer to the reference image than the classification result based on the pixel spectrum. Figure 3 The results show that the classification accuracy of the algorithm changes with the model parameters. Figure 3 The results in the lower left corner show that the range of suitable parameter values is wider and parameter selection is easier.
[0067] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.
Claims
1. A hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing, characterized in that: include: S100, obtaining a hyperspectral image Y to be classified, an applicable spectral library A, and category labels of some pixels in the spectral library A, wherein the spectral library A includes spectral features of a plurality of basic substances, and the pixel spectrum of the hyperspectral image is composed of spectral features of the basic substances in the spectral library A, and the composition coefficient is represented by an abundance matrix X; S200, pruning the spectral library A according to the hyperspectral image Y to obtain a spectral library subset A1 matching the hyperspectral image Y; S300, constructing a spatial-spectral collaborative sparse unmixing model using the spectral library subset A1, and solving its sub-pixel representation {A1, X}; S400, extracting non-zero rows of the abundance matrix X in the sub-pixel representation {A1, X}, and recombining them to obtain sub-pixel representation information X1; S500, training a preset SVM classifier model using any column of the sub-pixel representation information X1 and the category label corresponding to the column; S600 , using the trained SVM classifier model, classify the remaining columns in the sub-pixel representation information X1 to obtain category labels, and use them as classification results of corresponding pixels in the hyperspectral image Y.
2. The hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing according to claim 1 is characterized in that: S200 includes: S210, calculating a set of orthogonal bases E of the subspace where the hyperspectral image Y is located; S220, using the set of orthogonal bases E, calculating a projection operator P on the orthogonal complement space of the subspace where the hyperspectral image Y is located; S230, calculating the projection length of each end member in the spectrum library A on the projection operator P, and normalizing it according to a normalization formula to obtain a normalized projection length; S240, sorting the normalized projection lengths from small to large, and extracting the basic material spectra corresponding to the first k values to form a spectrum library subset A1.
3. The hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing according to claim 2 is characterized in that: The projection operator in S220 is expressed as: P=IE*E T Where I represents the identity matrix; The normalization formula in S230 is expressed as: Among them, α j represents the jth column in the spectral library A, ε j Represents the normalized projection length.
4. The hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing according to claim 1 is characterized in that: S300 includes: S310, introducing a row sparse regularization term and a neighborhood space regularization term for the abundance matrix X, and constructing an initial sparse demixing model using the spectral library subset A1; S320, introducing auxiliary variables Z1 and Z2 into the initial sparse unmixing model to obtain a spatial-spectral collaborative sparse unmixing model; S330, transforming the spatial-spectral collaborative sparse unmixing model using a Lagrange multiplier method to obtain a transformed model; S340, using the ADMM algorithm to iteratively solve the transformed model to obtain a sub-pixel representation {A1, X} of the hyperspectral image.
5. The hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing according to claim 4 is characterized in that: The initial demixing model in S310 is expressed as: Where, λ1 and λ2 are regularization parameters, q is the number of end members in the spectral library subset A1, represents the total variation term of the matrix X, where σ{ i } is the index set of neighboring pixels of pixel i, and the superscript T indicates transposition; The spatial-spectral collaborative sparse unmixing model in S320 is expressed as: X=Z1, X=Z2 The converted model in S330 is expressed as: Among them, U1 and U2 represent Lagrange multipliers, ρ>0 represents the regularization parameter, and the subscript F represents the Frobenius norm.
6. The hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing according to claim 1 is characterized in that: S400 includes: S410, extracting the abundance matrix X in the sub-pixel representation {A1, X}; S420, calculating the squares of the elements in the abundance matrix X, and summing them row by row to obtain a summed column vector S; S430, determining the row where the non-zero element in the column vector S is located, and recording its index vector as IdX; S440, extracting the row vector corresponding to the index vector Idx in the abundance matrix X, and recombining them to form sub-pixel representation information X1.
7. The hyperspectral image classification method based on spatial-spectral collaborative sparse unmixing according to claim 1 is characterized in that: S500 includes: S510, selecting the abundance vector corresponding to the training sample from the sub-pixel representation information X1, and pairing the corresponding category label with the abundance vector to form training data; S520, establishing a SVM classifier model; S530: Use the training data to train the SVM classifier model to obtain a trained SVM classifier model.
Citation Information
Patent Citations
Sparse unmixing method based on neighborhood spectrum weighting for hyperspectral images
CN103810715A
Hyperspectral image sparseness demixing method based on MFOCUSS and low-rank expression
CN105825227A
High-order tensor spectral image super-resolution reconstruction method based on spectral information fusion
CN115496662A
Method for classifying hyperspectral images on basis of adaptive multi-scale feature extraction model
US20230252761A1
