Urban area scene classification method of SAR images based on multi-scale wavelet convolution
By introducing a multi-scale convolution module and a discrete wavelet transform module with an attention mechanism into SAR image classification, the problems of loss of feature information and insufficient scale processing in traditional methods are solved, and the accuracy and efficiency of urban area scene classification are improved. .
Patent Information
- Application Number
- CN202311687735.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-11
AI Technical Summary
Traditional SAR image urban area scene classification methods have insufficient modeling capabilities for complex scattering mechanisms, insufficient feature processing at different scales, difficulty in integrating global and local feature information, and loss of feature information caused by the maximum/average pooling module, which affects classification accuracy. and model convergence.
The multi-scale convolution module and discrete wavelet transform convolution module with attention mechanism are used to fuse multi-scale features and assign spatial attention weights through multi-scale feature extraction and wavelet decomposition to dynamically adjust attention to information of different scales and frequencies. degree to avoid information loss.
It improves the accuracy and generalization performance of scene classification in urban areas, reduces the sensitivity to noise, retains useful detailed information, and enhances image processing efficiency.
Smart Images

Figure CN117636052B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of remote sensing image processing, and in particular to a SAR (Synthetic Aperture Radar) image urban area scene classification method based on multi-scale wavelet convolution. Background Art
[0002] Synthetic Aperture Radar (SAR) is a remote sensing technology that can obtain ground information in complex weather conditions. SAR sensors have the ability to provide all-weather, all-time, high-resolution observation images of urban areas, which has brought great help to urban planning, land use management, environmental monitoring, natural disaster management, and urban construction. The unique characteristics of SAR images include high sensitivity to tiny ground changes, no restrictions on weather and lighting conditions, and the ability to penetrate clouds. However, SAR images are often interfered by factors such as shadows, clutter, and noise, making urban scene classification challenging.
[0003] Traditional urban scene classification methods usually rely on manually designed features and rules, which are difficult to fully utilize the complexity of SAR images, resulting in limited classification accuracy. In recent years, deep learning technology has made significant progress in the classification of urban scenes in SAR images. Convolutional Neural Networks (CNN) are widely used in image classification tasks, demonstrating the excellent performance of automatically learning features. However, the traditional CNN structure has some limitations when processing SAR images, including insufficient modeling capabilities for complex scattering mechanisms, insufficient processing of features at different scales, difficulty in effectively fusing global and local feature information, and the widespread use of the Max / Average pooling module, which leads to loss of feature information, thus affecting classification accuracy and model convergence.
[0004] Therefore, how to provide a SAR image urban area scene classification method based on multi-scale wavelet convolution is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0005] In view of the above research status and existing problems, the present invention provides a SAR image urban area scene classification method based on multi-scale wavelet convolution. By introducing multiple convolution scales and discrete wavelet transform with attention mechanism, the method aims to overcome the limitations of traditional methods and improve the accuracy and generalization performance of urban area scene classification.
[0006] The present invention provides a SAR image urban area scene classification method based on multi-scale wavelet convolution, comprising the following steps:
[0007] S1: Construct a multi-scale convolution module with an attention mechanism to extract and fuse features of different scales from the original SAR image, assign attention weights to the fused multi-scale features, and obtain a fused feature map with spatial attention weights;
[0008] S2: Construct a discrete wavelet transform convolution module to decompose and obtain a multi-scale wavelet feature map with spatial and frequency domain information;
[0009] S3: Construct a discriminator network to identify the probability of the urban area scene category of the multi-scale wavelet feature map;
[0010] S4: Use the standard cross entropy loss function to train the overall network constructed by S1-S3 to obtain the pre-trained overall network;
[0011] S5: Use the pre-trained overall network to test the SAR image to be tested and obtain the urban area scene classification result.
[0012] Preferably, the multi-scale convolution module with attention mechanism in S1 includes a multi-scale convolution module and an attention module; S1 includes the following steps:
[0013] S11: The multi-scale convolution module includes three convolution branches formed by convolution kernels of different sizes, and performs parallel multi-scale receptive field calculation on the original SAR image; the features output by the three convolution branches are added to perform feature fusion to obtain fused multi-scale features;
[0014] S12: passing the fused multi-scale features into the standardization layer for standardization, and then inputting them into the activation layer, and the obtained standardized multi-scale feature vector is input into the attention module;
[0015] S13: The attention module performs global average pooling and fully connected layer operations on the standardized multi-scale feature vector, calculates the spatial attention weight matrix of the fused multi-scale feature map; multiplies the standardized multi-scale feature vector by the corresponding spatial attention weight matrix element by element to obtain an output matrix;
[0016] S14: The fused multi-scale features are combined with the output matrix using a direct cascade method to obtain a fused feature map with spatial attention weights.
[0017] Preferably, S2 comprises the following steps:
[0018] S21: Perform discrete wavelet transform on the fused feature map with spatial attention weights, and decompose each level into 4 sub-band images ;in, Contains low-frequency approximation information of the image, Corresponding to the high-frequency components in the horizontal direction, Corresponding to the high-frequency components in the vertical direction, Contains high-frequency components in the diagonal direction;
[0019] S22: Yes and Perform Gaussian filtering to obtain the high-frequency components in the vertical direction after filtering And the high-frequency components in the diagonal direction after filtering ;
[0020] S23: Yes Perform a convolution operation to obtain the low-frequency component ;
[0021] S24: , and Add the values of ;
[0022] S25: By jump connection and Add the values of to get the output result ,in Output result of a DWTM module.
[0023] Preferably, S2 further includes:
[0024] S26: The fused feature map with spatial attention weights and Use global jump connection to combine:
[0025]
[0026] in, is the fused feature map with spatial attention weights, For the general Input the output result to the DWTM module again after executing S21-S25 operation. It is the output feature after the multi-scale convolution module with attention mechanism and the discrete wavelet transform convolution module, that is, the multi-scale wavelet feature map.
[0027] Preferably, the calculated multi-scale wavelet features After one convolution operation, the features are refined.
[0028] Preferably, the discriminator network includes three fully connected layers and a Sigmoid function; the multi-scale wavelet feature map passes through the three fully connected layers and a Sigmoid function in sequence, and outputs the probability of identifying the urban area scene category to which the multi-scale wavelet feature map belongs.
[0029] Preferably, the urban area scene classification results include low-rise residential buildings, high-rise buildings and villas.
[0030] Compared with the prior art, it has the following beneficial effects:
[0031] (1) Using a multi-parallel CNN network feature extraction module with an attention mechanism, it not only fully considers the extraction of multi-scale abstract features of the original input image, but also considers the classification weights of different features on the results, overcoming the problem that traditional feature fusion cannot emphasize important features;
[0032] (2) Instead of using the pooling layer operation in the traditional convolution module, the overall network architecture of wavelet grading is adopted. The feature map is decomposed into low-frequency components and high-frequency components using wavelet transform. This not only realizes the pooling of the feature map, but also introduces the detailed feature information in the feature map into the traditional CNN through shortcut connections, so that the traditional CNN can learn both spatial domain information and frequency domain information at the same time, thus avoiding the problem of information loss and feature loss.
[0033] (3) The fusion of multi-scale convolution with attention mechanism and wavelet decomposition module can dynamically adjust the degree of attention to detail information of different scales and frequencies, thereby better retaining useful detail information and reducing sensitivity to noise. This enables the network to better process information of different scales and frequencies, improve the efficiency of image processing and the classification accuracy of urban area scenes in remote sensing images. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention, and for ordinary technicians in this field, other drawings can be obtained based on the provided drawings without creative work.
[0035] Figure 1 A flow chart of a method for classifying urban area scenes in SAR images based on multi-scale wavelet convolution provided by an embodiment of the present invention;
[0036] Figure 2 A flowchart of a multi-scale convolution module with an attention mechanism provided by an embodiment of the present invention;
[0037] Figure 3A flowchart of a discrete wavelet transform convolution module provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] The present invention provides a SAR image urban area scene classification method based on multi-scale wavelet convolution, which is used to accurately classify different scenes in urban areas such as dense low-rise residential buildings, high-rise buildings, villas, etc. Figure 1 As shown, the following steps are included:
[0040] S1: Construct a multi-scale convolution module (MACM) with an attention mechanism to extract and fuse features of different scales from the original SAR image, assign attention weights to the fused multi-scale features, and obtain a fused feature map with spatial attention weights.
[0041] The specific implementation process includes:
[0042] like Figure 2 After the original image is input into MACM, it is sent to three branches consisting of convolution kernels of different sizes to extract features of different scales of the input image.
[0043] The input of the multi-scale convolution module (MCM) is , the original input Input the multi-scale convolution module to perform parallel multi-scale receptive field calculation. The process can be formally expressed as:
[0044]
[0045] (1)
[0046]
[0047] in, , and Respectively represent convolutions of size 3×3, 5×5, and 7×7, It represents the rectified linear unit. , and They represent the low-level features, medium-level features, and high-level features obtained in three different scales through feature extraction by the multi-scale convolution module.
[0048] Furthermore, the feature calculation results of the three branches are , and , feature merging is performed by feature addition, and the process can be formally expressed as:
[0049] (2)
[0050] in, It represents channel stacking, that is, multiple features are stacked at the channel level. It represents the feature output result of the multi-scale feature extraction stage.
[0051] Furthermore, the fused multi-scale features Pass in the Batch Normalization (BN) layer to the feature map Perform standardized operations and use As the next step of activation layer, the process can be formally expressed as:
[0052] (3)
[0053] Furthermore, the feature map output by the multi-scale convolution module is used as the input of the attention module for global average pooling (GAP) and full connection layer (FC) operations to calculate the spatial attention weight vector of the feature map. The process can be formally expressed as:
[0054] (4)
[0055] in, express function, Representation and input features The corresponding weight.
[0056] Furthermore, the standardized multi-scale feature vector The weight matrix output by the corresponding spatial attention module Multiply element by element to get the output matrix of the attention module , and input into the subsequent module layer, the calculation process of assigning attention weights to features can be formally expressed as:
[0057] (5)
[0058] in, Represents the multiplication of corresponding elements between features.
[0059] Next, we transform the feature vector Using a direct cascade method, the output matrix of the attention module Combined with the output of this module, the detailed information of the original image and the semantic information with different weight features are fully utilized. The calculation process can be formally expressed as:
[0060] (6)
[0061] in, represents the addition of corresponding elements between features, is the obtained fused feature map with spatial attention weights.
[0062] S2: Construct a Discrete Wavelet Transform Module (DWTM) to decompose and obtain a multi-scale wavelet feature map with spatial and frequency domain information. The multi-scale wavelet decomposition algorithm can effectively extract information of different scales and frequencies, including features such as texture, structure, and details, which is suitable for the characteristics of SAR images.
[0063] The specific implementation process includes:
[0064] like Figure 3 As shown. Using the multi-scale features extracted in step 1 As input, and using DWTM module Perform discrete wavelet transform. For input , after DWTM transformation, each level of decomposition can obtain 4 sub-band images:
[0065] (7)
[0066] in, Contains low-frequency approximation information of the image, Corresponding to the high-frequency components in the horizontal direction, Corresponding to the high-frequency components in the vertical direction, Contains high-frequency components in the diagonal direction, which are the detailed information of the image. is a discrete wavelet decomposition function on a two-dimensional image. The decomposition process can be recursively performed on the low-frequency subband. The higher the wavelet decomposition level, the more obvious the detailed features of the image at multiple scales, but the amount of calculation becomes larger. For simple calculation, this patent first performs single-scale wavelet decomposition to obtain the low-frequency and high-frequency information of the image.
[0067] Furthermore, for the sub-high frequency sub-image ( and ) Gaussian filtering algorithm is used to reduce the influence of noise coefficients in high-frequency coefficients. The process is formally expressed as:
[0068] (8)
[0069] (9)
[0070] in, is a Gaussian filter, and It is the high-frequency component in the vertical direction and the high-frequency component in the diagonal direction after filtering.
[0071] Furthermore, since the two-dimensional discrete wavelet transform will downsample the image along the row and column directions, after a discrete wavelet transform, the image size becomes one-fourth of the original size, achieving the same effect as the traditional pooling method. That is, if the feature map The original matrix is , Represent the number of channels, length, and width of the image, respectively, to obtain the feature vector Size The present invention converts the low frequency component ( ) replaces the pooling layer of the traditional convolutional network as the result of feature map pooling. Then, through a regular convolution operation, the output result is obtained The process can be formally expressed as:
[0072] (10)
[0073] in, shows a convolution of size 3×3, It represents the rectified linear unit, Representation feature map The low-frequency component after the wavelet decomposition operation.
[0074] Furthermore, the discrete wavelet decomposition , and The values of the high-frequency components are added together to obtain the result The process can be formally expressed as:
[0075] (11)
[0076] in, Representation feature map High-frequency components after wavelet decomposition operation.
[0077] Further, By jump connection and The values are added again, and the number of channels remains unchanged, to obtain the output result of the DWTM module The DWTM module is embedded into the convolutional network instead of the traditional pooling layer. The process can be formally expressed as:
[0078] (12)
[0079] in, express The sum of the low-frequency component and the high-frequency component after wavelet decomposition, This is the output result of a DWTM module.
[0080] Furthermore, in order to ensure the stable training of the entire network and give full play to the feature representation ability of the deep network, a global jump connection is used here. The process can be formally expressed as:
[0081] (13)
[0082] in, For the general Input the output result to the DWTM module again after executing S21-S25 operation. It is the output feature after passing through MACM and DWTM modules.
[0083] Furthermore, the calculated multi-scale wavelet features A convolution of size 1×1 is used for feature refinement. The process can be formally expressed as:
[0084] (14)
[0085] S3: Construct a discriminator network to identify the probability of the urban area scene category of the multi-scale wavelet feature map.
[0086] The specific implementation process includes:
[0087] The output processing unit of the discriminator network consists of three fully connected layers for feature extraction before the final output and a Sigmoid function, which can be formally expressed as:
[0088] (15)
[0089] Among them, P represents the probability that the recognizer network recognizes the current input image fusion feature as a specific urban area scene image, is the multi-scale wavelet feature map obtained by inputting the original image, Represents the SAR image discriminator network.
[0090] S4: Use the standard cross entropy loss function to train the overall network constructed by S1-S3 to obtain the pre-trained overall network.
[0091] The specific implementation process includes:
[0092] The standard cross entropy loss function is used to train the discriminant network with fusion features as input. Multi-scale wavelet features with attention are obtained through S1-S3. , using this feature as the discriminator network The training data set and the corresponding loss function need to be used to train the network so that it can update parameters and obtain a network with the ability to classify targets. The training data set contains the urban scene SAR images described in the above steps. , and also contains the corresponding label image The standard cross entropy loss function is used to train the entire network. The overall loss function can be expressed as:
[0093] (16)
[0094] in, Represents the standard Cross Entropy (CE) calculation operation. It represents the overall loss function used to train the network. The network training process continues until the loss converges, and the trained network is obtained, that is, .
[0095] S5: Use the pre-trained overall network to test the SAR image to be tested and obtain the urban area scene classification result.
[0096] The specific implementation process includes:
[0097] Using the trained network After the trained network is obtained through step 5, the SAR image of the urban area scene to be tested (denoted as ) is input into the trained network as described in S1-S3, and finally the corresponding urban scene area classification result is obtained. The process is formally expressed as:
[0098] (17)
[0099] in, represents the SAR image of the urban area scene to be tested, represents the overall network after training. Then it is the SAR image to be tested Corresponding urban area scene classification results.
[0100] The above is a detailed introduction to a SAR image urban area scene classification method based on multi-scale wavelet convolution provided by the present invention. In this article, specific examples are used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
[0101] In this article, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
Claims
1. A SAR image urban area scene classification method based on multi-scale wavelet convolution, characterized by: The steps include: S1: construct a multi-scale convolution module with an attention mechanism, which is used to extract and fuse features of different scales from the original SAR image, assign attention weights to the fused multi-scale features, and obtain a fused feature map with spatial attention weights; the multi-scale convolution module with an attention mechanism in S1 includes a multi-scale convolution module and an attention module; S1 includes the following steps: S11: The multi-scale convolution module includes three convolution branches formed by convolution kernels of different sizes, and performs parallel multi-scale receptive field calculation on the original SAR image; the features output by the three convolution branches are added to perform feature fusion to obtain fused multi-scale features; S12: passing the fused multi-scale features into the standardization layer for standardization, and then inputting them into the activation layer, and the obtained standardized multi-scale feature vector is input into the attention module; S13: The attention module performs global average pooling and fully connected layer operations on the standardized multi-scale feature vector, calculates the spatial attention weight matrix of the fused multi-scale feature map; multiplies the standardized multi-scale feature vector by the corresponding spatial attention weight matrix element by element to obtain an output matrix; S14: combining the fused multi-scale features with the output matrix using a direct cascade method to obtain a fused feature map with spatial attention weights; S2: Construct a discrete wavelet transform convolution module to decompose and obtain a multi-scale wavelet feature map with spatial and frequency domain information; including the following steps: S21: performing discrete wavelet transform on the fused feature map with spatial attention weights, and decomposing each level into four sub-band images {LL, LH, HL, HH}; wherein LL contains low-frequency approximate information of the image, LH corresponds to high-frequency components in the horizontal direction, HL corresponds to high-frequency components in the vertical direction, and HH contains high-frequency components in the diagonal direction; S22: performing Gaussian filtering on HL and HH to obtain a filtered high-frequency component HL′ in the vertical direction and a filtered high-frequency component HH′ in the diagonal direction; S23: Perform a convolution operation on LL to obtain the low-frequency component Low ll ; S24: Add the values of LH, HL′ and HH′ to obtain a high frequency component result High h ; S25: The High h By jump connection and the Low ll Add the values of dwt , where D dwt Output result of a discrete wavelet transform convolution module; S26: The fused feature map with spatial attention weights and RD dwt Use global jump connection to combine: Among them, f fusion is the fused feature map with spatial attention weights, RD dwt To D dwt The output result after the discrete wavelet transform convolution module performs S21-S25 operations again is O f It is the output feature after the multi-scale convolution module with attention mechanism and discrete wavelet transform convolution module, that is, the multi-scale wavelet feature map; The calculated multi-scale wavelet feature O f After one step of convolution operation, the features are refined; S3: Construct a discriminator network to identify the probability of the urban area scene category of the multi-scale wavelet feature map; S4: Use the standard cross entropy loss function to train the overall network constructed by S1-S3 to obtain the pre-trained overall network; S5: Use the pre-trained overall network to test the SAR image to be tested and obtain the urban area scene classification result.
2. The method for urban area scene classification of SAR images based on multi-scale wavelet convolution according to claim 1 is characterized in that: The discriminator network includes three fully connected layers and a Sigmoid function; the multi-scale wavelet feature map passes through the three fully connected layers and a Sigmoid function in sequence, and outputs the probability of identifying the urban area scene category to which the multi-scale wavelet feature map belongs.
3. The method for urban area scene classification of SAR images based on multi-scale wavelet convolution according to claim 1 is characterized in that: The urban area scene classification results include low-rise residential buildings, high-rise buildings and villas.
Citation Information
Patent Citations
SAR image building area classification method based on multiple attention weight fusion features
CN116486183A
Remote sensing image scene classification method based on evidence fusion multilayer deep convolutional network
CN117058558A
