Method for hyperspectral remote sensing scene classification
Through the multi-teacher-student distillation framework, the problem of low accuracy and efficiency in hyperspectral remote sensing scenario classification is solved, and higher classification accuracy and accuracy are achieved.
Patent Information
- Application Number
- CN202411070821.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-06
- Publication Date
- 2024-11-15
AI Technical Summary
The prior art has poor accuracy, low accuracy, low classification efficiency in hyperspectral remote sensing scene classification, and ignores global context information and long-distance dependencies, making it difficult to effectively utilize the null-spectral information of hyperspectral images.
Using a multi-teacher-student distillation framework, combining ECA-ResNET, Vision Transformer and SpectralFormer network architectures, the student model is constructed to improve classification performance through knowledge distillation technology.
It improves the accuracy, accuracy and efficiency of hyperspectral remote sensing scene classification, can better understand and characterize complex scenes, and improves the model's classification performance for hyperspectral images.
Smart Images

Figure CN118968173A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of hyperspectral remote sensing image processing, and in particular to a method for hyperspectral remote sensing scene classification. Background Art
[0002] As an important part of remote sensing image interpretation, scene classification aims to assign predefined scene labels to each image based on the visual information contained in the remote sensing image. Based on the huge amount of remote sensing image data and the efficient computing power of computers, scene classification has been widely used in urban and rural planning, environmental monitoring, and natural disaster detection in recent years.
[0003] The current remote sensing scene classification tasks are divided into two categories according to the feature extraction process: methods based on manual feature extraction and methods based on deep learning. The manual feature extraction method relies on the experience of researchers to design algorithms based on features such as color, shape and texture. Common algorithms include general search trees, local binary patterns, scale-invariant feature transforms, gradient histograms, etc. These methods have good interpretability, but they rely heavily on manual feature design and can only describe certain attributes. Therefore, many researchers use feature encoding methods for scene classification to improve the representation ability of features, such as visual word bag models and topic models. Although the above methods have certain semantic exploration capabilities, they are difficult to describe complex scenes with intra-class diversity and spatial distribution non-uniformity.
[0004] In addition, deep learning has the ability to mine the potential features of data and can express data efficiently and accurately, so it is widely used in remote sensing image scene classification. However, the methods in the prior art are mainly aimed at high-resolution remote sensing image scene classification, and the use of spectral information is insufficient. It is easy to cause confusion and misclassification in categories with similar visual attributes such as geometric structure, texture and color. Hyperspectral images have a "graph-spectrum integration" expression method. If the spatial features and spectral features are combined by analyzing the spectral differences of the images, the discrimination ability of earth observation technology on similar scenes can be effectively improved, thereby achieving more refined scene classification. However, although the attention mechanism of the prior art can focus on the spatial-spectral information of hyperspectral images, and the convolution module can focus on local areas, both ignore the global context information. On the other hand, although some methods in the prior art have improved the performance of hyperspectral scene classification to a certain extent, the method does not respond to the complex spatial layout for scene classification problems, ignores the long-distance dependencies in the image, and leads to insufficient classification precision and accuracy. Therefore, how to fully combine local information and global information and effectively utilize the spatial-spectral information of hyperspectral remote sensing images to accurately and precisely classify scenes is a problem that needs to be solved urgently. Summary of the invention
[0005] In view of the problems of the background technology, the present invention provides a method for hyperspectral remote sensing scene classification to solve the problems of poor accuracy, low precision and low classification efficiency in the prior art for hyperspectral remote sensing scene classification.
[0006] To achieve the purpose of the present invention, the present invention provides a method for hyperspectral remote sensing scene classification, the innovation of which is that it includes a data collection and processing module, a classification model training module and a hyperspectral remote sensing scene classification module; the method includes:
[0007] 1) collecting a plurality of hyperspectral remote sensing images of the same band, and then performing manual classification processing to obtain a plurality of scene classification data, and then inputting the plurality of scene classification data into a data collection and processing module;
[0008] 2) the data collection and processing module performs affine transformation, random flipping and channel transformation processing on the received multiple scene classification data to obtain multiple basic data, and the multiple basic data constitute a data set; the basic data used for model training in the data set is recorded as training data, and the basic data used for model accuracy testing in the data set is recorded as test data, all training data constitute a training set, and all test data constitute a test set; the training set is divided into m training subsets, each training subset includes at least 1 training data;
[0009] Then the data collection and processing module transmits the data set to the classification model training module;
[0010] 3) the classification model training module uses the received data set to obtain a scene classification deep learning model according to method 1; then the classification model training module transmits the scene classification deep learning model to the hyperspectral remote sensing scene classification module;
[0011] 4) The hyperspectral remote sensing scene classification module loads a scene classification deep learning model;
[0012] The hyperspectral remote sensing scene classification module can automatically classify new hyperspectral remote sensing scenes using the scene classification deep learning model;
[0013] The method 1 comprises:
[0014] The classification model training module uses the ECA-ResNET (Efficient Channel Attentiom-Residual Neural Network) network architecture to construct the first teacher model, uses the Vision Transfomer (deep learning model based on attention mechanism) network architecture to construct the second teacher model, uses the Spectral Former (spectral converter) network architecture to construct the third teacher model, and uses the VGG16 (Visual Geometry Group 16) deep convolutional neural network architecture to construct the student model; the first teacher model and the student model constitute the first teacher-student model, the second teacher model and the student model constitute the second teacher-student model, and the third teacher model and the student model constitute the third teacher-student model;
[0015] The classification model training module takes one training subset as a batch unit, and uses the training data of m training subsets to train and optimize the model under its jurisdiction batch by batch; the classification model training module uses each training subset to train and optimize the model under its jurisdiction according to method 2;
[0016] The second method comprises:
[0017] Assume that a training subset includes n training data, and assume that any one of the n training data is the i-th training data. The classification model training module selects training data from the training subset one by one to train and optimize the model under its jurisdiction. For the i-th training data, the following method is used:
[0018] 1) The three teacher models process the i-th training data respectively to obtain three corresponding first logic outputs; the student model processes the i-th training data to obtain the second logic output;
[0019] 2) For the three first logic outputs, the distillation temperature coefficients are selected as T 1 , T 2 and T 3 The three Softmax functions of are normalized respectively to obtain the first probability distribution output corresponding to the three teacher models; where T 1 , T 2 and T 3 All are set values, T 1 , T 2 and T 3 They correspond one to one with the first teacher model, the second teacher model and the third teacher model respectively;
[0020] For the second logic output, the distillation temperature coefficient is selected as T 4The Softmax function is normalized to obtain the second probability distribution output; the T 4 is the set value;
[0021] 3) Then use the Kldiv function to measure the gap between the three first probability distribution outputs and the second probability distribution outputs to obtain three distillation losses and
[0022] According to the scene classification true value corresponding to the training data, the three first logic outputs are compared with the scene classification true value respectively to obtain the three first cross entropy losses and Compare the second logistic output with the scene classification truth to get the second cross entropy loss
[0023] 4) According to formula 1, the three first model losses corresponding to the three teacher-student models are obtained respectively. and According to formula 2, the second model loss L corresponding to the student model is obtained. sec ; Then according to L sec The back propagation algorithm is used to optimize the parameters of the student model;
[0024] After completing the above steps 1) to 4) using all n training data of the training subset, the third model loss corresponding to the three teacher models is obtained according to formula 3: and Then, the back propagation algorithm is used to optimize the parameters of the three teacher-student models according to the losses of the three third models. The parameter optimization of a single teacher-student model includes the synchronous optimization of the corresponding teacher model and the student model.
[0025] The formula 1 is:
[0026]
[0027] Wherein, i is an integer from 1 to n, j is an integer from 1 to 3, and the three values of j, 1, 2 and 3, correspond to the first teacher model, the second teacher model and the third teacher model respectively; α is the distillation loss coefficient, α is the set value, and the value range of α is 0.1 to 0.5;
[0028] The formula 2 is:
[0029]
[0030] Among them, β is the weight coefficient of the teacher model, β is the set value, and the value range of β is 0.1~0.3;
[0031] The formula three is:
[0032]
[0033] The classification model training module uses m training subsets to complete the training of the model under its jurisdiction, and the student model obtained is recorded as the optimized student model. Then the classification model training module uses the test data of the test set to test the classification accuracy of the optimized student model: if the test accuracy meets the set requirements, the optimized student model is used as the scene classification deep learning model; if the test accuracy does not meet the set requirements, the classification model training module continues to use the latest L sec The back propagation algorithm is used to optimize the parameters of the optimized student model until the optimized student model converges to obtain a converged student model, and the converged student model is used as the scene classification deep learning model.
[0034] Furthermore, the T 1 =T 2 .
[0035] The principle of the present invention is as follows:
[0036] Since the scene classification task involves a huge amount of remote sensing image data, the computing power of the processing module is very high. In the existing technology, in order to improve the efficiency of hyperspectral remote sensing scene classification, the teacher-student distillation framework is often used. After the teacher model with complex parameters is trained and learned, the knowledge is transferred to the student model with fewer parameters and simpler structure through distillation technology, and the student model is used to process the scene classification. However, the traditional teacher-student distillation framework usually has a teacher model guiding the training of a student model. Since hyperspectral remote sensing images are semantically rich and contain multiple types of information, if a single teacher model is expected to extract multiple features at the same time, feature conflicts will occur and key information will be missing, resulting in limited knowledge and ability learned by the student model, and unable to solve the problems of insufficient understanding of the deep semantic information of hyperspectral remote sensing images and data redundancy caused by the large number of bands.
[0037] In the present invention, three teacher models are constructed by using an ECA-ResNET network architecture capable of extracting local features, a Vision Transformer network architecture capable of extracting global context information, and a SpectralFormer network architecture capable of extracting spectral features, respectively, and then a VGG16 network architecture with fewer parameters and a simpler structure is used to construct a student model. The three teacher models and the student model form a multi-teacher-student model framework. The method of the present invention first dynamically adjusts parameters to optimize the teacher model during training, and then uses knowledge distillation technology to integrate knowledge (including local information, global information, and spectral information) from different teacher sources, and guides the student model through multiple teacher models. The student model can merge and absorb various knowledge representations from multiple teacher models and construct a comprehensive knowledge system. Multiple teacher models complement each other, combining different knowledge to guide student models. Student models learn the advantages of multiple teacher models and abandon their shortcomings. The distilled student model can take into account the long-distance information, local detail information and spectral information of hyperspectral remote sensing images, and further improve its classification performance while maintaining a low time cost. This process aims to fully transfer the feature information of various levels and scales captured by the teacher model to the student model, so that the student model can better understand and characterize the hyperspectral remote sensing image, thereby improving the model's ability to understand complex scenes. Therefore, the student model obtained by the method of the present invention is used to classify hyperspectral remote sensing scenes, which can not only improve the classification efficiency, but also obtain excellent classification performance, and improve classification precision and accuracy.
[0038] It can be seen that the present invention has the following beneficial effects: the method described in the present invention can improve the precision, accuracy and efficiency of hyperspectral remote sensing scene classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings of the present invention are as follows.
[0040] Attached Figure 1 A schematic diagram of the network architecture of the classification model training module of the present invention;
[0041] Attached Figure 2 This is the result of the ablation experiment;
[0042] Attached Figure 3 It is the confusion matrix result diagram of the network of the present invention on the OHID-SC data set;
[0043] Attached Figure 4 This is the confusion matrix result diagram of the network of the present invention on the HSRS-SC dataset. DETAILED DESCRIPTION
[0044] The present invention will be further described below in conjunction with the embodiments.
[0045] The method for hyperspectral remote sensing scene classification described in the present invention involves hardware including a data collection and processing module, a classification model training module and a hyperspectral remote sensing scene classification module; the method includes:
[0046] 1) collecting a plurality of hyperspectral remote sensing images of the same band, and then performing manual classification processing to obtain a plurality of scene classification data, and then inputting the plurality of scene classification data into a data collection and processing module;
[0047] 2) the data collection and processing module performs affine transformation, random flipping and channel transformation on the received multiple scene classification data to obtain multiple basic data, and the multiple basic data constitute a data set; the basic data used for model training in the data set is recorded as training data, and the basic data used for model accuracy testing in the data set is recorded as test data, all training data constitute a training set, and all test data constitute a test set; the training set is divided into m training subsets, each training subset includes at least 1 training data; the training data contains the true value representing the scene label;
[0048] Then the data collection and processing module transmits the data set to the classification model training module;
[0049] 3) the classification model training module uses the received data set to obtain a scene classification deep learning model according to method 1; then the classification model training module transmits the scene classification deep learning model to the hyperspectral remote sensing scene classification module;
[0050] 4) The hyperspectral remote sensing scene classification module loads a scene classification deep learning model;
[0051] The hyperspectral remote sensing scene classification module can automatically classify new hyperspectral remote sensing scenes using the scene classification deep learning model;
[0052] The method 1 comprises:
[0053] As attached Figure 1 The classification model training module shown uses the ECA-ResNET network architecture to construct a first teacher model, uses the Vision Transfomer network architecture to construct a second teacher model, uses the SpectralFormer network architecture to construct a third teacher model, and uses the VGG16 network architecture to construct a student model; the first teacher model and the student model constitute a first teacher-student model, the second teacher model and the student model constitute a second teacher-student model, and the third teacher model and the student model constitute a third teacher-student model;
[0054] The classification model training module takes one training subset as a batch unit, and uses the training data of m training subsets to train and optimize the model under its jurisdiction batch by batch; the classification model training module uses each training subset to train and optimize the model under its jurisdiction according to method 2;
[0055] The second method comprises:
[0056] Assume that a training subset includes n training data, and assume that any one of the n training data is the i-th training data. The classification model training module selects training data from the training subset one by one to train and optimize the model under its jurisdiction. For the i-th training data, the following method is used:
[0057] 1) The three teacher models process the i-th training data respectively to obtain three corresponding first logic outputs; the student model processes the i-th training data to obtain the second logic output;
[0058] 2) For the three first logic outputs, the distillation temperature coefficients are selected as T 1 , T 2 and T 3 The three Softmax functions of are normalized respectively to obtain the first probability distribution output corresponding to the three teacher models; where T 1 , T 2 and T 3 All are set values, T 1 , T 2 and T 3 The first teacher model, the second teacher model and the third teacher model correspond to each other one by one. Among them, because the networks ECA-ResNET and Vision Transformer corresponding to the first teacher model and the second teacher model respectively extract local and global scene texture features, the feature types extracted by the two models have many common points. In order to reduce parameters and improve calculation efficiency, the distillation temperature of the two teacher models in this embodiment takes the same value, that is, T 1 =T 2 ;
[0059] For the second logic output, the distillation temperature coefficient is selected as T 4 The Softmax function is normalized to obtain the second probability distribution output; the T 4 is the set value;
[0060] 3) Then use the Kldiv function to measure the gap between the three first probability distribution outputs and the second probability distribution outputs to obtain three distillation losses and
[0061] According to the scene classification true value corresponding to the training data, the three first logic outputs are compared with the scene classification true value respectively to obtain the three first cross entropy losses and Compare the second logistic output with the scene classification truth to get the second cross entropy loss
[0062] 4) According to formula 1, the three first model losses corresponding to the three teacher-student models are obtained respectively. and According to formula 2, the second model loss L corresponding to the student model is obtained. sec ; Then according to L sec The back propagation algorithm is used to optimize the parameters of the student model;
[0063] After completing the above steps 1) to 4) using all n training data of the training subset, the third model loss corresponding to the three teacher models is obtained according to formula 3: and Then, the back propagation algorithm is used to optimize the parameters of the three teacher-student models according to the losses of the three third models. The parameter optimization of a single teacher-student model includes the synchronous optimization of the corresponding teacher model and the student model.
[0064] The formula 1 is:
[0065]
[0066] Wherein, i is an integer from 1 to n, j is an integer from 1 to 3, and the three values of j, 1, 2 and 3, correspond to the first teacher model, the second teacher model and the third teacher model respectively; α is the distillation loss coefficient, α is the set value, and the value range of α is 0.1 to 0.5;
[0067] The formula 2 is:
[0068]
[0069] Among them, β is the weight coefficient of the teacher model, β is the set value, and the value range of β is 0.1~0.3;
[0070] The formula three is:
[0071]
[0072] The classification model training module uses m training subsets to complete the training of the model under its jurisdiction, and the student model obtained is recorded as the optimized student model. Then the classification model training module uses the test data of the test set to test the classification accuracy of the optimized student model: if the test accuracy meets the set requirements, the optimized student model is used as the scene classification deep learning model; if the test accuracy does not meet the set requirements, the classification model training module continues to use the latest L sec The back propagation algorithm is used to optimize the parameters of the optimized student model until the optimized student model converges to obtain a converged student model, and the converged student model is used as the scene classification deep learning model.
[0073] The experiments of the present invention are described as follows:
[0074] The method described in the present invention is hereinafter referred to as MTDNet (Multi-teacher Knowledge Distillation Network for Hyperspectral Scene Classification based on Transformer), and the model used in the present invention is the MTDNet model.
[0075] All experiments were conducted on the public hyperspectral datasets of Orbita Hyperspectral Image Scene Classification Dataset (OHID-SC) and Hyperspectral Remote Sensing Dataset for Scene Classification (HSRS-SC). In the OHID-SC dataset, the image size is 64×64 pixels, the number of bands is 32, and it contains 6 ground object scene categories, namely urban and rural buildings, cultivated land, forests, mountains, unused land and water bodies, with a total of 2280 images. The image size of the HSRS-SC dataset is 256×256 pixels, the number of bands is 48, and it contains 5 ground object scene categories, namely farmland, buildings, urban buildings, unused areas and water bodies, with a total of 1385 images. 30% and 70% of the OHID-SC dataset and HSRS-SC dataset were randomly divided into training and test sets.
[0076] The hardware environment of this experiment is: AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx processor, NVIDIA TITAN RTX graphics card; the software environment is: Windows 10 operating system, Python 3.7 interpreter, Pytorch1.7.1 deep learning framework; the CUDA version is Cuda_10.1.
[0077] In this experiment, the k_size of the teacher model ECA_ResNet is set to [2, 2, 2, 2]; the patch_size of Vision Transformer is set to 16×16, and a pre-trained model is used; the num_patches of SpectralFormer is set according to the specific number of bands in the dataset, and the student model uses a pre-trained model and replaces the last few fully connected layers with one layer to reduce the number of parameters. In order to give full play to the performance of the graphics card and consider the size of the dataset, the experiments conducted on the HSRS-SC dataset and the OHID-SC dataset, batch_size (the same for training and testing) is set to 12, and the other parameter settings are shown in Table 1.
[0078] Table 1
[0079]
[0080] In order to explore the influence of distillation coefficient α, weight coefficient β and distillation temperature T on the overall classification accuracy of the model, this experiment designed a parameter sensitivity test on the OHID-SC dataset based on prior knowledge. Specifically, when exploring the optimal α in the first stage, the value interval is set to {0.1, 0.15, ..., 0.5}; when exploring the optimal T, the variation interval of T is set to {10, 15, ..., 55}; when exploring the optimal β, the weight coefficient is adjusted within the range of {0.1, 0.15, 0.2, 0.25, 0.3}, and the results are shown in Table 2.
[0081] Table 2
[0082]
[0083] The experimental results show that selecting appropriate α, β, and T can balance the importance of hard label knowledge, the final predicted soft label knowledge from different teacher models, and the performance of the student model, so that the overall classification accuracy of the model is optimized. According to the experimental results, the MTDNet model achieves the best classification accuracy when α = 0.3; β = 0.3; T = 25 / 25 / 35 is selected on the OHID-SC dataset.
[0084] In order to evaluate the effectiveness of each component in the MTDNet model, single teachers ECA_ResNet (T1), ViT (T2), SpectralFormer (T3), two teachers' combined models ECA_ResNet-ViT (T1-T2), ViT-SpectralFormer (T2-T3), ECA_ResNet-SpectralFormer (T1-T3) were selected to carry out ablation experiments using the algorithm of the present invention. The following results were obtained based on a 30% training ratio: Figure 2 The overall accuracy result diagram of Figure 2 From the results, we can observe that the classification effect of the joint model of two teachers is better than that of a single teacher model, because the feature type extracted by a single teacher model is single and may be affected by the teacher's own specific preferences or errors, resulting in inflexibility and incompleteness when facing complex and diverse tasks. The knowledge provided by the two teachers cannot cover all feature categories, resulting in the student model being unable to learn a comprehensive knowledge representation from it, so the classification effect is not as good as the MTDNet algorithm. Since the MTDNet algorithm makes full use of the complementarity between different teacher models, by combining multiple knowledge sources and integrating the strengths of different teachers, the model is more stable. Especially for unique spectral information, the MTDNet algorithm can effectively utilize them to optimize the scene classification results, improve the overall performance, and even surpass the teacher model in classification accuracy.
[0085] In order to verify the classification performance of the MTDNet model, this experiment selected five classic convolutional neural networks: GoogleNet, ResNet18, ShuffleNet, MobileNet, and VGG16; advanced scene classification networks SKAL-G, SKAL-V, ARCNet-R, MF2CNet, SE_ResNeXt, GCSANet, and LGDLKD; and fine-tuned other comparison models except the LDGLKD model (adding a convolutional layer of size 1×1 before the first layer of the model to convert the number of hyperspectral image channels to three channels) to adapt to the hyperspectral image data input for comparative experiments. In order to be consistent with the MTDNet model, the experiments conducted on the OHID-SC dataset used pre-training for the comparison models. The experimental results are shown in Table 3.
[0086] Table 3
[0087]
[0088] On the OHID-SC dataset and HSRS-SC dataset, the MTDNet model transfers the local information, long-distance dependency information and spectral information extracted by the teacher models ECA_ResNet, ViT and SpectralFormer to the student model through knowledge distillation. The student model after distillation takes into account spectral information, long-distance dependency information and local detail information at the same time, and has the best classification accuracy. Compared with other comparison models, its overall classification accuracy has been improved by more than 4.38% and 0.32% respectively.
[0089] In order to verify the computational efficiency of the MTDNet model, the test time and parameter amount of each comparison model and the MTDNet model on the OHID-SC dataset and HSRS-SC dataset are compared. The results are shown in Table 4.
[0090] Table 4
[0091]
[0092] Compared with the latest scene classification algorithms, MTDNet shows excellent classification performance on the OHID-SC and HSRS-SC datasets in terms of classification accuracy, running time, and number of parameters. The MTDNet algorithm dynamically adjusts parameters to optimize the teacher network during training, and then integrates knowledge from different teacher sources, including local information, global information, and spectral information, through knowledge distillation. This process aims to fully transfer the feature information of various levels and scales captured by the teacher model to the student network, so as to better understand and characterize hyperspectral remote sensing images, thereby improving the model's ability to understand complex scenes. Taking into account the classification accuracy and computational time, the MTDNet proposed in this paper not only has high classification accuracy but also has good computational efficiency.
[0093] In order to intuitively evaluate the classification error of the MTDNet model for different categories, the classification results of the MTDNet model on the OHID-SC dataset and the HSRS-SC dataset are displayed using confusion matrices. Figure 3 , 4 As shown. In the OHID-SC dataset, both the "mountain" and "forest" scenes are covered by vegetation and have similarities in visual and spectral information, but the MTDNet model can still achieve 88% and 93% classification accuracy for these two categories of scenes, which has good separability. The classification accuracy of the other four scene categories exceeds 96%. In the HSRS-SC dataset, except for the "building" scene, the classification accuracy of the other four scene categories is above 98%.
[0094] The deep learning, ECA-ResNET network, Vision Transfomer network, SpectralFormer network, VGG16 network, etc. used in the present invention are all very common processing methods in the prior art. Those skilled in the art can obtain relevant content from relevant literature of the prior art.
Claims
1. A method for hyperspectral remote sensing scene classification, characterized in that: It includes a data collection and processing module, a classification model training module and a hyperspectral remote sensing scene classification module; the method includes: 1) collecting a plurality of hyperspectral remote sensing images of the same band, and then performing manual classification processing to obtain a plurality of scene classification data, and then inputting the plurality of scene classification data into a data collection and processing module; 2) the data collection and processing module performs affine transformation, random flipping and channel transformation processing on the received multiple scene classification data to obtain multiple basic data, and the multiple basic data constitute a data set; the basic data used for model training in the data set is recorded as training data, and the basic data used for model accuracy testing in the data set is recorded as test data, all training data constitute a training set, and all test data constitute a test set; the training set is divided into m training subsets, each training subset includes at least 1 training data; Then the data collection and processing module transmits the data set to the classification model training module; 3) the classification model training module uses the received data set to obtain a scene classification deep learning model according to method 1; then the classification model training module transmits the scene classification deep learning model to the hyperspectral remote sensing scene classification module; 4) The hyperspectral remote sensing scene classification module loads a scene classification deep learning model; The hyperspectral remote sensing scene classification module can automatically classify new hyperspectral remote sensing scenes using the scene classification deep learning model; The method 1 comprises: The classification model training module uses the ECA-ResNET network architecture to construct the first teacher model, uses the VisionTransfomer network architecture to construct the second teacher model, uses the SpectralFormer network architecture to construct the third teacher model, and uses the VGG16 network architecture to construct the student model; the first teacher model and the student model constitute the first teacher-student model, the second teacher model and the student model constitute the second teacher-student model, and the third teacher model and the student model constitute the third teacher-student model; The classification model training module takes one training subset as a batch unit, and uses the training data of m training subsets to train and optimize the model under its jurisdiction batch by batch; the classification model training module uses each training subset to train and optimize the model under its jurisdiction according to method 2; The second method comprises: Assume that a training subset includes n training data, and assume that any one of the n training data is the i-th training data. The classification model training module selects training data from the training subset one by one to train and optimize the model under its jurisdiction. For the i-th training data, the following method is used: 1) The three teacher models process the i-th training data respectively to obtain three corresponding first logic outputs; the student model processes the i-th training data to obtain the second logic output; 2) For the three first logic outputs, three Softmax functions with distillation temperature coefficients T1, T2 and T3 are selected for normalization respectively to obtain first probability distribution outputs corresponding to the three teacher models; wherein T1, T2 and T3 are all set values, and T1, T2 and T3 correspond one-to-one to the first teacher model, the second teacher model and the third teacher model respectively; For the second logic output, a Softmax function with a distillation temperature coefficient of T4 is selected for normalization processing to obtain a second probability distribution output; T4 is a set value; 3) Then use the Kldiv function to measure the gap between the three first probability distribution outputs and the second probability distribution outputs to obtain three distillation losses and According to the scene classification true value corresponding to the training data, the three first logic outputs are compared with the scene classification true value respectively to obtain the three first cross entropy losses and Compare the second logistic output with the scene classification truth to get the second cross entropy loss 4) According to formula 1, the three first model losses corresponding to the three teacher-student models are obtained respectively. and According to formula 2, the second model loss L corresponding to the student model is obtained. sec ; Then according to L sec The back propagation algorithm is used to optimize the parameters of the student model; After completing the above steps 1) to 4) using all n training data of the training subset, the third model loss corresponding to the three teacher models is obtained according to formula 3: and Then, the back propagation algorithm is used to optimize the parameters of the three teacher-student models according to the losses of the three third models. The parameter optimization of a single teacher-student model includes the synchronous optimization of the corresponding teacher model and the student model. The formula 1 is: Wherein, i is an integer from 1 to n, j is an integer from 1 to 3, and the three values of j, 1, 2 and 3, correspond to the first teacher model, the second teacher model and the third teacher model respectively; α is the distillation loss coefficient, α is the set value, and the value range of α is 0.1 to 0.5; The formula 2 is: Among them, β is the weight coefficient of the teacher model, β is the set value, and the value range of β is 0.1~0.3; The formula three is: The classification model training module uses m training subsets to complete the training of the model under its jurisdiction, and the student model obtained is recorded as the optimized student model. Then the classification model training module uses the test data of the test set to test the classification accuracy of the optimized student model: if the test accuracy meets the set requirements, the optimized student model is used as the scene classification deep learning model; if the test accuracy does not meet the set requirements, the classification model training module continues to use the latest L sec The back propagation algorithm is used to optimize the parameters of the optimized student model until the optimized student model converges to obtain a converged student model, and the converged student model is used as the scene classification deep learning model.
2. The method for hyperspectral remote sensing scene classification according to claim 1, characterized in that: The T1=T2.
Citation Information
Patent Citations
Knowledge distillation-based coal gangue detection method and device
CN116012635A
Hyperspectral ground feature classification method based on lightweight multi-domain combined distillation
CN116109918A
System and method for efficient machine learning
US20230419170A1
Cited By
Document identification method based on spectral analysis
CN120808127A
A document authentication method based on spectral analysis
CN120808127B
