Transform-based astronomical bright source pollution removal network

By proposing a network to remove astronomical bright source pollution in astronomical image processing, using polynomial fitting and image segmentation algorithms to generate synthetic data, and combining the encoder-decoder network and sparse attention mechanism, the problem of bright source pollution is solved. problem, achieving high-precision and robust removal effects.

CN118735804APending Publication Date: 2024-10-01HEBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410741689.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively remove bright source pollution in astronomical image processing. In particular, the impact range of bright source pollution is highly uncertain, affecting the accuracy and analysis of data, and there is a lack of effective removal methods.

Method used

Propose a network to remove pollution from astronomical bright sources. Through data preprocessing and network training, polynomial fitting and image segmentation algorithms are used to generate synthetic data, combined with a 4-level encoder-decoder network and multi-scale Patch Embedding, sparse attention mechanism and a multi-scale dual-gated feedforward network to extract and filter features to generate images free of bright source contamination.

Benefits of technology

It achieves high-precision and robust bright source pollution removal, improves image quality, and enhances data reliability and analysis capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735804A_ABST
    Figure CN118735804A_ABST
Patent Text Reader

Abstract

The invention discloses a network for removing astronomical bright source pollution, and the network is based on a U-Net architecture, combines with a Transform feature extraction module, and constructs a layered coding and decoding network. In the feature extraction part, a multi-scale sparse channel Transform module (MSCTB) is used, and the module comprises Top-k sparse attention (TKSA), a channel attention mechanism (CAB) and a multi-scale double-gated feed-forward network (MDGFN). According to the Top-k sparse attention mechanism, features are sparsified, the most useful self-attention value is reserved in a self-adaptive mode, and therefore more efficient feature aggregation is achieved; the channel attention mechanism distributes different weights according to the importance of different channels, so that the capturing capability of the network on key features is enhanced; according to the multi-scale double-gating feed-forward network, the two branches serve as the weights of each other, the nonlinear modeling capacity is enhanced, and more multi-scale information is captured. Residual connection is introduced in each level of coding and decoding so as to recover detail information. In addition, a multi-scale Patch Embedding is introduced, receptive fields of different sizes are obtained, and multi-level semantic information is provided. A hopping connection is added between the encoder and the decoder at the same level, so that the information of the encoder is effectively transmitted to the decoder. The network not only improves the removal effect of the bright source pollution, but also has important significance for the subsequent research of the bright source pollution image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of astronomical image processing, and in particular relates to a network for removing astronomical bright source pollution. Background Art

[0002] The Sloan Digital Sky Survey (SDSS) began routine operations in April 2000, and has imaged and analyzed the spectra of about one-third of the celestial bodies. This large-scale survey project provides a huge astronomical data set, providing astronomers with valuable information to reveal the mysteries and development trends of the universe. It mainly includes photometric data and spectral data, and acquires images in five major optical bands: u, g, r, i, and z. Some of these data may be interfered by various factors, such as imperfections in telescope equipment, scattering and refraction of light, and errors in data transmission and storage, resulting in reduced image quality. In particular, scattered and reflected light caused by bright astronomical sources may produce imaging artifacts. This is an unavoidable feature of many optical systems, which will affect the surrounding sources, affect the accuracy of the data, and also bring challenges to the interpretation and analysis of the data. Therefore, in-depth research and exploration of new methods and tools to better identify and eliminate these effects has become a key issue in modern astronomical data processing and improving the quality of astronomical images. Although a lot of scientific work has been done on the processing of polluted images, there is relatively little research on removing bright source pollution in the field of astronomy, and the impact range of bright source pollution is highly uncertain. Therefore, studying an algorithm to remove bright source pollution is of great significance for subsequent data processing. Summary of the invention

[0003] In order to fill the research gap of removing bright source pollution mentioned above, we proposed a network to remove astronomical bright source pollution. Experiments show that the network proposed in this paper can effectively remove bright source pollution.

[0004] like Figure 1The figure shows the overall flow chart of removing astronomical bright source pollution. The whole process mainly includes data preprocessing, network training and testing. In the data preprocessing part, data synthesis and data enhancement are first performed. In terms of data synthesis, we analyze the influence range of bright sources in real images, use the polynomial fitting method to model the influence intensity of bright sources, and obtain the approximate distribution curve of the light intensity of bright sources on the whole image. According to the corresponding relationship of the curve, the halo generated by the bright source is generated, and then the starburst generated by the bright source is extracted by the image segmentation algorithm. The halo, starburst and background image are combined to obtain the final bright source pollution synthetic image for subsequent training; data enhancement is mainly to deal with the problem of uneven data distribution, because uneven data distribution may affect the training results, so the distribution of data is balanced by performing up and down, left and right and symmetrical flipping operations on the less blue bright source pollution images. After obtaining the training data, the data is sent to the network for training to obtain a bright source pollution removal network. The essence of network training is an image reconstruction process, which first extracts the characteristics of bright source pollution, and then continuously reconstructs it to finally generate an image without bright source pollution. After the training is completed, we can send the image with bright source pollution into the network to obtain the image without bright source pollution.

[0005] The data used for training and testing come from the seventh (SDSS DR7) and twelfth (SDSS DR12) data releases of the Sloan Digital Sky Survey. We use data from the three bands i, r, and g to synthesize RGB three-channel images from these three bands, and change the pixel values ​​to the range of 0 to 255 for easy observation.

[0006] like Figure 2The figure shows the overall block diagram of the network we proposed. 3×3 convolution is applied for shallow feature extraction. Subsequently, a four-stage encoder-decoder network is used for deep feature extraction. Each level of encoder-decoder contains a multi-scale Patch Embedding and multiple MSCTBs. Multi-scale Patch Embedding generates different visual tokens with flexible expression capabilities. MSCTB contains sparse attention mechanism (TKSA), channel attention mechanism (CAB) and multi-scale dual-gated feedforward network (MDGFN); TKSA adaptively selects the top k elements to retain useful information and reduce the interference of useless features on image reconstruction, thereby providing better feature aggregation; CAB calculates channel attention weights, adaptively adjusts channel characteristics, and enhances the network's ability to capture key features. Inserting TKSA and CAB into the Transformer module in parallel enables the network to utilize local and global information at the same time and better remove bright source pollution; the multi-scale dual-gated feedforward network (MDGFN) has two parallel branches, which are used as each other's weights to filter features with less information through element-wise product, and then use element-wise weighted sum to fuse the useful information of the two branches. The output of the encoder first passes through the decoder, and then passes through a 3×3 convolutional layer to obtain a residual image, which is then added to the original image to obtain the reconstructed image. In addition, in order to better combine the intermediate features of the encoder and decoder, we add a jump connection between the two to effectively pass the features of the encoding process to the decoding process. Residual blocks are also used after the encoder-decoder structure to restore fine structural and texture details.

[0007] The beneficial effects of the present invention are:

[0008] 1. The present invention designs sparse channel attention (SCA), which replaces the self-attention in the standard Transformer with TKSA and CAB in parallel, so that the network can focus on useful features more effectively and suppress irrelevant or redundant features, thereby improving the representation ability of the network.

[0009] 2. The present invention designs a multi-scale dual-gated feedforward network (MDGFN) to filter features with less information, enrich local information and capture more important features, which is conducive to promoting image reconstruction.

[0010] 3. The present invention shows good performance in the image reconstruction task of removing bright source pollution, with higher accuracy and better robustness, and realizes the removal of bright source pollution. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is a flowchart of the overall block diagram of the present invention

[0012] Figure 2This is the network block diagram proposed by the present invention

[0013] Figure 3 This is a flow chart of the data set production process of the present invention

[0014] Figure 4 This is the MSCTB module structure diagram proposed by the present invention DETAILED DESCRIPTION

[0015] The content of the present invention is further described below in conjunction with the accompanying drawings.

[0016] like Figure 2 The figure shows a block diagram of an astronomical bright source pollution removal network proposed by the present invention. First, the bright source pollution image is sent to the first convolution layer for underlying feature extraction, and a 3×3 convolution is used to obtain a feature map. Next, the feature map is processed by a 4-level encoder-decoder, each level contains a multi-scale Patch Embedding and multiple MSCTBs, and the number of MSCTBs gradually increases. Multi-scale Patch Embedding stacks deformable convolutions of convolution kernels of different scales to generate different visual tokens, obtain different receptive field sizes, obtain multi-level semantic information, and have flexible expression capabilities; TKSA attention in MSCTB sparses the features, adaptively retains useful features, and avoids interference from irrelevant information; CAB learns each channel of the feature and adaptively adjusts different weights assigned to the channel; in the downsampling layer, we first flatten the features into 2D form, then use 3×3 convolution downsampling with stride=1, and apply PixelUnshuffle operation to extract multi-scale information. In the upsampling layer, we use 3×3 deconvolution with stride=1 for upsampling and apply PixelShuffle operation to improve feature resolution while reducing the number of channels. After 4 levels of decoder-decoder processing, a 3×3 convolution layer is used to reduce the number of channels and output the residual image, which is added to the original image to get the final output. We add skip connections between the encoder and decoder at the same level to effectively pass the encoder information to the decoder. And we also use residual blocks after the encoder-decoder structure to recover fine structural and texture details.

[0017] like Figure 3The flowchart of the present invention for making a data set is shown. Since there are only images of bright source pollution and no contrasting images without bright source pollution, it is impossible to evaluate the model. Therefore, we propose a method to generate bright source pollution images based on real bright source pollution images. First, determine the coordinates of the center point of the bright source, traverse 360 ​​degrees with this point as the center, calculate the distance from the point in each direction to the center point of the bright source, and the pixel value corresponding to the point, and obtain data in all directions. Use polynomial fitting to model the intensity and range of the bright source influence, and obtain an approximate distribution curve of the light intensity of the bright source on the entire image. The horizontal coordinate of the curve is the distance from each pixel point to the coordinates of the center point of the bright source, and the vertical coordinate is the pixel value at the corresponding position. According to the corresponding relationship, the halo generated by the bright source is obtained, and then the image segmentation algorithm is used to extract the star rays emitted by the bright source. The halo and the star rays are combined to obtain the pollution generated by the bright source. The obtained bright source pollution is combined with the background image to obtain the data required by our network.

[0018] like Figure 1 The overall flow chart of the present invention is shown. It includes the following steps:

[0019] S1: Acquire data and preprocess them; first obtain the i, r, and g three-band data of bright source pollution in DR7 and DR12 of SDSS, and synthesize these three-band data into RGB three-channel images, and then use Figure 3 The synthetic bright source pollution image is obtained by the method shown. Each image is cut into 20 images of 512×512 size with an overlap rate of 25%. We used a total of 1000 images of size 1489×2048 for network training. After data preprocessing, the final data set includes 14999 images of size 512×512 for training and 3543 images of size 512×512 for testing. The distribution of various types of data in the final network training data set is shown in Table 1:

[0020] Table 1 Statistics of data volume of various types of data

[0021]

[0022] S2: Train the image with bright source pollution removed; apply convolution for shallow feature extraction, and then use a four-level encoder-decoder network for deep feature extraction. Among them, multi-scale Patch Embedding introduces more semantic information, obtains different receptive fields, and enhances the network's expressiveness. TKSA develops a learnable Top-k operator to adaptively select the top k elements and retain useful information. For elements with a ranking less than the top k score value, their probabilities are set to 0, thereby shielding useless features and better performing feature aggregation; CAB adaptively assigns different weights to channels to adjust the importance of channels; the multi-scale dual-gated feedforward network MDGFN uses 1×1 convolution in each branch to expand the number of channels, and then enriches local information through 3×3 and 5×5 deep convolutions respectively. After training, the weights of a bright source pollution removal network are obtained.

[0023] S3: Input the test set images into the trained network to obtain images with bright source pollution removed. In order to verify the effectiveness of the network, we evaluated the network and used peak signal-to-noise ratio (PSNR), structural similarity (SSIM), and pixel mean absolute error (PAAE) as evaluation indicators. The calculation method of the above evaluation indicators is as follows:

[0024] The calculation formula of PSNR is as follows:

[0025]

[0026]

[0027] Where x and y represent the original image and reconstructed image of size m×n, respectively, and MAXI represents the maximum value of the color of the image point.

[0028] The calculation formula of SSIM is as follows:

[0029]

[0030] Where x and y are the pixel values ​​of the original image and the reconstructed image, μ x is the mean value of x, μ y is the mean value of y, is the variance of x, is the variance of y, σ xy is the covariance of x and y, c1=(k1L) 2 , c2=(k2L) 2 It is a constant used to maintain stability, L is the dynamic range of pixel values, k1=0.01, k2=0.03.

[0031] PAAE calculates the average pixel difference between two images. The smaller the value, the better. The calculation formula is as follows:

[0032]

[0033] Wherein, x and y represent the original image of size m×n and the image after removing bright source pollution, respectively, and k represents the number of original images or images after removing bright source pollution.

[0034] like Figure 4 The MSCTB structure diagram of the present invention is shown. This module is the core part of the network and is mainly used for feature extraction. TKSA makes the features sparse, adaptively selects important features, and deletes useless features. CAB can adaptively adjust channel characteristics and enhance the network's ability to capture useful features; MDGFN extracts richer local information.

[0035] We input 200 test images of size 1489×2048 into the network and evaluate the network using the introduced evaluation index. Table 2 compares the experimental results of the present invention and other networks, including Uformer, CMFNet, DEANet, DSANet, SFNet, DRSformer, MB-TaylorFormer_B, Restormer, and Dehazeformer. MSCformer is the network proposed by the present invention, in which the larger the PSNR and SSIM, the better the model performance, and the smaller the PAAE, the better the model performance.

[0036] Table 2 Comparison of experimental results of the present invention and other networks

[0037]

[0038] In summary, compared with other networks, the present invention has higher accuracy, good robustness and strong generalization ability, which is of great significance for subsequent data analysis and extraction of effective information.

Claims

1. A network for removing astronomical bright source pollution, characterized by: It fills the research gap on bright source pollution removal; the data comes from the i, r, and g bands of the Sloan Digital Sky Survey (SDSS). The data of these three bands are synthesized into an RGB three-channel image. When applied, the image with bright source pollution is input into the network, and the image without bright source pollution is output.

2. According to claim 1, a network for removing astronomical bright source pollution, characterized in that: Based on the U-Net network structure and combined with the Transformer feature extraction module. Its overall architecture is divided into two parts: encoder and decoder. The encoder is used for feature extraction; the decoder is used for feature reconstruction.

3. According to claim 2, a network for removing astronomical bright source pollution, characterized in that: The encoder and decoder include multi-scale Patch Embedding and multi-scale sparse channel Transformer module (MSCTB). The multi-scale Patch Embedding embeds features by stacking deformable convolutions of different scales, generates coarse-to-fine visual tokens, obtains receptive fields of different sizes and shapes, and provides multi-level semantic information. The MSCTB can promote information interaction between different channels of the feature map while achieving feature sparsity. By adaptively selecting useful features, the MSCTB can better perform feature aggregation, which not only enriches local information but also enhances the ability to capture global information, significantly improving model performance.

4. According to claim 3, a network for removing astronomical bright source pollution, characterized in that: Top-k sparse attention (TKSA) is introduced in MSCTB. The Top-k sparse attention significantly optimizes the attention calculation process by introducing a learnable Top-k operator. The operator calculates the similarity of all pixel pairs between Q and K, and adaptively selects the top k elements to retain useful information. For elements with a ranking less than the top k score value, their probabilities are set to 0. Here, k is an adjustable parameter used to dynamically control the size of sparsity. This dynamic selection mechanism not only ensures the change of attention from dense to sparse, but also enhances the effect of feature aggregation, thereby obtaining higher quality images.

5. According to claim 3, a network for removing astronomical bright source pollution, characterized in that: The channel attention mechanism CAB is introduced in MSCTB. The channel attention mechanism learns each channel of the feature map, promotes information interaction between different channels, and adaptively adjusts the importance of each channel, assigning different weights to the channels. Through this adaptive weight allocation, the model can better focus on important features and improve the network's representation ability.

6. According to claim 3, a network for removing astronomical bright source pollution, characterized in that: A multi-scale dual-gated feedforward network (MDGFN) is introduced in MSCTB. The multi-scale dual-gated feedforward network introduces a dual-gating mechanism and multi-scale information, which significantly improves the performance of the model. The module first uses 1×1 convolution in two parallel paths to expand the number of channels, and then enriches local information through 3×3 and 5×5 deep convolutions. The two branches interact with each other as each other's weights, filtering out irrelevant features by element dot product. Then, the useful information in the two branches is fused by the element weighted sum method. It can not only enrich local information, but also improve the nonlinear modeling ability of the network, making the model perform better when processing bright source pollution images.

7. According to claim 2, a network for removing astronomical bright source pollution, characterized in that: A residual connection is introduced after the encoder-decoder structure to restore edge and detail information, and a skip connection is added between the encoder and decoder at the same level to effectively pass the encoder information to the decoder, enabling the network to utilize more details and contextual information, thereby efficiently removing bright source pollution.