Subspace clustering wave band selection method and system associated with potential characteristics of sample
Through the subspace clustering method of sample latent feature correlation, combined with superpixel segmentation and Laplacian feature mapping, the problem of noise sensitivity and insufficient similarity consistency in hyperspectral remote sensing images is solved, efficient band selection is achieved, and A subset of bands with large amount of information and low redundancy is obtained.
Patent Information
- Application Number
- CN202410685741.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-17
AI Technical Summary
Existing subspace clustering band selection methods for hyperspectral remote sensing images are sensitive to noise, do not fully consider the consistency of similar samples in high- and low-dimensional spaces, and insufficiently utilize spatial information, resulting in incomplete band correlation assessment.
The subspace clustering method of sample latent feature correlation is used to construct the sample latent feature matrix through superpixel segmentation and Laplacian feature mapping. Combined with the low-rank subspace clustering model, subspace consistency constraints and band similarity constraints, the spectrum is designed The inter- and spatial measurement index is solved using the alternating direction multiplier method, a weight matrix is constructed for spectral clustering, and the band with the largest entropy of various clusters is selected as the final band subset.
It effectively captures the spatial structure and spectral correlation of the image, and obtains a subset of bands with large amount of information, low redundancy and high quality, which improves the performance of traditional methods and enhances the accuracy and stability of band selection.
Smart Images

Figure CN118657954A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of hyperspectral image dimensionality reduction, and in particular relates to a subspace clustering band selection method and system for sample potential feature association. Background Art
[0002] Hyperspectral remote sensing images contain continuous diagnostic spectra and rich spatial information. They have unparalleled advantages over other sensing technologies in the description of ground features and identification of species, and are widely used in military target identification, land resource utilization, disaster warning and other fields. Even though the research on hyperspectral remote sensing technology has made great progress, the high dimensionality, information redundancy and atlas integration of hyperspectral remote sensing images still pose great challenges to the subsequent analysis and interpretation of hyperspectral remote sensing images, such as heavy computational burden and Hughes phenomenon. Therefore, it is extremely necessary to reduce the dimensionality of hyperspectral remote sensing images.
[0003] At present, there are two dimensionality reduction methods for hyperspectral images: feature extraction and band selection. Feature extraction is to map the original data to a low-dimensional space through mathematical transformation, while band selection aims to select bands with more information and higher quality from all bands to form the final band subset. Compared with feature extraction, band selection can not only retain the original data and reflect the original physical meaning of the data, but also reduce the complexity of model reasoning and calculation, and has higher value in practical applications.
[0004] Existing band selection methods are mainly divided into five categories, namely, sorting-based methods, search-based methods, clustering-based methods, embedding learning-based methods, and sparse representation-based methods.
[0005] Band selection based on subspace clustering assumes that bands with similar reconstruction or representation capabilities are located in the same low-dimensional subspace, and each band only looks for data points in the subspace to represent itself. In recent years, many scholars have conducted extensive and in-depth research on band selection algorithms based on subspace clustering. Although the current band selection methods based on subspace clustering have made satisfactory progress, most algorithms do not consider the following issues: first, subspace clustering algorithms are sensitive to noise, and noise and anomalies in the data will have a negative impact on algorithm performance; second, similar samples in the original space should be similar in the low-dimensional subspace, but the existing clustering algorithms do not fully consider the consistency of similar samples in high-dimensional space and low-dimensional space; in addition, the rich spatial information of hyperspectral data is not fully utilized, resulting in incomplete band correlation evaluation. Summary of the invention
[0006] The purpose of the present invention is to propose a subspace clustering band selection method for sample potential feature association, which can fully capture the spatial structure and spectral correlation of the image, that is, accurately describe the complex similarity relationship between bands from multiple angles, and reasonably construct the local structure of the bands, so that the obtained band subset has large information volume, low redundancy and high quality.
[0007] In order to achieve the above object, the present invention adopts the following technical scheme:
[0008] The subspace clustering band selection method based on the potential feature association of samples includes the following steps:
[0009] Step 1. According to the distribution characteristics of the objects, superpixel segmentation technology and Laplace eigenmap are used to mine the key information of samples in the local area of the hyperspectral image, construct the sample potential feature matrix, and apply it to the low-rank subspace clustering model;
[0010] Step 2. Consider each sample potential feature in the sample potential feature matrix as a vertex, construct an adjacency graph to obtain the spatial information of sample potential features in different regions, and use the adjacency graph to define the subspace consistency constraint;
[0011] Step 3. Design spectral and spatial metrics to evaluate the similarity between bands, so as to correct the error caused by using a single metric to describe the similarity between bands, and use the local similarity of bands to define the similarity constraints between bands;
[0012] Step 4. Combining the low-rank subspace clustering model in step 1, the subspace consistency constraint in step 2, and the band similarity constraint in step 3, construct a subspace clustering model of sample potential feature association;
[0013] Step 5. Use the alternating direction multiplier method to solve the subspace clustering model of the sample potential feature association, obtain the coefficient matrix, and construct the weight matrix for spectral clustering, and take the band with the largest entropy of each cluster as the final band subset.
[0014] In addition, based on the subspace clustering band selection method of sample potential feature association, the present invention also proposes a subspace clustering band selection system of sample potential feature association adapted thereto, and its technical solution is as follows:
[0015] A subspace clustering band selection system for sample potential feature association, comprising:
[0016] The sample potential feature matrix extraction and low-rank subspace clustering module is used to mine the key information of samples in the local area of the hyperspectral image based on the distribution characteristics of the objects, using superpixel segmentation technology and Laplace feature mapping, construct the sample potential feature matrix, and apply it to the low-rank subspace clustering model;
[0017] The subspace consistency constraint module is used to regard each sample potential feature in the sample potential feature matrix as a vertex, construct an adjacency graph to obtain the spatial information of the sample potential features in different regions, and use the adjacency graph to define the subspace consistency constraint;
[0018] The band similarity constraint module is used to design spectral and spatial metrics to evaluate the similarity between bands, so as to correct the error caused by using a single metric to describe the similarity between bands, and define the band similarity constraint using the local similarity of the bands;
[0019] And the band subset selection module is used to combine the low-rank subspace clustering model, subspace consistency constraints and band similarity constraints to construct a subspace clustering model of sample potential feature association, solve the model to obtain the coefficient matrix, and construct a weight matrix for spectral clustering, and take the bands with the largest entropy of each cluster as the final band subset.
[0020] In addition, based on the above-mentioned subspace clustering band selection method for sample potential feature association, the present invention also proposes a computer device, which includes a memory and one or more processors;
[0021] The memory stores executable codes, and when the processor executes the executable codes, the executable codes are used to implement the steps of the subspace clustering band selection method for potential feature association of samples mentioned above.
[0022] In addition, based on the above-mentioned subspace clustering band selection method for sample potential feature association, the present invention also proposes a computer-readable storage medium on which a program is stored; when the program is executed by a processor, it is used to implement the steps of the above-mentioned subspace clustering band selection method for sample potential feature association.
[0023] The present invention has the following advantages:
[0024] As described above, the present invention relates to a subspace clustering band selection method for sample potential feature association. The method first combines entropy rate superpixel segmentation (ERS) and Laplace eigenmap to divide the hyperspectral image into non-overlapping superpixel blocks, then extracts sample key features from each region, and constructs a sample potential feature matrix to replace the original image; then the sample potential feature matrix is introduced into the subspace clustering model, and subspace consistency constraints, band similarity constraints and low-rank constraints are incorporated, so that the coefficient matrix of the constructed subspace clustering model SLFLRSC for sample potential feature association can maintain good spatial and spectral global and local structures during the optimization process; finally, the weight matrix constructed by the coefficient matrix is spectrally clustered, and the bands with the largest entropy of each cluster are used as representative bands to form the final band subset. The method of the present invention further improves the performance of the traditional band selection model based on subspace clustering, thereby fully capturing the spatial structure and spectral correlation of the image, so that the obtained band subset has a large amount of information, low redundancy and high quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a flow chart of the subspace clustering band selection method for sample potential feature association in an embodiment of the present invention;
[0026] Figure 2 It is a structural diagram of the subspace clustering band selection method for sample potential feature association in an embodiment of the present invention;
[0027] Figure 3 It is the OA line graph of the method of the present invention and the traditional band selection method on the Indian Pines data set;
[0028] Figure 4 The AOA histogram of the method of the present invention and the traditional band selection method on the Indian Pines dataset. DETAILED DESCRIPTION
[0029] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0030] Example 1
[0031] like Figure 1 As shown in FIG. 1 , the subspace clustering band selection method for sample potential feature association includes the following steps:
[0032] Step 1. According to the distribution characteristics of the ground objects, superpixel segmentation technology and Laplace eigenmap are used to mine the key information of samples in the local area of the hyperspectral image to construct a sample potential feature matrix, which is applied to the low-rank subspace clustering model LRSC to provide the model with reliable and high-quality source samples for reconstruction and achieve lightweight model.
[0033] First, according to the characteristics of similar pixel spectra in homogeneous regions of the image, the hyperspectral image X is divided into S superpixel blocks R with similar pixel spectra and no overlap in the blocks using entropy rate superpixel segmentation. s , to extract the image spatial structure information.
[0034] The homogeneous regions of the image refer to large connected regions that are adjacent in space and have the same or similar spectral characteristics.
[0035] Then, the Laplacian feature map is used to extract the s N included s Extract D key sample potential features from pixels to form a matrix Y s , Y s Represents the sth region R s That is, super pixel block R s The corresponding sample potential feature matrix.
[0036] Y s Each column of Defined as a latent feature, Y s Covers R s The key feature information of all samples in Y s Each line of Represents the band characteristics, For region R s The expression of the potential features of the D samples in the lth band.
[0037] in, L represents the number of bands of the hyperspectral image, and the sth region R s The sample potential feature matrix Y s For alternative region R s The overall pixel information within.
[0038] The sth region R s The extraction method of D key sample potential features is as follows:
[0039]
[0040] in, represents the identity matrix, For region R s The corresponding Laplace matrix, I represents the identity matrix, W s Represents R s The similarity matrix of is the degree matrix.
[0041] Indicates that in the sth region and The similarity.
[0042]
[0043] in, Depend on The k nearest neighbors of and Euclidean distance Determine, K1 is the number of nearest neighbors. From formula (2), we get: The smaller, that is and The smaller the distance between The larger the and The more similar.
[0044] Formula (1) hopes that the extracted sample potential features can retain more data structure information. Based on this, by calculating the Laplace matrix L s The eigenvalues and eigenvectors of are used to solve equation (1) to extract the potential features of the sample.
[0045] Since eigenvectors with smaller eigenvalues contain more data structure information, they are less affected by noise.
[0046] Basically, the eigenvector matrix Y corresponding to the first D smaller eigenvalues s It has the ability to represent all sample information in the entire area. Therefore, Y obtained by formula (1) s It can better preserve the key structural information of the data, with less noise and low sample dimension.
[0047] Combine each superpixel block R s The extracted sample potential feature matrix Y s , construct the final sample potential feature matrix as
[0048] In order to remove redundant pixel information and noise in the original data, i.e., the hyperspectral image X, speed up the processing speed of the model, and improve the accuracy of the model, the original hyperspectral image X is replaced by the sample potential feature matrix F and applied to the subspace clustering model:
[0049]
[0050] Among them, α represents the trade-off parameter, Z represents the coefficient matrix, represents the loss function, ||Z|| * is the nuclear norm of Z, is the element in the i1th row and j1th column of the coefficient matrix.
[0051] Step 2. Treat each sample potential feature as a vertex, construct an adjacency graph to obtain the spatial information of the potential features of samples in different regions, and use the adjacency graph to define the subspace consistency constraint.
[0052] Different superpixel patches and The same types of objects may be distributed in the same area, and the corresponding components of the potential features extracted from the same objects should be similar. The matrix F actually contains the similarity relationship information between the corresponding components of the potential features between homogeneous areas, but formula (3) does not make full use of the above characteristics. and The relationship between the potential features of each sample in the algorithm is considered, each potential feature of the sample is regarded as a vertex, and an adjacency graph is constructed to obtain the spatial information of the potential features of samples in different regions.
[0053] Each sample potential feature in the sample potential feature matrix is regarded as a vertex, and an adjacency graph is constructed to obtain the spatial information of sample potential features in different regions; the sample adjacency matrix The weights of the adjacency graph are stored, which express the similarity between the potential features of each key sample. and They correspond to the i2th and j2th rows of the sample potential feature matrix F, respectively. express and The similarity is expressed as follows:
[0054]
[0055] Among them, 1≤i2≤DS, 1≤j2≤DS, for The k nearest neighbors. f k f i2 K2 is the number of nearest neighbors.
[0056] Sample adjacency matrix W S It expresses the similarity between the potential features of each key sample. In order to make the similarity of the potential features of key samples in different regions in the original space consistent with that in the subspace, the subspace consistency constraint is defined as:
[0057]
[0058] Among them, λ1 is the equilibrium parameter, It is W S The corresponding Laplace matrix is defined as: L S =D S -W S .in It is W S The degree matrix of
[0059] Formula (5) can not only keep the similarity structure of the latent features consistent in the original space and the subspace, but also identify the low-quality bands with different representations on the corresponding components of the homogeneous latent features and reduce the weight of the band in the coefficient matrix Z.
[0060] Therefore, formula (3) is further optimized as follows:
[0061]
[0062] Formula (6) makes full use of the similarity information between the potential features of key samples in each region to constrain the consistency of the space, ensuring that the distance between similar sample potential features in the original space is as close as possible in the new subspace, so that Z maintains the local manifold structure of the hyperspectral image HSI.
[0063] Step 3. Design spectral and spatial metrics to evaluate the similarity between bands, correct the error caused by using a single metric to describe the similarity between bands, and use the local similarity of the bands to define the band similarity constraints.
[0064] Generally, bands with high similarity should have similar capabilities in image reconstruction, and the reconstruction capabilities of bands should be consistent with the adjacency relationship. Therefore, the present invention designs band similarity measurement indicators from the two levels of band spectrum and space, constructs a band spectrum-space local structure diagram to more finely determine the spectral similarity between bands, and enhances the correlation of related bands in low-dimensional subspace.
[0065] Euclidean distance is a commonly used spectral similarity measurement indicator, but this method has a large error, resulting in high similarity between bands that are far apart. In fact, the bands used for hyperspectral imaging are mainly located in the ultraviolet, visible light, near-infrared, and mid-infrared regions. Each band has its own unique spectral characteristics. Bands that are close should be more similar, and bands that are farther apart have greater spectral differences.
[0066] Therefore, in order to avoid the error caused by a single measurement index and reasonably measure the similarity between bands, the present invention considers the actual spatial distance between the two bands on the basis of the Euclidean distance, further improves the similarity measurement method between bands, evaluates the similarity between the two bands from the two aspects of spectral similarity and spatial proximity, and comprehensively defines the band adjacency matrix for:
[0067]
[0068] in, express and The similarity of and Corresponding to the i1th and j1th columns of the sample potential feature matrix F; K3 is the number of nearest neighbors; |·| is the absolute value operation.
[0069] It reflects the spectral distance between bands. The more similar the spectra of two bands are, the larger the value is. It measures the spatial distance between the two bands. The closer the wavelengths of the two bands are, the larger the value, and vice versa.
[0070] To this end, the band similarity constraint is defined for the coefficient matrix Z as:
[0071]
[0072] Among them, λ2 is the equilibrium parameter, and They correspond to the i1-th and j1-th rows of the coefficient matrix Z respectively.
[0073] It is W B The corresponding Laplace matrix is defined as: L B =D B -W B ;in, is the degree matrix;
[0074] Formula (8) comprehensively considers the spectral distance and actual spatial distance between bands, improves the accuracy of spectral similarity evaluation, and constrains Z to keep its adjacency relationship consistent with the original band during the solution process.
[0075] Step 4. Combining the low-rank subspace clustering model of step 1, the subspace consistency constraint of step 2, and the band similarity constraint of step 3, construct a subspace clustering model of sample potential feature association, such as Figure 2 shown.
[0076] Specifically, the key potential features of samples are extracted from each region through entropy rate superpixel segmentation and Laplace mapping to construct a feature matrix with lower dimension. On this basis, subspace consistency constraints and band similarity constraints are designed, and the low-rank constraints are combined to guide the subspace clustering model to follow the spectral-spatial global and local characteristics of the image in the process of solving the coefficient matrix.
[0077] The objective function of the subspace clustering model of sample potential feature association is shown in formula (9):
[0078]
[0079] The first term in formula (9) is the residual term, which describes the error between F and the original spatial data after being projected into the low-dimensional space, and constrains Z to retain most of the information of F as much as possible. The second term in formula (9) uses the nuclear norm to ensure that Z has a low-rank characteristic, and removes redundant band information in Z from a global perspective. The third and fourth terms in formula (9) add subspace consistency constraints and band similarity constraints respectively, so that the final coefficient matrix Z follows the band correlation relationship under the distribution characteristics of the ground objects. In summary, this model forces Z to develop in the direction of sparseness, consistency of reconstruction ability and adjacency, and weakening of the weight of low-quality bands.
[0080] Step 5. Use the alternating direction multiplier method to solve the subspace clustering model of the sample potential feature association, obtain the coefficient matrix, and construct the weight matrix for spectral clustering, and take the band with the largest entropy of each cluster as the final band subset.
[0081] The alternating direction multiplier method ADMM is used to solve the objective function. The solution process is as follows:
[0082] Step 5.1. First, introduce the auxiliary variable J to obtain the Lagrangian form of the objective function:
[0083]
[0084] Where A is the Lagrange multiplier and μ is the penalty parameter. Formula (10) is decomposed into the following three sub-problems for solution:
[0085] Step 5.2. Pay attention to the formula containing J in formula (10):
[0086]
[0087] After calculation, formula (11) is converted to:
[0088]
[0089] Introducing the soft threshold operator Its expression is as follows:
[0090] represents the singular values in the diagonal matrix Σ, and δ represents the threshold.
[0091] Using the singular value contraction algorithm to solve formula (10), we get J at the n+1th iteration: (n+1) The solution is:
[0092]
[0093] Among them, Z (n) +(1 / μ (n) )A (n) After singular value decomposition, we get UΣVT ,Right now:
[0094] Z (n) +(1 / μ (n) )A (n) =UΣV T ;
[0095] Among them, Z (n) Represents the coefficient matrix Z at the nth iteration.
[0096] μ (n) represents the penalty parameter at the nth iteration, A (n) represents the Lagrange multiplier at the nth iteration; the column vectors of U and V are left singular vectors and right singular vectors respectively, and Σ is the number containing singular values The diagonal matrix of .
[0097] Step 5.3. Pay attention to the formula containing Z in formula (10):
[0098]
[0099] Taking the derivative of Z from equation (14) and setting it to zero, we get the following equation:
[0100] -2F T F+2F T FZ+A+μZ-μJ+2λ1F T L S FZ+2λ2L B Z=0 (15)
[0101] At the n+1th iteration, Z (n+1) The solution is:
[0102] Z (n+1) =[(-2F T F+μ+2λ1F T L S F+2λ2L B ) -1 (2F T FA (n) +μ (n) J (n) )] + (16)
[0103] Where [x] + =max(x,0).
[0104] Step 5.4. The Lagrange multiplier A and penalty parameter μ are updated as:
[0105] A (n+1) =A (n) +μ (n) (Z(n) -J (n) ) (17)
[0106] μ (n) =min(ρμ (n) ,μ max ) (18)
[0107] Among them, μ max =1e 2 is the maximum penalty parameter set artificially, ρ is the growth parameter, ρ>1; iterate continuously until the objective function value obj satisfies |obj (n+1) -obj (n) | / obj (n) The algorithm stops when <ε or reaches the maximum number of iterations, where ε is the minimum value; obj (n+1) represents the objective function value at the n+1th iteration, obj (n) Represents the objective function value at the nth iteration.
[0108] According to the required number of bands n BS The weight matrix Perform spectral clustering to form n BS A cluster of classes.
[0109] Finally, F is divided from the perspective of bands according to the bands contained in each cluster, and the band with the largest entropy in each cluster is selected as the representative band of the cluster, forming a band subset with large information content and low redundancy.
[0110] In addition, in order to verify the effectiveness of the method proposed in the present invention, the following specific experiments are also given:
[0111] 1. Select sample data. The Indian Pines hyperspectral data comes from the Indian State Experimental Area in the United States and is taken by the Airborne Visible Infrared Imaging Spectrometer (AVIRIS).
[0112] The image contains 220 bands, covering the spectral range from 0.4μm to 2.5μm.
[0113] The image contains 145×145 pixels and 16 types of target objects, including no-till corn, tillage soybeans, and forests. The dataset contains a total of 21,025 pixels, of which 10,249 are target pixels and 10,776 are background pixels.
[0114] 2. Experimental setup. This embodiment uses 8 advanced band selection methods and compares them with the method of the present invention on the Indian Pines hyperspectral dataset to verify the superiority of the method of the present invention. The comparison methods include: uniform band selection UBS, maximum variance principal component analysis MVPCA, optimal neighborhood reconstruction ONR, adaptive subspace partitioning strategy ASPS_MN, enhanced fast density peak clustering E-FDPC, optimal clustering framework OCF, spectral clustering RMGF based on regional multi-graph fusion of spectrum-space weighting, and sparse principal component analysis and adaptive multi-graph learning SPCA-AMGL. At the same time, the classifier support vector machine SVM is used to carry out classification experiments on the band subsets selected by each band selection algorithm, and the overall accuracy OA is used to evaluate the performance of the band selection. 10% of the samples are randomly selected as the training set, and the remaining data is used for testing.
[0115] In order to test the effectiveness and stability of each method, the number of selected bands was set to 5 to 50 with a step size of 5. All experiments were averaged 5 times to avoid the randomness of the results. All experiments were run on a PC (Personal Computer) with an Intel Core i7-11800H@2.30GHz CPU (Central Processing Unit) and 16GB RAM (Random Access Memory).
[0116] 3. Parameter analysis. There are four parameters in the model, α, λ1, λ2 and S, that need to be discussed. α, λ1 and λ2 are used to balance the weights of low-rank constraints, subspace consistency constraints and band similarity constraints in the objective function, respectively. S is used to adjust the superpixel segmentation scale and determine the image spatial structure. A grid search is performed on the parameters α, λ1 and λ2 in the range of {0.001, 0.01, 1, 100} and on S in the range of {10, 100}. SVM is selected as the classifier and OA is used as the evaluation criterion to study the influence of each parameter value on the final classification performance. According to OA, the optimal parameter sets corresponding to the three data sets are finally determined to be {0.001, 1, 100, 100}, {0.01, 1, 1, 10} and {1, 0.01, 100, 10} respectively.
[0117] 4. Experimental results. To verify the effectiveness of the method of the present invention, Figure 3 The average OA value after 5 classifications of each band selection method with different numbers of bands in the hyperspectral dataset Indian Pines is shown.
[0118] Among them, SLFLRSC achieved the best results under different numbers of bands. E-FDPC and SPCA-AMGL performed poorly and were at the lower end. UBS, MVPCA, ONR, ASPS_MN, and RMGF were stable, but not outstanding. OCF performed well but was unstable, and the OA value dropped significantly when the number of bands exceeded 30. When more bands were selected, the advantage of SLFLRSC was more obvious. When the band subset size was 50, SLFLRSC was about 6.72% ahead of the second-best method ONR.
[0119] In order to further verify the stability of SLFLRSC, Figure 4 The average AOA values of each band selection method in 10 band subsets with a band number ranging from 5 to 50 and a step size of 5 in the hyperspectral dataset Indian Pines are shown.
[0120] Among them, SLFLRSC has the highest average OA value, i.e. AOA value, which is 2.35% higher than the second best method ONR. This shows that when the number of required bands is different, the bands selected by SLFLRSC have good performance.
[0121] The above experiments show that the method proposed in the present invention is superior to other comparative methods and exhibits good and stable performance.
[0122] Example 2
[0123] This embodiment 2 describes a subspace clustering band selection system for sample potential feature association, which is based on the same inventive concept as the subspace clustering band selection method for sample potential feature association in embodiment 1.
[0124] Specifically, the subspace clustering band selection system for the potential feature association of the sample includes the following modules:
[0125] The sample potential feature matrix extraction and low-rank subspace clustering module is used to mine the key information of samples in the local area of the hyperspectral image based on the distribution characteristics of the objects, using superpixel segmentation technology and Laplace feature mapping, construct the sample potential feature matrix, and apply it to the low-rank subspace clustering model;
[0126] The subspace consistency constraint module is used to regard each sample potential feature in the sample potential feature matrix as a vertex, construct an adjacency graph to obtain the spatial information of the sample potential features in different regions, and use the adjacency graph to define the subspace consistency constraint;
[0127] The band similarity constraint module is used to design spectral and spatial metrics to evaluate the similarity between bands, so as to correct the error caused by using a single metric to describe the similarity between bands, and define the band similarity constraint using the local similarity of the bands;
[0128] And the band subset selection module is used to combine the low-rank subspace clustering model, subspace consistency constraints and band similarity constraints to construct a subspace clustering model of sample potential feature association, solve the model to obtain the coefficient matrix, and construct a weight matrix for spectral clustering, and take the bands with the largest entropy of each cluster as the final band subset.
[0129] It should be noted that, in the subspace clustering band selection system for sample potential feature association, the implementation process of the functions and effects of each functional module is specifically described in the implementation process of the corresponding steps in the method in Example 1, and will not be repeated here.
[0130] Example 3
[0131] This embodiment 3 describes a computer device, which includes a memory and one or more processors.
[0132] An executable code is stored in the memory. When the processor executes the executable code, it is used to implement the steps of the subspace clustering band selection method for sample potential feature association in the above-mentioned embodiment 1.
[0133] In this embodiment, the computer device is any device or apparatus with data processing capability, which will not be described in detail here.
[0134] Example 4
[0135] This embodiment 4 describes a computer-readable storage medium on which a program is stored. When the program is executed by a processor, it is used to implement the steps of the subspace clustering band selection method for sample potential feature association.
[0136] The computer-readable storage medium can be an internal storage unit of any device or apparatus with data processing capabilities, such as a hard disk or memory, or an external storage device of any device with data processing capabilities, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), an SD card, a flash card, etc. equipped on the device.
[0137] Of course, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiments. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field under the guidance of this specification fall within the essential scope of this specification and should be protected by the present invention.
Claims
1. The subspace clustering band selection method based on the potential feature association of samples is characterized by: The steps include: Step 1. According to the distribution characteristics of the objects, superpixel segmentation technology and Laplace eigenmap are used to mine the key information of samples in the local area of the hyperspectral image, construct the sample potential feature matrix, and apply it to the low-rank subspace clustering model; Step 2. Consider each sample potential feature in the sample potential feature matrix as a vertex, construct an adjacency graph to obtain the spatial information of sample potential features in different regions, and use the adjacency graph to define the subspace consistency constraint; Step 3. Design spectral and spatial metrics to evaluate the similarity between bands, so as to correct the error caused by using a single metric to describe the similarity between bands, and use the local similarity of bands to define the similarity constraints between bands; Step 4. Combining the low-rank subspace clustering model in step 1, the subspace consistency constraint in step 2, and the band similarity constraint in step 3, construct a subspace clustering model of sample potential feature association; Step 5. Use the alternating direction multiplier method to solve the subspace clustering model of the sample potential feature association, obtain the coefficient matrix, and construct the weight matrix for spectral clustering, and take the band with the largest entropy of each cluster as the final band subset.
2. The subspace clustering band selection method for sample potential feature association according to claim 1 is characterized in that: The step 1 is specifically as follows: According to the characteristics of similar pixel spectra in homogeneous areas of the image, the entropy rate superpixel segmentation is used to divide the hyperspectral image X into S superpixel blocks R with similar pixel spectra in the blocks and no overlap. s , to extract the image spatial structure information; Use Laplace eigenmap to map the superpixel blocks R s N included s Extract D key sample potential features from pixels to form a matrix Y s , Y s Represents the sth region R s That is, super pixel block R s The corresponding sample potential feature matrix; Y s Each column of Defined as a latent trait; Y s Each line of Represents the band characteristics, For region R s The expression of the potential features of D samples in the lth band; 1≤s≤S, 1≤d≤D, 1≤l≤L, where L represents the number of bands of the hyperspectral image; The sth region R s The extraction method of D key sample potential features is as follows: in, represents the identity matrix, For region R s The corresponding Laplace matrix, I represents the identity matrix, W s Represents R s The similarity matrix of is the degree matrix; 1≤i1≤L, 1≤j1≤L, Indicates that in the sth region and similarity; Combine each superpixel block R s The extracted sample potential feature matrix Y s , construct the final sample potential feature matrix as The original hyperspectral image X is replaced by the sample potential feature matrix F and applied to the subspace clustering model: Among them, α represents the trade-off parameter, Z represents the coefficient matrix, represents the loss function, ||Z|| * is the nuclear norm of Z, is the element in the i1th row and j1th column of the coefficient matrix Z.
3. The subspace clustering band selection method for sample potential feature association according to claim 2 is characterized in that: The step 2 is specifically as follows: Each sample potential feature in the sample potential feature matrix is regarded as a vertex, and an adjacency graph is constructed to obtain the spatial information of sample potential features in different regions; the sample adjacency matrix Used to store the weight of the adjacency graph, indicating the similarity between the potential features of each key sample, and defining and They correspond to the i2th and j2th rows of the sample potential feature matrix F, respectively. for and The similarity is expressed as follows: Among them, 1≤i2≤DS, 1≤j2≤DS, for k nearest neighbors; f k for The k nearest neighbors of , K2 is the number of nearest neighbors; the formula for defining the subspace consistency constraint using the adjacency graph is: Among them, λ1 is the equilibrium parameter, It is W S The corresponding Laplace matrix is defined as: L S =D S -W S ; It is W S The degree matrix of 4. The subspace clustering band selection method for sample potential feature association according to claim 3 is characterized in that: The step 3 is specifically as follows: Design band similarity measurement indicators from the two levels of band spectrum and space, construct the band spectrum-space local structure diagram to determine the spectral similarity between bands, and define the band adjacency matrix for: in, express and The similarity of and Corresponding to the i1th and j1th columns of the sample potential feature matrix F; K3 is the number of nearest neighbors; |·| is the absolute value operation; The adjacency relationship of the constraint coefficient matrix Z is consistent with the original band during the solution process; the band similarity constraint is defined as: Among them, λ2 is the equilibrium parameter, and They correspond to the i1th and j1th rows of the coefficient matrix Z respectively; It is W B The corresponding Laplace matrix is defined as: L B =D B -W B ; is the degree matrix, 5. The subspace clustering band selection method for sample potential feature association according to claim 4 is characterized in that: The step 4 is specifically as follows: Combining the low-rank subspace clustering model in step 1, the subspace consistency constraint in step 2, and the band similarity constraint in step 3, a subspace clustering model of sample potential feature association is constructed; The objective function of the subspace clustering model of sample potential feature association is shown in formula (7):
6. The subspace clustering band selection method for sample potential feature association according to claim 5, characterized in that: The step 5 is specifically as follows: The objective function is solved using the alternating direction multiplier method. The solution process is as follows: Step 5.
1. First, introduce the auxiliary variable J to obtain the Lagrangian form of the objective function: Where A is the Lagrange multiplier and μ is the penalty parameter. Formula (8) is decomposed into the following three sub-problems for solution: Step 5.
2. Pay attention to the formula containing J in formula (8): After calculation, formula (9) is converted to: Introducing the soft threshold operator Its expression is as follows: represents the singular value in the diagonal matrix Σ, and δ represents the threshold; Using the singular value contraction algorithm to solve formula (10), we get J at the n+1th iteration: (n+1) The solution is: Among them, Z (n) +(1 / μ (n) )A (n) After singular value decomposition, we get UΣV T , that is: Z (n) +(1 / μ (n) )A (n) =UΣV T ; Among them, Z (n) Represents the coefficient matrix Z at the nth iteration; μ (n) represents the penalty parameter at the nth iteration, A (n) represents the Lagrange multiplier at the nth iteration; the column vectors of U and V are left singular vectors and right singular vectors respectively, and Σ is the number containing singular values The diagonal matrix of ; Step 5.
3. Pay attention to the formula containing Z in formula (8): Taking the derivative of Z from formula (12) and setting it to zero, we get the following formula: -2F T F+2F T FZ+A+μZ-μJ+2λ1F T L S FZ+2λ2L B Z=0 (13) At the n+1th iteration, Z (n+1) The solution is: Z (n+1) =[(-2F T F+μ+2λ1F T L S F+2λ2L B ) -1 (2F T FA (n) +m (n) J (n) )] + (14) Where [x] + =max(x,0); Step 5.
4. The Lagrange multiplier A and penalty parameter μ are updated as: AND (n+1) =A (n) +μ (n) (FROM (n) -J (n) ) (15) m (n) =min(ρμ (n) ,m max ) (16) Among them, μ max =1e 2 is the maximum penalty parameter set, ρ is the growth parameter, ρ>1; iterate continuously until the objective function value obj satisfies |obj (n+1) -obj (n) | / obj (n) The algorithm stops when <ε or reaches the maximum number of iterations, and ε is the minimum value; obj (n+1) represents the objective function value at the n+1th iteration, obj (n) Represents the objective function value at the nth iteration; According to the required number of bands n BS The weight matrix Perform spectral clustering to form n BS Clusters of classes; Finally, F is divided from the perspective of bands according to the bands contained in each cluster, and the band with the largest entropy in each cluster is selected as the representative band of the cluster to form the final band subset.
7. A subspace clustering band selection system based on sample potential feature association, characterized in that: include: The sample potential feature matrix extraction and low-rank subspace clustering module is used to mine the key information of samples in the local area of the hyperspectral image based on the distribution characteristics of the objects, using superpixel segmentation technology and Laplace feature mapping, construct the sample potential feature matrix, and apply it to the low-rank subspace clustering model; The subspace consistency constraint module is used to regard each sample potential feature in the sample potential feature matrix as a vertex, construct an adjacency graph to obtain the spatial information of the sample potential features in different regions, and use the adjacency graph to define the subspace consistency constraint; The band similarity constraint module is used to design spectral and spatial metrics to evaluate the similarity between bands, so as to correct the error caused by using a single metric to describe the similarity between bands, and define the band similarity constraint using the local similarity of the bands; And the band subset selection module is used to combine the low-rank subspace clustering model, subspace consistency constraints and band similarity constraints to construct a subspace clustering model of sample potential feature association, solve the model to obtain the coefficient matrix, and construct a weight matrix for spectral clustering, and take the bands with the largest entropy of each cluster as the final band subset.
8. A computer device comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the processor executes the executable code, the steps of the subspace clustering band selection method for sample potential feature association as described in any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps of the subspace clustering band selection method for sample potential feature association as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Local similarity preserving-based hyperspectral image extreme learning machine clustering method
CN108197650A
Hyperspectral image band selection method based on over-complete depth low-rank subspace clustering
CN114220007A
Image processing method and device, electronic equipment and storage medium
CN115410002A
Spectrum-space hypergraph regularization sparse self-representation hyperspectral band selection method
CN115984113A
Local view auxiliary discrimination hyperspectral band selection method and system
CN116778339A
Cited By
Method for processing home care monitoring data of old patient with lung cancer
CN119230050A
Grain producing area identification method, device and equipment based on hyperspectral image
CN121330523A
