Real-time ultrasonic image denoising method
Through the dual-branch neural network model based on wavelet multi-band decomposition, the low-frequency and high-frequency components of the ultrasound image are processed, which solves the problem of poor real-time ultrasound image denoising effect in the existing technology and achieves higher quality image processing. and faster reasoning speed, improving the accuracy and efficiency of clinical diagnosis.
Patent Information
- Application Number
- CN202410692583.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
AI Technical Summary
The existing technology is difficult to effectively denoise in real-time ultrasound image processing, especially in meeting the strict requirements of remote ultrasound consultation and the unsatisfactory processing effects of different ultrasound images.
A dual-branch neural network model based on wavelet multi-band decomposition is used to decompose the image into low-frequency and high-frequency components through two-dimensional discrete wavelet transform, combined with U-Net encoder and decoder structures, dynamically deformable convolution modules and multi-band joint features The dynamic convolution block performs targeted processing of low-frequency and high-frequency components, uses low-frequency information to assist high-frequency information learning, and improves the denoising effect and reasoning speed.
It significantly improves the denoising effect and inference speed, solves the problem of poor generalization performance in the existing technology, achieves higher quality and more accurate ultrasound image support, and improves the accuracy and efficiency of clinical diagnosis.
Smart Images

Figure CN118587115A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical image denoising, and in particular to a real-time ultrasound image denoising method. Background Art
[0002] Ultrasound examination has many advantages and is widely used in the field of medical examination. However, ultrasound video images are often challenged by low signal-to-noise ratio, which is mainly due to three aspects: first, the wide frequency spectrum brought by the short pulse signal generated by the ultrasound scanner makes the signal susceptible to interference from various noise sources, reducing the image quality; second, the coherence of the signal leads to the generation of speckle noise, which further deteriorates the image quality; third, the complexity of sound wave propagation in human tissue may cause serious distortion, forming various artifacts such as speckle noise. These factors work together to make the ultrasound image blurred at the edge, dark in overall tone, and full of noise, which brings many obstacles to clinical detection and seriously restricts the accuracy and efficiency of ultrasound diagnosis.
[0003] In recent years, with the rapid development of artificial intelligence and machine learning technologies, they have become research hotspots in various industries. Therefore, artificial intelligence and machine learning technologies have gradually penetrated into the research of medical and health fields, such as intelligent diagnosis, personalized health guidance, and smart medical care. Although artificial intelligence and machine learning technologies have made significant progress in image segmentation and diagnosis in medical image processing, there are still relatively few related studies on real-time ultrasound image denoising, and the requirements of real-time denoising can only be achieved in specific scenarios.
[0004] At present, although video image denoising methods have been developed, most methods still cannot meet the strict requirements of real-time denoising and remote ultrasound consultation, or the processing effect of ultrasound video is not ideal. The present invention aims to use machine learning technology to perform intelligent restoration of images obtained in clinical practice from the perspective of frequency domain, so as to provide higher quality and more accurate ultrasound image support for medical diagnosis. Summary of the invention
[0005] The purpose of the present invention is to propose a real-time ultrasonic image denoising method to solve the problem that the ultrasonic image denoising effect is poor in the background technology.
[0006] The technical solution of the present invention is a real-time ultrasonic image denoising method, comprising the following steps:
[0007] S1, collecting ultrasound images of patients and preprocessing the ultrasound images;
[0008] S2, build a sample library, add noise to the ultrasound image, and obtain a training set and a test set;
[0009] S3, construct a dual-branch neural network model based on wavelet multi-band decomposition;
[0010] S4. Based on the data set, training the dual-branch denoising network;
[0011] S5. Based on the test set, the trained denoising network based on wavelet multi-band decomposition is tested to output a denoised image.
[0012] Preferably, in S1, preprocessing includes: obtaining patient consent and network authorization to collect various types of ultrasound images, and unifying the images into images with a size of 256×256 and a channel number of 1.
[0013] Preferably, in S2, noise is added to the ultrasound image, and Gaussian white noise is added to the original ultrasound image to simulate the noise in part of the ultrasound image, so as to facilitate the control of the noise level of the image set; in addition, a hold-out method is used to randomly select the training set and test set of the above data set from the images to which the simulated speckle noise is added, with 80% of them being used as the training set and 20% being used as the test set.
[0014] Preferably, in S3, a dual-branch neural network model based on wavelet multi-band decomposition is constructed, and the original image is decomposed in the frequency domain using a two-dimensional discrete wavelet transform into high-frequency variables and low-frequency variables. According to the image characteristics presented by components in different frequency bands and the distribution characteristics of noise in different characteristics, a dual-branch network is created to perform targeted processing.
[0015] Preferably, in S3, the encoder and decoder structure of U-Net is used for learning the low-frequency components, downsampling is performed at the encoder, and upsampling is performed at the decoder. Each encoder block reduces the feature resolution to half, and each decoder block doubles the feature resolution. Both the upsampling module and the downsampling module are divided into a convolution stage and a Tokenized MLP stage.
[0016] Preferably, in S3, a module based on dynamic deformable convolution is used to process the high-frequency components, and the network structure from left to right is: two layers of deformable convolution, five layers of dynamic convolution blocks and a frequency band feature enhancement module.
[0017] Preferably, in S3, the multi-band joint feature dynamic convolution block in the high-frequency component learning uses the learned low-frequency information to enhance the learning of high-frequency information, and uses the enhanced high-frequency information to generate weights through average pooling, full connection layer, ReLu and softmax to obtain a dynamic convolution kernel. The specific enhancement method is as follows:
[0018]
[0019] Among them, (LH, HH, HL) is the high-frequency component, LL is the low-frequency component, M is the set of enhanced texture features, and |·| represents the absolute value operation.
[0020] Preferably, in S3, the frequency domain feature enhancement module in high-frequency component learning is designed as a dual-branch four-layer residual dense block. The output of each previous layer is connected to the output of the current layer using a jump connection and input to the next layer to improve the network's expression ability and performance; in addition, each convolutional layer only retains ReLU to better preserve detail features, and the last 1×1 convolution restores the number of channels of the feature to ensure the consistency and integrity of information during transmission.
[0021] Preferably, in S4, the training process uses MSE as the loss function of the network, uses the Adam optimizer for 200 rounds of training, the learning rate lr is set to 10-4 and gradually decays to 10-5, and the training batch size is 8; wherein the MSE function is:
[0022]
[0023] Among them, N is the number of test samples, X is the noise image, Y is the original image, and F θ is the network model, θ is the network parameter, and a better model effect is obtained by minimizing the MSE function.
[0024] Preferably, in S5, the model performance is evaluated using peak signal-to-noise ratio (PSNR) and structural similarity (SSIM); wherein the calculation formulas for PSNR and SSIM are respectively:
[0025]
[0026] Where X and Y are the two images to be compared, MAX is the maximum range of pixels, m and n represent the width and height respectively, and X ij and Y ij Respectively represent the pixel values of the two images to be compared at (i, j); μ x and μ y is their average value, and are their variances, σ xy is their covariance, c1=0.01 and c2=0.02 are constants.
[0027] Compared with the prior art, the present invention has the following beneficial technical effects: by using wavelet transform to process low-frequency components and high-frequency components separately, combined with dynamic deformable convolution of multi-band joint feature design, the efficiency of feature learning is enhanced, and the denoising effect and reasoning speed are improved. The network introduces low-frequency information to assist the learning of high-frequency information, which not only solves the problem that the existing denoising methods have poor generalization performance and cannot meet the denoising problems on different ultrasound images, but also effectively improves the reasoning efficiency of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a flow chart of the real-time ultrasound image denoising method based on a multi-band decomposition network in the present invention.
[0029] Figure 2 It is a schematic diagram of multi-band decomposition of ultrasound images based on discrete wavelet transform.
[0030] Figure 3 It is a model structure diagram of a dual-branch denoising network based on wavelet multi-band decomposition in the present invention.
[0031] Figure 4 This is a model structure diagram of low-frequency information learning based on TokenizedMLP in the present invention.
[0032] Figure 5 This is a model structure diagram of high-frequency information learning combined with dynamic variability convolution in the present invention.
[0033] Figure 6 This is a model structure diagram of the multi-band joint feature dynamic convolution block in the present invention.
[0034] Figure 7 It is a network structure diagram of the residual dense module in the present invention.
[0035] Figure 8 This is the comparison of denoising results on the test set in the present invention.
[0036] Fig. 9 It is the residual image comparison for the original image on the test data set in the present invention. DETAILED DESCRIPTION
[0037] Reference Figure 1 As shown, the real-time denoising method for ultrasonic images of the present invention comprises the following steps:
[0038] S1: Acquire ultrasound images of patients and preprocess them;
[0039] In this embodiment, with the patient's consent, the patient's and public ultrasound images are collected and screened. The preprocessing includes: unifying the image into an image with a size of 256×256 and a channel number of 1.
[0040] S2: Build a sample library, add noise to ultrasound images, and obtain training sets and test sets;
[0041] In this embodiment, different degrees of Gaussian white noise are added to the original ultrasound image to simulate the noise in some ultrasound images, so as to control the noise level of the image set. In addition, the holdout method is used to randomly select the training set and test set of the above data set from the images added with simulated speckle noise, of which 80% is used as the training set and 20% is used as the test set.
[0042] S3: Construct a dual-branch neural network model based on wavelet multi-band decomposition, such as Figure 2 As shown in FIG. 1 , the real-time ultrasound denoising network based on wavelet multi-band decomposition includes: a low-frequency information processing module based on Tokenized MLP and a high-frequency information processing module based on dynamic deformable convolution. Finally, the denoised ultrasound image is obtained through residual connection.
[0043] Among them, the low-frequency information processing module based on Tokenized MLP, such as Figure 3 As shown in the figure, downsampling is performed at the encoder and upsampling is performed at the decoder. Each encoder block reduces the feature resolution to half, and each decoder block doubles the feature resolution. Both the upsampling module and the downsampling module are divided into a convolution stage and a Tokenized MLP stage.
[0044] Among them, the high-frequency information processing module based on dynamic deformable convolution, such as Figure 4 As shown in the figure, its network structure from left to right is: two layers of deformable convolution, five layers of dynamic convolution blocks and frequency band feature enhancement module.
[0045] Among them, the dynamic convolution block based on multi-band joint features in the high-frequency information processing module is as follows: Figure 5 As shown in the figure, the learned low-frequency information is used to enhance the learning of high-frequency information. The enhanced high-frequency information is used to generate weights through average pooling, full connection layer, ReLu and softmax to obtain dynamic convolution kernel. The specific enhancement method is as follows:
[0046]
[0047] Among them, (LH, HH, HL) is the high-frequency component, LL is the low-frequency component, M is the set of enhanced texture features, and |·| represents the absolute value operation.
[0048] Among them, the residuals in the high-frequency information processing module are dense and fast, such as Figure 6 and Figure 7 As shown in the figure, it is designed as a dual-branch four-layer residual dense block. The output of each previous layer is connected to the output of the current layer using a skip connection and input to the next layer to improve the network's expressiveness and performance. In addition, each convolutional layer only retains ReLU to better preserve the detailed features. The last 1×1 convolution restores the number of channels of the feature to ensure the consistency and integrity of the information during the transmission process.
[0049] S4: Based on the data set, training the dual-branch denoising network;
[0050] The denoising network is trained according to the training set: the training is performed in Python using the Keras 2.3.1 framework. The input image size is 256×256 and the channel is 1. The Adam optimizer is used for 200 rounds of training. The learning rate lr is set to 10-4 and gradually decays to 10-5. The training batch size is 8. The MSE is used as the loss function of the network during the training process. The MSE function is:
[0051]
[0052] Among them, N is the number of test samples, X is the noise image, Y is the original image, and F θ is the network model, θ is the network parameter. By minimizing the MSE function, a better model effect is obtained.
[0053] S5: Based on the test set, the trained denoising network based on wavelet multi-band decomposition is tested, the denoised image is output and the image effect is evaluated. The performance is evaluated using peak signal-to-noise ratio (PSNR) and structural similarity (SSIM); the calculation formulas for PSNR and SSIM are:
[0054]
[0055] Where X and Y are the two images to be compared, MAX is the maximum range of pixels, m and n represent the width and height respectively, and X ij and Y ij Respectively represent the pixel values of the two images to be compared at (i, j); μ x and μ y is their average value, and are their variances, σ xy is their covariance, c1=0.01 and c2=0.02 are constants.
[0056] For comparison, the ultrasound denoising method proposed in this paper is tested with three methods, namely DnCNN, UNext, and RED-MAM, on four ultrasound image datasets, namely the fetal head dataset (HC18), the adult heart dataset (CAMUS), the thyroid dataset (DDTI), and the adult breast clinical dataset (ABCD). The image evaluation indicators and their time efficiency are compared at five different noise levels to verify the performance of the proposed method, as shown in the following table:
[0057]
[0058] Judging from the evaluation indicators in the above table, the proposed network has higher prediction accuracy and better denoising effect. Figure 8 and Fig. 9From the denoising result diagram, it can be seen that the denoising effect of the present invention is the best and the outline is the clearest.
[0059] In summary, in the present invention, low-frequency components and high-frequency components are processed separately by wavelet transform, and dynamic deformable convolution with multi-band joint feature design is combined to enhance the efficiency of feature learning, improve denoising effect and reasoning speed. The network introduces low-frequency information to assist in the learning of high-frequency information, which not only solves the problem that the existing denoising methods have poor generalization performance and cannot meet the denoising problems on different ultrasound images, but also effectively improves the reasoning efficiency of the network.
[0060] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited thereto, and various changes can be made within the knowledge scope of technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A real-time ultrasound image denoising method, characterized in that: The following steps are involved: S1, collecting ultrasound images of patients and preprocessing the ultrasound images; S2, build a sample library, add noise to the ultrasound image, and obtain a training set and a test set; S3, construct a dual-branch neural network model based on wavelet multi-band decomposition; S4. Based on the data set, training the dual-branch denoising network; S5. Based on the test set, the trained denoising network based on wavelet multi-band decomposition is tested to output a denoised image.
2. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S1, preprocessing includes: obtaining patient consent and network authorization to collect various types of ultrasound images, and unifying the images into images with a size of 256×256 and a channel number of 1.
3. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S2, noise is added to the ultrasound image, and Gaussian white noise is added to the original ultrasound image to simulate the noise in some ultrasound images, so as to control the noise level of the image set; in addition, the hold-out method is used to randomly select the training set and test set of the above data set from the images with simulated speckle noise, of which 80% is used as the training set and 20% is used as the test set.
4. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S3, a dual-branch neural network model based on wavelet multi-band decomposition is constructed. The original image is decomposed in the frequency domain using two-dimensional discrete wavelet transform into high-frequency variables and low-frequency variables. According to the image characteristics presented by components in different frequency bands and the distribution characteristics of noise in different characteristics, a dual-branch network is created for targeted processing.
5. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S3, the encoder and decoder structure of U-Net is used for learning the low-frequency components. Downsampling is performed at the encoder and upsampling is performed at the decoder. Each encoder block reduces the feature resolution to half, and each decoder block doubles the feature resolution. Both the upsampling module and the downsampling module are divided into a convolution stage and a Tokenized MLP stage.
6. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S3, a module based on dynamic deformable convolution is used to process high-frequency components. From left to right, the network structure is: two layers of deformable convolution, five layers of dynamic convolution blocks and frequency band feature enhancement module.
7. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S3, the multi-band joint feature dynamic convolution block in high-frequency component learning uses the learned low-frequency information to enhance the learning of high-frequency information. The enhanced high-frequency information is used to generate weights through average pooling, fully connected layers, ReLu and softmax to obtain dynamic convolution kernels. The specific enhancement method is as follows: Among them, (LH, HH, HL) is the high-frequency component, LL is the low-frequency component, M is the set of enhanced texture features, and |·| represents the absolute value operation.
8. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S3, the frequency domain feature enhancement module in high-frequency component learning is designed as a dual-branch four-layer residual dense block. The output of each previous layer is connected to the output of the current layer using a skip connection and input to the next layer to improve the network's expressiveness and performance. In addition, each convolutional layer only retains ReLU to better preserve detail features, and the last 1×1 convolution restores the number of channels of the feature to ensure the consistency and integrity of information during transmission.
9. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S4, the training process uses MSE as the network loss function, uses the Adam optimizer for 200 rounds of training, the learning rate lr is set to 10-4 and gradually decays to 10-5, and the training batch size is 8; the MSE function is: Among them, N is the number of test samples, X is the noise image, Y is the original image, and F θ is the network model, θ is the network parameter, and a better model effect is obtained by minimizing the MSE function.
10. The real-time ultrasonic image denoising method according to claim 1, characterized in that: In S5, the model performance is evaluated using peak signal-to-noise ratio (PSNR) and structural similarity (SSIM); the calculation formulas for PSNR and SSIM are: Where X and Y are the two images to be compared, MAX is the maximum range of pixels, m and n represent the width and height respectively, and X ij and Y ij Respectively represent the pixel values of the two images to be compared at (i, j); μ x and μ y is their average value, and are their variances, σ xy is their covariance, c1=0.01 and c2=0.02 are constants.
Citation Information
Cited By
Unmanned aerial vehicle target segmentation and detection method based on large model visual perception
CN120164130A
Ultrasonic image quality evaluation method and device based on multi-source joint learning
CN120431454A
Data processing method and device of ultrasonic fingerprint image and ultrasonic fingerprint equipment
CN122551406A
