Lightweight method for building extraction model in SAR images based on cross-modality

Through cross-modal knowledge distillation technology, optical image information is used to improve the segmentation performance of SAR images, solving the problems of high computational cost and insufficient segmentation performance in building extraction from SAR images, and achieving efficient segmentation effects and computational costs on SAR images. of reduction.

CN115761478BInactive Publication Date: 2024-09-06SUZHOU UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211269905.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-17
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing technology has high computational cost and insufficient segmentation performance in building extraction from SAR images. In particular, due to geometric distortion and noise, there is less semantic information and it is difficult to effectively utilize spatial information.

Method used

A lightweight method based on cross-modality is used to transfer the information in the optical image to the SAR image through multi-scale feature knowledge distillation. The attention module is used to enhance features, suppress useless features, and generate multi-scale features through adaptive average pooling. image, minimizing the KL divergence and overall loss function to improve the segmentation performance of SAR images.

Benefits of technology

It achieves efficient segmentation performance improvement on SAR images, which is superior to traditional methods, especially in terms of F1 score and intersection-to-union ratio. It is suitable for different lightweight networks and reduces computational costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115761478B
    Figure CN115761478B
Patent Text Reader

Abstract

The present invention relates to a lightweight method for extracting a building model from a SAR image based on cross-modality, comprising stretching the output of each level of the encoding stage into an image of the same size as the input image through a multi-scale detection unit, and merging the stretched images, wherein the images include optical images and SAR images; using an attention module to enhance meaningful features and suppress useless features for the merged optical image and SAR image; generating a multi-scale image for the optical image and SAR image after the attention module through adaptive average pooling; and minimizing the KL divergence of the multi-scale optical image and SAR image and the overall loss function. The present invention performs knowledge distillation through multi-scale features, transfers the knowledge of a large model trained with optical images to a lightweight model trained with SAR images, and improves the segmentation performance of the lightweight model on SAR images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of high-resolution remote sensing image information processing, and in particular to a lightweight method for extracting a building model from a SAR image based on a cross-modality. Background Art

[0002] Synthetic aperture radar (SAR), which has the characteristics of all-day and all-weather, can effectively detect targets under various camouflages, and SAR images can be used to construct segmentation tasks under various harsh conditions. However, compared with optical images, due to factors such as geometric distortion and noise, SAR images can decouple less semantic information, while optical images contain grayscale information of multiple bands, which is easier to identify targets and classify and extract.

[0003] In this case, most of the most advanced methods focus on designing advanced network architectures or loss functions to improve segmentation performance, but this method has expensive computational costs. Therefore, some subsequent methods are committed to improving segmentation performance by utilizing knowledge in different modalities through lightweight methods. For example, channel-based knowledge distillation methods have proven the importance of channel information in dense prediction, but if only channel information is distilled, spatial information will be lost, which will affect the final classification results; there is also knowledge distillation based on capturing structural information between pixels, including pairwise similarities between pixels and overall similarity captured by the discriminator, but it neglects the use of semantic information in the encoding stage. Based on this, there is an urgent need to provide a lightweight method for SAR image building extraction model based on cross-modality. Summary of the invention

[0004] To this end, the technical problem to be solved by the present invention is to overcome the problems existing in the prior art and propose a lightweight method for building extraction model of SAR images based on cross-modality, which performs knowledge distillation through multi-scale features, utilizes the information in optical images to improve the segmentation performance of SAR images, realizes cross-modal knowledge distillation, and transfers the knowledge of the large model trained with optical images to the lightweight model trained with SAR images, thereby improving the segmentation performance of the lightweight model on SAR images.

[0005] In order to solve the above technical problems, the present invention provides a lightweight method for extracting buildings from SAR images based on a cross-modal model, comprising:

[0006] Stretching the output of each level of the encoding stage into an image of the same size as the input image through a multi-scale detection unit, and merging the stretched images, wherein the images include optical images and SAR images;

[0007] The attention module is used to enhance the meaningful features and suppress the useless features of the merged optical image and SAR image.

[0008] Generate multi-scale images by adaptive average pooling of optical images and SAR images after the attention module;

[0009] Minimize the KL divergence of multi-scale optical and SAR images and the overall loss function.

[0010] In one embodiment of the present invention, a method for stretching the output of each stage of the encoding stage into an image of the same size as the input image by a multi-scale detection unit includes:

[0011] Given an input optical image X O and SAR image X S , define the output of the i-th encoding stage as F i and the multi-scale detection unit is M(.), where O and S represent the optical image and the SAR image;

[0012] The output F of the i-th encoding stage i Input to the multi-scale detection unit M(.) and get its output M(F i )=Upsample(Conv(F i )), wherein the multi-scale detection unit M(.) is a combination of a convolutional layer and an upsampling layer.

[0013] In one embodiment of the present invention, the output M(F i ) is the same as the input image, and the number of channels is the same as the mask channels.

[0014] In one embodiment of the present invention, the formula for merging the stretched optical images is:

[0015]

[0016]

[0017] Wherein, O and S represent optical image and SAR image respectively.

[0018] In one embodiment of the present invention, an attention module is used to enhance meaningful features and suppress useless features on the merged image, including:

[0019] After the merged optical image passes through the attention module, we get G O =SCSE(H O );For the merged SAR image, G is obtained after passing through the attention module S =SCSE(H S ).

[0020] In one embodiment of the present invention, the optical image and the SAR image after the attention module are adaptively averaged and pooled to generate multi-scale images, including

[0021] Generate multi-scale optical images by adaptive average pooling of the optical image after the attention module Generate multi-scale SAR images by adaptive average pooling of the SAR images after the attention module

[0022] In one embodiment of the present invention, minimizing the KL divergence of the multi-scale optical image and the SAR image includes:

[0023] Minimizing the KL divergence of multi-scale optical images and SAR images is expressed as

[0024] In one embodiment of the present invention, the overall loss function is L = L CE (P S ||Y)+α·KL(P S ||P O )+β·L MFD , where Y represents the label image, P O and P S They represent the output of the teacher network and the output of the student network respectively, and CE represents the cross entropy loss function.

[0025] In addition, the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method when executing the program.

[0026] Furthermore, the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above-mentioned method are implemented.

[0027] The above technical solution of the present invention has the following advantages compared with the prior art:

[0028] The present invention proposes a lightweight method for SAR image building extraction model based on cross-modality, which performs knowledge distillation through multi-scale features, utilizes the information in optical images to improve the segmentation performance of SAR images, realizes cross-modal knowledge distillation, and transfers the knowledge of a large model trained with optical images to a lightweight model trained with SAR images, thereby improving the segmentation performance of the lightweight model on SAR images. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0030] Figure 1 This is a flow chart of a lightweight method for extracting building models from SAR images based on cross-modality proposed in the present invention.

[0031] Figure 2 This is a flow chart of a lightweight method for extracting buildings from SAR images based on cross-modality proposed by the present invention.

[0032] Figure 3 For the overall network structure.

[0033] Figure 4 is the MSAW dataset, where (4a) is the synthetic aperture SAR image, (4b) is the registered optical image, and (4c) is the label image.

[0034] Figure 5 Figure 4a shows the prediction results of different knowledge distillation methods for Figure 4a, where Figure 5a shows the prediction result of the proposed lightweight method for SAR image building extraction model based on cross-modality, Figure 5b shows the prediction result of channel-based knowledge distillation (CWD), Figure 5c shows the prediction result of structured knowledge distillation (SKD), Figure 5d shows the prediction result of knowledge distillation (MGD) based on masking student features and then generating all teacher features, and Figure 5e shows the prediction result of knowledge distillation using multiple teacher networks (IML).

[0035] Figure 6 Comparison results of the accuracy of the proposed lightweight method for SAR image building extraction based on cross-modal SAR images and other knowledge distillation methods on SAR images, where w / od means that no knowledge distillation method is used.

[0036] Figure 7 Comparison results of the F1 score (F1score) of the proposed lightweight method for SAR image building extraction model based on cross-modality and other knowledge distillation methods on SAR images, where w / od means that no knowledge distillation method is used.

[0037] Figure 8 Comparison results of the intersection over union (IoU) of the proposed lightweight method for SAR image building extraction based on cross-modality and other knowledge distillation methods on SAR images, where w / od means that no knowledge distillation method is used.

[0038] Fig. 9This figure shows the F1score comparison results of different lightweight networks for the proposed lightweight method for SAR image building extraction model based on cross-modality, where w / o distillation means that the knowledge distillation method is not used.

[0039] Fig.10 This is the IoU comparison results of different lightweight networks for the proposed lightweight method of SAR image building extraction model based on cross-modality, where w / o distillation means that the knowledge distillation method is not used. DETAILED DESCRIPTION

[0040] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0041] Please refer to Figure 1 As shown, an embodiment of the present invention provides a lightweight method for extracting a building model from a SAR image based on a cross-modality, the method comprising the following steps:

[0042] S1: stretching the output of each level of the encoding stage into an image of the same size as the input image through a multi-scale detection unit, and merging the stretched images, wherein the images include optical images and SAR images;

[0043] S2: The attention module is used to enhance the meaningful features and suppress the useless features of the merged optical image and SAR image;

[0044] S3: Generate multi-scale images by adaptive average pooling of the optical image and SAR image after the attention module;

[0045] S4: Minimize the KL divergence of multi-scale optical images and SAR images and the overall loss function.

[0046] The present invention proposes a lightweight method for SAR image building extraction model based on cross-modality, which performs knowledge distillation through multi-scale features, utilizes the information in optical images to improve the segmentation performance of SAR images, realizes cross-modal knowledge distillation, and transfers the knowledge of a large model trained with optical images to a lightweight model trained with SAR images, thereby improving the segmentation performance of the lightweight model on SAR images.

[0047] Specifically, S1: Given an input optical image X O , SAR image X S , label image Y, the output of the i-th encoding stage is defined as F i , the output of the network is defined as P O and PS , the multi-scale detection unit is defined as M(.). The output of each level of the encoder is stretched to the same size as the input image through the multi-scale detection unit. Its size is the same as the input image, and the number of channels is the same as the mask image, and then the stretched images are merged. The multi-scale detection unit M(.) is a combination of a convolutional layer and an upsampling layer. For the encoder output F after the multi-scale detection unit i The statement is as follows:

[0048] M(F i )=Upsample(Conv(F i ))

[0049] The formula for the combined stretched image is as follows:

[0050]

[0051]

[0052] Wherein, O and S represent optical image and SAR image.

[0053] S2: For the stretched and merged image H, after the attention module SCSE, the meaningful features are enhanced and the meaningless features are suppressed, that is:

[0054] G O =SCSE(H O )

[0055] G S =SCSE(H S ).

[0056] S3: The size of the generated image is controlled by setting the scale of the adaptive average pooling. The image G after the attention module is generated into a multi-scale image through adaptive average pooling. The formula is expressed as:

[0057]

[0058]

[0059] S4: Minimizing Multiscale Images from Optical Image Networks and multi-scale images from SAR image networks The KL divergence of images of the same size and the overall loss function, minimizing the KL divergence of multi-scale images is expressed as:

[0060]

[0061] The overall loss function is expressed as:

[0062] L=L CE (PS ||Y)+α·KL(P S ||P O )+β·L MFD

[0063] Among them, Y represents the label image, P O and P S They represent the output of the teacher network and the output of the student network respectively, and CE represents the cross entropy loss function.

[0064] The beneficial effects of a lightweight method for extracting buildings from SAR images under cross-modality provided by the present invention are described below in an experimental verification manner.

[0065] 1. Experimental data: MSAW dataset:

[0066] The real remote sensing dataset used in the experiment is the Multi-Sensor All-Weather Mapping (MSAW) dataset, which includes high-resolution and registered optical images and SAR images with a spatial resolution of about 0.5m. The SAR image contains four polarization bands, namely HH, HV, VH and VV, and the SAR image is captured by an aerial sensor in cooperation between Capella Space and Metasensing. The optical image is provided by the Maxar Worldview-2 satellite and has four fully sharpened multispectral bands, namely blue, green, red and near infrared (NIR). The registered SAR image, optical image and label image are shown in Figure (4a), Figure (4b) and Figure (4c).

[0067] 2. Experimental results: MSAW dataset

[0068] In this experiment, the number of encoders of the teacher network and the student network is 5, and 1, 0.5, 0.25, and 0.125 are selected as scale factors. In the experiment, the Unet structure with EfficientNetB3 as the backbone is selected as the teacher network, and the student network adopts the Unet structure with ResNet18 and MobileNetV2 as the backbone. In the training stage, the registered optical images are randomly cropped and randomly rotated 90° at the same position; in the test stage, the segmentation performance of the model is evaluated only by SAR images. The adaptive moment estimation (Adam) optimizer is used in the training process, the learning rate is set to 0.001, a total of 100 epochs are trained, the batch size is 32, and α is set to 5 and β is set to 0.8 in the overall loss function. All experiments are built based on the Pytorch environment and conducted on the NVIDIA RTX3090 GPU.

[0069] The following evaluation indicators are used to evaluate the segmentation performance of the student network on SAR images: Accuracy, F1-score, Intersection over Union (IoU), Recall, and Precision. Table 1 shows the segmentation performance of the teacher network and the student network on the MSAW dataset, including the segmentation performance of the teacher network with a U-Net structure based on EfficientNetb3 on optical images and SAR images, and the segmentation performance of the student network with a U-Net structure based on ResNet18 and MobileNetV2 on SAR images.

[0070] Table 1 Segmentation performance of teacher network and student network on MSAW dataset (%)

[0071]

[0072] Table 2 shows the segmentation performance of the student network of different knowledge distillation methods on the MSAW dataset, where SKD extracts pairwise distillation of pairwise similarities, and uses GAN to extract overall distillation of overall knowledge; CWD soft-aligns the attention maps between the corresponding channels of the teacher network and the student network; MGD masks the random pixels of the student features and forces it to generate the complete features of the teacher through a simple block; IML uses all available data to train the model on each mode to obtain the teacher model, and then these teacher models are used to train the student network through knowledge distillation. From the results in the table, it can be seen that the proposed method is compared with the ResNet18-Unet baseline method. The F1score of the proposed method is improved from 73.44% to 75.44%, and the IoU is improved from 58.03% to 60.53%; the F1score of the MobileNetV2-Unet baseline method is improved from 73.39% to 75.35%, and the IoU is improved from 57.96% to 60.45%, and it is better than the current advanced knowledge distillation methods. Since there are only two categories in the binary classification, background and foreground, and the background accounts for a large proportion, the improvement in Accuracy is small. From Figure 4 It can be intuitively seen that the proposed method is superior to other distillation methods.

[0073] Table 2 Verification of the segmentation performance of the student network for SAR images on the MSAW dataset using different knowledge distillation methods (%)

[0074]

[0075] In order to prove that the lightweight method of SAR image building extraction model based on cross-modality proposed in the present invention is not only applicable to specific lightweight networks such as ResNet18-Unet and MobileNetV2-Unet, but also applicable to other lightweight networks. Table 3 compares the floating point operation amount (FLOPS) and model parameter amount (parm) of different lightweight models, and sets the batch size (batchsize) to 32.

[0076] Table 3 Comparison of floating point operations (FLOPS) and model parameter size (parm) of different lightweight models

[0077] Method FLOPS(MB) Parm(MB) BiSeNetV1 749.06 23.20 BiSeNetV3 441.55 14.25 RegSeg 94.25 3.34 ENet 54.25 0.35 ResNet18-Unet 1621.42 25.51 MobileNetV2-Unet 462.66 8.86

[0078] Table 4 shows the segmentation performance of the four lightweight networks before using knowledge distillation, and the segmentation performance after using the lightweight method of SAR image building extraction model under the proposed cross-modal knowledge distillation technology. Among them, the F1score and IoU of BiSeNetV1 after distillation increased by 0.84% ​​and 1.09% respectively; the F1score and IoU of BiSeNetV3 after distillation increased by 0.42% and 0.49% respectively; the F1score and IoU of RegSeg after distillation increased by 1.24% and 1.52% respectively; the F1score and IoU of ENet after distillation increased by 5.4% and 5.68% respectively;

[0079] Table 4 Segmentation performance of different lightweight networks on SAR images before and after using knowledge distillation method (%)

[0080]

[0081] The present invention proposes a lightweight method for building extraction model of SAR image based on cross-modality, which mainly includes: 1) stretching the output of each level of the encoder to the same size as the input image through a multi-scale detection unit, and the size is the same as the input image, and the number of channels is the same as the mask image, and then merging the stretched images; 2) for the stretched and merged image H, after the attention module SCSE, the meaningful features are enhanced and the meaningless features are suppressed; 3) multi-scale images are generated by adaptive pooling; 4) the KL divergence of images of the same scale and the overall loss function are minimized. Extensive experiments were carried out on a large-scale multi-sensor all-weather building segmentation dataset, and compared with the most advanced methods, the effectiveness of the method was proved.

[0082] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer device, including:

[0083] A memory for storing computer programs;

[0084] A processor is used to implement the steps of the above-mentioned lightweight method for extracting building models from SAR images based on cross-modality when executing a computer program.

[0085] In the embodiment of the present invention, the processor may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices.

[0086] The processor may call a program stored in the memory. Specifically, the processor may execute operations in an embodiment of the method for calculating normalized orbital angular momentum flux density.

[0087] The memory is used to store one or more programs, which may include program codes, and the program codes include computer operating instructions.

[0088] In addition, the memory may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0089] Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned lightweight method for extracting a building model from a SAR image based on cross-modality are implemented.

[0090] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0091] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1A device that provides the functions specified in a block or multiple blocks.

[0092] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0093] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0094] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A lightweight method for building extraction from SAR images based on cross-modal models. It is characterized in that include: Stretching the output of each level of the encoding stage into an image of the same size as the input image through a multi-scale detection unit, and merging the stretched images, wherein the images include optical images and SAR images; The attention module is used to enhance the meaningful features and suppress the useless features of the merged optical image and SAR image. Generate multi-scale images by adaptive average pooling of optical images and SAR images after the attention module; Minimize the KL divergence of multi-scale optical images and SAR images and the overall loss function; The method of stretching the output of each level of the encoding stage into an image of the same size as the input image through the multi-scale detection unit includes: Given an input optical image and SAR images , define The output of the encoding stage is And the multi-scale detection unit is , where O and S represent optical image and SAR image, respectively; The first The output of the encoding stage Input to the multi-scale detection unit , and get its output , wherein the multi-scale detection unit It is a combination of convolutional layer and upsampling layer; The formula for merging the stretched optical images is: ; The attention module is used on the merged image to enhance meaningful features and suppress useless features, including: After the merged optical image passes through the attention module, we get: ; After the merged SAR image passes through the attention module, we get: ; The optical image and SAR image after the attention module are adaptively averaged to generate multi-scale images, including Generate multi-scale optical images by adaptive average pooling of the optical image after the attention module ; Generate multi-scale SAR images by adaptive average pooling of the SAR images after the attention module ; Minimize the KL divergence of multi-scale optical and SAR images, including: Minimizing the KL divergence of multi-scale optical images and SAR images is expressed as ; The overall loss function is: , in, represents the label image, and Represent the output of the teacher network and the output of the student network respectively, represents the cross entropy loss function.

2. The lightweight method for extracting buildings from SAR images based on a cross-modal model as claimed in claim 1, Features: Output of the multi-scale detection unit Same as input image, same number of channels as mask channels.

3. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to claim 1 or 2 is implemented.

4. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to claim 1 or 2 is implemented.