A hyperspectral image classification method based on node pyramid

Through the hyperspectral image classification method based on node pyramid, combined with graph convolutional neural network and hierarchical clustering algorithm, the resource consumption and accuracy problems caused by too many nodes in hyperspectral image classification are solved, and more efficient classification results are achieved.

CN114494755BActive Publication Date: 2024-09-06CHINA ACAD OF AEROSPACE AERODYNAMICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111598709.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-09-06
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

Existing hyperspectral image classification methods consume large amounts of resources when processing a large number of nodes, and it is difficult to ensure classification accuracy. Especially when the number of nodes is small, it is difficult to ensure classification accuracy, and there are problems such that scattered points are easily misclassified and training is time-consuming.

Method used

A hyperspectral image classification method based on node pyramid is adopted. By obtaining the graph node layer, a multi-level graph node layer is constructed, the graph convolutional neural network is used for classification, and the classification results at each level are integrated through majority voting, combined with hierarchical aggregation. Class algorithm shrinks the number of nodes and improves classification accuracy.

Benefits of technology

It improves the accuracy of image classification, solves the problems of easy classification of scattered points and time-consuming training, and improves the accuracy and efficiency of classification results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114494755B
    Figure CN114494755B
Patent Text Reader

Abstract

The present invention relates to a hyperspectral image classification method based on node pyramid, the steps include: for each foreground pixel in the hyperspectral image, take it as a node in the graph structure, take the spectral feature as the node feature, and construct the connection relationship between the nodes according to the similarity of the nodes, so as to obtain the bottom graph structure; cluster the nodes using the classic hierarchical clustering method to obtain N graph structures of different fine grains; classify the nodes of the N-level graph structures using the classic graph convolutional neural network respectively; and vote and correct the high-fine grain results based on the low-fine grain classification results. The present invention solves the problem that scattered points in the hyperspectral image with strip distribution are easy to be misclassified, and the problem of time-consuming training caused by too many nodes in the classification based on the graph network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a hyperspectral image classification method based on a node pyramid, and belongs to the technical field of hyperspectral image classification. Background Art

[0002] A graph is a concise, abstract and intuitive mathematical expression of objects and their relationships. Data with relationships—graph-structured data—is ubiquitous in many fields and has been widely used. With the emergence of large amounts of data, traditional graph algorithms have great limitations in solving some deep and important problems, such as node classification and link prediction. The graph neural network model takes into account the scale, heterogeneity and deep topological information of the input data, and shows convincing and reliable performance in mining deep effective topological information, extracting key complex features of data and realizing rapid processing of massive data, such as predicting the properties of chemical molecules, extracting relationships from texts, structural reasoning of graphics and images, link prediction and node clustering of social networks, network completion of missing information and prediction of drug interactions.

[0003] The excellent performance of graph neural networks has made various fields in the academic community want to use them to further improve related research, and the field of hyperspectral image classification is no exception. However, at present, the field of hyperspectral image classification simply uses pixels as nodes. Due to the large number of pixels, the corresponding graph structure is also relatively large, which consumes a lot of resources when using graph neural networks for learning. When the number of nodes is small, the classification accuracy is difficult to guarantee. Summary of the invention

[0004] The technical problem solved by the present invention is: to overcome the shortcomings of the prior art, propose a hyperspectral image classification method based on a node pyramid, perform classification based on layered graph nodes, obtain hierarchical classification results, combine multi-level classification results to maximize the image classification accuracy, solve the problem of easy misclassification of scattered points in hyperspectral images with strip distribution, and solve the problem of time-consuming training caused by too many nodes in classification based on graph networks.

[0005] The solution of the present invention is:

[0006] A hyperspectral image classification method based on node pyramid, comprising the following steps:

[0007] Step 1: Get the graph node layer with the largest number of nodes. Each node in this layer is a pixel to be classified and a marked pixel. The connection relationship of the nodes is determined by the K nearest neighbors in the feature space, and the node feature is the spectral curve.

[0008] Step 2: Based on the graph node layer in step 1, construct N levels of graph node layers;

[0009] Step 3: For each of the N-level graph structures, use the graph convolutional neural network classification algorithm to classify nodes;

[0010] Step 4: Integrate and optimize the classification results at N levels. By majority voting, fuse the classification results at each level, and use the classification results at the low-grained layer level as the basis for voting correction of the classification results at the high-grained layer level, so as to obtain the final classification results and improve the image classification accuracy.

[0011] Furthermore, in step 1, for a given hyperspectral image, background pixels are removed and each of the remaining foreground pixels is regarded as a node in the graph. The node feature is the spectral curve of the pixel corresponding to the node. The node connection relationship is determined by the K nearest neighbors of all its nodes in the feature space, that is, if the K nearest neighbors of node i include node j, the adjacency matrix Adj(i,j) is assigned a value of 1, otherwise it is 0, and an underlying node graph with M nodes is obtained.

[0012] Furthermore, step 2: for the graph node layer obtained in step 1, a hierarchical clustering algorithm is used to shrink the number of nodes to M / 2, that is, the original M nodes are clustered into M / 2 categories, and the node feature is the mean of the nodes in the next layer included; this process is repeated to obtain a node pyramid of N levels.

[0013] Furthermore, in step three, for each level, the classic graph convolutional network is used to train and test the graph convolution classifier, and finally N classification results can be obtained.

[0014] Furthermore, in step 4, the classification results of each level are integrated by majority voting, and the classification results of the lower fine-grained layer level are used as the voting correction basis for the classification results of the higher fine-grained layer level, so as to obtain the final classification results.

[0015] Furthermore, the hierarchical clustering algorithm steps include:

[0016] Starting from only one sample point in each category, merge them level by level, merging only two categories at each level, until all samples are classified into one category. During the clustering process, the similarity between categories is examined level by level, and the number of categories is determined in turn.

[0017] Furthermore, in the clustering process, the C unlabeled samples are divided into reasonable classes, at most C classes, that is, each sample is one class; at least one class can be divided, that is, all samples are one class.

[0018] Furthermore, the classification is performed step by step from category C to category 1, and a series of classification schemes with the number of categories decreasing from large to small are obtained. According to certain indicators, an appropriate classification scheme in the middle is selected as the clustering result.

[0019] The beneficial effects of the present invention compared with the prior art are:

[0020] The present invention adopts a method based on feature space K nearest neighbors to connect nodes. For the construction of higher-level node layers, a method based on hierarchical clustering is adopted to obtain the required number of node layers. Preliminary classification is performed based on node graphs at different levels, and these results are comprehensively optimized to further improve the classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 It is a schematic diagram of the process of the present invention;

[0022] Figure 2 This is an example diagram of a hierarchical clustering tree. DETAILED DESCRIPTION

[0023] The following steps specifically explain how to optimize the classification accuracy based on the node pyramid for semi-supervised classification of graph nodes. Figure 1 As shown:

[0024] Hyperparameter: N: number of layers of the graph node pyramid

[0025] K: The number of neighbors of each node

[0026] Step 1: Get the graph node layer with the largest number of nodes. Each node in this layer is the pixel to be classified and the labeled pixel. The connection relationship of the nodes is determined by the K nearest neighbors in the feature space, and the node feature is the spectral curve. For a given hyperspectral image, remove the background pixels and take each of the remaining foreground pixels, including those with and without labels, as a node in the graph. The node feature is the spectral curve of the pixel corresponding to the node. The node connection relationship is determined by the K nearest neighbors of all its nodes in the feature space, that is, if the K nearest neighbors of node i include node j, the adjacency matrix Adj(i,j) is assigned 1, otherwise it is 0. It is assumed that an underlying node graph with M nodes is obtained.

[0027] Step 2: For the graph node layer obtained in step 1, a hierarchical clustering algorithm is used to shrink the number of nodes to M / 2, that is, the original M nodes are clustered into M / 2 categories, and the node feature is the mean of the nodes in the next layer included; repeat this process to obtain an N-level node pyramid.

[0028] The steps of the hierarchical clustering algorithm involved in this step are as follows:

[0029] like Figure 2As shown in the figure, the hierarchical clustering method is: starting from only one sample point in each category, merging them level by level, merging only two categories at each level, until all samples are classified into one category in the end. In the clustering process, the similarity between categories is examined level by level, and the number of categories is determined in turn. In the clustering process, when C unlabeled samples are divided into some reasonable categories, in extreme cases, they can be divided into C categories at most, that is, each sample is one category; at least they can be divided into one category, that is, all samples are one category. Then, the category division can be carried out level by level from C category to 1 category, and a series of division schemes with a large number of categories are obtained, and then an appropriate division scheme in the middle is selected as the clustering result according to certain indicators.

[0030] a. Classify each object into one class, and get a total of C classes, each class contains only one object. The distance between classes is the distance between the objects they contain;

[0031] b. Find the two closest classes and merge them into one class, so the total number of classes is reduced by one;

[0032] c. Recalculate the distance between the new class and all old classes;

[0033] d. Repeat steps 2 and 3 until they are merged into one class that contains C objects.

[0034] Step 3: For each of the N levels of graph structures, a graph convolutional neural network classification algorithm is used to classify nodes, and finally N classification results can be obtained;

[0035] Step 4: Integrate and optimize the classification results at N levels. By majority voting, fuse the classification results at each level, and use the classification results at the low-grained layer level as the basis for voting correction of the classification results at the high-grained layer level, so as to obtain the final classification results, so as to maximize the image classification accuracy, solve the problem of easy misclassification of scattered points in the hyperspectral images with strip distribution, and the time-consuming training problem caused by too many nodes in the classification based on the graph network;

[0036] The present invention provides a hyperspectral image classification method based on a node pyramid, and the algorithm mainly includes four parts: the construction of the bottom node layer, the formation of the node pyramid, the training and testing of the node classification of different levels of graphs, and the mutual optimization of multi-level classification results. The construction of the bottom node layer and the node layer construction at each level are more critical, because the construction of the upper node layer is based on the top layer, so the accuracy of the bottom node layer is more important. For the construction of the bottom node layer, the present invention adopts a method based on the feature space K nearest neighbor to connect the nodes. For the construction of the higher-level node layer, the present invention adopts a method based on hierarchical clustering to obtain the required number of node layers. Preliminary classification based on node graphs of different levels and comprehensive optimization of these results can further improve the accuracy of classification.

[0037] Although the present invention has been disclosed as above in the form of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solution of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention shall fall within the protection scope of the technical solution of the present invention.

Claims

1. A hyperspectral image classification method based on node pyramid, characterized in that the steps include: Step 1: Get the graph node layer with the largest number of nodes. Each node in this layer is a pixel to be classified and a labeled pixel. The connection relationship of the nodes is determined by the K nearest neighbors in the feature space, and the node feature is the spectral curve. For a given hyperspectral image, remove the background pixels and take each of the remaining foreground pixels, including those with and without labels, as a node in the graph. The node feature is the spectral curve of the pixel corresponding to the node. The node connection relationship is determined by the K nearest neighbors of all its nodes in the feature space, that is, if the K nearest neighbors of node i include node j, the adjacency matrix Adj(i,j) is assigned 1, otherwise it is 0. It is assumed that a bottom node graph with M nodes is obtained. Step 2: Based on the graph node layer of step 1, a hierarchical clustering algorithm is used to shrink the number of nodes to M / 2, that is, the original M nodes are clustered into M / 2 classes, and the node feature is the mean of the nodes in the next layer. Repeat this process to obtain an N-level node pyramid and construct an N-level graph node layer. Step 3: For each of the N-level graph structures, a graph convolutional neural network classification algorithm is used to classify nodes, and finally the classification results at N levels can be obtained; Step 4: Integrate and optimize the classification results at N levels. By majority voting, fuse the classification results at each level, and use the classification results at the low-grained layer level as the basis for voting correction of the classification results at the high-grained layer level, so as to obtain the final classification results and improve the image classification accuracy.

2. The hyperspectral image classification method based on node pyramid according to claim 1 is characterized in that: The steps of the hierarchical clustering algorithm include: Starting from only one sample point in each category, merge them level by level, merging only two categories at each level, until all samples are classified into one category. During the clustering process, the similarity between categories is examined level by level, and the number of categories is determined in turn.

3. The hyperspectral image classification method based on node pyramid according to claim 2 is characterized in that: In the clustering process, C unlabeled samples are divided into reasonable classes, at most C classes, that is, each sample is one class; at least one class can be divided, that is, all samples are one class.

4. The hyperspectral image classification method based on node pyramid according to claim 3 is characterized in that: Classification is performed step by step from Class C to Class 1 to obtain a series of classification schemes with a decreasing number of categories. An appropriate classification scheme in the middle is selected as the clustering result based on certain indicators.