Liver tumor image automatic segmentation method, system and device and storage medium

Through local image enhancement and the improved Yolo-v5 model combined with the B-spline level set method of the Gaussian mixture model, multiple challenges in liver tumor segmentation technology are solved, the segmentation accuracy and efficiency are improved, and the generalization ability and interpretation of the model are enhanced. property, achieving clearer tumor boundary detection.

CN118735950APending Publication Date: 2024-10-01XI'AN UNIVERSITY OF ARCHITECTURE AND TECHNOLOGY
View PDF 0 Cites 3 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing liver tumor segmentation technology has problems such as over-segmentation and under-segmentation, blurred boundaries, low segmentation accuracy, data dependence, poor model interpretability, class imbalance, vulnerability to adversarial attacks, and insufficient real-time performance, especially when image quality is low, Challenges include tumor diversity and complexity, image noise, high computational cost, dataset limitations, and insufficient generalization capabilities.

Method used

A local image enhancement algorithm is used to process medical images. The Yolo-v5 model is improved and combined with the B-spline level set method based on Gaussian mixture model. Through the joint application of local image enhancement and Gaussian mixture model, the initial contour of the liver tumor image is extracted and segmented. , improve segmentation precision and accuracy.

Benefits of technology

It improves the accuracy and efficiency of liver tumor image segmentation, reduces computing resource consumption, enhances the generalization ability and interpretability of the model, solves the problems of semi-automation and insufficient accuracy, and achieves clearer tumor boundary detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735950A_ABST
    Figure CN118735950A_ABST
Patent Text Reader

Abstract

The invention discloses a liver tumor image automatic segmentation method, system and device and a storage medium, and belongs to the technical field of image segmentation, and the method comprises the following steps: processing a medical image through a local image enhancement algorithm, and obtaining an enhanced medical image; and positioning the enhanced medical image by using an improved Yo-v5 model to obtain an initial contour of a level set, and segmenting and extracting a liver tumor image in the initial contour by using a B-spline level set method based on a Gaussian mixture model. According to the method, the gray values of the tumor region and other regions are compared more obviously through a local image enhancement algorithm; by improving a Yo-v5 deep learning model, the positioning precision is improved, and the initial contour of the level set can be automatically obtained; a liver tumor segmentation result is accurately extracted by starting from the initial contour and adopting a B spline level set method based on a Gaussian mixture model, and the problems of semi-automation and insufficient precision of liver tumor image segmentation are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image segmentation, and in particular relates to a method, system, device and storage medium for automatic segmentation of liver tumor images. Background Art

[0002] According to statistics in 2018, liver tumors are the seventh most common tumors in the world, and the total number of deaths ranks second among all tumor diseases. Early detection and treatment can effectively improve the cure rate of liver tumor diseases. However, it is very laborious to manually search for small tumors in a large number of liver CT images, and it is also easy to miss them. Computed tomography (CT) provides comprehensive information for the diagnosis and treatment of liver tumors, relieves doctors of the heavy workload of reading films, and improves the accuracy of diagnosis. The segmentation of liver tumor CT images is a key and difficult problem in computer-aided diagnosis, because the types of liver tumors are diverse and complex, and individual differences lead to variable tumor sizes and shapes. The application of deep learning technology in medical image segmentation has achieved significant performance improvements. Fully convolutional networks (FCNs), U-Net networks, and generative adversarial networks (GANs) are currently the most commonly used deep learning methods in liver tumor CT image segmentation. In order to promote the research progress of medical image segmentation, multiple public liver tumor segmentation datasets have been created, such as the LiTS dataset, which contains CT scan images and their segmentation annotations from multiple clinical sites. The deep learning segmentation method can automatically obtain the characteristic information of liver tumor CT images from training samples, and has higher segmentation accuracy and efficiency than traditional methods.

[0003] Existing liver tumor segmentation technologies mainly include the following methods:

[0004] (1) Segmentation technology based on deep learning. Deep learning technology has become one of the mainstream methods for liver tumor segmentation. This type of technology can automatically learn complex features and structures from medical images, especially fully convolutional neural networks (FCNs) and their variants, such as U-Net and generative adversarial networks (GANs).

[0005] (2) Deep networks based on multi-scale features and reverse attention mechanisms. This type of method can adaptively select features of different scales through a multi-scale feature extraction module and a reverse attention module, and guide the network to focus on the edge features of the segmentation target to improve the edge segmentation ability.

[0006] (3) H-Dense UNet. This is an algorithm that won the championship in the 2017 LiTS liver tumor medical image segmentation international open challenge. It achieves feature optimization through a composite feature fusion layer and uses an end-to-end system to achieve the fusion and optimization of multiple features.

[0007] (4) Res-Unet network. Based on the PaddlePaddle framework, the Res-Unet network structure was trained on the LiTS dataset and used for the segmentation of the liver and liver tumors, achieving a high segmentation accuracy.

[0008] (5) Based on three-dimensional convolution and convolutional long short-term memory network. This type of method uses three-dimensional convolution and ConvLSTM to process dynamic contrast-enhanced MRI images to achieve automatic segmentation of liver tumors.

[0009] (6) Fusion of convolution and Transformer method. In order to solve the problem that existing convolution-based methods are difficult to establish long-distance dependencies, researchers proposed a multi-scale liver tumor segmentation method that combines convolution and Transformer to improve segmentation accuracy.

[0010] (7) U-Net and its variants. U-Net is a deep learning network designed specifically for medical image segmentation. It accurately segments images through an encoder-decoder structure and skip connections. Various variants of U-Net have also been proposed for liver tumor segmentation.

[0011] (8) Based on conditional generative adversarial networks: This type of method uses generative adversarial networks to perform image synthesis, enrich training data, and improve segmentation performance.

[0012] (9) Segmentation methods combined with traditional image processing techniques. Some methods combine deep learning networks with traditional image processing techniques to improve the precision and accuracy of segmentation.

[0013] Deep learning methods have made significant progress in liver tumor segmentation, but there are still some shortcomings, mainly including:

[0014] (1) Over-segmentation and under-segmentation. Some deep learning models may mistakenly identify non-tumor areas as tumor areas (over-segmentation) or fail to identify all tumor areas (under-segmentation) during the segmentation process.

[0015] (2) Blurred boundaries: Deep learning models may have difficulty accurately segmenting the edge of the tumor, resulting in unclear boundaries.

[0016] (3) Low segmentation accuracy. Although deep learning technology is constantly improving, in some cases, the segmentation accuracy is still unsatisfactory and the performance of the model may need to be further improved.

[0017] (4) Data dependence. The performance of deep learning models depends heavily on the quality and diversity of the training data. If the training data is insufficient or biased, the generalization ability of the model may be limited.

[0018] (5) Computational resources and time consumption. Some deep learning models, especially those based on 3D data, may require high computing resources and long training time.

[0019] (6) Model interpretability. Deep learning models are often considered “black box” models whose internal decision-making processes are difficult to explain, which may cause trust issues in clinical applications.

[0020] (7) Class imbalance problem. In medical image segmentation, there is often a class imbalance problem, that is, the background pixels are far more than the tumor pixels of interest, which may affect the performance of the model.

[0021] (8) Model generalization ability. A model may perform well on a specific dataset, but its performance may deteriorate on new or different datasets, indicating that the generalization ability of the model needs to be improved.

[0022] (9) Vulnerability to adversarial attacks. Deep learning models may be sensitive to carefully designed adversarial attacks, which may affect the stability and security of the models in practical applications.

[0023] (10) Real-time performance. In some clinical applications, the model may be required to process images and provide segmentation results in real time, but some current models may not meet this requirement.

[0024] Addressing these shortcomings requires continuous research and innovation, including improving model architecture, optimizing training strategies, enhancing the generalization and interpretation capabilities of models, and developing more efficient and robust segmentation algorithms.

[0025] Liver tumor segmentation technology has important clinical application value in medical image processing, but it also faces some technical and methodological challenges and shortcomings.

[0026] (1) Image quality and contrast issues. The contrast between the liver and its surrounding tissues is low, especially without the use of contrast agents, which makes it more difficult to automatically segment the liver and tumors from CT scans.

[0027] (2) The diversity and complexity of tumors. The size, shape, and location of tumors vary greatly among different patients, and some tumors have unclear edges, which results in poor performance of edge-based segmentation algorithms.

[0028] (3) Image noise and artifacts. Noise may be introduced during the CT scanning process, especially when contrast agents are used to enhance the image, which will increase the noise interference in the image and affect the accuracy of segmentation.

[0029] (4) Anisotropy and resolution variation. CT scans may have high variability in the z-axis direction, and the variation in voxel spacing poses a challenge to segmentation algorithms.

[0030] (5) Computational cost and memory consumption. Although some deep learning methods, such as 3D fully convolutional networks (3D FCN), can better utilize the 3D spatial information of images, their computational cost and GPU memory consumption are high.

[0031] (6) Dataset limitations. High-quality medical image datasets are usually scarce, and obtaining and annotating these datasets requires a lot of expert work, which limits deep learning model training and performance improvement.

[0032] (7) Overfitting problem. When training deep neural networks, due to the small size of medical image datasets, overfitting is prone to occur, that is, the model performs well on the training set, but the performance deteriorates on unseen test data.

[0033] (8) Generalization ability. Existing segmentation algorithms may perform well on specific datasets, but their generalization ability for different devices, different patient groups, or different types of liver tumors still needs to be improved.

[0034] (9) Segmentation accuracy and edge processing. Although deep learning technology has made progress in liver tumor segmentation, there are still challenges in processing the fuzzy transition area between the tumor and normal tissue edges, which requires more sophisticated edge detection technology.

[0035] These shortcomings point out some of the main problems currently faced by liver tumor segmentation technology, which need to be addressed in future research to improve the accuracy and practicality of segmentation technology. Summary of the invention

[0036] The purpose of the present invention is to overcome the problems of semi-automatic and insufficient precision of liver tumor segmentation in the prior art, and propose a method, system, device and storage medium for automatic segmentation of liver tumor images.

[0037] In order to achieve the above object, the present invention adopts the following technical scheme:

[0038] A method for automatic segmentation of liver tumor images comprises the following steps:

[0039] The local image enhancement algorithm is used to process the medical image to obtain an enhanced medical image. The improved Yolo-v5 model is used to locate the enhanced medical image to obtain the initial contour of the level set. The B-spline level set method based on the Gaussian mixture model is used to segment and extract the liver tumor image from the initial contour.

[0040] Furthermore, the local image enhancement algorithm includes the following steps:

[0041] S101, define p as the center pixel, initialize i=0, S0(x, y)=p, I0(x, y)=p, I0(x, y) contains one pixel;

[0042] S102, let i=i+1, S1(x,y) is all neighborhoods within a pixel distance range centered on S0(x,y), i=1;

[0043] Update I1(x,y) by I1(x,y)=S0(x,y)∪S1(x,y), where I1(x,y) contains 3×3 pixels;

[0044] S103, let i=i+1, S2(x,y) is all neighborhoods within a pixel distance range centered on S1(x,y), S2(x,y) does not include the pixel points in I1(x,y), i=2;

[0045] Update I2(x,y) by I2(x,y)=S0(x,y)∪S1(x,y)∪S2(x,y), where I2(x,y) contains 5×5 pixels;

[0046] S104, and so on, S n (x,y) is the number containing S n-1 All neighbors within a pixel distance from (x,y) centered on the image, excluding I n-1 Pixels in (x, y), let i = n;

[0047] By I n (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y) Update I n (x,y), at this time I n (x,y) contains (2n+1)×(2n+1) pixels;

[0048] S105, derive I from the above steps i (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y), and abbreviated as I i =S0∪S1∪S2∪...∪S n ;

[0049] S106. The saliency formula combined with the LPIF formula yields:

[0050]

[0051] Among them, means(S i (x,y))=∫∫ Ω KG (x,y)I i (x,y)dxdy;

[0052] The function expressions of S107 and LPIF are:

[0053] Furthermore, the steps to improve the Yolo-v5 model are as follows:

[0054] Replace the activation function of the Yolo-v5 model with the SiLU activation function;

[0055] Update the intersection over union (IoU) indicator of the Yolo-v5 model to the EIoU loss function;

[0056] Replace the architecture of the Yolo-v5 neural network model with the MobileNetV3 architecture;

[0057] Get the improved Yolo-v5 model.

[0058] Furthermore, the B-spline level set method based on Gaussian mixture model is used to segment and extract the liver tumor image in the initial contour, specifically:

[0059] After clustering the initial contour image using the Gaussian mixture model and simulating the solution of the M-step of the EM algorithm, the initial contour image was divided into foreground and background areas using the B-spline level set. The energy of the foreground and background areas was minimized, and the gradient descent method was used to solve the local minimum of the energy function to obtain the energy gradient, and the liver tumor image in the initial contour was segmented and extracted.

[0060] Furthermore, minimizing the energy of the foreground region and the background region includes taking partial derivatives of the energy function coefficients;

[0061] The partial derivative of the coefficients of the energy function is shown as follows:

[0062]

[0063] Where c[k0] is the coefficient;

[0064] The characteristic function of the partial derivative of the energy function with respect to the coefficient is shown as follows:

[0065]

[0066] The local minimum of the energy function is solved using the gradient descent method, as shown in the following formula:

[0067]

[0068] in, represents the energy gradient associated with the B-spline coefficients, and λ represents the number of iteration steps;

[0069] The calculation of energy gradient is the convolution of characteristic function of partial derivative of energy function with B-spline and sampling of convolution result, as shown in the following formula:

[0070]

[0071] Among them, h is the convolution result sampling period.

[0072] Furthermore, the Gaussian mixture model is expressed using parameters as:

[0073] θ l ={(μ l,1 ,σ l,1 ,ω l,1 ),…,(μ l,g ,σ l,g ,ω l,g )}

[0074] The weighted probability is:

[0075]

[0076] At this point, the M-step of the EM algorithm is changed to a problem simulated using a Gaussian mixture model;

[0077] The B-spline level set expression is as follows:

[0078]

[0079] Among them, the first two terms are area terms, the third term is the contour term, v is the parameter that balances the area term and the contour term, and H ε (·) is the Heaviside function, δ ε (·) is the Dirac function.

[0080] Furthermore, after segmenting and extracting the liver tumor image from the initial contour using the B-spline level set method based on the Gaussian mixture model, the Dice coefficient of the liver tumor image, the relative accuracy of segmentation, and the location of the tumor segmentation results were evaluated.

[0081] A liver tumor image automatic segmentation system includes a local enhancement module for processing a medical image using a local image enhancement algorithm to obtain an enhanced medical image;

[0082] The contour positioning module is used to locate the enhanced medical image using the improved Yolo-v5 model to obtain the initial contour of the level set;

[0083] The extraction and segmentation module is used to segment and extract the liver tumor image in the initial contour by using a B-spline level set method based on a Gaussian mixture model.

[0084] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for automatic segmentation of liver tumor images when executing the computer program.

[0085] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for automatic segmentation of liver tumor images is implemented.

[0086] Compared with the prior art, the present invention has the following beneficial technical effects:

[0087] The present invention proposes an automatic liver tumor image segmentation method. Firstly, aiming at the defect that the gray value contrast between the tumor area and other areas in the medical image is not obvious, a local image enhancement algorithm is designed to make the gray value contrast between the tumor area and other areas more obvious; secondly, by improving the Yolo-v5 deep learning model, the positioning accuracy is improved, and the initial contour of the level set can be automatically obtained; finally, starting from the initial contour, a B-spline level set method based on a Gaussian mixture model is used to accurately extract the liver tumor segmentation result, which solves the problems of semi-automatic and insufficient accuracy of liver tumor image segmentation.

[0088] Furthermore, the improved Yolo-v5 method is combined with the B-spline level set method. The recognition and localization results of liver tumors can be obtained through training of the data set, and then the accurate initial contour is obtained to achieve accurate convergence of the B-spline level set.

[0089] Furthermore, MobileNetV3 is applied to Yolo-v5 to improve the lightweight of the neural network model, thereby improving efficiency while reducing energy consumption.

[0090] Furthermore, the B-spline segmentation method is closer to the standard segmentation than the factorization segmentation method, and the segmentation accuracy is the main evaluation factor, rather than the running time. From the experimental results, it can be seen that the running time of the B-spline level set segmentation method is greater than the factorization method corresponding to a single image. This is because the B-spline level set has undergone multiple different iterations, and each iteration has a set number of iterations, so that the segmentation results can be more accurate and smooth. BRIEF DESCRIPTION OF THE DRAWINGS

[0091] The drawings in the specification are used to provide further understanding of the present invention and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0092] Figure 1 A schematic diagram of a flow chart of a method for automatic segmentation of liver tumor images according to the present invention;

[0093] Figure 2 It is a structural schematic diagram of a liver tumor image automatic segmentation system of the present invention;

[0094] Figure 3 It is a schematic diagram of the structure of an electronic device for an automatic liver tumor image segmentation method of the present invention;

[0095] Figure 4 This is a flow chart of a method for automatically extracting liver tumors in an embodiment of the present invention;

[0096] Figure 5 Figure 1 is a liver tumor detection result diagram based on the improved Yolo-v5 method in an embodiment of the present invention;

[0097] Figure 6 Figure 2 is a liver tumor detection result diagram based on the improved Yolo-v5 method in an embodiment of the present invention;

[0098] Figure 7 Figure 3 is the liver tumor detection result based on the improved Yolo-v5 method in an embodiment of the present invention;

[0099] Figure 8 Figure 4 is a liver tumor detection result based on the improved Yolo-v5 method in an embodiment of the present invention;

[0100] Fig. 9 This is one of the initial contour images obtained based on the improved deep learning method in an embodiment of the present invention;

[0101] Fig.10 The second initial contour map obtained based on the improved deep learning method in the embodiment of the present invention;

[0102] Fig.11 The third is an initial contour map obtained based on the improved deep learning method in an embodiment of the present invention;

[0103] Fig.12 The fourth is the initial contour map obtained based on the improved deep learning method in the embodiment of the present invention;

[0104] Fig.13 This is a result diagram of combining the mixed Gaussian model with the B-spline level set in an embodiment of the present invention;

[0105] Fig.14 This is a comparison diagram of three results in the embodiments of the present invention;

[0106] Fig.15 4 is a comparison diagram of the proportion of effective pixels in the embodiment of the present invention. DETAILED DESCRIPTION

[0107] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0108] The following detailed description is an exemplary description, which is intended to provide further detailed description of the present invention. Unless otherwise specified, all technical terms used in the present invention have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used in the present invention are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention.

[0109] Embodiment 1

[0110] See also Figure 1 , a method for automatic segmentation of liver tumor images, comprising the following steps:

[0111] The local image enhancement algorithm is used to process the medical image to obtain an enhanced medical image. The improved Yolo-v5 model is used to locate the enhanced medical image to obtain the initial contour of the level set. The B-spline level set method based on the Gaussian mixture model is used to segment and extract the liver tumor image from the initial contour.

[0112] Preferably, the local image enhancement algorithm comprises the following steps:

[0113] S101, define p as the center pixel, initialize i=0, S0(x, y)=p, I0(x, y)=p, I0(x, y) contains one pixel;

[0114] S102, let i=i+1, S1(x,y) is all neighborhoods within a pixel distance range centered on S0(x,y), i=1;

[0115] Update I1(x,y) by I1(x,y)=S0(x,y)∪S1(x,y), where I1(x,y) contains 3×3 pixels;

[0116] S103, let i=i+1, S2(x,y) is all neighborhoods within a pixel distance range centered on S1(x,y), S2(x,y) does not include the pixel points in I1(x,y), i=2;

[0117] Update I2(x,y) by I2(x,y)=S0(x,y)∪S1(x,y)∪S2(x,y), where I2(x,y) contains 5×5 pixels;

[0118] S104, and so on, S n(x,y) is the number containing S n-1 All neighbors within a pixel distance from (x,y) centered on the image, excluding I n-1 Pixels in (x, y), let i = n;

[0119] By I n (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y) Update I n (x,y), at this time I n (x,y) contains (2n+1)×(2n+1) pixels;

[0120] S105, derive I from the above steps i (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y), and abbreviated as I i =S0∪S1∪S2∪...∪S n ;

[0121] S106. The saliency formula is combined with the LPIF (local pixel inhomogeneity factor, a factor that enhances image saliency) formula to obtain:

[0122]

[0123] Among them, means(S i (x,y))=∫∫ Ω K G (x,y)I i (x,y)dxdy;

[0124] The function expressions of S107 and LPIF are:

[0125] Preferably, the steps of improving the Yolo-v5 model are specifically as follows:

[0126] Replace the activation function of the Yolo-v5 model with the SiLU activation function;

[0127] Update the intersection over union (IoU) indicator of the Yolo-v5 model to the EIoU loss function;

[0128] Replace the architecture of the Yolo-v5 neural network model with the MobileNetV3 architecture;

[0129] Get the improved Yolo-v5 model.

[0130] Preferably, a B-spline level set method based on a Gaussian mixture model is used to segment and extract the liver tumor image in the initial contour, specifically:

[0131] After clustering the initial contour image using the Gaussian mixture model and simulating the solution of the M-step of the EM algorithm, the initial contour image was divided into foreground and background areas using the B-spline level set. The energy of the foreground and background areas was minimized, and the gradient descent method was used to solve the local minimum of the energy function to obtain the energy gradient, and the liver tumor image in the initial contour was segmented and extracted.

[0132] Preferably, minimizing the energy of the foreground region and the background region includes taking partial derivatives of energy function coefficients;

[0133] The partial derivative of the coefficients of the energy function is shown as follows:

[0134]

[0135] Where c[k0] is the coefficient;

[0136] The local minimum of the energy function is solved using the gradient descent method, as shown in the following formula:

[0137]

[0138] in, represents the energy gradient associated with the B-spline coefficients, and λ represents the number of iteration steps;

[0139] The calculation of energy gradient is the convolution of characteristic function of partial derivative of energy function with B-spline and sampling of convolution result, as shown in the following formula:

[0140]

[0141] Among them, h is the convolution result sampling period.

[0142] Preferably, the Gaussian mixture model is expressed using parameters as:

[0143] θ l ={(μ l,1 ,σ l,1 ,ω l,1 ),…,(μ l,g ,σ l,g ,ω l,g )}

[0144] The weighted probability is:

[0145]

[0146] At this point, the M-step of the EM algorithm is changed to a problem simulated using a Gaussian mixture model;

[0147] The B-spline level set expression is as follows:

[0148]

[0149] Among them, the first two terms are area terms, the third term is the contour term, v is the parameter that balances the area term and the contour term, and H ε (·) is the Heaviside function, δ ε (·) is the Dirac function.

[0150] Preferably, after the liver tumor image in the initial contour is segmented and extracted using a B-spline level set method based on a Gaussian mixture model, the Dice coefficient of the liver tumor image, the relative accuracy of the segmentation, and the position of the tumor segmentation result are evaluated.

[0151] Embodiment 2

[0152] See also Figure 2 , a liver tumor image automatic segmentation system, including a local enhancement module for processing a medical image using a local image enhancement algorithm to obtain an enhanced medical image;

[0153] The contour positioning module is used to locate the enhanced medical image using the improved Yolo-v5 model to obtain the initial contour of the level set;

[0154] The extraction and segmentation module is used to segment and extract the liver tumor image in the initial contour by using a B-spline level set method based on a Gaussian mixture model.

[0155] Embodiment 3

[0156] See also Figure 3 , an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method for automatic segmentation of liver tumor images when executing the computer program. A method for automatic segmentation of liver tumor images, comprising the following steps: using a local image enhancement algorithm to process a medical image to obtain an enhanced medical image, using an improved Yolo-v5 model to locate the enhanced medical image to obtain an initial contour of a level set, and using a B-spline level set method based on a Gaussian mixture model to segment and extract the liver tumor image in the initial contour.

[0157] Embodiment 4

[0158] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a method for automatically segmenting a liver tumor image is implemented. The method for automatically segmenting a liver tumor image comprises the following steps: using a local image enhancement algorithm to process a medical image to obtain an enhanced medical image, using an improved Yolo-v5 model to locate the enhanced medical image to obtain an initial contour of a level set, and using a B-spline level set method based on a Gaussian mixture model to segment and extract the liver tumor image in the initial contour.

[0159] Embodiment 5

[0160] The main implementation process of the method provided in this embodiment is as follows Figure 4 As shown, the specific process is described in detail below.

[0161] S1. The main steps of the local image enhancement method are as follows:

[0162] S101, define p as the center pixel, initialize i=0, S0(x, y)=p, I0(x, y)=p, at this time I0(x, y) contains only one pixel;

[0163] S102, let i = i + 1, S1 (x, y) is all the neighborhoods within a pixel distance range centered on S0 (x, y), at this time i = 1, update I1 (x, y) by I1 (x, y) = S0 (x, y) ∪ S1 (x, y), I1 (x, y) contains 3 × 3 pixels;

[0164] S103, let i = i + 1, S2 (x, y) is a neighborhood containing all pixels within a pixel distance from S1 (x, y), and S2 (x, y) does not contain pixels in I1 (x, y). At this time, i = 2, and I2 (x, y) is updated by I2 (x, y) = S0 (x, y) ∪ S1 (x, y) ∪ S2 (x, y). At this time, I2 (x, y) contains 5 × 5 pixels;

[0165] S104, and so on, S n (x,y) is the number containing S n-1 All neighbors within a pixel distance from (x,y) centered on the image, excluding I n-1 The pixel in (x,y). Let i = n, through I n (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y) Update I n (x,y), at this time I n (x,y) contains (2n+1)×(2n+1) pixels;

[0166] S105, derive I from the above steps i (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y), and abbreviated as I i =S0∪S1∪S2∪...∪S n ;

[0167] S106, the significance formula combined with the LPIF formula can be obtained Among them, means(S i (x,y))=∫∫ Ω K G (x,y)I i (x,y)dxdy. The averaging of Gaussian weights increases the saliency and can improve the image enhancement effect;

[0168] S107. Finally, the function expression of LPIF is

[0169] S2. Improve the Yolo-v5 deep learning method to improve positioning accuracy and obtain accurate contours.

[0170] S201. Replace the Sigmoid activation function in the Yolo-v5 model with the SiLU activation function. The expression is

[0171] S202. Update the traditional intersection over union (IoU) indicator in Yolo-v5 to EIoU. Based on CIoU, a more complex distance measurement method is introduced to consider the positions of the four fixed points of the bounding box and provide a more accurate geometric measurement. The expression is:

[0172] S203, apply MobileNetV3 to Yolo-v5 to improve the lightweight of neural network model, reduce energy consumption and improve efficiency;

[0173] S3, the initial contour automatically obtained based on image enhancement and deep learning, and the liver tumor segmentation based on the mixed Gaussian model and B-spline level set method;

[0174] S301, Gaussian mixture model;

[0175] The Gaussian mixture model uses parameters that can be expressed as θ l ={(μ l,1 ,σ l,1 ,ω l,1 ),…,(μ l,g ,σ l,g ,ω l,g )}, with a weight probability of Then the M-step of the EM algorithm can be solved using the Gaussian mixture model simulation.

[0176] S302, B-spline level set divides the image into foreground area and background area, the expression is In the process of energy minimization, the partial derivative of the energy function with respect to the coefficient c[k0] is calculated. The characteristic function is Use gradient descent to find the local minimum of the energy function Finally, the energy gradient

[0177] S4. Performance evaluation, including Dice coefficient and relative segmentation accuracy, as well as evaluation related to the location of tumor segmentation results.

[0178] The Dice coefficient and IOU intersection-over-union are two similarity metrics widely used in computer vision and image segmentation tasks. The Dice coefficient is a pixel-level similarity measure that is usually used to compare the similarity between two binary images and the similarity between the calculated result and the true value. The calculation formula of the Dice coefficient is as follows:

[0179]

[0180] Among them, TP (True Positive) indicates the number of pixels predicted as positive samples and labeled as positive samples, FP (False Positive) indicates the number of pixels predicted as positive samples but labeled as negative samples, and FN (False Negative) indicates the number of pixels predicted as negative samples but labeled as positive samples. The value range of the Dice coefficient is between 0 and 1. The closer its value is to 1, the higher the overlap between the predicted result and the true label, and the higher the similarity.

[0181] IOU is an indicator widely used in target detection and semantic segmentation. It represents the ratio of the intersection and union of the predicted result and the true label. Its calculation formula is as follows:

[0182]

[0183] Similar to the Dice coefficient, the value range of IOU is also between 0 and 1. The closer its value is to 1, the higher the overlap between the predicted result and the true label, and the higher the similarity.

[0184] The Dice coefficient contributes equally to the intersection and union of the predicted result and the true label, while IOU pays more attention to the union of the predicted result and the true label. Therefore, the Dice coefficient is more sensitive to small objects, while IOU is more suitable for large object detection and segmentation tasks.

[0185] For the sequence images of liver tumors, the 28th, 40th, 60th and 70th frames are selected respectively, and some tumor areas detected based on the improved Yolo-v5 are as follows Figure 5 , Figure 6 , Figure 7 , Figure 8 shown. Figure 5 , Figure 6 , Figure 7 , Figure 8 The results shown correspond to the bounding box position coordinates of [129,208,49,36], [109,246,98,100], [110,238,92,103], [123,213,58,64], which are generally expressed as [x,y,w,h], where (x,y) represents the coordinates of the lower left corner of the bounding box, and w and h represent the width and height of the identification box. With the coordinate information of the identification box, the maximum inscribed circle based on this rectangular box can be obtained, such as Fig. 9 , Fig.10 , Fig.11 , Fig.12 As shown, the inscribed circle is used as the initial contour for the convergence of the B-spline level set.

[0186] exist Fig.13 In the figure, the first column is the original image, the second column is the clustering result after the mixed Gaussian model is executed, the third column is the EM result, and the fourth column is the final experimental result combined with the B-spline level set.

[0187] In order to demonstrate the advantages of this embodiment, the results in the fourth column are compared with the results of the improved factorization method in the fourth section and the results of the standard manual segmentation. Fig.14 As shown, for a more reliable comparison, this embodiment uses digital measurement to measure the segmentation effects of these methods. Comparison Table 1 shows the specific digital evaluation.

[0188] exist Fig.14 In the figure, the yellow-labeled images in the first column are the results of manual tumor segmentation, the blue-labeled images in the second column are the results of the improved factorization method, and the red-labeled images in the third column are the segmentation results of the mixed Gaussian model combined with the B-spline level set. The following is a quantitative analysis of the above segmentation images:

[0189] Table 1 Digital comparison of segmentation results

[0190]

[0191] In Table 1, N Sis the number of effective pixels of the segmentation result obtained by the standard method, N2, t2, and error2 are the number of effective pixels, running time, and error rate of the segmentation result obtained by the factorization method, respectively; N3, t3, and error3 are the number of effective pixels, running time, and error rate of the segmentation result obtained by the B-spline method, respectively.

[0192] As can be seen from Table 1, the error rate is slightly higher. This is because the calculation is the proportion of the number of pixels. In order to illustrate the impact of this, the size of the four images is set differently. Fig.15 This influence is illustrated by comparing the proportion of effective pixel points obtained by the above three methods in the entire image.

[0193] from Fig.15 It can be seen that the B-spline segmentation method is closer to the standard segmentation than the factorization segmentation method, and the accuracy of segmentation is the main evaluation factor, rather than the running time. As can be seen from Table 1, the running time of the B-spline level set segmentation method is greater than the factorization method corresponding to a single image. This is because the B-spline level set has undergone multiple different iterations, and the number of iterations is set in each iteration. This experiment can make the segmentation results more accurate and smooth.

[0194] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0195] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0196] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0197] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0198] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for automatic segmentation of liver tumor images, characterized in that: The following steps are involved: The local image enhancement algorithm is used to process the medical image to obtain an enhanced medical image. The improved Yolo-v5 model is used to locate the enhanced medical image to obtain the initial contour of the level set. The B-spline level set method based on the Gaussian mixture model is used to segment and extract the liver tumor image from the initial contour.

2. The method for automatic segmentation of liver tumor images according to claim 1, characterized in that: The local image enhancement algorithm includes the following steps: S101, define p as the center pixel, initialize i=0, S0(x, y)=p, I0(x, y)=p, I0(x, y) contains one pixel; S102, let i=i+1, S1(x,y) is all neighborhoods within a pixel distance range centered on S0(x,y), i=1; Update I1(x,y) by I1(x,y)=S0(x,y)∪S1(x,y), where I1(x,y) contains 3×3 pixels; S103, let i=i+1, S2(x,y) is all neighborhoods within a pixel distance range centered on S1(x,y), S2(x,y) does not include the pixel points in I1(x,y), i=2; Update I2(x,y) by I2(x,y)=S0(x,y)∪S1(x,y)∪S2(x,y), where I2(x,y) contains 5×5 pixels; S104, and so on, S n (x,y) is the number containing S n-1 All neighbors within a pixel distance from (x,y) centered on the image, excluding I n-1 Pixels in (x, y), let i = n; By I n (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y) Update I n (x,y), at this time I n (x,y) contains (2n+1)×(2n+1) pixels; S105, derive I from the above steps i (x,y)=S0(x,y)∪S1(x,y)∪S2(x,y)∪...∪S n (x,y), and abbreviated as I i =S0∪S1∪S2∪...∪S n ; S106. The significance formula combined with the LPIF formula yields the following formula: where means(S i (x,y)) = ∫∫ Ω K G (x,y)I i (x,y)dxdy; The function expressions of S107 and LPIF are:

3. The method for automatic segmentation of liver tumor images according to claim 1, characterized in that: The specific steps to improve the Yolo-v5 model are: Replace the activation function of the Yolo-v5 model with the SiLU activation function; Update the intersection over union (IoU) indicator of the Yolo-v5 model to the EIoU loss function; Replace the architecture of the Yolo-v5 neural network model with the MobileNetV3 architecture; Get the improved Yolo-v5 model.

4. The method for automatic segmentation of liver tumor images according to claim 1, characterized in that: The B-spline level set method based on Gaussian mixture model is used to segment and extract the liver tumor image in the initial contour, specifically: After clustering the initial contour image using the Gaussian mixture model and simulating the solution of the M-step of the EM algorithm, the initial contour image was divided into foreground and background areas using the B-spline level set. The energy of the foreground and background areas was minimized, and the gradient descent method was used to solve the local minimum of the energy function to obtain the energy gradient, and the liver tumor image in the initial contour was segmented and extracted.

5. The method for automatic segmentation of liver tumor images according to claim 4, characterized in that: Minimizing the energy of the foreground and background regions includes taking partial derivatives of the energy function coefficients; The partial derivative of the coefficients of the energy function is shown as follows: Where c[k0] is the coefficient; The characteristic function of the partial derivative of the energy function with respect to the coefficient is shown as follows: The local minimum of the energy function is solved using the gradient descent method, as shown in the following formula: in, represents the energy gradient associated with the B-spline coefficients, and λ represents the number of iteration steps; The calculation of energy gradient is the convolution of characteristic function of partial derivative of energy function with B-spline and sampling of convolution result, as shown in the following formula: Among them, h is the convolution result sampling period.

6. The method for automatic segmentation of liver tumor images according to claim 1, characterized in that: The Gaussian mixture model is expressed using parameters: i l ={(μ l,1 ,s l,1 ,oh l,1 ),…,(m l,g ,s l,g ,oh l,g )} The weighted probability is: At this point, the M-step of the EM algorithm is changed to a problem simulated using a Gaussian mixture model; The B-spline level set expression is as follows: Among them, the first two terms are area terms, the third term is the contour term, v is the parameter that balances the area term and the contour term, and H ε (·) is the Heaviside function, δ ε (·) is the Dirac function.

7. The method for automatic segmentation of liver tumor images according to claim 1, characterized in that: After the liver tumor image was segmented and extracted from the initial contour using the B-spline level set method based on the Gaussian mixture model, the Dice coefficient of the liver tumor image, the relative accuracy of segmentation, and the location of the tumor segmentation results were evaluated.

8. A liver tumor image automatic segmentation system, characterized in that: It includes a local enhancement module, which is used to process the medical image using a local image enhancement algorithm to obtain an enhanced medical image; The contour positioning module is used to locate the enhanced medical image using the improved Yolo-v5 model to obtain the initial contour of the level set; The extraction and segmentation module is used to segment and extract the liver tumor image in the initial contour by using a B-spline level set method based on a Gaussian mixture model.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for automatic segmentation of liver tumor images as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for automatic segmentation of liver tumor images as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Tumor radiomics prediction system based on IVIM quantitative parameter analysis

    CN119323561A

  • A tumor imaging prediction system based on IVIM quantitative parameter analysis

    CN119323561B

  • Unsupervised liver tumor CT image segmentation method based on manual features

    CN119741305A