DAS denoising method based on CNN-Transformer
Through the denoising method based on CNN-Transformer, combined with the generative adversarial network and the self-attention mechanism, it solves the denoising problem that is difficult to take into account both local and global features in the existing technology, and achieves accurate denoising and calculation speed of DAS system images. improvement.
Patent Information
- Application Number
- CN202311310501.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-10
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2043-10-10
AI Technical Summary
When denoising DAS data, the existing technology is difficult to capture both local feature details and global features, and its applicability and processing efficiency are limited. Especially in distributed optical fiber acoustic sensor systems, the noise processing effect is poor.
Using a denoising method based on CNN-Transformer, by constructing a fusion neural network including a CNN module, a Transformer module and an image restoration module, and combining a generative adversarial network and a self-attention mechanism, the local and global features of the image are extracted and passed through the generator and The discriminator is trained to achieve accurate denoising of images.
It achieves precise denoising of DAS system images, retains the advantages of CNN in local feature extraction, and at the same time enhances the ability to capture global features, improves denoising accuracy and calculation speed, and simplifies the data preparation process.
Smart Images

Figure CN117437146B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and in particular relates to a DAS denoising method based on CNN-Transformer. Background Art
[0002] The complexity of the data acquisition environment leads to a large amount of noise in the collected DAS data, which seriously affects the processing and analysis of the data. At present, there are many different denoising methods at home and abroad, including Fourier transform denoising, wavelet transform denoising, bandpass filter denoising, low-rank matrix denoising and denoising based on empirical mode decomposition, etc. Although these methods can suppress noise to a certain extent, most of them do not take into account the amount and processing efficiency of seismic data, and there are still limitations in terms of applicability.
[0003] The first type of solution is to minimize the impact of physical factors and natural conditions, including upgrading the acquisition and receiving devices, improving the performance of the transmission medium, etc. However, these methods are costly, only applicable to small-scale, high-precision systems, and lack universality.
[0004] The second type of solution focuses on processing signals, among which digital signal processing technology has become the main research direction. At present, digital signal processing technology is usually processed by machines in the later stage. Due to its low labor cost and economic cost, digital signal processing methods have been widely used in noise reduction research.
[0005] Based on the above problems, in recent years, people have carried out a lot of research on denoising methods based on deep learning networks. Deep learning methods that can automatically extract features and achieve end-to-end classification have been widely used in the field of denoising. Most of these methods use CNN, and the convolution operation in CNN is good at extracting local features. It has certain limitations in capturing global feature representations and cannot dynamically adapt to changes in input. Transformer is a classic model for natural language processing (NLP) proposed by the Google team in 2017. The Transformer model uses the Self-Attention Mechanism mechanism and does not use the sequential structure of the Recurrent Neural Network (RNN), which enables the model to be trained in parallel and has global information, but ignores the details of local features.
[0006] At present, some studies have combined CNN and Transformer to process images. For example, the invention with patent publication number CN116703783A discloses a low-light image enhancement method based on CNN-Transformer hybrid modeling and bilateral interaction, the invention with patent publication number CN116452420A discloses a hyperspectral image super-resolution method based on Transformer and CNN group fusion, and the invention with patent publication number CN115482241A discloses a cross-modal dual-branch complementary fusion image segmentation method and device, but these methods do not involve the process of processing image noise. The invention with patent publication number CN115393212A discloses a RAW domain night scene image denoising method based on improved Unet, including the following steps: S1: obtain a noisy image and a high-quality image data set, and perform data enhancement operations on the image; S2: use a Unet-like training network, and use an improved self-attention module to extract features and extract global information in the image downsampling stage; S3: use a convolution module in the image upsampling stage, and combine the pixel reconstruction method to take low-resolution potential features as input, and restore high-resolution images in stages; and add global and local residual convolution blocks to the network, S4: divide the data set into a training set and a test level, record the training loss value and the peak signal-to-noise ratio PSNR and structural similarity SSIM of the test set as the evaluation basis of the model; S5: load the noise image to be processed into the model, and obtain the denoised image after processing. The invention uses the self-attention model for global modeling, which achieves better results than the traditional Unet model. However, this invention is proposed for night scene images and is not suitable for processing noisy images in distributed fiber optic acoustic sensor systems. Simply applying it will make it difficult to restore the signal image due to insufficient denoising accuracy. Summary of the invention
[0007] Technical problem solved: The present invention discloses a DAS denoising method based on CNN-Transformer, which retains the advantages of CNN in extracting local feature details and enhances its ability to capture global features, thereby achieving accurate denoising of DAS system images; at the same time, the training network can be trained with unpaired images, which makes experiments and data preparation easy.
[0008] Technical solution:
[0009] A DAS denoising method based on CNN-Transformer, the DAS denoising method comprising the following steps:
[0010] Collect the original image of the distributed fiber optic acoustic sensing system without denoising, crop or scale the input original image without denoising by random image interpolation, and combine the original image and the true value image to establish a training data set;
[0011] Construct a training network consisting of two symmetric generative adversarial networks, including a generator G for performing conversion between images AB and the generator G BA , and a discriminator D for judging whether the image generated by the generator is correct A and the discriminator D B ; Use the training network to train the original images and valid correct images in the training data set;
[0012] Construct a CNN-Transformer fusion neural network, which includes a CNN module, a Transformer module, a downsampling module, and an image restoration module;
[0013] The CNN module extracts features from the input original image in sequence through multiple convolutional layers to obtain multiple feature maps, applies an activation function to the feature maps of each layer, merges the information of the relevant neighborhood through the pooling layer and replaces the information of this part of the neighborhood on the feature map, and extracts the local features of the original image;
[0014] The Transformer module divides each input original image into position-embedded image blocks to construct a series of labeled sequences, and then extracts parameter vectors as visual representations. The position embedding records the sequence correlation between sequence data, and extracts the global features of the original image.
[0015] The downsampling module is used to downsample the local features of the original image extracted by the CNN module and the global features of the original image extracted by the Transformer module respectively; in the process of downsampling the global features extracted by the Transformer module, the area of the feature map is divided, and the information between the windows is exchanged by moving and splicing. The size of the image block changes with the operation of the image block merging layer; wherein the input size of the Transformer module is M×M, the pooling window size is N×N, the initial image block size is X×X, and when performing n image block merging operations, the following relationship exists: N×N×X×X×2 2n =M×M;
[0016] After the Transformer module and the CNN module downsample the original image respectively, the image restoration module performs a deconvolution operation on the feature map obtained by the CNN module, and concatenates the deconvolution operation result with the feature map generated by the corresponding feature layer during the downsampling process of the Transformer module to restore the original image.
[0017] Furthermore, the Transformer network is a Transformer network with a sliding window mechanism.
[0018] Furthermore, the process of training the original images and the true value images in the training data set using the training network includes the following steps:
[0019] The original image R A Input to the generator G AB To obtain the generated image F B , will generate image F B Input to the discriminator D B To extract the original image R A The eigenvalues of are used to calculate the generator G AB Loss function DB ; At the same time, the image F will be generated B Input to the generator G BA Generate training images RE A ;
[0020] The true value image R B Input to the generator G BA To obtain the generated image FA, the generated image FA is input to the discriminator D A To extract the effective correct image R B The eigenvalues of are used to calculate the generator G BA Loss function DA ; At the same time, the generated image FA is input to the generator G AB Generate training images RE B .
[0021] Furthermore, the total loss function Loss of the training network is:
[0022] Loss=[Loss GAN ]+λ{Loss cycle}=[Loss DA +Loss DB ]+λ{Loss cycleABA +Loss cycleBAB}
[0023] Where λ is a scaling factor used to adjust the cycle consistency loss Losscycle Proportion of Loss cycleABA With Loss cycleBAB They are the original images R A and the true value image R B Cycle consistency loss generated during training; adversarial loss Loss generated GAN Calculated by the following formula: Loss GAN =Loss DA +Loss DB =E b [(D B (b)-1) 2 ]+E a [(1-D B (G AB (a))) 2 ]+E b [(D A (a)-1) 2 ]+E b [(1-D A (G BA (b))) 2 ]
[0024] where E[·] represents the expected value of the random variable in the square brackets, E a [·] and E b [·] refers to the expected values of a and b respectively; a and b represent the original data set R A and the valid dataset R B Images in; original dataset R A The original image is stored in the labeled dataset R B The real value image is stored in D B (·) represents the discriminator D B The discriminant function, D A (·) represents the discriminator D A The discriminant function, G AB (·) represents the generator G AB The generating function, G BA (·) represents the generator G BA The generating function of
[0025] Loss cycle =Loss cycleABA +Loss cycleBAB =E a [||G BA (G AB (a)-a)||1]+E b [||G AB (G BA (b)-b)||1]
[0026] where ||·|| represents the norm L1.
[0027] Furthermore, a regularization layer is introduced into the Transformer module to reduce information loss.
[0028] Furthermore, the Transformer module includes a self-attention layer for establishing a global dependency relationship between input and output; specifically, the calculation process of the self-attention layer includes the following steps:
[0029] Linearly project the input feature map into three different spaces to generate three new vectors: Q, K, and V;
[0030] Calculate the score QK based on Q and K T , divide the calculated fraction by the square of the scale factor
[0031] Through Softmax normalization, the correlation between the current feature vector and each feature vector in the feature map is obtained;
[0032] Multiply each V vector by Softmax and generate the updated feature map as output using the accumulated weight vector:
[0033]
[0034] Where dk is the number of columns of matrices Q and K;
[0035] Furthermore, the Transformer module calculates the self-attention value of each window to obtain an updated window, merges the windows through an image block merging operation, and continues to calculate the self-attention value of the merged window.
[0036] Furthermore, in the Transformer module, the initial feature map is divided into nine regions, the upper left region is moved to the lower right corner for splicing, and the spliced feature map is divided into four equal regions to exchange information between each window.
[0037] Furthermore, the image restoration module performs a deconvolution operation on the feature map obtained by the CNN module, and splices the deconvolution operation result with the feature map generated by the corresponding feature layer during the downsampling process of the Transformer module; during the splicing process, the corresponding feature map output by the Transformer module is enlarged four times through an upsampling operation to make the size of the feature image consistent.
[0038] Beneficial effects:
[0039] First, the CNN-Transformer-based DAS denoising method of the present invention retains the advantages of CNN in extracting local feature details and enhances its ability to capture global features, thereby achieving accurate denoising of DAS system images.
[0040] Second, in the CNN-Transformer based DAS denoising method of the present invention, the training network can be trained with unpaired images, which makes experiments and data preparation easy.
[0041] Third, the CNN-Transformer-based DAS denoising method of the present invention can directly input data in parallel and store the positional relationship between data, which greatly improves the calculation speed and reduces the storage space. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a flow chart of the DAS denoising method based on CNN-Transformer of the present invention;
[0043] Figure 2 This is a schematic diagram of the structure of the training network;
[0044] Figure 3 It is a network structure diagram of the CNN module of the present invention; Figure 4 It is a diagram of the information exchange process between windows;
[0045] Figure 5 Schematic diagram of the downsampling process;
[0046] Figure 6 The DAS signal images are processed by the algorithm described in the present invention; wherein (a) is a schematic diagram of the original DAS signal image, and (b) is a schematic diagram of the DAS signal image after denoising. DETAILED DESCRIPTION
[0047] The following examples will enable those skilled in the art to more fully understand the present invention, but are not intended to limit the present invention in any way.
[0048] See also Figure 1 The present invention discloses a DAS denoising method based on CNN-Transformer, and the DAS denoising method comprises the following steps:
[0049] Collect the original image of the distributed fiber optic acoustic sensing system without denoising, crop or scale the input original image without denoising by random image interpolation, and combine the original image and the ground truth image (real value image) to establish a training data set;
[0050] Construct a training network consisting of two symmetric generative adversarial networks, including a generator G for performing conversion between images AB and the generator G BA , and a discriminator D for judging whether the image generated by the generator is correct A and the discriminator D B ; Use the training network to train the original images and valid correct images in the training data set;
[0051] Construct a CNN-Transformer fusion neural network, which includes a CNN module, a Transformer module, a downsampling module, and an image restoration module;
[0052] The CNN module extracts features from the input original image in sequence through multiple convolutional layers to obtain multiple feature maps, applies an activation function to the feature maps of each layer, merges the information of the relevant neighborhood through the pooling layer and replaces the information of this part of the neighborhood on the feature map, and extracts the local features of the original image;
[0053] The Transformer module divides each input original image into position-embedded image blocks to construct a series of labeled sequences, and then extracts parameter vectors as visual representations. The position embedding records the sequence correlation between sequence data, and extracts the global features of the original image.
[0054] The downsampling module is used to downsample the local features of the original image extracted by the CNN module and the global features of the original image extracted by the Transformer module respectively; in the process of downsampling the global features extracted by the Transformer module, the area of the feature map is divided, and the information between the windows is exchanged by moving and splicing. The size of the image block changes with the operation of the image block merging layer; wherein the input size of the Transformer module is M×M, the pooling window size is N×N, the initial image block size is X×X, and when performing n image block merging operations, the following relationship exists: N×N×X×X×2 2n =M×M;
[0055] After the Transformer module and the CNN module downsample the original image respectively, the image restoration module performs a deconvolution operation on the feature map obtained by the CNN module, and concatenates the deconvolution operation result with the feature map generated by the corresponding feature layer during the downsampling process of the Transformer module to restore the original image.
[0056] 1. Dataset establishment and training process.
[0057] The noisy images without denoising of the distributed acoustic sensing (DAS) system are collected to establish a data set. Preferably, the inputted original images without denoising are cropped or scaled by random image interpolation during the process of establishing the data set.
[0058] See also Figure 2 The training network mainly consists of two symmetrical generative adversarial networks (GAN), which include a generator G for performing conversion between images. AB and the generator G BA , the discriminator D responsible for judging whether the image generated by the generator is correct A and the discriminator D B The training data set consists of the original input images R A and the Ground Truth image R B During the training process, R A The image in G is input to AB Get F B , then F B Input to D B To extract the eigenvalues, used to calculate the Loss DB At the same time, F B Input to G BA Generate RE A . R B The training process is similar to R A The training process is the same.
[0059] The loss function for training the network is chosen based on the following: The total loss function can be written as
[0060] Loss=[Loss GAN ]+λ{Loss cycle}=[Loss DA +Loss DB ]+λ{Loss cycleABA +Loss cycleBAB}
[0061] λ is used to adjust Loss cycle The ratio is set to 10. The total loss function enables Transformer to produce images that are very close to the real image. cycle The main function of is to ensure that the output images of the generator are different in style from the input images, but consistent in content.
[0062] Loss GAN It can be written as:
[0063]
[0064] where E[·] represents the expected value of the random variable in the square brackets; a and b represent the data set R A and R B The loss cycle is used to further optimize the model. It can be written as:
[0065] Loss cycle =Loss cycleABA +Loss cycleBAB =E a [||G BA (G AB (a)-a)||1]+E b [||G AB (G BA (b)-b)||1]
[0066] where ||·|| represents the norm L1.
[0067] 2. Use the CNN module to extract local features of the image.
[0068] Figure 3 The network structure diagram of the CNN module of the present invention is shown in FIG. The input image is extracted through the convolution layer to obtain a feature map, and the activation function is applied to the feature map. The information of the neighborhood is merged through the pooling layer and the information of this part of the neighborhood of the feature map is replaced, and finally all the features of the image can be extracted.
[0069] 3. Use the Transformer module to extract global features of the image.
[0070] The Transformer module uses a self-attention mechanism, which allows the model to be trained in parallel and has global information. The Transformer structure is used in the Vision Transformer (VIT). The part used for feature extraction in VIT constructs a series of labeled sequences by dividing each image into position-embedded image patches (Patch), and then uses the Transformer module to extract the parameter vector as a visual representation. Position embedding records the sequence correlation between sequence data.
[0071] Preferably, in the process of extracting global features of the image using the Transformer module, in order to ensure the stability of the data feature distribution, a layer of regularization is introduced to reduce information loss. In the process of extracting global features of the image using the Transformer module, the Transformer calculates the self-attention value of each window to obtain an updated window, then merges the windows through the Patch merging operation, and continues to calculate the self-attention of the merged window (this process is called the window-based multi-head attention mechanism, W-MSA), thereby reducing the computational complexity.
[0072] In some examples, in order to quickly extract important features of sparse data, a self-attention mechanism is introduced in Transformer, which requires linear transformation of the input to obtain matrices: Query (Q), Key (K) and Value (V). The calculation formula is:
[0073]
[0074] where d k is the number of columns of matrices Q and K.
[0075] The calculation process steps of the self-attention mechanism are as follows:
[0076] Step 1: Create three vectors. The input feature map is linearly projected into three different spaces, generating three new vectors, namely Q, K, and V.
[0077] Step 2: Calculate the score.
[0078] Step 3: Divide by the scale factor. Divide the fraction from step 2 by the square of the scale factor. (square root of K dimension), where the original attention values are clustered around the highest score value. This step can play a role in scaling and dispersing attention.
[0079] Step 4: Normalize by Softmax. Softmax is used to obtain the correlation between the current feature vector and each feature vector in the feature map.
[0080] Step 5: Multiply each V vector by Softmax to reduce the influence of irrelevant feature vectors.
[0081] Step 6: The accumulated weight vector generates the updated feature map as output.
[0082] In the process of extracting global features of the image using the Transformer module, an information exchange mechanism is introduced to solve the problem of lack of information exchange between inconsistent windows. The area of the feature map is divided, then moved and spliced to achieve information exchange between windows.
[0083] The W-MSA operation reduces the complexity, but leads to the problem of lack of information exchange between inconsistent windows. Therefore, the region of the feature map is divided, then moved and spliced to achieve information exchange between windows. Figure 4 As shown in Figure 1, the initial feature map is divided into nine regions. We move the upper left region (regions A, B, and C) to the lower right corner, and then divide the concatenated feature map into four equal regions so that information can be exchanged between each window.
[0084] The CNN-Transformer fusion neural network retains the ability of the Convolution Neural Network (CNN) to extract local features, and borrows the ability of the Swin-Transformer (Shifted-Windows Transformer, Transformer with a sliding window mechanism) network to extract global features.
[0085] 4. The downsampling process of CNN module and Transformer module.
[0086] The size of the patch changes with the operation of the patch merging layer. The input size of the Transformer module is M×M, the pooling window size is N×N, and the initial patch size is X×X. When performing n patch merging operations, there is a relationship: N×N×X×X×2 2n =M×M.
[0087] The downsampling process is as follows Figure 5 In this example, the input size of the Transformer module is 224×224, the window size is 7×7, it consists of 7×7 patches, and the number of Patch merging operations is 3. Figure 5 The box in represents a window. The size of the patch changes with the operation of patch merging. In this embodiment, the patch of the initial feature map is 4×4. By splicing the patches of the surrounding four windows, the patch of the next layer of feature maps becomes 8×8. Through a series of operations, Swin-Transform downsamples to obtain a feature map with only 1 window and 49 patches, with a size of 32×32.
[0088] 5. Deconvolution operation realizes image restoration.
[0089] After downsampling the Swin-Transformer and CNN branches, the feature maps obtained by the CNN branch are deconvolved (transposed convolution) and the results are concatenated with the feature maps generated by the corresponding feature layers during the downsampling process.
[0090] In order to make the three parts of the feature image consistent in size, an upsampling operation is required to enlarge the feature map corresponding to the Swin-Transformer module by four times.
[0091] Figure 6 The DAS signal images before and after being processed by the algorithm described in the present invention. Among them, (a) is a schematic diagram of the original DAS signal image, and (b) is a schematic diagram of the DAS signal image after denoising.
[0092] The above are only preferred embodiments of the present invention. The protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A DAS denoising method based on CNN-Transformer, characterized in that: The DAS denoising method comprises the following steps: Collect the original image of the distributed fiber optic acoustic sensing system without denoising, crop or scale the input original image without denoising by random image interpolation, and combine the original image and the true value image to establish a training data set; Construct a training network consisting of two symmetric generative adversarial networks, including a generator G for performing conversion between images AB and the generator G BA , and a discriminator D for judging whether the image generated by the generator is correct A and the discriminator D B ; Use the training network to train the original images and valid correct images in the training data set; Construct a CNN-Transformer fusion neural network, which includes a CNN module, a Transformer module, a downsampling module, and an image restoration module; The CNN module extracts features from the input original image in sequence through multiple convolutional layers to obtain multiple feature maps, applies an activation function to the feature maps of each layer, merges the information of the relevant neighborhood through the pooling layer and replaces the information of this part of the neighborhood on the feature map, and extracts the local features of the original image; The Transformer module divides each input original image into position-embedded image blocks to construct a series of labeled sequences, and then extracts parameter vectors as visual representations. The position embedding records the sequence correlation between sequence data, and extracts the global features of the original image. The downsampling module is used to downsample the local features of the original image extracted by the CNN module and the global features of the original image extracted by the Transformer module respectively; in the process of downsampling the global features extracted by the Transformer module, the area of the feature map is divided, and the information between the windows is exchanged by moving and splicing. The size of the image block changes with the operation of the image block merging layer; wherein the input size of the Transformer module is M×M, the pooling window size is N×N, the initial image block size is X×X, and when performing n image block merging operations, the following relationship exists: N×N×X×X×2 2n =M×M; After the Transformer module and the CNN module downsample the original image respectively, the image restoration module performs a deconvolution operation on the feature map obtained by the CNN module, and concatenates the deconvolution operation result with the feature map generated by the corresponding feature layer during the downsampling process of the Transformer module to restore the original image.
2. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: The Transformer network is a Transformer network with a sliding window mechanism.
3. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: The process of training the original images and true value images in the training dataset using the training network includes the following steps: The original image R A Input to the generator G AB To obtain the generated image F B , will generate image F B Input to the discriminator D B To extract the original image R A The eigenvalues of the generator G AB Loss function DB ; At the same time, the image F will be generated B Input to the generator G BA Generate training images RE A ; The true value image R B Input to the generator G BA To obtain the generated image FA, the generated image FA is input to the discriminator D A To extract the effective correct image R B The eigenvalues of the generator G BA Loss function DA ; At the same time, the generated image FA is input to the generator G AB Generate training images RE B .
4. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: The total loss function Loss of the training network is: Loss=[Loss GAN ]+λ{Loss cycle }=[Loss DA +Loss DB ]+λ{Loss cycleABA +Loss cycleBAB } Where λ is a scaling factor used to adjust the cycle consistency loss Loss cycle Proportion of Loss cycleABA With Loss cycleBAB They are the original images R A and the true value image R B Cycle consistency loss generated during training; adversarial loss Loss generated GAN Calculated by the following formula: Loss GAN =Loss DA +Loss DB =E b [(D B (b)-1) 2 ]+E a [(1-D B (G AB (a))) 2 ]+E b [(D A (a)-1) 2 ]+E b [(1-D A (G BA (b))) 2 ] Where E[.] represents the expected value of the random variable in the square brackets, E a [·] and E b [·] refers to the expected values of a and b respectively; a and b represent the original data set R A and the valid dataset R B Images in; original dataset R A The original image is stored in the labeled dataset R B The real value image is stored in D B (·) represents the discriminator D B The discriminant function, D A (·) represents the discriminator D A The discriminant function, G AB (·) represents the generator G AB The generating function, G BA (·) represents the generator G BA The generating function of Loss cycle =Loss cycleABA +Loss cycleBAB =E a [||G BA (G AB (a)-a)||1]+E b [||G AB (G BA (b)-b)||1] where ||·|| represents the norm L1.
5. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: A layer of regularization is introduced into the Transformer module to reduce information loss.
6. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: The Transformer module includes a self-attention layer for establishing global dependencies between input and output; Specifically, the calculation process of the self-attention layer includes the following steps: Linearly project the input feature map into three different spaces to generate three new vectors: Q, K, and V; Calculate the score QK based on Q and K T , divide the calculated fraction by the square of the scale factor Through Softmax normalization, the correlation between the current feature vector and each feature vector in the feature map is obtained; Multiply each V vector by Softmax and generate the updated feature map as output using the accumulated weight vector: where dk is the number of columns of matrices Q and K.
7. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: The Transformer module calculates the self-attention value of each window to obtain an updated window, then merges the windows through an image block merging operation, and continues to calculate the self-attention value of the merged window.
8. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: In the Transformer module, the initial feature map is divided into nine regions, the upper left region is moved to the lower right corner for splicing, and the spliced feature map is divided into four equal regions to exchange information between each window.
9. The DAS denoising method based on CNN-Transformer according to claim 1, characterized in that: The image restoration module performs a deconvolution operation on the feature map obtained by the CNN module, and splices the deconvolution operation result with the feature map generated by the corresponding feature layer during the downsampling process of the Transformer module; during the splicing process, the corresponding feature map output by the Transformer module is enlarged four times through an upsampling operation to make the size of the feature image consistent.
Citation Information
Patent Citations
RAW domain night scene image denoising method based on improved Unet
CN115393212A
Cross-modal double-branch complementary fusion image segmentation method and device
CN115482241A
Hyperspectral image super-resolution method based on Transform and CNN grouping fusion
CN116452420A
CNN-Transform hybrid modeling and bilateral interaction-based low-illumination image enhancement method
CN116703783A
Image blind motion deblurring method based on CNN-Transform hybrid auto-encoder
CN113570516A
