Synthetic aperture optical image restoration method based on multi-scale feature enhancement
By employing a multi-scale feature-enhanced synthetic aperture optical image restoration method, which optimizes information interaction between the generator and discriminator networks, the problems of imaging blurring and ringing in synthetic aperture optical systems are solved, achieving high-quality image restoration results.
Patent Information
- Application Number
- CN202410173456.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-07
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-02-07
AI Technical Summary
The blurring problem in traditional synthetic aperture optical systems leads to image blur and artifacts. Existing restoration algorithms are difficult to effectively handle the degraded blurring of various synthetic aperture optical system images and are easily affected by ringing phenomena.
A synthetic aperture optical image restoration method based on multi-scale feature enhancement is adopted. By constructing a network consisting of a generator, a discriminator, a multi-scale feature fusion module, and a self-attention hybrid domain attention module, information interaction is optimized and attention is paid to the real structure of the image, thus solving the artifact interference caused by the ringing phenomenon.
It effectively improves the reconstruction effect of synthetic aperture optical images, increases image resolution and clarity, reduces artifacts caused by ringing, and enhances the quality of image reconstruction.
Smart Images

Figure CN117994140B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a synthetic aperture optical image restoration method based on multi-scale feature enhancement. Background Technology
[0002] With the advancement of technology, human demands for the resolution of optical imaging systems used in atmospheric observation and environmental monitoring are constantly increasing. The size of a single physical aperture in a traditional optical system cannot be increased indefinitely; therefore, the resolution of traditional optical imaging systems is usually fixed and lacks flexibility. Synthetic aperture optics (SAP) systems arrange and combine independent sub-apertures in a specific spatial manner to process signals from small apertures, achieving resolution equivalent to that of a single large aperture imaging system. However, with the widespread application of SAP systems, their inherent problems have gradually become apparent. The biggest problem is the degradation and blurring caused by multi-aperture imaging, which affects image detail and resolution, leading to blurred images and artifacts, and in severe cases, even preventing imaging altogether.
[0003] To address the blurring problem in synthetic aperture optical systems (SAP) images, Fienup et al. (Fienup JR, Griffith DK, Harrington L, et al. Comparison of reconstruction algorithms for images from sparse aperture systems[J]. Proceedings of SPIE, 2002, 4792: 1-8) used Wiener filtering based on signal-to-noise ratio theory to restore blurred SAP images. However, traditional restoration algorithms rely too heavily on the point spread function of the optical system and have poor adaptability, making it difficult to simultaneously handle images generated by multiple types of SAP optical systems.
[0004] The development of deep learning has greatly promoted the improvement of image restoration technology. For traditional blurred images, Tao et al. (TaoX, Gao HY, Wang Y, et al. Scale-Recurrent Network for Deep Image Deblurring[J]. 2018 IEEE / CVF Conference on Computer Vision and Pattern Recognition(CVPR)(2018):8174-8182) and Zamir et al. (Zamir SW, Arora A, Khan S et al. Multi-Stage Progressive Image Restoration[J]. 2021 IEEE / CVF Conference on Computer Vision and Pattern Recognition(CVPR)(2021):14816-14826) proposed using multi-scale networks, which are no longer limited by the blur kernel and fuse features from different stages, thus optimizing the transfer of information between different scales. Kupyn et al. (Kupyn O, Budzan V, Mykhailych M, et al. DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks[J]. 2018 IEEE / CVF Conference on Computer Vision and Pattern Recognition(2017):8183-8192) proposed a deblurring network based on deep residual structures, achieving excellent deblurring results. Unlike motion blur and jitter blur in traditional images, the imaging blur problem of synthetic aperture optical systems presents a specific situation described by the point spread function, and the blur shape is not uniformly distributed. In addition, due to the influence of sub-aperture phase arrangement, synthetic aperture optical system imaging is prone to ringing phenomena. When using traditional methods for restoration, it is easily affected by ringing phenomena, resulting in artifacts and poor restoration results. Therefore, how to effectively focus on the true structural information of the image and restore it has become a key issue in synthetic aperture optical image restoration. Summary of the Invention
[0005] Purpose of the invention: The purpose of this invention is to provide a synthetic aperture optical image restoration method based on multi-scale feature enhancement, which can effectively focus on the real structural information of the image and improve the synthetic aperture optical image restoration effect.
[0006] Technical solution: The present invention is a synthetic aperture optical image restoration method based on multi-scale feature enhancement, comprising the following steps:
[0007] S1. Based on the point spread function measured by the real optical system, a simulation degradation experiment is carried out on the remote sensing dataset to obtain the degraded image of the remote sensing dataset. After preprocessing, the remote sensing dataset and the degraded image are divided into training set, validation set and test set according to the set ratio.
[0008] S2, a synthetic aperture optical image restoration network based on multi-scale feature enhancement is constructed, including a generator, a discriminator, a multi-scale feature fusion module, a feature enhancement module, and a hybrid domain attention module based on self-attention;
[0009] S3: Input the training set and validation set into the synthetic aperture optical image restoration network for training, calculate the loss function and perform backpropagation, update the network parameters, and obtain the optimal parameter model.
[0010] S4. Input the test set into the optimal parameter model obtained in step S3, and output the restored image of the synthetic aperture optical system.
[0011] Furthermore, in step S1, obtaining the degraded image of the remote sensing dataset specifically involves: measuring the parameters of the actual synthetic aperture optical system, obtaining the point spread function of the actual synthetic aperture optical system, and saving it in txt format; then using PyCharm software to read the point spread function and convolving it with the remote sensing dataset to obtain the simulated degraded blurred image.
[0012] The dataset preprocessing specifically involves scaling the remote sensing dataset and the degraded image to 256x256 pixels, and then mapping them one-to-one as input and target images.
[0013] The dataset was divided as follows: the preprocessed remote sensing dataset and degraded images were randomly divided into three parts, with the training set accounting for 80%, the validation set accounting for 10%, and the test set accounting for 10%.
[0014] Furthermore, the generator is mainly composed of an encoding module and a decoding module. The encoding module is composed of a downsampling module consisting of an activation layer, a convolutional layer, and a normalization layer. The first layer is a single convolutional layer, the second to seventh layers are downsampling modules, and the eighth layer is a connection layer between the encoding and decoding networks, consisting of a LeakyReLU activation layer, a convolutional layer, a ReLU activation layer, a deconvolutional layer, and a normalization layer. The convolutional layer performs convolution operations with a kernel size of 4×4 and a stride of 2. The activation layer uses the LeakyReLU activation function to activate the encoding region. The normalization layer uses BatchNorm2d for normalization.
[0015] The encoding module takes the degraded image as input to the first layer. It first transforms the missing region image into a 64-channel image through a 4x4 convolution, making the feature map resolution half that of the original input image. Then, through the second to seventh layers, it obtains multi-scale feature images with resolutions of 1 / 4, 1 / 8, 1 / 16, 1 / 32, 1 / 64, and 1 / 128 of the original image, respectively. Finally, through the eighth layer, it connects to the decoding region, resulting in the encoding network outputting a feature map with a resolution of 1 / 128 of the original input image. A self-attention-based hybrid domain attention mechanism module is inserted between the 1 / 16 and 1 / 32 resolutions of the original image.
[0016] The decoding module consists of an activation layer, a deconvolution layer, and a normalization layer, forming an upsampling module. Layers one through seven are concatenated with the corresponding layers in the encoding module before being passed to the next layer. The deconvolution layer performs deconvolution with a kernel size of 4×4 and a stride of 2. The activation layer uses the ReLU activation function for activation. The normalization layer uses BatchNorm2d for normalization.
[0017] The output of the eighth layer of the encoding module is used as the input of the decoding module. After passing through the first layer upsampling module, a feature map with a resolution of 1 / 64 of the original image is obtained. This feature map is then stitched together with the corresponding scale feature map output from the multi-scale feature fusion module. After passing through the second layer, a feature map with a resolution of 1 / 32 of the original image is obtained. This feature map is then stitched together with the corresponding scale feature map output from the multi-scale feature fusion module. This process continues until the seventh layer, which yields a feature map with a resolution of 1 / 2 of the original image, finally resulting in the restored synthetic aperture optical system image.
[0018] Furthermore, the discriminator includes a feature extraction layer composed of a convolutional layer, a normalization layer, and an activation layer. The convolutional layer performs convolution operations with a kernel size of 5x5 and a stride of 2. The activation layer uses the ReLU activation function for activation operations. The normalization layer uses BatchNorm2d for normalization operations.
[0019] Furthermore, the multi-scale feature fusion module includes a first multi-scale feature fusion module and a second multi-scale feature fusion module;
[0020] The features at different scales in the encoding module are divided into deep features and shallow features. The feature maps of the original input image at resolutions of 1 / 2, 1 / 4, 1 / 8, and 1 / 16 are classified as shallow features and input into the first multi-scale fusion module. The feature maps of the original input image at resolutions of 1 / 32, 1 / 64, and 1 / 128 are classified as deep features and input into the second multi-scale feature fusion module. The feature images at each scale are convolved in the feature fusion module and then input into the feature enhancement module. The output of the feature enhancement module is then multiplied with the original feature map, and the result is output to the decoding module.
[0021] Furthermore, the feature enhancement module consists of a max pooling layer, an average pooling layer, a convolutional layer, a multiplication operation, and an addition operation. The max pooling layer selects the maximum value in the target region as the new value after pooling. The average pooling layer selects the average value of all values in the target region as the new value after pooling. The convolutional layer is a convolutional operation with a 3x3 kernel, a stride of 1, and padding of 1. The multiplication operation multiplies two feature maps corresponding to each other. The addition operation adds two feature maps element-wise.
[0022] After entering the feature enhancement module, features of different scales are first subjected to max pooling and average pooling operations and then added together. The result is then convolved with the result of max pooling. At the same time, the feature map is subjected to two convolutions and then multiplied with the result of average pooling. After another convolution operation, it is convolved with the feature map after the max pooling and average pooling operations and the feature image after max pooling, and finally outputs the feature image after feature enhancement.
[0023] Furthermore, the hybrid domain attention module mainly consists of a convolutional layer, a normalization layer, a transpose operation, and an add module; the convolutional layer performs a convolution operation with a kernel size of 3×3 and a stride of 1; the normalization layer uses BatchNorm2d for normalization; the transpose operation transposes the resulting matrix; and the add module merges the matrices by summing their corresponding elements.
[0024] Furthermore, in step S2, the implementation steps for building a synthetic aperture optical image restoration network based on multi-scale feature enhancement are as follows:
[0025] S21, the degraded image is input into the generator. The degraded image first passes through the encoding module in the generator to obtain feature maps of 1 / 4, 1 / 8, 1 / 16, 1 / 32, 1 / 64 and 1 / 128 resolution of the original input image, and finally obtains a high-level semantic feature with 1024 features and a size of 2x2.
[0026] S22, the feature image obtained at 1 / 16 resolution of the original image is input into the hybrid domain attention module to achieve simultaneous attention to the image information space and channel domain;
[0027] S23, the generator's encoding module is divided into deep features and shallow features. The shallow features are input into the first multi-scale feature fusion module, and the deep features are input into the second multi-scale feature fusion module. After convolution, they are input into the feature enhancement module.
[0028] Step 24: First, pass the feature images of different scales through the feature enhancement module to sharpen key features;
[0029] S25, the high-level semantic features with 1024 features and a size of 2x2 obtained in step S21 are decoded by the decoding module to obtain a generated image with a size of 256x256.
[0030] S26, the generated image from step S25 is passed to the discriminator, which scores and judges the generated image at different scales, and then passes the results to the generator.
[0031] Furthermore, in step S3, obtaining the optimal parameter model specifically includes the following steps:
[0032] S31, the parameters of the synthetic aperture optical image restoration network are randomly initialized. The preprocessed training set and validation set are input into the generator of the synthetic aperture optical image restoration network, and the restored image is output. The discriminant loss is generated using the relative discriminant network, and the discriminant parameters are updated. The optimal discriminant parameters are obtained and saved with the minimum of the discriminant loss as the optimization objective.
[0033] S32: After calculating the fusion loss between the restored image and the original image, the loss is added to the discrimination loss and then backpropagated. The generator automatically updates the network parameters, taking the minimization of the generation loss as the optimization objective, and obtains and saves the best generator parameters.
[0034] Compared with the prior art, the significant advantages of this invention are as follows:
[0035] 1. This invention proposes an optical image restoration method based on generative adversarial networks with multi-scale feature enhancement. It uses a U-Net structure to obtain multi-scale features of the image, which solves the difficulty of manually designing degradation models required by traditional image restoration methods.
[0036] 2. This invention employs a multi-scale feature fusion module to optimize the information interaction method of the encoding and decoding layers; and a feature enhancement module to focus more on the true structure of the original image, thus solving the artifact interference caused by the ringing phenomenon.
[0037] 3. This invention adopts a hybrid domain attention mechanism based on self-attention, which pays more attention to the spatial information of the image; a multi-scale relative discriminator is introduced to further improve the generation quality of the generator. Experimental results show that this method effectively solves the problem of blurring and degradation of the imaging results of synthetic aperture optical systems. Attached Figure Description
[0038] Figure 1 This is a schematic diagram of the process of the present invention;
[0039] Figure 2 This is a structural diagram of the synthetic aperture optical image restoration model in this invention;
[0040] Figure 3 This is a structural diagram of the multi-scale feature fusion module;
[0041] Figure 4 This is a structural diagram of the feature enhancement module;
[0042] Figure 5 Here is a structural diagram of the hybrid domain attention module;
[0043] Figure 6 This is a structural diagram of the discriminator;
[0044] Figure 7 (a) in the image is the original, clear remote sensing image.
[0045] (b) is the degraded remote sensing image after the degradation model has been applied.
[0046] (c) is a schematic diagram of the restoration of degraded remote sensing images by the Wiener filtering algorithm.
[0047] (d) is a schematic diagram illustrating the restoration of degraded remote sensing images by the Deblur GAN algorithm.
[0048] (e) is a schematic diagram of the restoration of degraded remote sensing images by the SRN algorithm.
[0049] (f) is a schematic diagram of the restoration of degraded remote sensing images by the MPRNet algorithm.
[0050] (g) is a schematic diagram of the restoration of degraded remote sensing images according to the present invention;
[0051] Figure 8 Image (a) shows the synthetic aperture degradation image when the ringing factor n = 0.
[0052] (b) is the synthetic aperture degradation image when the ringing factor n = 1.
[0053] (c) is the synthetic aperture degradation image when the ringing factor n = 5.
[0054] (d) is the synthetic aperture degradation image when the ringing factor n = 10;
[0055] Figure 9 Image (a) in the image shows the restored result when the ringing factor n = 0.
[0056] (b) shows the restored image when the ringing factor n = 1.
[0057] (c) shows the restored image when the ringing factor n = 5.
[0058] (d) shows the restored image when the ringing factor n = 10;
[0059] Figure 10 Image (a) shows the synthetic aperture degradation image when the ringing factor n = 10.
[0060] (b) is a schematic diagram showing the restoration of the synthetic aperture degradation image by the Deblur GAN algorithm when the ringing factor n = 10.
[0061] (c) is a schematic diagram of the restoration of the synthetic aperture degradation image by the SRN algorithm when the ringing factor n = 10.
[0062] (d) is a schematic diagram showing the restoration of the synthetic aperture degradation image by the MPRNet algorithm when the ringing factor n = 10.
[0063] (e) is a schematic diagram of the restoration of the synthetic aperture degradation image when the ringing factor n=10 according to the present invention;
[0064] Figure 11 In the image, (a) is the original remote sensing image with the light anomaly, and (b) is the degraded remote sensing image with the light anomaly.
[0065] (c) Schematic diagram of the restoration results of the image with abnormal light degradation according to the present invention. Detailed Implementation
[0066] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments.
[0067] The synthetic aperture optical image restoration method based on multi-scale feature enhancement provided in this embodiment, such as... Figure 1 , Figure 2 As shown, it includes the following steps:
[0068] Step 1: Obtain the NWPU-RESISC45 remote sensing dataset. Perform a simulation degradation experiment on the remote sensing dataset using the point spread function measured by a real optical system to obtain degraded images of the NWPU-RESISC45 remote sensing dataset. Divide the degraded images into training set, validation set, and test set according to a set ratio.
[0069] The NWPU-RESISC45 remote sensing dataset contains a total of 31,500 images of 256x256 pixels, covering 45 categories, with 700 images in each category.
[0070] The specific process for simulating degradation of the remote sensing dataset is as follows: by measuring the parameters of the actual synthetic aperture optical system, the point spread function of the actual synthetic aperture optical system is obtained, saved as a txt file, and then the point spread function is read using PyCharm software and convolved with the NWPU-RESISC45 remote sensing dataset to obtain a blurred image of simulation degradation.
[0071] The dataset preprocessing specifically involves scaling the NWPU-RESISC45 remote sensing dataset and degraded images to 256x256 pixels, and then mapping them one-to-one as input and target images.
[0072] The dataset is divided into three parts: the preprocessed dataset is randomly divided into three parts, with the training set accounting for 80%, the validation set accounting for 10%, and the test set accounting for 10%.
[0073] Step 2: Construct a synthetic aperture optical image restoration network based on multi-scale feature enhancement, including a generator, a discriminator, a multi-scale feature fusion module, a feature enhancement module, and a self-attention-based hybrid domain attention mechanism module.
[0074] The generator is mainly composed of an encoding module and a decoding module. The encoding module uses convolutional layers instead of downsampling layers in the traditional U-Net network to reduce the information loss problem caused by downsampling operations in the traditional U-Net network.
[0075] The encoding module consists of a downsampling module composed of activation layers, convolutional layers, and normalization layers; the first layer is a single convolutional layer, the second to seventh layers are downsampling modules, and the eighth layer is the connection layer between the encoding and decoding modules, which consists of Leakyrelu activation layers, convolutional layers, ReLU activation layers, deconvolution layers, and normalization layers.
[0076] The convolutional layer performs convolution operations with a kernel size of 4×4 and a stride of 2;
[0077] The activation layer uses the Leakyrelu activation function to activate the coding region;
[0078] The normalization layer uses BatchNorm2d for normalization.
[0079] The encoding module takes the degraded image as input to the first layer. First, it transforms the image of the missing region into a 64-channel image through a 4x4 convolution, meaning that the resolution of its feature map is half that of the original input image. Then, through the second to seventh layers, it obtains multi-scale feature maps with resolutions of 1 / 4, 1 / 8, 1 / 16, 1 / 32, 1 / 64, and 1 / 128 of the original image, respectively. Finally, the output feature map of the encoding network is 1 / 128 of the resolution of the original input image. A hybrid domain attention module based on self-attention is inserted between the 1 / 4 and 1 / 16 resolutions of the original image.
[0080] The network structure of the decoding module is as follows:
[0081] The decoding module consists of an activation layer, a deconvolution layer, and a normalization layer, forming an upsampling module. The first to seventh layers are concatenated with the encoding region relative to the layer number before being passed to the next layer.
[0082] The deconvolution layer performs deconvolution operations with a kernel size of 4×4 and a stride of 2;
[0083] The activation layer uses the ReLU activation function for activation operations;
[0084] The normalization layer uses BatchNorm2d for normalization.
[0085] The output of the eighth layer of the encoding module is used as the input of the decoding module. After passing through the first layer upsampling module, a feature map with a resolution of 1 / 64 of the original image is obtained. This feature map is then stitched together with the corresponding scale feature map output from the multi-scale feature fusion module. After passing through the second layer, a feature map with a resolution of 1 / 32 of the original image is obtained. This feature map is then stitched together with the corresponding scale feature map output from the multi-scale feature fusion module. This process continues until the seventh layer, which yields a feature map with a resolution of 1 / 2 of the original image, finally resulting in the restored synthetic aperture optical system image.
[0086] like Figure 6 As shown, the network results of the discriminator are as follows:
[0087] The discriminator consists of a feature extraction layer composed of convolutional layers, normalization layers, and activation layers;
[0088] The convolutional layer performs convolution operations with a kernel size of 5x5 and a stride of 2;
[0089] The activation layer uses the ReLU activation function for activation operations;
[0090] The normalization layer uses BatchNorm2d for normalization.
[0091] The discriminator takes the generator's final output image, a feature image at half the resolution of the original image, and a feature image at one-quarter the resolution of the original image as three inputs, and performs convolution to extract features. The final output image is input into the result of two convolutions of the feature image at half the resolution of the original image after three convolutions, and then input into the result of two convolutions of the feature image at one quarter the resolution of the original image after one more convolution operation. Finally, the discriminator outputs the discrimination result, which is backpropagated to the generator.
[0092] like Figure 3 As shown, the network structure of the multi-scale feature fusion module is as follows:
[0093] The multi-scale feature fusion module includes a first multi-scale feature fusion module and a second multi-scale feature fusion module.
[0094] The features at different scales in the encoding module are divided into deep features and shallow features. Feature maps at resolutions of 1 / 2, 1 / 4, 1 / 8, and 1 / 16 of the original input image are classified as shallow features and input into the first multi-scale feature fusion module. Feature maps at resolutions of 1 / 32, 1 / 64, and 1 / 128 of the original input image are classified as deep features and input into the second multi-scale feature fusion module. The feature images at each scale are convolved in the multi-scale feature fusion module and then input into the feature enhancement module. The output of the feature enhancement module is multiplied with the original feature map, and the result is output to the decoding module. Simultaneously, it is used as a higher-level feature to add with lower-level features, and then a similar feature fusion operation is performed.
[0095] like Figure 4 As shown, the feature enhancement network structure is as follows:
[0096] The feature enhancement module consists of max pooling layers, average pooling layers, convolutional layers, multiplication operations, and addition operations;
[0097] The max pooling layer selects the maximum value in the target region as the new value after pooling in that region;
[0098] The average pooling layer selects the average value of all values in the target region as the new value after pooling that region.
[0099] The convolutional layer is a convolutional operation with a kernel size of 3x3, a stride of 1, and padding of 1.
[0100] The multiplication operation involves multiplying the corresponding feature maps.
[0101] The addition operation is to add elements of two feature maps together.
[0102] After entering the feature enhancement module, features of different scales are first subjected to max pooling and average pooling operations and then added together. The result of the addition is then convolved with the result of max pooling. Simultaneously, the feature map is subjected to two convolutions and then multiplied with the result of average pooling. After another convolution operation, it is convolved with the feature map resulting from the addition of max pooling and average pooling operations, as well as the feature image resulting from max pooling, and finally outputs the feature image after feature enhancement.
[0103] like Figure 5 As shown, the network structure of the self-attention-based hybrid domain attention module is as follows:
[0104] The hybrid domain attention module mainly consists of convolutional layers, normalization layers, transpose operations, and an add module;
[0105] The convolutional layer performs convolution operations with a kernel size of 3×3 and a stride of 1;
[0106] The normalization layer uses BatchNorm2d for normalization.
[0107] The transpose operation transposes the resulting matrix.
[0108] The Add module merges matrices by summing their corresponding elements;
[0109] The hybrid domain attention module takes the extracted feature map from the encoding region as input, with a size of C1xHxW. Feature A, with C1 channels, H height, and W width, is passed through a convolutional layer and then reshaped and transposed to obtain feature B of size N×C1 (where N = H×W). Feature A is then passed through another convolutional layer and reshaped only to obtain features C and D. Finally, feature B and feature C are multiplied by matrix and normalized to obtain the spatial feature map S. Two self-learning weight factors are set. The extracted features D and β (initially both 0) are multiplied by the spatial feature map S, reshaping them into features of the original size, and then weighted by factors. Under the influence of the weight factor β, the original input feature A is added and fused with the original input feature A. Then, under the influence of the weight factor β, the original input feature A is multiplied with the fused feature by matrix multiplication, finally obtaining feature A' which focuses on spatial information. Since spatial information is not needed in the channel domain, feature A' is directly reshaped and transposed similarly to the spatial domain to obtain features E, F, and G. After multiplying features F and G, a normalization operation is performed to obtain the channel features. Figure X Then, feature E and channel features were used. Figure XSoft attention and hard attention are calculated separately. Soft attention calculates the attention weights at corresponding positions, while hard attention calculates only the maximum feature values at corresponding positions. The two feature results are then concatenated in the channel domain and fused using a convolutional layer to obtain feature H. A self-learning weight factor δ (initially 0) is added, and the fused output feature is added again to the previously extracted spatial feature A' under the influence of δ to further enhance the module's spatial attention capability, resulting in the final output feature P.
[0110] The steps for constructing a synthetic aperture optical image restoration network based on multi-scale feature enhancement are as follows:
[0111] Step 21: The blurred and degraded image is input into the generator of the restoration network. The generator consists of an encoding region and a decoding region. The input image first passes through the encoding region to obtain multi-scale, multi-level feature maps. The generator module adopts the U-net network encoding and decoding structure, mainly using convolution, normalization, and activation function operations to extract image features from low-level detail features to high-level features and obtain feature images at different scales. Specifically: first, a convolution operation is performed on the image of the missing region to obtain a feature map at 1 / 2 resolution of the original input image. After normalization and activation functions, a convolution operation is performed again to obtain feature maps at 1 / 4, 1 / 8, 1 / 16, 1 / 32, 1 / 64, and 1 / 128 resolutions of the original input image, respectively. Finally, a high-level semantic feature with 1024 features and a size of 2x2 is obtained. A hybrid domain attention module based on self-attention is inserted between the 1 / 4 and 1 / 16 resolutions of the original image.
[0112] Step 22: Input the feature image at 1 / 4 resolution of the original image obtained in Step 21 into a hybrid domain attention module based on self-attention, achieving simultaneous attention to the image information space and channel domain. Specifically: Using the idea of self-attention, the extracted feature information is dimensionally transformed in the channels to obtain query vectors and key vectors in the channel domain. The inner product of the two is used to obtain a weighted channel attention matrix, which is then used to calculate soft attention with the value vector. At the same time, the index value with the maximum weight is found in the last dimension of the channel attention matrix to obtain the key vector with the maximum relevance at each position, and then it is used to calculate hard attention with the value vector. The features processed by soft and hard attention are added together, and then residual fusion is performed with the original features before inputting into the spatial domain. Similar to the channel domain, spatial attention also adopts the self-attention calculation method, but a convolutional layer is used to perform feature mapping on the input channel domain features to obtain query vector, key vector, and value vector respectively. Similarly, the inner product of the query vector and key vector is calculated to obtain the spatial attention matrix, which is convolved with the value vector and fused with the output features of the channel domain. The final output is also a feature image with a resolution of 1 / 16 of the original image, which is then used for the next step of encoding and extraction.
[0113] Step 23: To better preserve the original image information and allow the network to learn more deep image information, the feature images of different scales output by the encoding module in Step 21 are processed by a multi-scale feature extraction module to obtain a feature map fused from multiple scales. The multi-scale feature extraction module takes four feature images of different scales as input, convolves them into different sizes, and then inputs them into the feature extraction module. The output feature-enhanced feature map is then convolved with the original feature images. The idea of gated convolution is adopted, and the gate mechanism is used to allow the multi-scale feature extraction module to adaptively determine the amount of each scale fused. Specifically, the encoding module of the generator is divided into deep features and shallow features. The feature maps of the original input image at resolutions of 1 / 2, 1 / 4, 1 / 8, and 1 / 16 are used as shallow features and input into the first multi-scale feature extraction module. The feature maps of the original input image at resolutions of 1 / 32, 1 / 64, and 1 / 128 are used as deep features and input into the second multi-scale feature extraction module. After convolution in the multi-scale feature extraction module, they are input into the feature enhancement module.
[0114] Step 24: Before scale fusion, the feature images of different scales from Step 23 are first processed by a feature enhancement module to sharpen key features. Specifically, max pooling and average pooling operations are performed on the feature images according to their different scales to obtain feature weight maps q1 and q2 respectively. q1 and q2 are fused to output q'2. The input features are then convolved twice and multiplied with the weight map q2 to obtain the feature weight map q3. This q3 is then fused with the weight maps q1 and q3 to form the feature space weight map [q1, q'2, q3]. Finally, the pixel weight map q in the feature space is obtained through convolution operations. m In the multi-scale fusion module, features at different scales and their corresponding pixel bit weights are mapped q. m The network performs gated convolution operations, allowing the network to customize the amount of feature enhancement and output the result. Another path adds the feature image at the next level to the feature image at the next level. The feature image at the next level then undergoes similar feature enhancement and output operations, and so on, ultimately outputting four feature images at different scales after feature enhancement and fusion.
[0115] Step 25: The high-level semantic features of 1024 and size 2x2 obtained in Step 21 are processed by the decoding module to re-obtain feature images at different scales. The decoding module and the encoding module together constitute the encoding-decoding module, which gradually completes the upsampling feature recovery through convolutional layers to restore the synthetic aperture optical degradation image. Specifically: First, the high-level semantic features of 1024 and size 2x2 output from the encoding module are subjected to convolutional sampling to make them into feature images of 1024 and size 4x4. Then, a simple skip connection operation is performed with the feature image of the corresponding size from the encoding module. Subsequently, convolutional upsampling is also performed. However, before being input to the next layer of convolutional sampling, the feature image of the corresponding size from the encoding module, which has passed through the multi-scale feature fusion module and the feature enhancement module, is fused. This is not just a simple stitching of the feature images of the original image, but rather feature enhancement and fusion with features of other scales before further fusion, which further explores the deep semantic information of the image. The scale features of each subsequent level are similar, and are fused with the feature images of the coding modules after scale fusion and extraction, until the final generated image with 3 channels and a size of 256x256 is restored.
[0116] Step 26: The generated image from step 25 is fed into the discriminator, which scores and judges the generated image at different scales, and then sends the results back to the generator.
[0117] Step 3: Input the preprocessed and simulated degradation training set and validation set from Step 1 into the synthetic aperture optical image restoration network for training, calculate the loss function and perform backpropagation, update the network parameters, and obtain the optimal parameter model.
[0118] The specific steps are as follows:
[0119] Step 31: Randomly initialize the parameters of the synthetic aperture optical image restoration network based on multi-scale feature enhancement. Input the preprocessed training set and validation set data from Step 1 into the generator of the synthetic aperture optical image restoration network based on multi-scale feature enhancement in Step 2, output the restored optical image, generate a discrimination loss using a relative discrimination network, update the parameters of the discriminator, minimize the discrimination loss as the optimization objective, obtain the optimal parameter discriminator and save it.
[0120] Step 32: After calculating the fusion loss between the restored image and the original image in Step 31, add it to the discrimination loss obtained in Step 31 and then backpropagate. The generator automatically updates the network parameters with the goal of minimizing the generation loss. The optimal parameter generator is obtained and saved.
[0121] The synthetic aperture optical image restoration network uses Wasserstein distance as the cost function for the overall generative adversarial network, specifically defined as:
[0122]
[0123] Where sup(·) represents the supremum of the function value; P r and P g These represent the true distribution and the generated distribution, respectively; K is the Lipschitz constant; ||f|| L ≤K indicates that the function f satisfies K-Lipschitz continuity; f(x) is the continuous function fitted by the network; E is the mathematical expectation under different distributions.
[0124] In synthetic aperture optical image restoration networks, the generator's generation loss is a fusion loss that integrates PSNR signal-to-noise ratio loss, SSIM structural loss, and LPIPS perceptual loss. The formula for calculating the fusion loss is as follows:
[0125] L G1 =λL 1(G) +λ psnrLpsnr +λ ssimLssim +λ lpipsLlpips (2)
[0126] Where, λ, λ psnr , λ ssim and λ lpips These represent the values used to control the generator loss L. 1(G)、 Signal-to-noise loss L psnr Structural loss L ssim and perceived loss L lpips The hyperparameters of the weights.
[0127] Generator loss L 1(G) Defined as the negative of the Wasserstein distance between generated samples and real samples, specifically:
[0128] L 1(G) =-E(D(G1(z))) (3)
[0129] Where G1(·) represents the output of the first generator module G1, D(·) represents the output of the discriminator D; E represents the mathematical expectation; and z represents the input degraded image.
[0130] The PSNR signal-to-noise loss L psnr Based on the mean squared error (MSE) function, it is specifically defined as follows:
[0131]
[0132] Where K is a constant representing the brightness range of the image, typically 255; the lg function is used to reduce Euclidean fluctuations; h and w represent the image width and height, respectively; M and N represent the generated image and the original image, respectively.
[0133] The SSIM structure loss L ssim Based on the mean, variance, and covariance of the two windowed images, specifically defined as follows:
[0134]
[0135] Where a and b represent the generated image region and the original image region, respectively; μ a and μ b σ represents the mean; a and σ b σ represents the standard deviation. ab This represents the covariance of a and b. The constants C1 = 0.0001 and C2 = 0.0009 are used to ensure that neither the numerator nor the denominator is zero.
[0136] The LPIPS perceived loss L lpips Based on the perceptual feature distance setting, it is specifically defined as:
[0137]
[0138] Among them, H l and W l Let x and x0 be the height and width of the feature at layer l, respectively; x and x0 are pixel blocks in the original image and the generated image, respectively. These pixel blocks are processed by a pre-trained VGG network for feature extraction and stacking. The output of each layer is activated, and unit normalization is performed along the channel dimension. These are denoted as follows: C l Let n be the number of channels in the l-th layer feature. After obtaining the perceptual feature distance at each layer, then use the weight nl 平 The feature distances at different levels are weighed, and finally, the weighted sums are obtained to obtain the normalized LPIPS perceptual loss value.
[0139] The discriminant loss of the discriminator is specifically defined as:
[0140]
[0141] Among them, ||·|| p Represents the p-norm; Let denote the gradient operator; λ denotes the coefficient of the penalty term; It follows a uniform distribution within the range [0, 1]. Indicates the distribution of target data p r(·) and the generated data distribution p g (·) represents uniform linear sampling between sampling points; E is the expected value under different distributions; x and z represent the real sample and the generated sample, respectively.
[0142] Step 4: Input the simulated degradation test set from Step 1 into the optimal parameter model trained in Step 3, and output the restored image of the synthetic aperture optical system.
[0143] To demonstrate the effectiveness of the synthetic aperture optical image restoration method based on multi-scale feature enhancement provided in this embodiment, the model was trained, validated, and tested after simulated degradation using NWPU-RESISC45 remote sensing data. As shown in the figures, the results of this embodiment are superior to the compared methods in terms of peak signal-to-noise ratio, structural similarity, and perceptual similarity, and the restored image is closest to the original image. Furthermore, this embodiment demonstrates superior performance compared to traditional deep learning deblurring algorithms for addressing the ringing phenomenon that occurs in synthetic aperture optical system imaging. In addition, this embodiment can also effectively restore degraded images with abnormal lighting, proving the practicality of this embodiment.
[0144] Table 1 shows a comparison of the performance indicators of the synthetic aperture optical image restoration method of the present invention.
[0145] Table 1. Comparison of Indicators of Synthetic Aperture Optical Image Restoration Methods
[0146]
[0147] As shown in Table 1, the results of this embodiment are higher than those of the compared methods in terms of peak signal-to-noise ratio, structural similarity, and perceptual similarity.
[0148] Depend on Figure 7 As can be seen from (a) to (g) in the present invention, the present invention is superior to the comparative method in the task of restoring degraded synthetic aperture optical images.
[0149] As Figure 8 (a)~(d) in Figure 9 (a)~(d) in Figure 10 As can be seen from (a) to (e) in the paper, the present invention still has excellent recovery performance compared with other methods under strong ringing factor interference.
[0150] Depend on Figure 11 As can be seen from (a) to (c) in the present invention, it also performs well in the task of restoring synthetic aperture optical images with abnormal light (it can repair the situation of abnormal light).
Claims
1. A synthetic aperture optical image restoration method based on multi-scale feature enhancement, characterized in that, The steps include the following: S1. Based on the point spread function measured by the real optical system, a simulation degradation experiment is carried out on the remote sensing dataset to obtain the degraded image of the remote sensing dataset. After preprocessing, the remote sensing dataset and the degraded image are divided into training set, validation set and test set according to the set ratio. S2, a synthetic aperture optical image restoration network based on multi-scale feature enhancement is constructed, including a generator, a discriminator, a multi-scale feature fusion module, a feature enhancement module, and a hybrid domain attention module based on self-attention; S3: Input the training set and validation set into the synthetic aperture optical image restoration network for training, calculate the loss function and perform backpropagation, update the network parameters, and obtain the optimal parameter model. S4. Input the test set into the optimal parameter model obtained in step S3, and output the restored image of the synthetic aperture optical system. The multi-scale feature fusion module includes a first multi-scale feature fusion module and a second multi-scale feature fusion module; The features at different scales in the encoding module are divided into deep features and shallow features. The feature maps at 1 / 2, 1 / 4, 1 / 8 and 1 / 16 resolutions of the original input image are classified as shallow features and input into the first multi-scale feature fusion module. The feature maps of the original input image at resolutions of 1 / 32, 1 / 64, and 1 / 128 are classified as deep features and input into the second multi-scale feature fusion module. The feature images at each scale are convolved in the feature fusion module and then input into the feature enhancement module. The output of the feature enhancement module is multiplied with the original feature map, and the result is output to the decoding module. The feature enhancement module consists of a max pooling layer, an average pooling layer, a convolutional layer, a multiplication operation, and an addition operation. The max pooling layer selects the maximum value in the target region as the new value after pooling. The average pooling layer selects the average value of all values in the target region as the new value after pooling. The convolutional layer is a 3x3 kernel with a stride of 1 and padding of 1. The multiplication operation multiplies two feature maps corresponding to each other. The addition operation adds two feature maps element-wise. After entering the feature enhancement module, features of different scales are first subjected to max pooling and average pooling operations and then added together. The result is then convolved with the result of max pooling. At the same time, the feature map is multiplied with the result of average pooling after being convolved twice. After another convolution operation, it is convolved with the feature map after the sum of the max pooling and average pooling operations, and the feature image after max pooling, and finally outputs the feature image after feature enhancement. The hybrid domain attention module mainly consists of a convolutional layer, a normalization layer, a transpose operation, and an add module. The convolutional layer performs convolution operations with a kernel size of 3×3 and a stride of 1. The normalization layer uses BatchNorm2d for normalization. The transpose operation transposes the resulting matrix. The add module merges the matrices by summing their corresponding elements.
2. The synthetic aperture optical image restoration method based on multi-scale feature enhancement according to claim 1, characterized in that, In step S1, obtaining the degraded image of the remote sensing dataset specifically involves: measuring the parameters of the actual synthetic aperture optical system, obtaining the point spread function of the actual synthetic aperture optical system, and saving it in txt format; then using PyCharm software to read the point spread function and convolving it with the remote sensing dataset to obtain the simulated degraded blurred image. The dataset preprocessing specifically involves scaling the remote sensing dataset and the degraded image to 256x256 pixels, and then mapping them one-to-one as input and target images. The dataset was divided as follows: the preprocessed remote sensing dataset and degraded images were randomly divided into three parts, with the training set accounting for 80%, the validation set accounting for 10%, and the test set accounting for 10%.
3. The synthetic aperture optical image restoration method based on multi-scale feature enhancement according to claim 1, characterized in that, The generator mainly consists of an encoding module and a decoding module. The encoding module is composed of a downsampling module consisting of an activation layer, a convolutional layer, and a normalization layer. The first layer is a single convolutional layer, the second to seventh layers are downsampling modules, and the eighth layer is a connection layer between the encoding and decoding networks, consisting of a LeakyReLU activation layer, a convolutional layer, a ReLU activation layer, a deconvolutional layer, and a normalization layer. The convolutional layers perform convolution operations with a kernel size of 4×4 and a stride of 2. The activation layer uses the LeakyReLU activation function to activate the encoding region. The normalization layer uses BatchNorm2d for normalization. The encoding module takes the degraded image as input to the first layer. It first transforms the missing region image into a 64-channel image through a 4x4 convolution, making the feature map resolution half that of the original input image. Then, through the second to seventh layers, it obtains multi-scale feature images with resolutions of 1 / 4, 1 / 8, 1 / 16, 1 / 32, 1 / 64, and 1 / 128 of the original image, respectively. Finally, through the eighth layer, it is connected to the decoding region, and the output feature map of the encoding network is 1 / 128 of the resolution of the original input image. A hybrid domain attention mechanism module based on self-attention is inserted between the original image resolutions of 1 / 16 and 1 / 32. The decoding module consists of an activation layer, a deconvolution layer, and a normalization layer, forming an upsampling module. Layers one through seven are concatenated with the corresponding layers in the encoding module before being passed to the next layer. The deconvolution layer performs deconvolution with a kernel size of 4×4 and a stride of 2. The activation layer uses the ReLU activation function for activation. The normalization layer uses BatchNorm2d for normalization. The output of the eighth layer of the encoding module is used as the input of the decoding module. After passing through the first layer upsampling module, a feature map with a resolution of 1 / 64 of the original image is obtained. This feature map is then stitched together with the corresponding scale feature map output from the multi-scale feature fusion module. After passing through the second layer, a feature map with a resolution of 1 / 32 of the original image is obtained. This feature map is then stitched together with the corresponding scale feature map output from the multi-scale feature fusion module. This process continues until the seventh layer, which yields a feature map with a resolution of 1 / 2 of the original image, finally resulting in the restored synthetic aperture optical system image.
4. The synthetic aperture optical image restoration method based on multi-scale feature enhancement according to claim 1, characterized in that, The discriminator includes a feature extraction layer consisting of a convolutional layer, a normalization layer, and an activation layer. The convolutional layer performs convolution operations with a kernel size of 5x5 and a stride of 2. The activation layer uses the ReLU activation function for activation operations. The normalization layer uses BatchNorm2d for normalization operations.
5. The synthetic aperture optical image restoration method based on multi-scale feature enhancement according to claim 1, characterized in that, In step S2, the implementation steps for building a synthetic aperture optical image restoration network based on multi-scale feature enhancement are as follows: S21, the degraded image is input into the generator. The degraded image first passes through the encoding module in the generator to obtain feature maps of 1 / 4, 1 / 8, 1 / 16, 1 / 32, 1 / 64 and 1 / 128 resolution of the original input image, and finally obtains a high-level semantic feature with 1024 features and a size of 2x2. S22, the feature image with a resolution of 1 / 16 of the original image is input into the hybrid domain attention module to achieve simultaneous attention to the image information space and channel domain; S23, the generator's encoding module is divided into deep features and shallow features. The shallow features are input into the first multi-scale feature fusion module, and the deep features are input into the second multi-scale feature fusion module. After convolution, they are input into the feature enhancement module. Step 24: First, pass the feature images of different scales through the feature enhancement module to sharpen key features; S25, the high-level semantic features with 1024 features and a size of 2x2 obtained in step S21 are decoded by the decoding module to obtain a generated image with a size of 256x256. S26, the generated image from step S25 is passed to the discriminator, which scores and judges the generated image at different scales, and then passes the results to the generator.
6. The synthetic aperture optical image restoration method based on multi-scale feature enhancement according to claim 1, characterized in that, Step S3, obtaining the optimal parameter model, includes the following steps: S31, the parameters of the synthetic aperture optical image restoration network are randomly initialized. The preprocessed training set and validation set are input into the generator of the synthetic aperture optical image restoration network, and the restored image is output. The discriminant loss is generated using the relative discriminant network, and the discriminant parameters are updated. The optimal discriminant parameters are obtained and saved with the minimum of the discriminant loss as the optimization objective. S32: After calculating the fusion loss between the restored image and the original image, the loss is added to the discrimination loss and then backpropagated. The generator automatically updates the network parameters, taking the minimization of the generation loss as the optimization objective, and obtains and saves the best generator parameters.
