A hyperspectral image classification method based on multi-receptive field graph attention network

By combining superpixel segmentation and graph attention network in hyperspectral image classification, multi-scale local-global features are extracted, which solves the problem of traditional methods being unable to effectively utilize spatial information and insufficient labels, and achieves high-precision hyperspectral image classification.

CN114155443BActive Publication Date: 2024-09-24ROCKET FORCE UNIV OF ENG
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Hyperspectral image classification faces challenges such as lack of labels, high data dimensions, spectral similarity, and pixel mixing. Traditional machine learning and deep learning methods such as convolutional neural networks cannot effectively utilize spatial information and require a large number of training labels, making it impossible to learn labels and unknown Mark relationships between data.

Method used

The superpixel segmentation algorithm is used to refine local spatial features, combined with the graph attention network (GAT) to extract local-global adjacent node features and edge features, and the multi-scale receptive field graph attention network is used for feature fusion and pixel label prediction. Dimensional CNN and graph attention network are combined to construct multi-receptive field maps, reduce dimensionality and suppress noise, and extract deep spatial-spectral features.

Benefits of technology

Automatic feature extraction and classification of hyperspectral images is realized, with a classification accuracy rate of more than 93%. It is suitable for different data sets and significantly improves classification accuracy and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114155443B
    Figure CN114155443B
Patent Text Reader

Abstract

The present invention relates to a hyperspectral image classification method based on a multi-receptive field graph attention network. By using an unsupervised principal component analysis method and simple linear iterative clustering, the original hyperspectral image is accurately divided into adaptive local areas; a double-layer convolutional neural network is used to extract the spectral features of pixels to reduce the number of nodes that need to be calculated, and suppress the noise of the original hyperspectral image; a multi-receptive field graph based on a superpixel cube is constructed; a multi-feature attention module is used to extract local node features and edge features and a graph attention network is used to learn the important coefficients of the two features; a feature fusion attention module is used to fuse the node-edge features of each receptive field, and the features of the classification node are given. Finally, the image features are interpreted using the cross entropy loss to obtain the label of each pixel, so that the hyperspectral image can be correctly classified. Compared with the prior art, it can automatically extract hyperspectral features and complete classification, and the classification accuracy rate reaches more than 93%.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of geographic remote sensing technology, and in particular to a hyperspectral image classification method of a multi-receptive field graph attention network. Background Art

[0002] Hyperspectral images (HSI) are three-dimensional images taken by spacecraft equipped with hyperspectral imagers. Each pixel in the image contains reflectance information of hundreds of different bands, which makes it suitable for many practical applications, such as military target detection, mineral exploration, and agricultural production. The goal of hyperspectral image classification is to classify each pixel in the image into a specific label based on the sample characteristics, and these pixels can be represented by different image colors. In recent years, hyperspectral image classification has become an increasing research hotspot. However, lack of labels, high data dimensionality, spectral similarity, and pixel mixing have brought great challenges to hyperspectral image classification.

[0003] In the early stage, various machine learning classification methods were applied to HSI classification, such as support vector machine (SVM), k-nearest neighbor (KNN), naive Bayes, decision tree, and extreme learning machine (ELM). It is worth mentioning that SVM is one of the most representative and effective machine learning classification methods. With the development of support vector machine methods, support vector machine methods that use some kernel transformation techniques, such as multi-kernel learning and kernel support vector machine (KSVM), have been widely used. At the same time, sparse representation based classifiers (SRC) have also attracted more and more attention, and a large number of algorithms based on SRC classifiers have been proposed. However, the above methods are all based on the spectral characteristics of HSI, without considering the spatial information of HSI, and the classification performance is not ideal. In order to make full use of spatial information, some classifiers based on spectral-spatial information have also been studied, such as superpixel segmentation, morphological segmentation, and graph construction. However, traditional machine learning classification methods rely heavily on expertise and cannot learn deep features from HSI, such as the information disclosed in the paper “Spectral–spatial classification of hyperspectral images with a superpixel-based discriminativesparse model,” IEEE Trans. Geosci. Remote Sens., vol. 53, no. 8, pp. 4186–4201, Aug. 2015, by L. Fang, S. Li, X. Kang, and JA Benediktsson.

[0004] With the development of deep learning and the advancement of artificial intelligence (AI), deep learning methods have been widely used in natural language processing, computer vision, and intelligent decision-making. Inspired by the successful application of deep learning, many deep learning classifiers have been developed for HSI classification and have achieved excellent performance, such as stacked autoencoders (SAEs), recurrent neural networks (RNNs), and convolutional neural networks (CNNs). Compared with machine learning methods, deep learning classifiers are able to automatically learn the deep and complex features of HSI. Among the above deep learning methods, CNN has shown a bright future and has been widely used. In addition, with the development of deep learning, various CNN-based methods have been proposed, from one-dimensional CNN to three-dimensional CNN, from single CNN to hybrid CNN, and from shallow CNN to deep CNN. However, early CNN methods can only learn local spatial information and cannot extract deep spatial-spectral features of HSI, such as the article "CNN-based multilayerspatial-spectral feature fusion and sample augmentation with local and nonlocal constraints for hyperspectral image classification," IEEE J. Sel. Topics Appl. Earth Observ. Remote Sens., vol. 12, no. 4, pp. 1299-1313, Apr. 2019, published by J. Feng et al. To overcome these shortcomings, different forms of CNN methods have begun to emerge. Recently, some advanced CNN techniques, such as spectral-spatial attention networks and dynamic convolution kernels, have been explored to improve CNN-based methods. However, CNN requires a large number of training labels to train the network, which is inconsistent with the insufficient labels in HSI. Moreover, these advanced CNN deep learning models are designed for Euclidean data, and the intrinsic correlation between adjacent land covers is often ignored, making the above methods unable to learn the relationship between labeled and unlabeled data, such as disclosed in the paper "A CNN with multiscale convolution and diversified metric for hyperspectral image classification," IEEE Trans. Geosci. Remote Sens., vol. 57, no. 6, pp. 3599–3618, Jun. 2019, by Z. Gong, P. Zhong, Y. Yu, W. Hu, and S. Li.

[0005] Therefore, both traditional machine learning methods and convolutional neural networks in deep learning face certain limitations in hyperspectral classification. Summary of the invention

[0006] In order to overcome the limitations of convolutional neural networks in traditional machine learning methods and deep learning methods in hyperspectral classification, the purpose of the present invention is to provide a new hyperspectral image classification method based on a multi-scale receptive field map attention neural network.

[0007] The present invention and technical solutions are described as follows:

[0008] The basic concept of the present invention is to use a superpixel segmentation algorithm to refine the local spatial features of the original HSI in a convolutional neural network, provide a two-layer one-dimensional CNN to extract superpixels and automatically learnable spectral features, introduce graph edges and learn local semantic features of the graph in a graph attention network (GAT), provide a multi-scale receptive field GAT for extracting local-global adjacent node features and edge features, and finally use a graph attention network and a softMax function to perform multi-receptive feature fusion and pixel label prediction.

[0009] The present invention provides a technical solution for a multi-scale classification method of hyperspectral images combining a graph structure with a convolutional neural network, which has a superpixel cube to construct a multi-receptive field map and a convolutional neural network, and is characterized in that: by using an unsupervised principal component analysis (PCA) method and a simple linear iterative clustering (SLIC), the original HSI is accurately divided into adaptive local areas (superpixels); a double-layer 1D CNN is used to extract the spectral features of pixels to reduce the number of nodes that need to be calculated and suppress the noise of the original HSI; a multi-receptive field map based on a superpixel cube is constructed; a multi-feature attention module is used to extract local node features and edge features and a graphic attention network is used to learn the important coefficients of the two features; a feature fusion attention module is used to fuse the node-edge features of each receptive field, and the features of the classification node are given. Finally, the image features are interpreted using a cross entropy loss to obtain a label for each pixel, which specifically includes the following steps:

[0010] Step 1: Build a spectral-spatial conversion module

[0011] Given HSI cube I B ={x1,x2,…,x m},Include pixels, B bands, where H represents the spatial width and height of the hyperspectral image. To improve computational efficiency, the principal component analysis (PCA) method is used for dimensionality reduction, and the first principal component is selected to generate the reduced dimensionality image. There are m pixels and b bands, where b<<B and r represents dimensionality reduction. Then SLIC is used to divide the pixels into superpixels. The local superpixel HSI can be expressed mathematically as:

[0012]

[0013] in Indicates that it contains n i Superpixels of pixels, K is the total number of superpixels; pixels in a superpixel have strong spectral spatial correlation; in the method of the present invention, superpixels are used as nodes of a graph; by controlling the number of superpixels K, the scale of the graph can be controlled and the computational complexity of the algorithm can be reduced;

[0014] Step 2: Build the frequency domain conversion module:

[0015] Step 2.1: In order to extract discriminative and robust spectral features for the proposed method, a spectral transformer is provided, whose framework is as follows Figure 1 As shown; a two-layer 1×1 CNN kernel is used to extract the spectral value of a single pixel in each frequency band, and in the proposed method, the spectral feature vector of the pixel at spatial position p0 can be written as:

[0016]

[0017] Where p0 = (x, y) is the spatial position of the pixel in HSI, X i (p0) represents the spectral value of the pixel at the spatial position p0 in the i-th spectrum;

[0018] Step 2.2: Output characteristics of the convolutional layer at the bth spectral segment l for

[0019]

[0020] in and They are trainable weights (1×1 convolution kernel) and bias, σ(·) is the activation function, i.e., ReLU;

[0021] Step 2.3: To show the correspondence between pixels and superpixels, a correlation matrix is ​​constructed Specifically, M can be calculated as

[0022]

[0023] where x i isI BThe “flattening” (HSI) represents the flattening operation of the hyperspectral image in the spatial dimension: As described in equation (4), the mapping between spatial pixels and super pixels can be achieved.

[0024] Step 2.4: Finally, the average spectral feature of each superpixel is used as a node feature vector. The graph node feature can be mathematically expressed as

[0025]

[0026] Among them, H i is the eigenvector of the i-th node, N i represents the number of pixels contained in the superpixel, is the spectral feature vector of the pixel as shown in equation (2);

[0027] Step 3: Build a multi-feature attention module

[0028] The attention mechanism and multiple features are very important for extracting graph features. The multi-feature attention module is used to extract the features of neighbor nodes and edges. The multi-feature attention can be divided into three parts, namely neighbor node attention, edge attention, and feature fusion attention. The specific details of these three parts are as follows:

[0029] Step 3.1: Neighbor Node Attention

[0030] In order to aggregate the information of neighbor nodes, this module adopts a multi-layer graph attention mechanism to obtain the neighbor node attention coefficient of the classification node. The output of the lth convolutional layer can be calculated as

[0031]

[0032] After multiple layers of convolution, n i can be converted into the following form,

[0033]

[0034] Where ← represents the assignment symbol, i is the i-th hop neighbor of node n, K represents the number of neighbor nodes in the i-th hop neighbor of node n, Indicates n ik The important coefficient of n i is the neighbor node feature of the central node n. According to formula (6), n i It can be decomposed into the linear sum of adjacent node features;

[0035] Step 3.2: Side Attention

[0036] Edges contain rich semantic information. However, most graph attention networks only focus on the aggregation of adjacent nodes and lack the extraction of edge features. Inspired by the edge calculation in graph convolution, this step introduces the Gaussian distance a ij To define the relationship between nodes,

[0037]

[0038] where h i and h j represents the spectral characteristics of nodes i and j (calculated by equation (4)), and the Euclidean distance between two nodes is expressed as ||h i -h j || 2 , Indicates h j The set of t-hop neighbor nodes, γ represents the empirical set as 0.2;

[0039] Similar to formula (5), the output of the lth convolutional layer in the edge attention can be expressed as

[0040]

[0041] in represents the output of the l-1th convolutional layer in the side attention, represents the learning attention coefficient of the edge attention, a i Can be converted into

[0042]

[0043] where a i is the i-th hop edge feature of the central node n, Indicates a ik The important coefficient of

[0044] Step 3.3: Feature Fusion Attention

[0045] In order to comprehensively utilize the edge and node features, feature fusion attention is proposed to adaptively fuse the features extracted by the above attention module. The mathematical expression of n can be expressed as

[0046]

[0047] in and Represent the importance coefficients of adjacent nodes and edges respectively;

[0048] As mentioned above, the centroid node n can finally be expressed as

[0049]

[0050] where αi and β i Respectively represent n ik and a ik The weight coefficient of .

[0051] Step 4: Build a multi-receptive field module

[0052] In order to extract the global information of HSI, a multi-branch receptive field aggregation mechanism is designed; the multi-receptive field design mechanism is as follows Figure 1 As shown in Figure 2, the multi-receptive field module can avoid the negative impact of low-order hops and learn the long-range feature information of HSI. In branch s, the receptive field of node n can be formed as

[0053] R i (n) = R i-1 (n)∪R1 (12)

[0054] Where R1(n) is the set of 1-hop neighbors of node n, R0(n) = n; the characteristics of the central node n in branch i can finally be expressed as

[0055]

[0056] Where i is the i-th hop neighbor of node n;

[0057] Step 5: Feature Fusion Attention and Decision Module

[0058] Finally, graph attention is used to fuse multi-scale receptive field features. The output feature O of the center node n can be calculated as

[0059] O=σ(∑ i∈S e i ·W T n i ) (14)

[0060] where e i represents the important coefficient of the feature in branch i, S is the multi-scale number, W is the trainable weight, and σ is the activation function, i.e. LeakyReLU; in order to determine the label of each pixel, a softmax classifier is used to classify the output feature O, i.e.

[0061]

[0062] Step 6: Loss Function and Model Training

[0063] The cross entropy function is used to penalize the difference between the network output and the original labeled label, that is,

[0064]

[0065] where y Gis a set of labels; C represents the number of classes, Y zf is the training label matrix; end-to-end training is adopted, and Adam is used to update the invented network parameters;

[0066] In the present invention, three hyperparameters are set, namely, the number of superpixels K, the number of convolutional layers L of MFaM, the number of iterations T and the learning rate lr; the optimal hyperparameter settings are shown in Table 1.

[0067] Compared with the prior art, the present invention has the following advantages: first, a one-dimensional CNN is proposed to learn the spectral features of superpixels; second, graph edges are introduced into GAT, and a feature fusion mechanism based on GAT is studied to represent the features of classification nodes by combining neighbor node information and edge information; third, a multi-scale receptive field mechanism is proposed to extract multi-scale local semantic features and learn local global spatial context information. The present invention can automatically extract hyperspectral features and complete classification. The classification accuracy reaches more than 93%. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 : Schematic diagram of the invention process of the hyperspectral image classification method based on the multi-receptive field graph attention network of the present invention.

[0069] The experiment of the present invention is to train the present invention in pytorch 1.8 on a computer with GeForce GTX 1080Ti 11G GPU and 3.70G Intel i9-10900K CPU. First, the original hyperspectral image is segmented into superpixels to extract the spectral features of each superpixel block; then a multi-receptive field graph with superpixels as nodes is constructed; then the graph node and edge features are extracted using a multi-feature attention module; finally, the image features are interpreted using cross entropy loss to obtain the label of each pixel and predict the node. DETAILED DESCRIPTION

[0070] The specific implementation modes of the present invention will now be described in further detail with reference to the accompanying drawings.

[0071] The method of the present invention consists of four parts: a spectral space transformation module for HSI preprocessing, a multi-receptive field graph construction module for spectral space feature extraction, a multi-feature attention module, a feature fusion attention and decision module. The process of the method of the present invention is implemented as follows: first, by using the unsupervised principal component analysis (PCA) method and simple linear iterative clustering (SLIC), the original HSI is accurately divided into adaptive local areas (superpixels); a double-layer 1D CNN is used to extract the spectral features of the pixels to reduce the number of nodes that need to be calculated and suppress the noise of the original HSI; a multi-receptive field graph based on a superpixel cube is constructed; a multi-feature attention module is used to extract local node features and edge features and a graphic attention network is used to learn the important coefficients of the two features; a feature fusion attention module is used to fuse the node-edge features of each receptive field, and the features of the classification node are given. Finally, the image features are interpreted using the cross entropy loss to obtain the label of each pixel. As shown above, the HSI cube can be divided into superpixels by the spatial transformer. However, PCA dimension reduction loses the spectral information of HSI, that is, superpixels cannot fully extract the spectral features of HSI. The general method is to directly extract the spectral value of each pixel from the original HSI, and then calculate the spectral average of the pixels in the super pixel. This method is simple and intuitive, but it cannot suppress and eliminate the noise of the original HSI through network training.

[0072] Table 1: Hyperparameter settings for different datasets

[0073]

[0074] Classification results:

[0075] The experiment was conducted on a computer with GeForce GTX 1080Ti 11G GPU and 3.70G Intel i9-10900K CPU, and the invention was trained in pytorch 1.8. The invention was used to classify on Pavia University, Salinas and Houston 2013 datasets, using overall classification accuracy (OA), average classification accuracy (AA) and Kappa coefficient (Kappa) as measurement indicators. Each test was run 10 times, and the average value was taken to obtain the result (OA: the proportion of all samples that were correctly classified; AA: the average proportion of each category that was correctly classified; Kappa: the consistency of the correct classification.)

[0076] Table 2: Experimental results of three standard datasets

[0077] Pavia University Salinas Houston 2013 OA (%) 98.62±0.76 98.65±0.28 94.87±0.76 AA(%) 98.38±0.92 99.05±0.15 95.70±0.52 Kappa 0.98 0.98 0.94

[0078] The results of the three standard data sets in Table 2 show that the present invention has a good classification effect on each data set, has good adaptability to different data sets, and achieves a very high classification accuracy.

Claims

1. A hyperspectral image classification method based on a multi-receptive field map attention network, with a superpixel cube constructing a multi-receptive field map and a convolutional neural network, characterized by: By using the unsupervised principal component analysis (PCA) method and simple linear iterative clustering (SLIC), the original hyperspectral image (HSI) is accurately divided into adaptive local areas; a two-layer 1D convolutional neural network (CNN) is used to extract the spectral features of pixels to reduce the number of nodes that need to be calculated and suppress the noise of the original HSI; a multi-receptive field map based on a superpixel cube is constructed; a multi-feature attention module is used to extract local node features and edge features, and a graph attention network is used to learn the important coefficients of the two features; the feature fusion attention module is used to fuse the node-edge features of each receptive field, and the features of the classification node are given. Finally, the image features are interpreted using the cross entropy loss to obtain the label of each pixel, which specifically includes the following steps: Step 1: Build a spectral-spatial conversion module Step 2: Build the frequency domain conversion module: Step 3: Build a multi-feature attention module Step 4: Build a multi-receptive field module Step 5: Feature Fusion Attention and Decision Module Step 6: Loss function and model training.

2. The hyperspectral image classification based on multi-receptive field graph attention network according to claim 1, characterized in that: The "construction of spectral-spatial conversion module" described in step 1 is specifically: Given HSI cube I B ={x1, x2, ..., x m },Include pixels, B bands, where H represents the spatial width and height of the hyperspectral image, respectively; In order to improve computational efficiency, the principal component analysis (PCA) method is used for dimensionality reduction, and the first principal component is selected to generate the dimensionality reduction image. There are m pixels and b bands, where b<<B and r represents dimensionality reduction. Then SLIC is used to divide the pixels into superpixels. The local superpixel HSI can be expressed mathematically as: in Indicates that it contains n i Superpixels of pixels, K is the total number of superpixels; pixels in a superpixel have strong spectral spatial correlation; superpixels are regarded as nodes of a graph; by controlling the number of superpixels K, the scale of the graph can be controlled and the computational complexity of the algorithm can be reduced.

3. The hyperspectral image classification based on multi-receptive field graph attention network according to claim 1, characterized in that: The "construction of frequency domain conversion module" described in step 2 is specifically: Step 2.1: In order to extract discriminative and robust spectral features for the proposed method, a spectral transformer is provided, which employs two layers of 1×1 CNN kernels to extract the spectral value of a single pixel in each frequency band, and in the proposed method, the spectral feature vector of the pixel at spatial position p0 can be written as: Where p0 = (x, y) is the spatial position of the pixel in HSI, X i (p0) represents the spectral value of the pixel at the spatial position p0 in the i-th spectrum; Step 2.2: Output characteristics of the convolutional layer at the bth spectral segment l for in and are trainable weights and biases, respectively, σ(·) is the activation function, i.e., ReLU; Step 2.3: To show the correspondence between pixels and superpixels, a correlation matrix is ​​constructed Specifically, M can be calculated as where x i isI B The i-th pixel of , “flattening” represents the flattening operation of the hyperspectral image in the spatial dimension, which can realize the mapping between spatial pixels and super pixels; Step 2.4: Finally, the average spectral feature of each superpixel is used as a node feature vector. The graph node feature can be mathematically expressed as Among them, H i is the eigenvector of the i-th node, N i represents the number of pixels contained in the superpixel, is the spectral feature vector of the pixel.

4. The hyperspectral image classification based on multi-receptive field graph attention network according to claim 1, characterized in that: In step 3, the "construction of multi-feature attention module" can be divided into three parts, namely neighbor node attention, edge attention and feature fusion attention; the specific details of these three parts are as follows: Step 3.1: Neighbor Node Attention In order to aggregate the information of neighbor nodes, this module adopts a multi-layer graph attention mechanism to obtain the neighbor node attention coefficient of the classification node. The output of the lth convolutional layer can be calculated as After multiple layers of convolution, n i can be converted into the following form, Where ← represents the assignment symbol, i is the i-th hop neighbor of node n, K represents the number of neighbor nodes in the i-th hop neighbor of node n, Indicates n ik The important coefficient of n i is the neighbor node feature of the central node n. According to formula (7), n i It can be decomposed into the linear sum of adjacent node features; Step 3.2: Side Attention Edges contain rich semantic information; however, most graph attention networks only focus on the aggregation of adjacent nodes and lack the extraction of edge features; inspired by the calculation of edges in graph convolution, this step introduces the Gaussian distance a ij To define the relationship between nodes, where h i and h j represents the spectral characteristics of nodes i and j, and the Euclidean distance between two nodes is expressed as ||h i -h j || 2 , Indicates h j The set of t-hop neighbor nodes, γ represents the empirical set as 0.2; The output of the lth convolutional layer in the side attention can be expressed as in represents the output of the l-1th convolutional layer in the side attention, represents the learning attention coefficient of edge attention, a i Can be converted into where a i is the i-th hop edge feature of the central node n, Indicates a ik The important coefficient of Step 3.3: Feature Fusion Attention In order to comprehensively utilize the edge and node features, feature fusion attention is proposed to adaptively fuse the features extracted by the above attention module. The mathematical expression of n can be expressed as in and Represent the important coefficients of adjacent nodes and edges respectively; the centroid node n can finally be expressed as where α i and β i Respectively represent n ik and a ik The weight coefficient of .

5. The hyperspectral image classification based on multi-receptive field graph attention network according to claim 1, characterized in that: The specific steps of "building a multi-receptive field module" described in step 4 are as follows: In order to extract the global information of HSI, a multi-branch receptive field aggregation mechanism is designed; the multi-receptive field module can avoid the negative impact of low-order hops and learn the long-range feature information of HSI; in branch s, the receptive field of node n can be formed as R i (n)=R i-1 (n)∪R1 (13) Where R1(n) is the set of 1-hop neighbors of node n, and R0(n) = n; The characteristics of the central node n in branch i can finally be expressed as where i is the i-th hop neighbor of node n.

6. The hyperspectral image classification based on multi-receptive field graph attention network according to claim 1, characterized in that: The "Feature Fusion Attention and Decision Module" described in step 5 is as follows: Finally, graph attention is used to fuse multi-scale receptive field features; the output feature O of the center node n can be calculated as O=σ(∑ i∈S e i ·W T n i ) (15) where e i represents the important coefficient of the feature in branch i, S is the multi-scale number, W is the trainable weight, σ is the activation function, i.e., LeakyReLU, and i is the i-th hop neighbor of node n; in order to determine the label of each pixel, a softmax classifier is used to classify the output feature O, i.e., 7. The hyperspectral image classification based on multi-receptive field graph attention network according to claim 1, characterized in that: The "loss function and model training" described in step 6 is as follows: The cross entropy function is used to penalize the difference between the network output and the original labeled label, that is, where y G is a set of labels; C represents the number of classes, Y zf is the training label matrix; end-to-end training is adopted, and Adam is used to update the network parameters.