A medical ultrasound image super-resolution reconstruction method based on multi-image fusion
By combining multi-image fusion and deep learning, the problem of insufficient clarity and contrast in super-resolution reconstruction of medical ultrasound images is solved, achieving efficient image reconstruction and improving diagnostic accuracy.
Patent Information
- Application Number
- CN202210298235.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-03-25
AI Technical Summary
Existing medical ultrasound image super-resolution reconstruction technology is difficult to effectively improve the clarity and contrast of the image, and deep learning methods are often accompanied by distortion during texture recovery. Model training consumes high energy, and there are few methods for specific fields.
Using a method based on multi-image fusion, combining traditional texture feature extraction algorithms and deep learning, through wavelet image fusion, Gaussian Markov random field model and generative adversarial network, a convolutional neural network model is constructed for super-resolution reconstruction of medical ultrasound images. .
It improves the clarity and contrast of medical ultrasound images, enhances the reliability and diagnostic accuracy of the images, and achieves good super-resolution reconstruction effects by combining traditional and deep learning methods.
Smart Images

Figure CN114792287B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of medical ultrasonic imaging, and in particular relates to an image super-resolution reconstruction method based on multi-image fusion. Background Art
[0002] Ultrasound imaging has become a standard imaging method due to its flexibility, randomness, real-time and non-invasiveness. In addition, compared with other imaging methods such as computed tomography, X-rays and magnetic resonance imaging, ultrasound imaging is a cheap imaging method. In medical imaging, ultrasound imaging is almost the preferred method for imaging of the cardiovascular system, abdomen, urinary system, vascular system, obstetrics, gynecology, etc. Ultrasound instruments are limited by system costs and the characteristics of ultrasound itself. The imaging area is relatively small. During the inspection process or in later viewing, it is often necessary to enlarge the image to more clearly display the edges and details in the image. On the other hand, with the development of artificial intelligence, computer intelligent assisted diagnosis has developed rapidly, which has higher requirements for image quality, so it is of great significance to improve the quality of medical ultrasound images.
[0003] In the prior art, the more mainstream image super-resolution reconstruction techniques include interpolation-based methods, reconstruction-based methods, and learning-based methods. The images generated by the traditional super-resolution reconstruction method look very blurry overall, and the image quality is poor. In 2014, Dong Chao applied convolutional neural networks to the image super-resolution reconstruction task and proposed the SRCNN algorithm using convolutional neural networks. This method uses a 3-layer CNN network to perform end-to-end mapping from low resolution to high resolution, generating high-resolution images with significantly improved effects than traditional algorithms. However, the 3-layer network depth of SRCNN is still too shallow, and it is difficult to extract deeper information from the image. With the vigorous development of deep learning, deeper and deeper network structures are used in image super-resolution reconstruction tasks. In 2017, Ledig used the generative adversarial network, which is very popular in the field of deep learning, for image super-resolution reconstruction and published the SRGAN algorithm based on the generative adversarial network. Although the deep learning-based method can produce higher quality images, it is often accompanied by distortion while producing fine textures, and the training model is too large and the energy consumption is too high. In addition, there are fewer super-resolution reconstruction tasks for medical ultrasound images in specific fields, and the quality of medical ultrasound images needs to be further improved. Summary of the invention
[0004] The present invention provides a medical ultrasound image super-resolution reconstruction method based on multi-image fusion to solve the current problems of low resolution, low contrast and high noise of ultrasound images. By utilizing the real-time imaging characteristics of medical ultrasound images, multiple similar images of the same tissue part in a short period of time can be generated, image fusion can be performed, and the traditional texture feature extraction algorithm is combined with the latest deep learning-based method to achieve super-resolution reconstruction of medical ultrasound images.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A medical ultrasound image super-resolution reconstruction method based on multi-image fusion comprises the following steps:
[0007] S1. Preprocessing the collected medical ultrasound image data;
[0008] S2. Use contrast-based wavelet image fusion algorithm to fuse multiple similar medical ultrasound images of the same case;
[0009] S3. Extract texture features from fused images based on Gauss-Markov random field model;
[0010] S4. The image clarity automatic evaluation method based on discrete cosine transform sparseness selects low-resolution image and high-resolution image pairs for supervised learning;
[0011] S5. Construct a generative adversarial network (GAN) architecture based on the convolutional neural network model CNN to train the training dataset. The trained model is used for super-resolution reconstruction of medical ultrasound images.
[0012] Furthermore, the step S1 is specifically as follows:
[0013] S11. The original ultrasound image dataset is approximately 496*348 pixels. These images are cropped into images of 492*372 pixels.
[0014] S12. downsample the images using bicubic interpolation to obtain corresponding low-resolution images that are reduced by 2, 3, 4, or 6 times;
[0015] S13. Classify the images, and group N low-resolution images of the same tissue site into one group. Each group of images is denoted as LR0…LR N-1 , N high-resolution images of each uniform tissue part are grouped together, and each group of images is denoted as HR0…HR N-1 .
[0016] Furthermore, the step S2 is specifically as follows:
[0017] S21. Discrete wavelet transform for N low-resolution images LR0…LR of the same case N-1 and N high-resolution images HR0...HR N-1 Perform wavelet decomposition to obtain low-frequency sub-band coefficients and a series of high-frequency sub-band coefficients. The low-frequency sub-image represents the approximate component of the image, and the high-frequency component represents the detail component of the image. The more detail information, the higher the clarity.
[0018] S22. The contrast of the pixels is calculated by traversing the high-frequency and low-frequency subband coefficients. The contrast C of the image is generally defined as Where: L P is the local grayscale of the image, L B is the local background grayscale of the image (equivalent to the low-frequency component after image transformation), L H =L P -L B is the high-frequency component of the image after transformation. According to the correlation between pixels, the new contrast of each pixel in the image is Where: N(x,y) is a rectangular window defined with pixel coordinates (x,y) as the center, g γ (m,n) and f γ (m,n) represent the high-frequency and low-frequency subband coefficients of the image after discrete wavelet transform decomposition, N H Represents all pixels on the image, γ∈N H represents a pixel point on the image, and (m,n) represents the coordinates of a pixel point in the local area where the pixel coordinates (x,y) are located. The larger C(x,y) is, the greater the contrast of the local area where the pixel (x,y) is located in the original image, and the clearer the corresponding pixel is. Pixels with high contrast are the pixels you want to get;
[0019] S23. According to the corresponding fusion rules, the high-contrast coefficients of the high-frequency and low-frequency sub-band coefficients are selected as fusion coefficients; for LR0…LR N-1 These N low-resolution images and HR0...HR N-1 The N high-resolution images are first fused in pairs until the N low-resolution images and the N high-resolution images are fused into one image. The fusion rule of the high-frequency sub-band is selected as follows:
[0020] Where: g F (x,y) is the high frequency coefficient of the fused image, g A (x,y) and g B (x, y) represents the high-frequency subband coefficients at the pixel coordinates (x, y) after the images A and B are decomposed by discrete wavelet transform, C A (x, y) represents the contrast of the pixel with coordinates (x, y) in image A, C B(x,y) represents the contrast of the pixel with coordinates (x,y) in image B.
[0021] The fusion rule of low-frequency sub-band coefficients is selected as follows:
[0022] Where: f F (x,y) is the low frequency coefficient of the fused image.
[0023] S24. Wavelet reconstruction to obtain low-resolution fused image LR F and high-resolution fusion image HR F .
[0024] Furthermore, the step S3 is specifically as follows:
[0025] S31. Gray-level co-occurrence matrix (GLCM) extracts gray-level related features of ultrasound images in space. GLCM is obtained by statistically analyzing the situation where two pixels with a certain distance on the image have a certain gray level. GLCM texture features are obtained based on GLCM statistical information. The calculation formula is: in: is the number of times grayscale h1 and grayscale h2 appear, h is the maximum grayscale value of the image, Q is generally selected from 0°, 45°, 90° and 135°, and s is used to separate two pixels of the image in the Q direction. is the joint probability density of two pixels separated by s in the Q direction. There are 14 types of texture feature statistics commonly used in GLCM. Due to the correlation between various feature statistics, it is not necessary to calculate all features. In the super-resolution reconstruction of ultrasound images, four uncorrelated feature statistics are used: energy, entropy, contrast, and correlation. The energy Eg is calculated as The calculation formula of entropy Ep is The calculation formula of contrast ratio C is: p(h1,h2) is the value of the GLCM element of two pixels with gray levels h1 and h2, and h is the maximum gray level of the image. The calculation formula of the correlation Cr is
[0026] S32. Use Gaussian Markov Random Field (GMRF) to establish the statistical correlation features between adjacent pixels. In GMRF, the intensity value of any pixel of the image is related to all surrounding adjacent pixels, which can be expressed in the form of conditional probability as p(G(a)|G(a+t), t∈n), where: n is the GMRF neighborhood of pixel a, a+t represents a pixel point in the neighborhood of pixel a, G(a) represents the intensity value of image pixel a, and G(a+t) represents the intensity value of image pixel a+t; let U be a point set on the image block, U={(k,q),1≤k≤n,1≤q≤n}, n is the GMRF neighborhood of pixel a, k and q represent pixel points in image block U, both in the range [1,n]. The GMRF process can be expressed by a symmetric difference equation as G(a)=G(U)(α+β), where: G(U) represents the intensity value of the image block U, α is the weight of the symmetric neighborhood pixels, and β is the eigenvector to be estimated by the model. The least squares error criterion can be used for estimation and solution. The calculation formula is β=(∑G(U)(G(U)) T ) -1 (∑G(U)(G(a))), G(a) represents the intensity value of image pixel a, (·) T represents the transpose operation of the matrix, (·) -1 Represents the inverse operation of the matrix. The model parameters obtained by β are the GMRF texture features that describe the image block;
[0027] S33. Get the texture feature β(LR F ) and the texture feature β of the high-resolution fusion image (HR F ).
[0028] Furthermore, the step S4 is specifically as follows:
[0029] S41. The clarity of multiple ultrasound images of the same tissue site varies, so it is necessary to select the image with the highest clarity in the same group as the reference image in the super-resolution reconstruction task. First, HR0…HR N-1 HR i (0≤i≤N-1) performs discrete cosine transform to obtain the discrete cosine transform coefficient matrix C(x,y), (x, y) represents the coordinates of a pixel point in the image, and then extract the diagonal vector S of the matrix C(x, y), S = (C 11 ,C 22 ,…,C uu ),u=min(r,c), where: C 11 ,C 22 ,…,C uurepresents the value of the diagonal elements of the discrete cosine transform coefficient matrix C(x,y), and u represents the minimum value between the number of rows r and the number of columns c of the matrix C(x,y). Then the image HR i The eigenvector S of (0≤i≤N-1) feature =ln(S)=(ln(C1),ln(C2),…,ln(C u )), S is a diagonal vector, C1, C2, …, C u is the coefficient of the diagonal vector S; so we can extract HR0…HR N-1 The eigenvector S feature0 …S featureN-1 ;HR i (0≤i≤N-1),LR i In (0≤i≤N-1), the subscript i refers to the i-th high-resolution image or the i-th low-resolution image, and the i-th high-resolution image and the i-th low-resolution image correspond to each other.
[0030] S42. Use the support vector machine model to train the feature vector to obtain an image quality prediction model; the feature vector S feature There is a certain relationship between feature vector and image quality, and the support vector machine model is used to establish the mapping relationship between feature vector and image quality.
[0031] S43. According to the image quality prediction model predicted image quality score, select HR0 ... HR N-1 HR with the highest median score i (0≤i≤N-1) as the reference image, and HR i (0≤i≤N-1) corresponding LR i (0≤i≤N-1) is used as the input of the model.
[0032] Furthermore, the step S5 is specifically as follows:
[0033] S51. The image super-resolution reconstruction model based on generative adversarial network is divided into a generator and two discriminators, using the residual dense block (RRDB) of the basic architecture unit of ESRGAN. The generator part includes two branches, the main branch for image super-resolution reconstruction and the auxiliary branch for texture feature extraction. The discriminator supervises the restoration of the image domain and the texture domain respectively;
[0034] S52. The main branch consists of 23 residual dense blocks (RRDB). The input of the branch is the low-resolution image selected in S4. At the end of the branch, upsampling is performed using nearest neighbor interpolation, and finally the features are mapped to the image domain through convolution-ReLU activation function-convolution;
[0035] S53. The input of the auxiliary branch is the texture feature map extracted in S3, which restores the texture features of the fused image. The ultimate goal of the auxiliary branch is to clearly learn the texture features of the fused image and feed the texture features back to the main branch. The auxiliary branch consists of 4 RRDB blocks, and the inputs of the 1st, 2nd, 3rd and 4th RRDB blocks are connected to the outputs of the 5th, 10th, 15th and 20th RRDB blocks of the main branch respectively. There is a convolution layer behind each RRDB block in the auxiliary branch to reduce the feature channels, and finally the upsampled features are mapped to the texture feature domain through convolution-ReLU-convolution;
[0036] S54. At the end of the generator network, an attention mechanism is used to multiply the output of the auxiliary branch back to the main branch. The attention mechanism can block artifacts caused by inappropriate texture enhancement. This design can enable texture features to enhance super-resolution images in a more adaptive way.
[0037] S55. The loss functions in supervised learning include the loss functions in the image domain and the loss functions in the texture domain. The loss functions in the image domain include pixel loss, perceptual loss, and adversarial loss, while the loss functions in the texture domain include pixel loss and adversarial loss. The pixel loss calculates the pixel difference between the super-resolution image and the reference image, and the formula is Where: G(·) represents the super-resolution generator, G(I LR ) represents the low-resolution input image I LR The super-resolution image generated after the generator, I HR represents the original high-resolution image, E||·||1 represents the MSE loss calculation process at the pixel level, G(I LR ) and I HR The pixel loss between . The perceptual loss is used to restore the perceptual quality of the image, and the calculation formula is φ j (·) represents the activation of the VGG network when processing the image at layer j, G(·) represents the super-resolution generator, G(I LR ) represents the low-resolution input image I LR The super-resolution image generated after the generator, I HR represents the original high-resolution image, E||·||1 represents the MSE loss calculation process at the pixel level, G(I LR ) and I HR The perceptual loss between . The adversarial loss calculation formula is l I Adv = -E[logD I (G(I I LR ))],in: represents the low-resolution input in the image domain, G(·) represents the super-resolution generator, and D I (·) represents the discriminator in the image domain, is the super-resolution result in the image domain obtained by the generator, log represents the logarithmic operation, E[·] represents the calculation process of the VGG loss function, Represents the calculated adversarial loss of the image domain. Similar to the loss function of the image domain, the pixel loss function of the texture domain is represents the low-resolution input in the texture domain, is the super-resolution result of the texture domain obtained by the generator, represents the texture domain features of the original high-resolution image, and E||·||1 represents the MSE loss calculation at the pixel level. Represents the texture domain and The pixel loss between . The adversarial loss is represents the low-resolution input in the texture domain, G(·) represents the super-resolution generator, and D T (·) represents the discriminator in texture domain, is the super-resolution result in the texture domain obtained by the generator, log represents the logarithmic operation, E[·] represents the calculation process of the VGG loss function, Represents the adversarial loss in the texture domain. The model is supervised and learned based on the loss function to complete the super-resolution reconstruction of medical ultrasound images.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present invention applies multi-image fusion to the field of medical ultrasound images, and combines the traditional texture feature extraction model with the current deep learning model to perform super-resolution reconstruction of medical ultrasound images. First, the ultrasound image is preprocessed, and the image is downsampled by bicubic interpolation to obtain a low-resolution and high-resolution image pair; multiple images of the same tissue site are fused to obtain a fused image; GMRF is used to extract texture features from the fused image; then multiple images of the same tissue site are grouped together, and the low-resolution and high-resolution image pairs are selected for supervised learning using an automatic clarity evaluation method; finally, a generative adversarial network model is constructed to transform LR-HR and β(LR F )-β(HR F) is used for model training, thereby completing the super-resolution reconstruction of medical ultrasound images. The advantage of the present invention is that since medical ultrasound images are real-time imaging, multiple similar images of the same tissue part of the patient can be obtained within a period of time. There is information complementarity between the multiple images, so through multi-image fusion, images with high reliability can be merged from multiple images, thereby improving the reliability and clarity of the presented image; at the same time, the texture features of the image are an extremely important source of information for understanding the image. Each organ and tissue of the human body has its own specific texture, so extracting the texture features of the ultrasound image as prior knowledge and applying it to the image super-resolution reconstruction plays a positive role in improving the accuracy of diagnosis; and experiments show that combining traditional image processing algorithms with current deep learning methods for image super-resolution reconstruction can achieve good results. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flow chart of the present invention.
[0041] Figure 2 Flowchart for image fusion and fusion image texture feature extraction.
[0042] Figure 3 Flowchart for LR-HR pair selection.
[0043] Figure 4 Super-resolution reconstruction model diagram. DETAILED DESCRIPTION
[0044] The present invention will be further described below in conjunction with the embodiments.
[0045] Example 1
[0046] like Figure 1-4 As shown, a medical ultrasound image super-resolution reconstruction method based on multi-image fusion includes the following steps:
[0047] S1. Preprocessing the collected medical ultrasound image data;
[0048] As a preferred solution, the step S1 is specifically as follows:
[0049] S11. The original ultrasound image dataset is approximately 496*348 pixels. These images are cropped into images of 492*372 pixels.
[0050] S12. downsample the images using bicubic interpolation to obtain corresponding low-resolution images that are reduced by 2, 3, 4, or 6 times;
[0051] S13. Classify the images, and group N low-resolution images of the same tissue site into one group. Each group of images is denoted as LR0…LR N-1, N high-resolution images of each uniform tissue part are grouped together, and each group of images is denoted as HR0…HR N-1 .
[0052] S2. Use contrast-based wavelet image fusion algorithm to fuse multiple similar medical ultrasound images of the same case;
[0053] As a preferred solution, step S2 is specifically as follows:
[0054] S21. Discrete wavelet transform for N low-resolution images LR0…LR of the same case N-1 and N high-resolution images HR0...HR N-1 Perform wavelet decomposition to obtain low-frequency sub-band coefficients and a series of high-frequency sub-band coefficients. The low-frequency sub-image represents the approximate component of the image, and the high-frequency component represents the detail component of the image. The more detail information, the higher the clarity.
[0055] S22. The contrast of the pixels is calculated by traversing the high-frequency and low-frequency subband coefficients. The contrast C of the image is generally defined as Where: L P is the local grayscale of the image, L B is the local background grayscale of the image (equivalent to the low-frequency component after image transformation), L H =L P -L B is the high-frequency component of the image after transformation. According to the correlation between pixels, the new contrast of each pixel in the image is Where: N(x,y) is a rectangular window defined with pixel coordinates (x,y) as the center, g γ (m,n) and f γ (m,n) represent the high-frequency and low-frequency subband coefficients of the image after discrete wavelet transform decomposition, N H Represents all pixels on the image, γ∈N H represents a pixel point on the image, and (m,n) represents the coordinates of a pixel point in the local area where the pixel coordinates (x,y) are located. The larger C(x,y) is, the greater the contrast of the local area where the pixel (x,y) is located in the original image, and the clearer the corresponding pixel is. Pixels with high contrast are the pixels you want to get;
[0056] S23. According to the corresponding fusion rules, the high-contrast coefficients of the high-frequency and low-frequency sub-band coefficients are selected as fusion coefficients; for LR0…LR N-1 These N low-resolution images and HR0...HR N-1 The N high-resolution images are first fused in pairs until the N low-resolution images and the N high-resolution images are fused into one image. The fusion rule of the high-frequency sub-band is selected as follows:
[0057] Where: g F (x,y) is the high frequency coefficient of the fused image, g A (x,y) and g B (x, y) represents the high-frequency subband coefficients at the pixel coordinates (x, y) after the images A and B are decomposed by discrete wavelet transform, C A (x, y) represents the contrast of the pixel with coordinates (x, y) in image A, C B (x,y) represents the contrast of the pixel with coordinates (x,y) in image B.
[0058] The fusion rule of low-frequency sub-band coefficients is selected as follows:
[0059] Where: f F (x,y) is the low frequency coefficient of the fused image.
[0060] S24. Wavelet reconstruction to obtain low-resolution fused image LR F and high-resolution fusion image HR F .
[0061] S3. Extract texture features from fused images based on Gauss-Markov random field model;
[0062] As a preferred solution, step S3 is specifically as follows:
[0063] S31. Gray-level co-occurrence matrix (GLCM) extracts gray-level related features of ultrasound images in space. GLCM is obtained by statistically analyzing the situation where two pixels with a certain distance on the image have a certain gray level. GLCM texture features are obtained based on GLCM statistical information. The calculation formula is: in: is the number of times grayscale h1 and grayscale h2 appear, h is the maximum grayscale value of the image, Q is generally selected from 0°, 45°, 90° and 135°, and s is used to separate two pixels of the image in the Q direction. is the joint probability density of two pixels separated by s in the Q direction. There are 14 types of texture feature statistics commonly used in GLCM. Due to the correlation between various feature statistics, it is not necessary to calculate all features. In the super-resolution reconstruction of ultrasound images, four uncorrelated feature statistics are used: energy, entropy, contrast, and correlation. The energy Eg is calculated as The calculation formula of entropy Ep is The calculation formula of contrast ratio C is: p(h1,h2) is the value of the GLCM element of two pixels with gray levels h1 and h2, and h is the maximum gray level of the image. The calculation formula of the correlation Cr is
[0064] S32. Use Gaussian Markov Random Field (GMRF) to establish the statistical correlation features between adjacent pixels. In GMRF, the intensity value of any pixel of the image is related to all surrounding adjacent pixels, which can be expressed in the form of conditional probability as p(G(a)|G(a+t), t∈n), where: n is the GMRF neighborhood of pixel a, a+t represents a pixel point in the neighborhood of pixel a, G(a) represents the intensity value of image pixel a, and G(a+t) represents the intensity value of image pixel a+t; let U be a point set on the image block, U={(k,q),1≤k≤n,1≤q≤n}, n is the GMRF neighborhood of pixel a, k and q represent pixel points in image block U, both in the range [1,n]. The GMRF process can be expressed by a symmetric difference equation as G(a)=G(U)(α+β), where: G(U) represents the intensity value of the image block U, α is the weight of the symmetric neighborhood pixels, and β is the eigenvector to be estimated by the model. The least squares error criterion can be used for estimation and solution. The calculation formula is β=(∑G(U)(G(U)) T ) -1 (∑G(U)(G(a))), G(a) represents the intensity value of image pixel a, (·) T represents the transpose operation of the matrix, (·) -1 Represents the inverse operation of the matrix. The model parameters obtained by β are the GMRF texture features that describe the image block;
[0065] S33. Get the texture feature β(LR F ) and the texture feature β of the high-resolution fusion image (HR F ).
[0066] S4. The image clarity automatic evaluation method based on discrete cosine transform sparseness selects low-resolution image and high-resolution image pairs for supervised learning;
[0067] As a preferred solution, step S4 is specifically as follows:
[0068] S41. The clarity of multiple ultrasound images of the same tissue site varies, so it is necessary to select the image with the highest clarity in the same group as the reference image in the super-resolution reconstruction task. First, HR0…HR N-1 HR i (0≤i≤N-1) performs discrete cosine transform to obtain the discrete cosine transform coefficient matrix C(x,y), (x, y) represents the coordinates of a pixel point in the image, and then extract the diagonal vector S of the matrix C(x, y), S = (C 11 ,C 22 ,…,Cuu ),u=min(r,c), where: C 11 ,C 22 ,…,C uu represents the value of the diagonal elements of the discrete cosine transform coefficient matrix C(x,y), and u represents the minimum value between the number of rows r and the number of columns c of the matrix C(x,y). Then the image HR i The eigenvector S of (0≤i≤N-1) feature =ln(S)=(ln(C1),ln(C2),…,ln(C u )), S is a diagonal vector, C1, C2, …, C u is the coefficient of the diagonal vector S. So we can extract HR0…HR N-1 The eigenvector S feature0 …S featureN-1 HR i (0≤i≤N-1),LR i In (0≤i≤N-1), the subscript i refers to the i-th high-resolution image or the i-th low-resolution image, and the i-th high-resolution image and the i-th low-resolution image correspond to each other.
[0069] S42. Use the support vector machine model to train the feature vector to obtain an image quality prediction model; the feature vector S feature There is a certain relationship between feature vector and image quality, and the support vector machine model is used to establish the mapping relationship between feature vector and image quality.
[0070] S43. According to the image quality prediction model predicted image quality score, select HR0 ... HR N-1 HR with the highest median score i (0≤i≤N-1) as the reference image, and HR i (0≤i≤N-1) corresponding LR i (0≤i≤N-1) is used as the input of the model.
[0071] S4. The image clarity automatic evaluation method based on discrete cosine transform sparseness selects low-resolution image and high-resolution image pairs for supervised learning;
[0072] S5. Construct a generative adversarial network (GAN) architecture based on the convolutional neural network model CNN to train the training data set, and the trained model is used for super-resolution reconstruction of medical ultrasound images;
[0073] As a preferred solution, step S5 is specifically as follows:
[0074] S51. The image super-resolution reconstruction model based on generative adversarial network is divided into a generator and two discriminators, using the residual dense block (RRDB) of the basic architecture unit of ESRGAN. The generator part includes two branches, the main branch for image super-resolution reconstruction and the auxiliary branch for texture feature extraction. The discriminator supervises the restoration of the image domain and the texture domain respectively;
[0075] S52. The main branch consists of 23 residual dense blocks (RRDB). The input of the branch is the low-resolution image selected in S4. At the end of the branch, upsampling is performed using nearest neighbor interpolation, and finally the features are mapped to the image domain through convolution-ReLU activation function-convolution;
[0076] S53. The input of the auxiliary branch is the texture feature map extracted in S3, which restores the texture features of the fused image. The ultimate goal of the auxiliary branch is to clearly learn the texture features of the fused image and feed the texture features back to the main branch. The auxiliary branch consists of 4 RRDB blocks, and the inputs of the 1st, 2nd, 3rd and 4th RRDB blocks are connected to the outputs of the 5th, 10th, 15th and 20th RRDB blocks of the main branch respectively. There is a convolution layer behind each RRDB block in the auxiliary branch to reduce the feature channels, and finally the upsampled features are mapped to the texture feature domain through convolution-ReLU-convolution;
[0077] S54. At the end of the generator network, an attention mechanism is used to multiply the output of the auxiliary branch back to the main branch. The attention mechanism can block artifacts caused by inappropriate texture enhancement. This design can enable texture features to enhance super-resolution images in a more adaptive way.
[0078] S55. The loss functions in supervised learning include the loss functions in the image domain and the loss functions in the texture domain. The loss functions in the image domain include pixel loss, perceptual loss, and adversarial loss, while the loss functions in the texture domain include pixel loss and adversarial loss. The pixel loss calculates the pixel difference between the super-resolution image and the reference image, and the formula is Where: G(·) represents the super-resolution generator, G(I LR ) represents the low-resolution input image I LR The super-resolution image generated after the generator, I HR represents the original high-resolution image, E||·||1 represents the MSE loss calculation process at the pixel level, G(I LR ) and I HR The pixel loss between . The perceptual loss is used to restore the perceptual quality of the image, and the calculation formula is φ j (·) represents the activation of the VGG network when processing the image at layer j, G(·) represents the super-resolution generator, G(ILR ) represents the low-resolution input image I LR The super-resolution image generated after the generator, I HR represents the original high-resolution image, E||·||1 represents the MSE loss calculation process at the pixel level, G(I LR ) and I HR The perceptual loss between . The adversarial loss calculation formula is l I Adv = -E[logD I (G(I I LR ))],in: represents the low-resolution input in the image domain, G(·) represents the super-resolution generator, and D I (·) represents the discriminator in the image domain, is the super-resolution result in the image domain obtained by the generator, log represents the logarithmic operation, E[·] represents the calculation process of the VGG loss function, Represents the calculated adversarial loss of the image domain. Similar to the loss function of the image domain, the pixel loss function of the texture domain is represents the low-resolution input in the texture domain, is the super-resolution result of the texture domain obtained by the generator, represents the texture domain features of the original high-resolution image, and E||·||1 represents the MSE loss calculation at the pixel level. Represents the texture domain and The pixel loss between . The adversarial loss is represents the low-resolution input in the texture domain, G(·) represents the super-resolution generator, and D T (·) represents the discriminator in texture domain, is the super-resolution result in the texture domain obtained by the generator, log represents the logarithmic operation, E[·] represents the calculation process of the VGG loss function, Represents the adversarial loss in the texture domain. The model is supervised and learned based on the loss function to complete the super-resolution reconstruction of medical ultrasound images.
[0079] Example 2
[0080] like Figure 1 As shown, a medical ultrasound image super-resolution reconstruction method based on multi-image fusion includes the following steps:
[0081] S1. Preprocessing multiple similar medical ultrasound image data of each case collected by ultrasound equipment to remove low-quality images;
[0082] S11. The original ultrasound image dataset is approximately 496*348 pixels. These images are cropped into images of 492*372 pixels.
[0083] S12. downsample the images using bicubic interpolation to obtain corresponding low-resolution images that are reduced by 2, 3, 4, or 6 times;
[0084] S13. Classify the images, and group N low-resolution images of the same case into one group, and each group of images is denoted as LR0...LR N-1 , N high-resolution images of the same tissue site are grouped together, and each group of images is denoted as HR0...HR N-1 .
[0085] S2. Use contrast-based wavelet image fusion algorithm to fuse multiple similar medical ultrasound images of the same case;
[0086] S21. Discrete wavelet analysis of N low-resolution images LR0…LR of the same tissue region N and N high-resolution images HR0...HR N-1 Perform wavelet decomposition to obtain low-frequency sub-band coefficients and a series of high-frequency sub-band coefficients;
[0087] S22. traverse and calculate the contrast of pixels for the high-frequency and low-frequency sub-band coefficients, and pixels with high contrast are desired pixels;
[0088] S23. According to the corresponding fusion rules, the high-frequency and low-frequency sub-band coefficients are selected as fusion coefficients with high contrast;
[0089] S24. Wavelet reconstruction to obtain fused image LR F and HR F .
[0090] Specifically, if Figure 2 As shown in the figure, multiple similar images are first decomposed by wavelet, and then the contrast is calculated for each pair of images. The images are first fused two by two until all images in a group are fused to obtain the fused image LR of multiple images. F and HR F .
[0091] S3. Extract texture features from fused images based on Gauss-Markov random field model;
[0092] S31. Gray-level co-occurrence matrix (GLCM) extracts gray-level related features of ultrasound images in space. GLCM is obtained by statistically analyzing the conditions where two pixels at a certain distance on the image have a certain gray level. GLCM texture features are obtained based on GLCM statistical information. There are 14 types of texture feature statistics commonly used in GLCM. Due to the correlation between various feature statistics, it is not necessary to calculate all features. In the super-resolution reconstruction of ultrasound images, four unrelated feature statistics are used: energy, entropy, contrast, and correlation.
[0093] S32. Use Gaussian Markov Random Field (GMRF) to establish statistical correlation features between adjacent pixels. In GMRF, the intensity value G(a) of any pixel a in the image is related to all surrounding adjacent pixels, which can be expressed in the form of conditional probability as p(G(a)|G(a+t), t∈n).
[0094] Specifically, if Figure 2 As shown, the fused image LR F and HR F First, GLCM is used to extract grayscale features, and then GMRF is used to establish statistical correlation features to obtain the texture features β(LR F ) and β(HR F )
[0095] S4. An automatic image clarity evaluation method based on discrete cosine transform coefficients selects low-resolution image and high-resolution image pairs for supervised learning;
[0096] S41. The clarity of multiple ultrasound images of the same tissue site varies, so it is necessary to select the image with the highest clarity in the same group as the reference image in the super-resolution reconstruction task. First, HR0…HR N-1 Perform discrete cosine transform and extract feature vector S feature0 …S featureN-1 ;
[0097] S42. Train the feature vector using a support vector machine model to obtain an image quality prediction model;
[0098] S43. Predicting HR0…HR based on the image quality prediction model N-1 image quality score, select HR0…HR N-1 HR with the highest median score i (0≤i≤N-1) as the reference image, and HR i (0≤i≤N-1) corresponding LR i (0≤i≤N-1) is used as the input of the model.
[0099] Specifically, if Figure 3As shown in the figure, the image quality prediction model is obtained by training the feature vector through support vector machine, and the image quality is automatically evaluated by the model. The image with the highest quality score is selected as the reference image from multiple ultrasound images of each case, and the corresponding image is used as the model input, so as to obtain the LR-HR image pair.
[0100] S5. Construct a generative adversarial network (GAN) architecture based on the convolutional neural network model CNN to train the training dataset. The trained model is used for super-resolution reconstruction of medical ultrasound images.
[0101] S51. The image super-resolution reconstruction model based on generative adversarial network is divided into a generator and two discriminators. The generator part includes two branches, namely the main branch for image super-resolution reconstruction and the auxiliary branch for texture feature extraction. The discriminator supervises the image domain and texture feature extraction respectively.
[0102] S52. The main branch consists of 23 residual dense blocks (RRDBS), and the input of the branch is the LR selected in S4 i (0≤i≤N-1), at the end of the branch, the nearest neighbor interpolation is used to perform upsampling, and finally the features are mapped to the image domain through convolution-ReLU activation function-convolution;
[0103] S53. The input of the auxiliary branch is the texture feature map extracted in S3, which restores the texture features of the fused image. The ultimate goal of the auxiliary branch is to clearly learn the texture features of the fused image and feed the texture features back to the main branch. The auxiliary branch consists of 4 RRDB blocks, and the inputs of the 1st, 2nd, 3rd and 4th RRDB blocks are connected to the outputs of the 5th, 10th, 15th and 20th RRDB blocks of the main branch respectively;
[0104] S54. At the end of the generator network, an attention mechanism is used to multiply the output of the auxiliary branch back to the main branch;
[0105] S55. The loss functions in supervised learning include the loss functions in the image domain and the loss functions in the texture domain. The loss functions in the image domain include pixel loss, perceptual loss, and adversarial loss, while the loss functions in the texture domain include pixel loss and perceptual loss.
[0106] Specifically, if Figure 4 As shown in the figure, the basic architecture adopts the basic unit residual dense block (RRDB) in the ESRGAN model. T (·) is used as an auxiliary branch to learn the texture features of the image. After a 3×3 convolutional neural network Conv, the texture feature map β (LR F ); generator G I(·) is the main branch, Conv is still 3×3, followed by 23 RRDB blocks. The end of the branch uses nearest neighbor interpolation to upsample, and finally Conv-ReLU-Conv is used to obtain the super-resolution output G(LR), completing the super-resolution reconstruction of medical ultrasound images.
[0107] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A medical ultrasound image super-resolution reconstruction method based on multi-image fusion, characterized in that: The following steps are involved: S1. Preprocessing the collected medical ultrasound image data; S2. Use contrast-based wavelet image fusion algorithm to fuse multiple similar medical ultrasound images of the same case; S3. Extract texture features from fused images based on Gauss-Markov random field model; S4. The image clarity automatic evaluation method based on discrete cosine transform sparseness selects low-resolution image and high-resolution image pairs for supervised learning; The step S4 is specifically as follows: S41. The clarity of multiple similar ultrasound images of the same case varies, so it is necessary to select the image with the highest clarity in the same group as the reference image in the super-resolution reconstruction task; first, HR0…HR N-1 Perform discrete cosine transform and extract feature vector S feature0 …S featureN-1 ; S42. Train the feature vector using a support vector machine model to obtain an image quality prediction model; S43. Predicting HR0…HR based on the image quality prediction model N-1 image quality score, select HR0…HR N-1 HR with the highest median score i (0≤i≤N-1) as the reference image, and HR i (0≤i≤N-1) corresponding LR i (0≤i≤N-1) as the input of the model, HR i (0≤i≤N-1),LR i In (0≤i≤N-1), the subscript i refers to the i-th high-resolution image or the i-th low-resolution image, and the i-th high-resolution image and the i-th low-resolution image correspond to each other; S5. Construct a generative adversarial network (GAN) architecture based on the convolutional neural network model CNN to train the training dataset. The trained model is used for super-resolution reconstruction of medical ultrasound images.
2. The medical ultrasound image super-resolution reconstruction method based on multi-image fusion according to claim 1, characterized in that: The step S1 is specifically as follows: S11. The original ultrasound image dataset is 496*348 pixels, which is cropped into 492*372 pixels; S12. Downsample the image using bicubic interpolation to obtain corresponding low-resolution images that are reduced by 2 times, 3 times, 4 times, and 6 times; S13. Classify the images, group the N low-resolution images of each case into one group, and record the images of each group as LR0…LR N-1 , N high-resolution images of each case are grouped together, and each group of images is denoted as HR0…HR N-1 .
3. The medical ultrasound image super-resolution reconstruction method based on multi-image fusion according to claim 1, characterized in that: The step S2 is specifically as follows: S21. Discrete wavelet transform for N low-resolution images LR0…LR of the same case N-1 and N high-resolution images HR0...HR N-1 Perform wavelet decomposition to obtain low-frequency sub-band coefficients and a series of high-frequency sub-band coefficients. The low-frequency sub-image represents the approximate component of the image, and the high-frequency component represents the detail component of the image. The more detail information, the higher the clarity. S22. traverse and calculate the contrast of pixels for the high-frequency and low-frequency sub-band coefficients, and pixels with high contrast are desired pixels; S23. According to the corresponding fusion rules, the high-frequency and low-frequency sub-band coefficients are selected as fusion coefficients with high contrast; S24. Wavelet reconstruction to obtain low-resolution fused image LR F and high-resolution fusion image HR F .
4. The medical ultrasound image super-resolution reconstruction method based on multi-image fusion according to claim 1, characterized in that: The step S3 is specifically as follows: S31. Gray-level co-occurrence matrix GLCM extracts gray-level related features of ultrasound images in space. GLCM is obtained by statistically analyzing the situation where two pixels with a certain distance on the image have a certain gray level. GLCM texture features are obtained based on GLCM statistical information. There are 14 types of texture feature statistics commonly used in GLCM. Due to the correlation between various feature statistics, it is not necessary to calculate all features. In the super-resolution reconstruction of ultrasound images, four unrelated feature statistics are used: energy, entropy, contrast and correlation. S32. Use Gaussian Markov random field GMRF to establish statistical correlation features between adjacent pixels. In GMRF, the intensity value G(a) of any pixel a of the image is related to the surrounding adjacent pixels, which is expressed in the form of conditional probability as p(G(a)|G(a+t), t∈n), where: n is the GMRF neighborhood of pixel a, a+t represents a pixel point in the neighborhood of pixel a, G(a) represents the intensity value of image pixel a, G(a+t) represents the intensity value of image pixel a+t, and p(G(a)|G(a+t), t∈n) represents the probability of intensity value G(a) under the condition of intensity value G(a+t); S33. Get the texture feature β(LR F ) and the texture feature β of the high-resolution fusion image (HR F ).
5. The medical ultrasound image super-resolution reconstruction method based on multi-image fusion according to claim 1, characterized in that: The step S5 is specifically as follows: S51. The image super-resolution reconstruction model based on generative adversarial network is divided into a generator and two discriminators. The basic architecture adopts the basic unit residual dense block RRDB in the ESRGAN model; the generator part includes two branches, namely the main branch for image super-resolution reconstruction and the auxiliary branch for texture feature extraction. The discriminator supervises the image domain and the texture domain respectively. S52. The main branch includes 23 residual dense blocks RRDB, and the input of the branch is the LR selected in S4 i (0≤i≤N-1), at the end of the branch, upsampling is performed using nearest neighbor interpolation, and finally the features are mapped to the image domain through convolution-ReLU activation function-convolution; S53. The input of the auxiliary branch is the texture feature map β (LR F ), restore the texture features of the fused image; The ultimate goal of the auxiliary branch is to clearly learn the texture features of the fused image and feed the texture features back to the main branch. The auxiliary branch includes 4 RRDB blocks. In order to better restore the texture features of the image, the outputs of the 5th, 10th, 15th and 20th RRDB blocks of the main branch are connected to the inputs of the 1st, 2nd, 3rd and 4th RRDB blocks of the auxiliary branch respectively. S54. At the end of the generator network, an attention mechanism is used to multiply the output of the auxiliary branch back to the main branch; S55.The loss functions in supervised learning include the loss functions of the image domain and the loss functions of the texture domain. The loss functions of the image domain include pixel loss, perceptual loss and adversarial loss, and the loss functions of the texture domain include pixel loss and adversarial loss.
