High-resolution remote sensing image scene classification method based on multi-scale feature fusion
Through the multi-scale feature fusion method, using feature pyramid and feature enhancement module, the problem of intra-class difference and high inter-class similarity in high-scoring remote sensing images is solved, achieving stronger recognition ability and robustness, and improving the scene quality. Classification accuracy.
Patent Information
- Application Number
- CN202410866597.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-25
AI Technical Summary
High-scoring remote sensing images have problems with large intra-class differences and high inter-class similarities, which results in traditional machine learning methods having weak generalization capabilities and robustness when classifying scenes. Moreover, CNN-based models have a single feature scale and cannot effectively extract multiple features. Scale information results in the loss of detailed information during processing.
A method based on multi-scale feature fusion is used to extract multi-scale features through the feature pyramid, and the feature enhancement module and feature association module are used to enhance and suppress the features respectively, fill the semantic gaps between cross-scale feature information, and improve the accuracy of scene classification. Accuracy.
It achieves stronger recognition ability and robustness of high-resolution remote sensing images, can effectively extract global context information and enhance local feature analysis capabilities, and improves the accuracy and adaptability of scene classification.
Smart Images

Figure CN118840593A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of high-resolution remote sensing image data processing and application technology, and in particular to a high-resolution remote sensing image scene classification method based on multi-scale feature fusion. Background Art
[0002] High-resolution remote sensing images are an extremely important data resource for surface observation work. They contain comprehensive information on ground object details and spatial distribution. Remote sensing image scene classification refers to the process of correctly dividing remote sensing images into a series of pre-defined semantic categories. It has been widely used in urban planning, natural disaster monitoring, environmental regulation, vegetation planning, and geographic target detection. However, high-resolution remote sensing images have large intra-class differences and high inter-class similarities, which brings challenges to scene classification. In early scene classification tasks, traditional machine learning methods such as support vector machines, decision trees, and random forests have been able to achieve certain scene classification effects. However, these methods rely more on manual feature extraction and professional knowledge, and their generalization ability and robustness are also weak, and they have limitations in many aspects. Therefore, selecting and extracting effective feature information to classify remote sensing images is a challenging task.
[0003] In recent years, deep learning has achieved better task processing results in image processing, speech recognition, natural language processing, etc. by automatically extracting and understanding features in an end-to-end learning manner. Among them, Convolutional Neural Network (CNN), as a typical architecture in deep learning, can extract high-level abstract features from original images by stacking convolutional layers and pooling layers, and has been widely used in the field of remote sensing image processing.
[0004] However, the CNN-based model faces the problem of single feature scale and inability to compare information at multiple scales, which leads to loss of detail information when processing images, and has limited ability to express remote sensing image features. Multi-scale image information extraction method, namely Feature Pyramid Networks (FPN), can be used to extract multi-scale feature information. FPN can solve the problem of target scale change well. FPN realizes multi-scale feature representation by fusing features between feature maps of different resolutions, and effectively processes targets of different scales. However, FPN will fuse redundant information and irrelevant information of different scales, and cannot better focus on feature information. The fusion of multi-scale image information and attention mechanism can solve this problem well. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a high-resolution remote sensing image scene classification method based on multi-scale feature fusion in view of the deficiencies of the above-mentioned prior art, so as to realize the classification of high-resolution remote sensing image scenes.
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is: a high-resolution remote sensing image scene classification method based on multi-scale feature fusion, comprising the following steps:
[0007] Step 1: Obtain a high-resolution remote sensing image scene classification dataset. The entire dataset includes m scene categories and n scene image samples;
[0008] Step 2: Divide the high-resolution remote sensing image scene classification dataset into a training set and a test set, and process the image through a feature pyramid to extract N features of different scales;
[0009] Step 3: Use the feature enhancement module to suppress the background of each feature and enhance the key parts of the feature;
[0010] The feature enhancement module adopts spatial attention and global attention mechanisms; the spatial attention mechanism establishes a spatial attention map based on the correlation between input feature channels, and the attention map realizes adaptive enhancement or suppression of channel features without the need for additional learning parameters; and the global attention mechanism learns a global attention coefficient through a fully connected layer to realize the enhancement or suppression of overall features;
[0011] The process of the spatial attention mechanism to achieve adaptive enhancement or suppression of channel features is as follows: taking the feature F extracted by the feature pyramid as the input feature, compressing the channel, and performing global maximum pooling and global average pooling operations based on the compressed channel; connecting the results of the global maximum pooling and global average pooling operations based on the channel, and reducing the channel to 1 by using the convolution operation; finally, generating the spatial attention feature through the Sigmoid operation, and performing the residual connection with the input feature to obtain the feature M;
[0012] The global attention mechanism learns the global feature adjustment coefficient e∈R through the fully connected layer to enhance or suppress the overall feature, and applies the global feature adjustment coefficient e to the feature M obtained by the spatial attention mechanism to obtain the output feature P of the final feature enhancement module; the global feature adjustment coefficient e is learned through two steps. The first step is to perform global average pooling on the input feature F to obtain the feature vector u∈R c , where c is the channel dimension; the second step takes u as input and uses two fully connected layers f c / 16 and f 16 / 1 Learn the global feature adjustment coefficient e;
[0013] Step 4: Use the feature association module to gradually fuse the high-dimensional and low-dimensional features processed in step 3, fill the semantic gaps between the cross-scale feature information of each layer, and aggregate multi-scale context features;
[0014] The feature association module consists of a standard 1×1 convolution and upsampling layer. First, the high-dimensional feature P N Perform convolution operation and then perform bilinear interpolation upsampling operation to make its resolution equal to feature P N-1 Match, and then cascade through cat to get the transfer result P N-1,N , and then the result P N-1,N With feature P N-2 Perform cat cascade to obtain the fusion feature P N-2,N-3 ; Repeat the above process until all features are fused, and finally obtain the fusion features of N features;
[0015] Step 5: Finally, the fusion features of N scales are cascaded and classified using the classifier.
[0016] The beneficial effect of adopting the above technical solution is that: the high-resolution remote sensing image classification method based on multi-scale feature fusion provided by the present invention first uses the feature pyramid to extract multi-scale feature information, which can not only effectively extract global context information, but also enhance the network's ability to parse local features; then the feature enhancement module and the feature association module are used to fill the semantic gaps between the cross-scale feature information of each layer, so as to suppress irrelevant information in the features and improve the accuracy of scene classification. The method has a stronger recognition ability for ground objects in high-resolution remote sensing images, and has strong adaptability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flow chart of a high-resolution remote sensing image classification method based on multi-scale feature fusion provided by an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of a process of a high-resolution remote sensing image classification method based on multi-scale feature fusion provided by an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of a feature pyramid structure provided by an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of the structure of a feature enhancement module provided in an embodiment of the present invention;
[0021] Figure 5 A schematic diagram of the structure of a feature association module provided in an embodiment of the present invention;
[0022] Figure 6A confusion matrix on the AID data set provided by an embodiment of the present invention;
[0023] Figure 7 Three remote sensing scene images and corresponding thermal maps are provided for the embodiments of the present invention, wherein (a) is an airport scene feature map, (b) is a storage tank scene map, (c) is a tennis court scene map, (d) is an airport thermal map, (e) is a storage tank thermal map, and (f) is a tennis court thermal map. DETAILED DESCRIPTION
[0024] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0025] In this embodiment, a high-resolution remote sensing image scene classification method based on multi-scale feature fusion is provided. Figure 1 , 2 As shown, the following steps are included:
[0026] Step 1: Obtain a high-resolution remote sensing image scene classification dataset. The entire dataset includes m scene categories and n scene image samples;
[0027] This embodiment uses the AID dataset to verify the model performance. The AID dataset is a large aviation scene classification dataset. The entire dataset contains 30 scene categories and 10,000 scene image samples.
[0028] In this embodiment, the input image X∈R c×h×w , c represents the number of channels of the input image, h and w represent the height and width of the input image. The format of the input image is (3, 224, 224).
[0029] Step 2: Divide the high-resolution remote sensing image scene classification data set into a training set and a test set, and process the scene image through a feature pyramid to extract features of multiple different scales; in this embodiment, four features of different scales are extracted.
[0030] In computer vision tasks, it is necessary to pay attention to both the rough structure and detailed information of an object. However, a single scale feature cannot capture the scale changes of an object. The feature pyramid network is a neural network architecture for computer vision and object detection, which is designed to process feature information at different scales. The feature pyramid mainly solves the problem of paying attention to both the rough structure and detailed information of an object in computer vision tasks.
[0031] Features at a single scale may not be able to capture the size and shape variations of different objects. Feature pyramids enable the network to extract features at multiple scales by introducing top-down connections and lateral connections in the network. The top-down structure means passing information from the high-level layers of the network to the low-level layers to better process semantic information. Lateral connections allow high-level semantic information to be combined with low-level detail information to form multi-scale features with rich information. The feature pyramid network structure is shown in Figure 1. Figure 2 shown.
[0032] The feature pyramid can be divided into three steps to extract multi-scale features of high-resolution remote sensing image scene images: (1) Bottom-up. The process is no different from ordinary CNN. It is divided into different stages according to the resolution of the output feature map. The scale ratio of the feature map between the adjacent stages is reduced by half, and the number of channels is doubled. (2) Top-down. The resolution of the feature map of the higher stage is enlarged by 2 times upsampling to keep it consistent with the resolution of the feature map of the lower stage. The upsampling method uses the neighboring interpolation algorithm. (3) Horizontal connection. The bottom feature map is kept consistent with the number of channels of the upsampled feature map of the higher layer by performing a 1x1 convolution operation, and finally fused by addition.
[0033] In this embodiment, four feature maps {P1, P2, P3, P4} of different scales are extracted through the feature pyramid.
[0034] Step 3: Use the feature enhancement module to suppress the background of each feature and enhance the key parts of the feature;
[0035] In the prior art, directly fusing multi-scale features will introduce background information into the features, reduce the distinction between foreground and background, and affect the subsequent detection effect. Therefore, the present invention designs a feature enhancement module to selectively enhance or suppress multi-scale features to reduce the impact of background on detection. The feature enhancement module adopts spatial attention and global attention mechanisms. Among them, the spatial attention mechanism is to establish a spatial attention map based on the correlation between input feature channels. The attention map realizes adaptive enhancement or suppression of channel features without the need for additional learning parameters; and the global attention mechanism learns a global attention coefficient through the fully connected layer to achieve overall feature enhancement or suppression. Compared with the prior art, the feature enhancement module of the present invention only needs to learn a global attention coefficient, has low computational complexity, and does not need to set a threshold. It is a feature enhancement mechanism that is completely driven by input. The feature enhancement module is as follows Figure 3As shown in the figure, the overall implementation process of the spatial attention mechanism is as follows: the feature map F extracted from the feature pyramid is used as the input feature map of this module, the channel is compressed, and the global maximum pooling and global average pooling operations are performed based on the channel; the two results are connected based on the channel, and the channel is reduced to 1 by the convolution operation; finally, the spatial attention feature map is generated through the Sigmoid operation, and the spatial attention feature M is obtained by residual connection with the input feature. The calculation of the spatial attention feature can be expressed as:
[0036] M=σ(f 7×7 ([AvgPool(F); MaxPool(F)]))
[0037] Among them, σ is the Sigmoid operation, f 7×7 represents a convolutional layer with a convolution kernel size of 7×7, AvgPool(F) represents the global average pooling operation on the input feature F, and MaxPool(F) represents the global maximum pooling operation on the input feature F.
[0038] In order to adaptively suppress or enhance the input features, a global attention mechanism is used. The global attention mechanism is mainly implemented by learning the global feature adjustment coefficient e∈R in the fully connected layer.
[0039] The global feature adjustment coefficient e is learned in two steps:
[0040] The first step is to perform global average pooling on the input feature F to obtain the feature vector u∈R c , where c is the channel dimension of the feature vector u, and the calculation process can be expressed as:
[0041]
[0042] Among them, (F) l represents the l-th channel of the input feature F, and u(l) represents the value of the l-th channel of the input feature F after global average pooling.
[0043] The second step takes u as input and uses the fully connected layer f c / 16 and f 16 / 1 Learn the global feature adjustment coefficient e, the calculation formula can be expressed as:
[0044] e=σ(f 16 / 1 (f c / 16 (u)))
[0045] Among them, f c / 16 represents the first fully connected layer (input dimension is c, output dimension is 16), f 16 / 1 represents the second fully connected layer (input dimension is 16, output dimension is 1), and σ represents the sigmoid activation function.
[0046] The global feature adjustment coefficient e is applied to the feature M obtained by the spatial attention mechanism to obtain the feature P that is finally output by the feature enhancement module. The calculation formula of feature P can be expressed as:
[0047] P=e·M
[0048] In this embodiment, a feature enhancement module is used to enhance key features of features {P1, P2, P3, P4} of four scales respectively, and suppress the influence of background, so as to obtain features {P1', P2', P3', P4'}.
[0049] Step 4: Use the feature association module to gradually fuse the high-dimensional and low-dimensional features processed in step 3, fill the semantic gaps between the cross-scale feature information of each layer, and aggregate multi-scale context features;
[0050] Existing deep learning models lack the ability to process information about key detail features. To solve this problem, the present invention proposes a multi-scale feature association module to fill the semantic gaps between cross-scale feature information at each layer and effectively aggregate multi-scale context features. Figure 4 As shown in the figure. Existing deep learning models use residual connections to exchange information. The correlation between features of different depths is weak, and a large amount of information interaction is required to allow layers of different depths to guide each other. Therefore, directly aggregating features with significant differences at different depth stages in parallel may produce information gaps. In order to make feature aggregation as smooth as possible, the feature association module gradually fuses features of different levels from the top layer to the bottom layer. From the perspective of feature changes, shallow local features are gradually fused into deeper global features. This feature fusion method can reduce the information gap between fusing high-dimensional and low-dimensional features.
[0051] The feature association module consists of a standard 1×1 convolution and upsampling layer. The module first performs a convolution operation on the high-dimensional feature P4', then performs a bilinear interpolation upsampling operation to make its resolution match that of the feature P3', and then obtains the transfer result P through cat cascading. 34 ', and then the result P 34 'Cat cascade with the original feature map P2' to obtain the fused feature map P 23 '. Repeat the above process until all features are fused and finally obtain four fused features.
[0052] In this embodiment, the features {P1', P2', P3', P4'} are input into the feature association module for feature association, and through the layer-by-layer cascading, the features {F1, F2, F3, F4} which are the fusion of shallow and deep feature information are obtained.
[0053] The features {F1, F2, F3, F4} are resized, and through linear interpolation and 1×1 convolution, the features {F1', F2', F3', F4'} of the same size as feature F2 are obtained. At this time, the sizes of the four features are (1, 128, 28, 28). The features {F1', F2', F3', F4'} are cascaded for subsequent classification.
[0054] Step 5: Finally, the fused features of the four scales are cascaded and classified using the classifier.
[0055] This example was conducted in the Windows 11 operating system; the modeling was based on the deep learning architecture Pytorch 3.9 (Facebook Inc., USA). Computer specific configuration: graphics card (Nvidia GeFore GTX 3050Ti GPU, Nvidia Inc., USA), central processing unit (Intel Core TM i5-13600KF CPU, Inter Inc., USA). The model training used the cross entropy loss function, the adaptive moment estimation optimizer (Adam), the experimental iteration number epoch = 300, the batch size was set to patch size = 256, and the initial learning rate learning rate = 5×10 -5 , momentum = 0.9.
[0056] In this embodiment, a comparison of the classification of the AID data set using the method of the present invention, the DTDCNN method, the LCPP method, the MICP method, the SAFF method and the MDFR method is also given. Among them, the DTDCNN method adaptively adjusts the receptive field of targets of different scales through deformable convolution to make the network model robust to the geometric shape changes of the remote sensing scene. The LCPP method adopts a multi-level convolutional pyramid semantic fusion framework to fuse the multi-level semantic features extracted by the BOVW model and the convolutional neural network model. The MICP method adopts a multi-level improved circular pooling method to extract and fuse the annular pooling features at different levels. The SAFF method adopts a self-attention deep feature fusion method that emphasizes the weight of complex objects, and the MDFR method adopts a multi-scale deep feature representation method based on regional feature selection and representation.
[0057] Table 1 compares the overall accuracy of the method of the present invention and various advanced methods on the AID dataset. Among them, under the conditions of 20% and 50% training data, the overall accuracy of the method of the present invention is about 93.73% and 95.88%, which is improved compared with the classification results of DTDCNN, LCPP, MICP, SAFF and MDFR methods. Under the condition of 50% training data, the improvement is about 6.62%, 2.76%, 0.94%, 2.05% and 2.51% respectively. The present invention uses the feature association module to realize the association fusion of low-dimensional and high-dimensional features, thus showing better classification performance.
[0058] Table 1 Overall accuracy comparison of different methods on the AID dataset (%)
[0059]
[0060]
[0061] Figure 5 The confusion matrices obtained by different methods at a 50% training ratio of the AID dataset are shown. In addition to the excellent overall accuracy results, the corresponding confusion matrices further confirm the excellent performance of the method proposed in the present invention. Taking the 50% training ratio as an example, the classification accuracy of the method proposed in the present invention is as high as 93% in most scene categories of the AID dataset, and many of them even reach 95%, such as "farmland", "parking lot" and "school". In addition, the two categories of "bare land" and "desert" are easily confused in the AID dataset because they both have similar overall objects. For these two categories, the method proposed in the present invention achieved acceptable results of 85% and 78% respectively at a 50% training ratio.
[0062] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope defined by the claims of the present invention.
Claims
1. A high-resolution remote sensing image scene classification method based on multi-scale feature fusion, characterized by: The following steps are involved: Step 1: Obtain a high-resolution remote sensing image scene classification dataset. The entire dataset includes m scene categories and n scene image samples; Step 2: Divide the high-resolution remote sensing image scene classification dataset into a training set and a test set, and process the image through a feature pyramid to extract N features of different scales; Step 3: Suppress the background of each feature and enhance the key parts of the feature; Step 4: Gradually merge the high-dimensional and low-dimensional features processed in step 3 to fill the semantic gaps between cross-scale feature information at each layer and aggregate multi-scale context features; Step 5: Finally, the fusion features of N scales are cascaded and classified using the classifier.
2. The high-resolution remote sensing image scene classification method based on multi-scale feature fusion according to claim 1 is characterized in that: The step 3 uses a feature enhancement module to suppress the background of each feature and enhance the key parts of the feature; The feature enhancement module adopts spatial attention and global attention mechanisms; wherein the spatial attention mechanism establishes a spatial attention map based on the correlation between input feature channels, and the attention map realizes adaptive enhancement or suppression of channel features without the need for additional learning parameters; The global attention mechanism learns a global attention coefficient through the fully connected layer to enhance or suppress the overall features.
3. The high-resolution remote sensing image scene classification method based on multi-scale feature fusion according to claim 2 is characterized by: The process of the spatial attention mechanism to achieve adaptive enhancement or suppression of channel features is as follows: the feature F extracted by the feature pyramid is used as the input feature, the channel is compressed, and global maximum pooling and global average pooling operations are performed based on the compressed channel; the results of the global maximum pooling and global average pooling operations are connected based on the channel, and the channel is reduced to 1 by using the convolution operation; finally, the spatial attention feature is generated through the Sigmoid operation, and the feature M is obtained by residual connection with the input feature.
4. The high-resolution remote sensing image scene classification method based on multi-scale feature fusion according to claim 3 is characterized by: The global attention mechanism learns the global feature adjustment coefficient e∈R through the fully connected layer to enhance or suppress the overall feature, and applies the global feature adjustment coefficient e to the feature M obtained by the spatial attention mechanism to obtain the output feature P of the final feature enhancement module; The global feature adjustment coefficient e is learned through two steps. The first step is to perform global average pooling on the input feature F to obtain the feature vector u∈R c , where c is the channel dimension; the second step takes u as input and uses two fully connected layers f c / 16 and f 16 / 1 Learn the global feature adjustment coefficient e.
5. The high-resolution remote sensing image scene classification method based on multi-scale feature fusion according to claim 1 is characterized in that: The step 4 uses a feature association module to gradually fuse the high-dimensional and low-dimensional features processed in step 3; The feature association module consists of a standard 1×1 convolution and upsampling layer. First, the high-dimensional feature P N Perform convolution operation and then perform bilinear interpolation upsampling operation to make its resolution equal to feature P N-1 Match, and then cascade through cat to get the transfer result P N-1,N , and then the result P N-1,N With feature P N-2 Perform cat cascade to obtain the fusion feature P N-2,N-3 ; Repeat the above process until all features are fused, and finally obtain the fusion features of N features.
Citation Information
Cited By
Lightweight remote sensing scene classification method based on frequency domain and multi-scale spatial features
CN122313133A
