Lung segment segmentation system, method and device and computer readable storage medium
By using a fully convolutional neural network model and a Boolean operation module in the lung segment segmentation system to segment the lungs and arteriovenous regions of CT images, the problems of slow lung segment segmentation speed and large errors in the existing technology are solved, and the High-precision segmentation of lung lobes and segments improves similarity and segmentation effect.
Patent Information
- Application Number
- CN202310223275.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology is slow and has large errors in segmenting lung segments before lung cancer surgery. The segmentation effect of deep learning methods is also poor, making it difficult to achieve accurate segmentation of lung lobes and segments.
A lung segment segmentation system is used, including the first fully convolutional neural network model, the second fully convolutional neural network model and the Boolean operation module, to segment and operate the lung area and arteriovenous area through CT images, and finally output the lung lobes and lung segments, combined with the preprocessing module for normalization and data amplification to improve segmentation accuracy.
It achieves precise segmentation of lung lobes and lung segments, improving the segmentation effect. The dice value is increased from 0.94 to 0.97, and the segmentation similarity is increased to 84%. It can also be combined with artificial intelligence, and doctors can adjust key areas.
Smart Images

Figure CN118628504A
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and in particular to a lung segmentation system, method, device and computer-readable storage medium. Background Art
[0002] This section is intended to provide a background or context to the embodiments of the present application as recited in the claims. The description herein is not admitted to be prior art as disclosed by virtue of its inclusion in this section.
[0003] Lung cancer is the cancer with the highest morbidity and mortality in the world. According to statistics, for patients with early-stage lung cancer, the four-year survival rate can be as high as 90% through surgical removal of the lung lobe where the tumor is located. How to accurately segment the lung segments before surgery is of great significance to the formulation of surgical plans. Currently, artificial intelligence technology based on deep learning has made great progress and is widely used in various fields, including the medical field.
[0004] Currently, accurate segmentation of trachea and blood vessels, including identification of sub-segments, can only be achieved through manual marking, which is slow and may result in large errors. There are also methods that use deep learning to directly put CT images into the model, but the segmentation effect of the model is poor. Summary of the invention
[0005] The purpose of the present application is to provide a lung segmentation system, method, device and computer-readable storage medium, which can accurately segment lung lobes and lung segments.
[0006] The present application discloses a lung segmentation system, comprising:
[0007] The first fully convolutional neural network model is configured to output lung regions based on the input CT images;
[0008] A second fully convolutional neural network model is configured to output arteriovenous regions according to the input CT image;
[0009] a Boolean operation module configured to perform a Boolean operation on the lung region and the arteriovenous region; and
[0010] The third fully convolutional neural network model is configured to output the lobes and segments of the lungs based on the input CT image and the Boolean operation results output by the Boolean operation module.
[0011] In a preferred example, a preprocessing module is also included, which is configured to perform normalization and data amplification on the CT image, and output the preprocessed CT image to the first fully convolutional neural network model, the second fully convolutional neural network model, and the third fully convolutional neural network model.
[0012] In a preferred example, the first fully convolutional neural network model is pre-trained using CT images and lung region labeling results of the CT images.
[0013] In a preferred example, the second fully convolutional neural network model is pre-trained using CT images and arteriovenous region labeling results of the CT images.
[0014] In a preferred example, the third fully convolutional neural network model is pre-trained using a CT image and a comprehensive result of labeling of the lung region and arteriovenous region of the CT image.
[0015] The present application also discloses a lung segmentation method, comprising:
[0016] Input the CT image into the first fully convolutional neural network model to output the lung area;
[0017] Inputting the CT image into a second fully convolutional neural network model to output arteriovenous regions;
[0018] Performing a Boolean operation on the lung region and the arteriovenous region to obtain a Boolean operation result;
[0019] The CT image and the Boolean operation result are input into the third fully convolutional neural network model to obtain the lobes and segments of the lungs.
[0020] In a preferred example, before inputting the CT image into the first fully convolutional neural network model to output the lung area, the method further includes:
[0021] Performing a preprocessing operation on the CT image, and outputting the preprocessed CT image to the first fully convolutional neural network model, the second fully convolutional neural network model, and the third fully convolutional neural network model;
[0022] Wherein, the preprocessing includes normalization processing and data amplification.
[0023] In a preferred embodiment, the loss function of the arteriovenous region prediction model is: loss = ∑ i,j,k Dice(label i,j,k ,pred i,j,k ), where CT i,j,k An artery or a vein.
[0024] The present application also discloses a lung segmentation device, comprising:
[0025] a memory for storing computer executable instructions; and,
[0026] A processor, coupled to the memory, is configured to implement the steps in the method described above when executing the computer executable instructions.
[0027] The present application also discloses a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the steps in the method described above are implemented.
[0028] In the embodiment of the present application, the CT image is input into the first fully convolutional neural network model and the second fully convolutional neural network model to obtain the lung area and the arteriovenous area, and the pulmonary arteriovenous area is obtained by combining the lung area and the arteriovenous area. Compared with directly inputting the CT image, the CT image combined with the pulmonary arteriovenous area is input into the third fully convolutional neural network model to more accurately segment the lung lobes and lung segments, with higher similarity;
[0029] Furthermore, it can be combined with manual work, so that doctors can select areas that require special observation.
[0030] Each technical feature disclosed in the above invention content, each technical feature disclosed in each implementation mode and example below, and each technical feature disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions should be deemed to have been recorded in this specification), unless such combination of technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed, and features C and D are equivalent technical means that play the same role. Technically, only one of them can be used, and it is impossible to use them at the same time. Feature E can be combined with feature C technically. Then, the solution of A+B+C+D should not be deemed to have been recorded because it is technically infeasible, while the solution of A+B+C+E should be deemed to have been recorded. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a schematic diagram of a system structure according to an embodiment of the present application;
[0032] Figure 2 is a flow chart according to an embodiment of the present application;
[0033] Figure 3 is a flow chart according to an embodiment of the present application;
[0034] Figure 4 is a schematic diagram of a model structure according to an embodiment of the present application;
[0035] Figure 5 is a schematic diagram of a CT image according to one embodiment of the present application;
[0036] Figure 6 is a schematic diagram of a lung region according to one embodiment of the present application;
[0037] Figure 7 is a schematic diagram of an arteriovenous region according to one embodiment of the present application;
[0038] Figure 8 is a schematic diagram of a pulmonary arteriovenous region prediction image according to one embodiment of the present application;
[0039] Fig. 9 is a schematic diagram of 5-category lung lobe segmentation according to one embodiment of the present application;
[0040] Fig.10 is a schematic diagram of 18-classification lung segment segmentation according to one embodiment of the present application;
[0041] Fig.11 It is a curve chart of dice values with only CT images as input;
[0042] Fig.12 is a dice value curve diagram according to one embodiment of the present application. DETAILED DESCRIPTION
[0043] In the following description, many technical details are provided to help readers better understand the present application. However, those skilled in the art can understand that the technical solution claimed in the present application can be implemented even without these technical details and various changes and modifications based on the following embodiments.
[0044] Description of some concepts:
[0045] Convolutional Neural Networks: CNN, Convolutional Neural Networks, is a type of feedforward neural network that includes convolution calculations and has a deep structure. It is one of the representative algorithms of deep learning. Convolutional neural networks have representation learning capabilities and can perform shift-invariant classification on input information according to their hierarchical structure. Therefore, they are also called "Shift-Invariant Artificial Neural Networks (SIANN)".
[0046] Fully Convolutional Networks: FCN is a framework for image semantic segmentation and is the pioneering work in the field of deep learning for semantic segmentation. FCN replaces the fully connected layer behind the traditional CNN with a convolutional layer, so that the output of the network will be a graph rather than a category; at the same time, in order to solve the problem of image size reduction caused by convolution and pooling, upsampling is used to restore the image size.
[0047] Vnet model: V-Net Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation, V-net fully convolutional neural network for volumetric medical image segmentation, borrowing the idea of residual network, the input of each level is processed by the convolution layer on the one hand, and added to the output of the last convolution layer of the level on the other hand, so that the residual can be learned. The dataset used is a three-dimensional image.
[0048] Dice: The Dice coefficient, named after Lee Raymond Dice[1], is a set similarity metric function that is commonly used to calculate the similarity between two samples (value range is [0,1]).
[0049] Loss function: It is a function that maps the value of a random event or its related random variables to a non-negative real number to represent the "risk" or "loss" of the random event. In applications, loss functions are usually associated with optimization problems as learning criteria, that is, solving and evaluating models by minimizing loss functions. For example, it is used for model parameter estimation in statistics and machine learning.
[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0051] The first embodiment of the present application relates to a lung segmentation system, and its system structure diagram is as follows: Figure 1 shown.
[0052] The system includes: a first fully convolutional neural network model, a second fully convolutional neural network model, a third fully convolutional neural network model and a Boolean operation module. Among them, the first fully convolutional neural network model is configured to output the lung area according to the input CT image. The second fully convolutional neural network model is configured to output the arteriovenous area according to the input CT image. The Boolean operation module is configured to perform Boolean operations on the lung area and the arteriovenous area. The third fully convolutional neural network model is configured to output the lobes and segments of the lungs according to the input CT image and the Boolean operation results output by the Boolean operation module.
[0053] Optionally, the system may also include a preprocessing module for performing preprocessing operations on the CT images. The preprocessing operations may include data amplification (such as flipping, rotation, adding noise, etc.) and normalization operations. The preprocessed CT image information is output to the above-mentioned first fully convolutional neural network model, the second fully convolutional neural network model and the third fully convolutional neural network model respectively.
[0054] Among them, the first fully convolutional neural network model can be pre-trained with the CT image and the labeling results of the lung area of the CT image, the second fully convolutional neural network model can be pre-trained with the CT image and the labeling results of the arteriovenous area of the CT image, and the third fully convolutional neural network model can be pre-trained with the CT image and the comprehensive labeling results of the lung area and arteriovenous area of the CT image.
[0055] The second embodiment of the present application relates to a lung segmentation system, and its flow chart is as follows: Figure 2 shown.
[0056] In step S201, the CT image is input into the first fully convolutional neural network model to output the lung area.
[0057] In step S202, the CT image is input into the second fully convolutional neural network model to output the arteriovenous area.
[0058] In step S203, a Boolean operation is performed according to the lung region and the arteriovenous region to obtain a Boolean operation result.
[0059] In step S204, the CT image and the Boolean operation results are input into the third fully convolutional neural network model to obtain the lobes and segments of the lungs.
[0060] Optionally, before step S201, a preprocessing operation may be performed on the CT image, which may include data amplification (such as flipping, rotating, adding noise, etc.) and normalization processing.
[0061] The preprocessed CT images are input into the first fully convolutional neural network model, the second fully convolutional neural network model, and the third fully convolutional neural network model.
[0062] The loss calculation method of the above prediction model for the arteriovenous region is loss = ∑ i,j,k Dise(label i,j,k ,pred i,j,k ), where CT i,j,k is an artery or vein, and i, j, k are the x, y, and z coordinate values of the CT image, respectively.
[0063] This method can be combined with manual work, and doctors can select areas that require special observation.
[0064] In order to better understand the technical solution of the present application, a specific example is provided below for illustration. The details listed in the example are mainly for ease of understanding and are not intended to limit the scope of protection of the present application.
[0065] The fully convolutional neural network model used in this application is preferably a Vnet model, and the flow chart is as follows: Figure 3 shown.
[0066] After preprocessing, the CT image obtains input that can be put into the model; the input is put into Vnet model 1, and a model that can predict the lung area is trained to obtain the lung area; the input is put into Vnet model 2, and a model that can predict the arteriovenous area is trained to obtain the arteriovenous area; Boolean operations are performed on the lung area and the arteriovenous area to obtain the pulmonary arteriovenous area; the input and the pulmonary arteriovenous area are merged and put into Vnet model 3 to obtain the lung segment.
[0067] Among them, the obtained lung area can include three dimensions (w, h, z), the obtained arteriovenous area can include three dimensions (w, h, z), and through Boolean operations, the obtained pulmonary arteriovenous area can include three dimensions (w, h, z). The input of the third fully convolutional neural network model can include four dimensions (2, w, h, z), wherein w, h, z represent the length, width, and height values of the CT image, respectively, and the value 2 represents 2 channels, that is, the lung area and the pulmonary arteriovenous area are merged.
[0068] Specifically, the Vnet structure diagram in this application is as follows: Figure 4As shown in the figure, starting from the upper left, along the V-shaped path to the upper right position Vnet. Taking the first layer (stage) in the upper left corner as an example, the CT image Input is input, and after a 3x3x3 convolution, BN+ReLU is used to remove information irrelevant to the feature to retain the information strength. In the second layer, a second 3x3x3 convolution is performed. When the process is repeated to the bottom of the Vnet structure, the compression path operation is completed.
[0069] Then the expansion path on the right starts, first through 3x3x3 upsampling convolution, also known as deconvolution or transposed convolution, and BN+ReLU is used to clear information irrelevant to the feature to retain the information strength. After repeating the operation, the output Output can be obtained.
[0070] Figure 5 The figure shows a schematic diagram of a CT image. After the Vnet model 1, the lung region can be obtained. The schematic diagram of the lung region is shown in FIG. Figure 6 As shown, after Vnet model 2, the arteriovenous area can be obtained. The schematic diagram of the arteriovenous area is shown in Figure 7 As shown in the figure, the schematic diagram of the predicted image of the pulmonary arteriovenous region obtained after Boolean operation of the lung region and the arteriovenous region is shown in Figure 8 shown.
[0071] After merging the pulmonary arteriovenous region with the CT image and putting it into Vnet model 3, we can get the following: Fig. 9 and Fig.10 The schematic diagram of lung segmentation is shown in Figure 1. Fig. 9 This is a schematic diagram of the 5-category lung lobe. Fig.10 Schematic diagram of 18-class lung segment. In the 5-class lung lobe segmentation, compared with the input original CT image, the implementation of the present application can improve the dice value from 0.94 to 0.97. In the 18-class lung segment segmentation, compared with the original CT image, the implementation of the present application can improve the dice value from 0.81 to 0.84. Fig.11 The figure shows the dice value curve of only inputting CT images. Fig.12 The figure shows a curve diagram of the dice value using the implementation mode of the present application. It can be seen that the fluctuation of the dice value during the training process is smaller.
[0072] A third embodiment of the present application relates to a lung segmentation device, which includes a memory for storing computer-executable instructions; and a processor, coupled to the memory, for implementing the steps in the method as described above when executing the computer-executable instructions.
[0073] The second embodiment is a method embodiment corresponding to the present embodiment. The technical details in the second embodiment can be applied to the present embodiment, and the technical details in the present embodiment can also be applied to the second embodiment.
[0074] It should be noted that those skilled in the art should understand that the implementation functions of each module shown in the above-mentioned lung segmentation device can be understood by referring to the relevant description of the above-mentioned lung segmentation method. The functions of each module shown in the above-mentioned lung segmentation device can be implemented by a program (executable instruction) running on a processor, or by a specific logic circuit. If the above-mentioned lung segmentation device of the embodiment of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product, which is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read Only Memory), disk or optical disk and other media that can store program code. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0075] Accordingly, the embodiments of the present application also provide a computer-readable storage medium, in which computer executable instructions are stored, and when the computer executable instructions are executed by the processor, the various method embodiments of the present application are implemented. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include temporary computer-readable media (transitory media), such as modulated data signals and carriers.
[0076] It should be noted that, in the present application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "include one" do not exclude the existence of other identical elements in the process, method, article or equipment including the elements. In the present application, if it is mentioned that a certain action is performed according to a certain element, it means at least the meaning of performing the action according to the element, which includes two situations: performing the action only according to the element and performing the action according to the element and other elements. Multiple, multiple, multiple, etc. expressions include 2, 2 times, 2 kinds and more than 2, more than 2 times, more than 2 kinds.
[0077] The serial numbers used in describing the steps of the method do not themselves constitute any limitation on the order of these steps. For example, the step with a larger serial number does not necessarily have to be executed after the step with a smaller serial number. The step with a larger serial number may be executed first and then the step with a smaller serial number. They may also be executed in parallel, as long as this execution order is reasonable for those skilled in the art. For another example, multiple steps with consecutive serial numbers (e.g., step 101, step 102, step 103, etc.) do not limit other steps that can be executed in between. For example, there may be other steps between step 101 and step 102.
[0078] This specification includes combinations of the various embodiments described herein. Individual references to embodiments (e.g., "one embodiment" or "some embodiments" or "preferred embodiments"); however, these embodiments are not mutually exclusive unless indicated as mutually exclusive or it is clear to a person skilled in the art that they are mutually exclusive. It should be noted that the word "or" is used in this specification in a non-exclusive sense unless the context clearly indicates or requires otherwise.
[0079] All documents mentioned in this specification are considered to be included in the disclosure of this application as a whole, so that they can be used as a basis for modification when necessary. In addition, it should be understood that the above is only a preferred embodiment of this specification and is not intended to limit the scope of protection of this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of one or more embodiments of this specification.
[0080] In some cases, the actions or steps described in the claims may be performed in a different order than in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
Claims
1. A lung segmentation system, characterized in that: include: The first fully convolutional neural network model is configured to output lung regions based on the input CT images; A second fully convolutional neural network model is configured to output arteriovenous regions according to the input CT image; a Boolean operation module configured to perform a Boolean operation on the lung region and the arteriovenous region; and The third fully convolutional neural network model is configured to output the lobes and segments of the lungs based on the input CT image and the Boolean operation results output by the Boolean operation module.
2. The lung segmentation system according to claim 1, characterized in that: The loss calculation method of the prediction model of the arteriovenous region is: loss = ∑ i,j,k Dice(label i,j,k ,pred i,j,k ), where CT i,j,k An artery or a vein.
3. The lung segmentation system according to claim 1, characterized in that: It also includes a preprocessing module, which is configured to perform normalization and data amplification on the CT image, and output the preprocessed CT image to the first fully convolutional neural network model, the second fully convolutional neural network model, and the third fully convolutional neural network model.
4. The lung segmentation system according to claim 1, characterized in that: The first fully convolutional neural network model is pre-trained using CT images and lung area labeling results of the CT images.
5. The lung segmentation system according to claim 1, characterized in that: The second fully convolutional neural network model is pre-trained using CT images and arteriovenous region labeling results of the CT images.
6. The lung segmentation system according to claim 1, characterized in that: The third fully convolutional neural network model is trained using CT image labeling results.
7. A lung segmentation method, characterized in that: include: Input the CT image into the first fully convolutional neural network model to output the lung area; Inputting the CT image into a second fully convolutional neural network model to output arteriovenous regions; Performing a Boolean operation on the lung region and the arteriovenous region to obtain a Boolean operation result; The CT image and the Boolean operation result are input into the third fully convolutional neural network model to obtain the lobes and segments of the lungs.
8. The lung segmentation method according to claim 7, characterized in that: Before the CT image is input into the first fully convolutional neural network model to output the lung area, the method further includes: Performing a preprocessing operation on the CT image, and outputting the preprocessed CT image to the first fully convolutional neural network model, the second fully convolutional neural network model, and the third fully convolutional neural network model; Wherein, the preprocessing includes normalization processing and data amplification.
9. A lung segmentation device, characterized in that: include: A memory for storing computer executable instructions; as well as, A processor, coupled to the memory, configured to implement the steps of the method according to any one of claims 7 to 8 when executing the computer executable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps in the method according to any one of claims 7 to 8 are implemented.
