Image segmentation method and apparatus, diagnosis system, storage medium, and computer device
The cascaded segmentation network with 3D U-Net improves brain tumor segmentation by performing stepwise image segmentation, addressing poor feature learning in existing methods and enhancing accuracy and efficiency.
Patent Information
- Application Number
- EP2019889004
- Authority / Receiving Office
- EP · EP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-11-30
- Filing Date
- 2019-11-27
- Publication Date
- 2025-12-31
- Estimated Expiration
- 2039-11-27
AI Technical Summary
Existing image segmentation methods for brain tumors, particularly using fully convolutional neural networks, suffer from poor feature learning abilities, leading to inadequate segmentation results.
An image segmentation method utilizing a cascaded segmentation network with multiple levels of segmentation networks based on machine learning models, including tumor localization and 3D U-Net networks, to perform stepwise image segmentation of brain tumors, improving segmentation accuracy and efficiency.
The method effectively enhances the segmentation of brain tumors by accurately localizing and segmenting general, tumor core, and enhancing tumor core regions, improving segmentation granularity and reducing computational complexity.
Smart Images

Figure IMGF0001 
Figure IMGF0002 
Figure IMGF0003
Abstract
Description
FIELD OF THE TECHNOLOGY
[0001] This disclosure relates to the field of computer technologies, and in particular, to an image segmentation method and apparatus, a diagnosis system, a storage medium, and a computing device.BACKGROUND OF THE DISCLOSURE
[0002] Gliomas are the most common primary malignant brain tumors, also referred to as brain tumors, with varying degrees of invasiveness, and are often divided into general tumor regions, tumor core regions, and enhancing tumor core regions.
[0003] Magnetic resonance imaging (MRI) is the most commonly used clinical method for examination and diagnosis of brain tumors. From images generated by multi-modality MRI scanning, the various regions of the brain tumors are accurately determined through segmentation, which has extremely high medical value.
[0004] Currently, a tumor image is segmented mainly based on deep learning, for example, by using fully convolutional neural networks (FCNNs). However, through research, the inventor found that, features learned by the fully convolutional neural network method are all based on a part of a full image, but the feature learning ability for the full image is poor, which easily leads to a poor segmentation effect.
[0005] ISENSEE FABIAN et al: "Brain Tumor Segmentation and Radiomics Survival Prediction: Contribution to the BRATS 2017 Challenge", uses a dice loss function to cope with class imbalances and uses extensive data augmentation to successfully prevent overfitting, and trains an ensemble of a random forest regressor and multilayer perceptrons on shape features describing the tumor subregions.
[0006] ZHANG ZICHEN: "Improving Semantic Image Segmentation by Object Localization", proposes an end-to-end neural network that improves the segmentation accuracy of FCN by incorporating an object localization unit. This network performs object localization first, which is then used as a cue to guide the training of the segmentation network. To avoid applying max pooling on object proposals that limits the spatial accuracy, it introduce a new type of convolutional layer named ROI convolution.SUMMARY
[0007] The invention is set out in the claims annexed hereto.BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The accompanying drawings, which are incorporated herein and constitute a part of this specification, illustrate embodiments consistent with this disclosure and, together with the specification, serve to explain the principles of this disclosure. FIG. 1 is a schematic diagram of an implementation environment involved in this disclosure. FIG. 2 is a block diagram of a hardware structure of a segmentation end according to an exemplary embodiment. FIG. 3 is a flowchart of an image segmentation method according to an exemplary embodiment. FIG. 4 is a schematic diagram of segmentation results of segmentation networks at all levels in a cascaded segmentation network involved in the embodiment corresponding to FIG. 3. FIG. 5 is a schematic diagram of a tumor image, a tumor localization process, and a candidate image involved in the embodiment corresponding to FIG. 3. FIG. 6 is a schematic structural diagram of the cascaded segmentation network involved in the embodiment corresponding to FIG. 3. FIG. 7a is a flowchart of an embodiment of step 330 in the embodiment corresponding to FIG. 3. FIG. 7b is a schematic structural diagram of a U-Net-based network according to an exemplary embodiment. FIG. 8 is a flowchart of an embodiment of step 410 in the embodiment corresponding to FIG. 7a. FIG. 9 is a schematic diagram of a network structure of a 3D U-Net network involved in the embodiment corresponding to FIG. 8. FIG. 10 is a schematic diagram of a network structure of a segmentation network according to an exemplary embodiment. FIG. 11 is a schematic structural diagram of a dense block layer involved in the embodiment corresponding to FIG. 10. FIG. 12 is a flowchart of an image segmentation process according to an exemplary embodiment. FIG. 13 is a flowchart of another image segmentation method according to an exemplary embodiment. FIG. 14 is a schematic diagram of an implementation of an image segmentation method in a specific embodiment. FIG. 15 is a flowchart of the image segmentation method involved in the specific embodiment corresponding to FIG. 14. FIG. 16 is a block diagram of an image segmentation apparatus according to an exemplary embodiment. FIG. 17 is a structural block diagram of a computing device according to an exemplary embodiment.
[0009] Explicit embodiments in this disclosure are shown by using the foregoing accompanying drawings, and more detailed descriptions are provided below.DESCRIPTION OF EMBODIMENTS
[0010] Exemplary embodiments are described in detail herein, and examples of the exemplary embodiments are shown in the accompanying drawings. When the following descriptions are made with reference to the accompanying drawings, unless otherwise indicated, same numbers in different accompanying drawings represent same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations that are consistent with this disclosure. On the contrary, the implementations are merely examples of apparatuses and methods that are described in detail in the appended claims and that are consistent with some aspects of this disclosure.
[0011] An embodiment of this disclosure provides an image segmentation method based on stepwise image segmentation, which can effectively improve segmentation effects in tumor image segmentation. Correspondingly, the image segmentation method is suitable for a tumor image segmentation apparatus. The tumor image segmentation apparatus is deployed in a computing device with a Von Neumann architecture, for example, the computing device may be a personal computer (PC), a server, or the like.
[0012] FIG. 1 is a schematic diagram of an implementation environment involved in an image segmentation method. The implementation environment includes a diagnosis system 100, and the diagnosis system 100 includes an acquisition end 110, a segmentation end 130, and a diagnosis end 150.
[0013] The acquisition end 110 is an electronic device for acquiring tumor images, for example, an MRI device or a CT (Computed Tomography) device. This is not limited herein.
[0014] The segmentation end 130 is an electronic device for providing a background service for a user, such as, a PC or a server. The background service includes an image segmentation service.
[0015] According to actual operational needs, the segmentation end 130 may be a server, or may be a server cluster composed of a plurality of servers, or even a cloud computing center composed of a plurality of servers, so as to better provide the background service for a large number of users. This is not specifically limited herein.
[0016] Further, a tumor localization network 131 for locating a position of a general tumor region in a tumor image, and a cascaded segmentation network 132 constructed based on a machine learning model are deployed on the segmentation end 130 deploys, to implement stepwise image segmentation. The cascaded segmentation network 132 includes a plurality of levels of segmentation networks 1321, 1322, ..., and 132X.
[0017] The diagnosis end 150 is an electronic device configured to assist a diagnostician in performing tumor diagnosis, for example, a PC equipped with a display screen.
[0018] The segmentation end 130 establishes a wireless or wired network connection to each of the acquisition end 110 and the diagnosis end 150, so as to implement data transmission in the diagnosis system 100 through the network connection. For example, this data transmission includes tumor images, segmented images, and the like.
[0019] Through interaction between the acquisition end 110 and the segmentation end 130, the acquisition end 110 transmits the acquired tumor image to the segmentation end 130.
[0020] The segmentation end 130 receives a tumor image 111 transmitted by the acquisition end 110, and performs tumor localization on the tumor image 111 based on the tumor localization network 131, and a candidate image 1311 for indicating the position of the general tumor region in the tumor image 111 is determined, and then is inputted to the cascaded segmentation network 132.
[0021] Image segmentation is performed on the general tumor region in the candidate image 1311 starting from a first-level segmentation network 1321 in the cascaded segmentation network 132, and image segmentation is performed on an enhancing tumor core region level by level to a last-level segmentation network 132X, to determine a segmented image 1301.
[0022] Then, the segmented image 1301 can be displayed on the display screen with which the diagnosis end 150 is equipped, so as to assist the diagnostician in performing the tumor diagnosis.
[0023] FIG. 2 is a block diagram of a hardware structure of a segmentation end according to an exemplary embodiment. The segmentation end is applicable to the segmentation end 130 of the implementation environment shown in FIG. 1.
[0024] The segmentation end is merely an example adapted to this disclosure, and cannot be considered as providing any limitation to a use range of this disclosure. It cannot be explained either that the segmentation end needs to reply on or needs to have one or more components of an exemplary segmentation end 200 shown in FIG. 2.
[0025] A hardware structure of the segmentation end 200 may vary greatly as configuration or performance varies. As shown in FIG 2, the segmentation end 200 includes: a power supply 210, an interface 230, at least one memory 250, and at least one central processing unit (CPU) 270.
[0026] Specifically, the power supply 210 is configured to provide a working voltage for each hardware device on the segmentation end 200.
[0027] The interface 230 includes at least one wired or wireless network interface for interacting with external devices. For example, the wired or wireless network interface interacts with the acquisition end 110 of the implementation environment shown in FIG. 1, or interacts with the diagnosis end 150 of the implementation environment shown in FIG. 1.
[0028] In other adaptive examples of this disclosure, the interface 230 may further include at least one serial to parallel conversion interface 233, at least one input / output interface 235, and at least one USB interface 237. As shown in FIG. 2, this is not specifically limited herein.
[0029] The memory 250 as a carrier for resource storage can be a read-only memory, a random access memory, a magnetic disk, an optical disc, or the like. Resources stored on the memory include an operating system 251, an application program 253, and data 255. A storage method can be temporary storage or persistent storage.
[0030] The operating system 251 is configured to manage and control the hardware devices and the application program 253 on the segmentation end 200, so as to implement operations and processing of the CPU 270 on the massive data 255 in the memory 250, and may be Windows Server ™< , Mac OS X ™< , Unix ™< , Linux ™< , FreeBSD ™< , or the like.
[0031] The application program 253 is a computer program that executes at least one specific task based on the operating system 251, and may include at least one module (not shown in FIG. 2), and each module may include a series of computer-readable instructions for the segmentation end 200. For example, the tumor image segmentation apparatus can be regarded as the application program 253 deployed on the segmentation end 200, to implement the image segmentation method.
[0032] The data 255 may be photos, pictures, and the like stored in the magnetic disk, or may be tumor images, segmented images, and the like stored in the memory 250.
[0033] The CPU 270 may include one or more processors, and is configured to communicate with the memory 250 by using at least one communication bus, to read computer-readable instructions stored in the memory 250, thereby implementing the operations and processing on the massive data 255 in the memory 250. For example, the image segmentation method is executed in the form of reading a series of computer-readable instructions stored in the memory 250 by using the CPU 270.
[0034] Referring to FIG. 3, in an exemplary embodiment, an image segmentation method is applicable to the segmentation end in the implementation environment shown in FIG. 1. A structure of the segmentation end may be as shown in FIG. 2.
[0035] The image segmentation method can be performed by the segmentation end, and can include the following steps: Step 310: Determine a tumor image.
[0036] The tumor image is generated by the acquisition end by scanning a part where a human may have a tumor, so as to facilitate subsequent image segmentation on the tumor image. For example, the acquisition end may be an MRI device, a CT device, or the like.
[0037] The tumor image may be derived from an image scanned by the acquisition end in real time, or an image pre-stored by the segmentation end and transmitted by the acquisition end. For example, the segmentation end is a server, and further the server can determine the tumor image through local reading or network transmission.
[0038] In other words, for the determining of the tumor image, the image scanned by the acquisition end can be determined in real time, to facilitate the image segmentation on the tumor image in real time, or the image scanned by the acquisition end in a historical period of time can be determined, to help the segmentation end to perform the image segmentation on the tumor image when there are fewer processing tasks, or, the image segmentation is performed on the tumor image under an instruction of an operator. This is not specifically limited in this embodiment.
[0039] Further, after receiving the tumor image transmitted by the acquisition end, the segmentation end may perform denoising on the received tumor image, so as to improve accuracy of the subsequent image segmentation.
[0040] For example, for brain tumors, the denoising may include removing a skull and a background in the tumor image.
[0041] Optionally, when the acquisition end is an MRI device, the tumor image determined by the segmentation end includes but is not limited to one or more of four-modality MRI images, for example, FLAIR, T1, T1c, and T2.
[0042] Step 330: Perform tumor localization on the tumor image, and determine a candidate image for indicating a position of a general tumor region in the tumor image.
[0043] As described above, the brain tumors have varying degrees of invasiveness, and may be divided into three regions: a general tumor region, a tumor core region and an enhancing tumor core region. For the three regions, the most important feature is a proper inclusion relationship among the regions, as shown in sub-figures (a) to (c) in FIG. 4, that is, the general tumor region 3011 includes the tumor core region 3021, and the tumor core region 3021 includes the enhancing tumor core region 3031.
[0044] Therefore, the tumor localization refers to localization of a rough position of the general tumor region in the tumor image, so as to accommodate the general tumor region in the candidate image according to the localized position.
[0045] Specifically, the candidate image accommodates the general tumor region in the tumor image by using a designated region.
[0046] A shape of the designated region may be a rectangle, a triangle, a circle, or the like, which is not limited herein.
[0047] In an embodiment, the designated region is a rectangular frame, and a maximum size of the rectangular frame is determined by expanding maximum values of segmentation coordinates toward the periphery by a distance of a designated number of pixel points. The designated number can be flexibly adjusted according to an actual requirement of an application scenario. For example, in an application scenario, the designated number is 5.
[0048] For example, as shown in FIG. 5, 305 represents a tumor image, 306 represents a tumor localization process, and 307 represents a candidate image. In the candidate image 307, a general tumor region 3071 is accommodated in a designated region 3072. The designated region 3072 is a rectangular frame.
[0049] That is to say, the candidate image is merely a part of the tumor image, and the candidate image accommodates the general tumor region by using the designated region, thereby indicating a rough position of the general tumor region in the tumor image, which is beneficial for subsequent finer image segmentation based on the candidate image.
[0050] Further, the tumor localization can be implemented through the image segmentation, that is, the tumor image is segmented into a general tumor region and a non-tumor region, so that a localization frame can accommodate the general tumor region determined through segmentation.
[0051] Optionally, the image segmentation includes: ordinary segmentation, semantic segmentation, instance segmentation, and the like, where the ordinary segmentation further includes: threshold segmentation, region segmentation, edge segmentation, histogram segmentation, and the like, which is not specifically limited in this embodiment.
[0052] In an embodiment, the image segmentation can be implemented by using a machine learning model. For example, the machine learning model can be a convolutional neural network model or a residual neural network model.
[0053] Step 340: Input the candidate image to a cascaded segmentation network constructed based on a machine learning model.
[0054] Step 350: Start from performing image segmentation on the general tumor region in the candidate image using a first-level segmentation network in the cascaded segmentation network, perform, level by level, image segmentation on an enhancing tumor core region to a last-level segmentation network, and determine a segmented image.
[0055] The cascaded segmentation network includes a plurality of levels of segmentation networks, and is constructed based on the machine learning model. For example, the machine learning model can be a convolutional neural network model or a residual neural network model.
[0056] For the segmentation networks at all levels in the cascaded segmentation network, based on a first-level segmentation network and parameters thereof, image segmentation is performed on the general tumor region in the candidate image, and a segmentation result is outputted to a second-level segmentation network.
[0057] Based on the second-level segmentation network and parameters thereof, image segmentation is performed on the segmentation result outputted by the first-level segmentation network, and a segmentation result is outputted to a third-level segmentation network; and image segmentation is performed on an enhancing tumor core region level by level to a last-level segmentation network, and a segmentation result of the last-level segmentation network is used as a segmented image.
[0058] Therefore, stepwise image segmentation that starts from a boundary position of the general tumor region in the candidate image and gradually proceeds inward to the enhancing tumor core region is implemented.
[0059] As described above, the brain tumors may be divided into a general tumor region, a tumor core region, and an enhancing tumor core region. Therefore, in an embodiment, a cascaded segmentation network includes three levels of segmentation networks.
[0060] As shown in FIG. 6, a cascaded segmentation network 400 includes a first-level segmentation network 401, a second-level segmentation network 402, and a third-level segmentation network 403.
[0061] Specifically, image segmentation is performed on the candidate image by using the first-level segmentation network 401, and determine a first-level intermediate segmented image 405.
[0062] Image segmentation is performed on the first-level intermediate segmented image 405 by using the second-level segmentation network 402, and determine a second-level intermediate segmented image.
[0063] Image segmentation is performed on the second-level intermediate segmented image 406 by using the third-level segmentation network 403, and determine the segmented image.
[0064] As shown in sub-figures (a) to (c) in FIG. 4, a first-level intermediate segmented image 301 is a segmentation result of the first-level segmentation network 401, and the general tumor region 3011 included in the image is marked, as shown in sub-figure (a) in FIG. 4.
[0065] A second-level intermediate segmented image 302 is a segmentation result of the second-level segmentation network 402, and the general tumor region 3011 and the tumor core region 3021 in the image are marked differently to reflect a proper inclusion relationship between the general tumor region 3011 and the tumor core region 3021, as shown in sub-figure (b) in FIG. 4.
[0066] A segmented image 303 is a segmentation result of the third-level segmentation network 403, and the general tumor region 3011, the tumor core region 3021, and the enhancing tumor core region 3031 included in the image are marked differently, as shown in the sub-figure (c) in FIG. 4. That is, the segmented image 303 reflects a proper inclusion relationship among the general tumor region 3011, the tumor core region 3021, and the enhancing tumor core region 3031.
[0067] Optionally, in stepwise image segmentation, parameters used by the segmentation networks at all levels are different, so as to better adapt to the image segmentation between different regions included in brain tumors, to further help to improve segmentation effects of the tumor image.
[0068] By using the foregoing process, the tumor image segmentation based on machine learning is implemented, and the segmentation effects of the tumor image are effectively improved by using image segmentation processes of different scales.
[0069] Referring to FIG. 7a, in an exemplary embodiment, step 330 may include the following steps: Step 410: Extract a feature map from the tumor image based on a three-dimensional U-shaped fully convolutional neural network (3D U-Net).
[0070] It is to be understood that the tumor image generated by scanning of the acquisition end is usually a three-dimensional image, that is, a tumor image composed of many slices. If a two-dimensional machine learning model is used for processing a three-dimensional tumor image, not only a segmentation effect is not good, but also segmentation efficiency is relatively low because each of the slices that constitute the tumor image needs to be inputted to the machine learning model for training or class prediction, which is excessively cumbersome.
[0071] Therefore, in this embodiment, tumor localization is implemented by using a three-dimensional machine learning model, that is, a 3D U-Net network.
[0072] The 3D U-Net network is also referred to as a three-dimensional U-Net-based network. It can be understood that the 3D U-Net network is constructed by using the U-Net-based network as a prototype, and also has a U-shaped network structure.
[0073] Referring to a U-Net-based network shown in FIG. 7b, the U-Net-based network is an improved fully convolutional neural network. The U-Net-based network includes a contracting path 105 and an expanding path 107. An input image is convoluted a plurality of times and contracted through the contracting path 105 to determine a plurality of feature maps, and then the contracted input image is deconvoluted a plurality of times and expanded through the expanding path 107. In this process, the input image is further correspondingly merged with the plurality of feature maps determined by using the contracting path 105, as shown in 1051-1054 in FIG. 7b, so as to determine features in different dimensions of the input image, thereby improving the segmentation effects.
[0074] Specifically, the 3D U-Net network includes an encoder network and a decoder network.
[0075] The encoder network is used for extracting context features of the tumor image, so as to accurately describe the tumor image locally / globally by using the context features, to capture context information in the tumor image. The decoder network is used for extracting localization features of the tumor image, so as to perform, by using the localization features, accurate localization on a region in the tumor image on which image segmentation needs to be performed.
[0076] In addition, in the decoder network, feature fusion of the context features and the localization features is further performed, to determine features in different dimensions of the tumor image, so that the segmentation effects of the image segmentation are better.
[0077] Step 430: Perform class prediction on pixel points in the feature map corresponding to the tumor image, and determine classes of the pixel points in the feature map corresponding to the tumor image.
[0078] In this embodiment, the class prediction is implemented based on a classifier that is set in the 3D U-Net network, that is, probabilities that the pixel points in the feature map corresponding to the tumor image belong to different classes are calculated by using the classifier.
[0079] As described above, the tumor localization is essentially first segmenting the tumor image into a tumor region and a non-tumor region. Therefore, the classes include a general tumor region class and a non-tumor region class.
[0080] For example, for a pixel point in the feature map corresponding to the tumor image, probabilities that the pixel point belongs to different classes are calculated respectively. Assuming that a probability that the pixel point belongs to the general tumor region class is P1 and a probability that the pixel point belongs to the non-tumor region class is P2, if P1>P2, it indicates that the pixel point belongs to the general tumor region class; otherwise, if P1<P2, it indicates that the pixel point belongs to the non-tumor region class.
[0081] After the class prediction of all pixel points in the feature map corresponding to the tumor image is performed, segmentation of the tumor region and the non-tumor region in the tumor image is performed, that is, a rough position of the general tumor region is localized in the tumor image.
[0082] Step 450: Determine the candidate image on which the general tumor region is accommodated in a designated region according to pixel points belonging to a general tumor region class in the feature map.
[0083] After the classes of all the pixel points in the feature map corresponding to the tumor image are determined, the pixel points belonging to the general tumor region class can be determined, so as to construct a designated region based on the determined pixel points.
[0084] In other words, the pixel points belonging to the general tumor region class are enclosed within the designated region, that is, the general tumor region is regarded to be accommodated in the designated region, so that a candidate image on which the general tumor region is accommodated in the designated region is generated, as shown by 307 in FIG. 5.
[0085] Optionally, considering different degrees of invasiveness of brain tumors, in a process of constructing the designated region, the designated region is used as a center, and expansion is made toward the periphery, so that a size of the candidate image reaches a designated size, so as to fully ensure the segmentation effects of the tumor image.
[0086] The designated size may be flexibly set according to an actual requirement of an application scenario, which is not limited in this embodiment. For example, in an application scenario, the designated size is 96×96×96.
[0087] Under the effect of the foregoing embodiment, coarse segmentation on the tumor image is implemented based on the 3D U-Net network, which not only localizes the rough position of the general tumor region in the tumor image from a macro perspective, avoiding a loss of accuracy of the image segmentation, but also contracts the tumor image to the candidate image, effectively reducing the size of the image, thereby not only reducing a background proportion, helping to improve a segmentation granularity of small tumors, but also helping to design a deeper network, and further improving the segmentation effects.
[0088] In addition, by using the coarse segmentation on the tumor image, a size of the designated region can dynamically change with a size of the general tumor region, which helps to fully guarantee the balance between positive and negative samples during subsequent model training of the segmentation network.
[0089] Referring to FIG. 8, in an exemplary embodiment, step 410 may include the following steps: Step 411: Extract context features of the tumor image by using the encoder network.
[0090] As shown in FIG. 9, a 3D U-Net network 500 includes an encoder network 501 and a decoder network 502.
[0091] In ascending order of depth, the encoder network 501 includes several downsampling layers 5011-5015, and the decoder network 502 includes several upsampling layers 5021-5025.
[0092] Between the encoder network 501 and the decoder network 502, in ascending order of depth, several feature propagation layers 5031-5034 are established.
[0093] It is worth mentioning that, the 3D U-Net network 500 further includes a classification layer 503, equipped with a classifier, configured to calculate probabilities that pixel points in the feature map corresponding to the tumor image belong to different classes, so as to implement the class prediction on the pixel points in the feature map corresponding to the tumor image.
[0094] Then, the encoder network 501 can extract the context features of the tumor image by using the several downsampling layers 5011-5015, and transmit the extracted context features to the decoder network 502 by using the several feature propagation layers 5031-5034.
[0095] Specifically, the tumor image is inputted to a shallowest downsampling layer 5011 in the encoder network 501, convolution is performed on the inputted tumor image by using the shallowest downsampling layer 5011, to determine local features corresponding to the shallowest downsampling layer 5011, and the local features are downsampled and then inputted to a second shallowest downsampling layer 5012.
[0096] In ascending order of depth, the downsampling layers 5012, 5013, and 5014 in the encoder network 501 are traversed, to determine local features corresponding to the traversed downsampling layers 5012, 5013, and 5014.
[0097] Between the encoder network 501 and the decoder network 502, feature propagation of the foregoing local features is performed respectively by using the several feature propagation layers 5031-5034.
[0098] By using convolution of a deepest downsampling layer 5015, global features corresponding to the deepest downsampling layer 5015 are determined and directly transmitted to a deepest upsampling layer 5025 in the decoder network 502.
[0099] In the encoder network 501, horizontal arrows represent convolution, and downward arrows represent downsampling.
[0100] Regardless of whether a feature is a local feature or a global feature, the feature is regarded as a context feature of the tumor image, so as to accurately describe the tumor image locally / globally.
[0101] That is to say, as the encoder network deepens in level, in feature extraction on the tumor image, global description is gradually abstracted from local description, and further the tumor image is described more accurately, thereby helping to ensure the accuracy of image segmentation.
[0102] Step 413: Extract localization features of the general tumor region by using the decoder network, perform fusion of the context features and the localization features, and determine the feature map corresponding to the tumor image.
[0103] The decoder network not only extracts the localization features of the tumor image by using the several upsampling layers, but also performs feature fusion of the context features and the localization features for the tumor image.
[0104] With reference to FIG. 9, feature extraction and feature fusion processes of the decoder network are described.
[0105] Specifically, in the decoder network 502, context features (global features) corresponding to the deepest downsampling layer 5015 in the encoder network 501 are used as localization features corresponding to the deepest upsampling layer 5025.
[0106] Upsampling is performed on the localization features corresponding to the deepest upsampling layer 5025, to determine to-be-fused features.
[0107] The to-be-fused features are inputted to a second deepest upsampling layer 5024, and fused with context features (local features) corresponding to a second deepest downsampling layer 5014, and by using deconvolution, localization features corresponding to the second deepest upsampling layer 5024 are determined.
[0108] In descending order of depth, the other upsampling layers 5023, 5022, 5021 are traversed, to determine localization features corresponding to the traversed upsampling layers.
[0109] After the traversal is performed, a feature map corresponding to the tumor image is determined according to the localization features corresponding to the shallowest upsampling layer 5021.
[0110] In the decoder network 502, horizontal arrows represent deconvolution, and upward arrows represent upsampling.
[0111] Through the foregoing process, by using a mutual combination of the encoder network and the decoder network, not only a calculation amount of image segmentation is effectively reduced, to help to improve the segmentation efficiency, but also the accuracy of image segmentation is fully ensured.
[0112] It is to be understood that principles of the image segmentation processes performed by the segmentation networks at all levels are the same. Differences only lie in different input objects and output objects, and different used parameters. Therefore, before the image segmentation is further described in detail, the differences among the image segmentation processes performed based on the segmentation networks at all levels are defined and explained below, so as to subsequently better describe commonalities among the image segmentation processes performed based on the segmentation networks at all levels.
[0113] An input image is the candidate image, the first-level intermediate segmented image, or the second-level intermediate segmented image.
[0114] An output image is the first-level intermediate segmented image, the second-level intermediate segmented image, or the segmented image.
[0115] A segmentation network is the segmentation networks at all levels in the cascaded segmentation network. Parameters of the segmentation network are parameters of the segmentation networks at all levels in the cascaded segmentation network.
[0116] As shown in FIG. 10, the segmentation network 600 includes a downsampling stage 610 and an upsampling stage 630.
[0117] Specifically, the downsampling stage 610 includes several first basic network layers 611 and 612 and several first dense block layers 613 and 614 connected sequentially.
[0118] The upsampling stage 630 includes several third dense block layers 634 and 633 and several second basic network layers 632 and 63 1 connected sequentially. The upsampling stage 630 and the downsampling stage 610 are symmetric to each other, including: the first basic network layer 611 and the second basic network layer 631 are symmetric to each other, the first basic network layer 612 and the second basic network layer 632 are symmetric to each other, the first dense block layer 613 and the third dense block layer 633 are symmetric to each other, and the first dense block layer 614 and the third dense block layer 634 are symmetric to each other.
[0119] The first basic network layer 611 includes a second dense block layer 6111 and a pooling layer 6112 connected sequentially. The first basic network layer 612 includes a second dense block layer 6121 and a pooling layer 6122 connected sequentially.
[0120] The second basic network layer 631 includes an upsampling layer 6311 and a fourth dense block layer 6312 connected sequentially. The second basic network layer 632 includes an upsampling layer 6321 and a fourth dense block layer 6322 connected sequentially.
[0121] Correspondingly, based on mutual symmetry between the upsampling stage 630 and the downsampling stage 610, the second dense block layer 6111 and the fourth dense block layer 6312 are symmetric to each other, and the second dense block layer 6121 and the fourth dense block layer 6322 are symmetric to each other.
[0122] Further, each of the above dense block layers includes an input unit and at least one dense unit. Each dense unit further includes a convolution layer, an activation layer, and a normalization layer connected sequentially, avoiding using a pure convolution layer or residual convolution layer, to ensure the accuracy of image segmentation.
[0123] As shown in FIG. 11, the dense block layer includes one input unit and four dense units H1, H2, H3, and H4. Each of the dense units further includes a convolution layer Conv, an activation layer Relu, and a normalization layer BN.
[0124] A feature x0 corresponding to the input image Input is inputted by the input unit and simultaneously outputted to the dense units H1, H2, H3, and H4. In addition, when feature extraction is performed on the input image Input, a feature x1 outputted by the dense unit H1 is simultaneously outputted to the dense units H2, H3, and H4. Similarly, a feature x2 outputted by the dense unit H2 is simultaneously outputted to the dense units H3 and H4, and a feature x3 outputted by the dense unit H3 is outputted to the dense unit H4.
[0125] In other words, for the dense unit H2, the features x0 and x1 corresponding to the input image Input are combined. For the dense unit H3, the features x0, x1, and x2 corresponding to the input image Input are combined. For the dense unit H4, the features x0, x1, x2, and x3 corresponding to the input image Input are combined.
[0126] Through such setting, the dense block layer can not only reuse features of shallow layers, such as x0 and x1, to fully ensure integrity of the input image, but also combine features of deep and shallow layers, such as x0, x1, and x2, which helps to reduce complexity of image segmentation, and further effectively improves the segmentation effects of image segmentation.
[0127] Still further, each convolution layer in the first dense block layer and the third dense block layer includes several three-dimensional convolution kernels (not shown in FIG. 10).
[0128] Each convolution layer in the second dense block layer and the fourth dense block layer includes several tangent convolution kernels (not shown in FIG. 10) and several normal convolution kernels, as shown by 6111a, 6121a, 6322a, and 6312a in FIG. 10. In other words, the convolution layer in the second dense block layer and the fourth dense block layer transforms the several three-dimensional convolution kernels (k×k×k) into the several tangent convolution kernels (k×k×1) and the several normal convolution kernels (1×1×k).
[0129] Through such setting, 2.5-dimensional-based image segmentation is implemented, which can avoid high video memory occupation and computational complexity of the three-dimensional convolution kernel. In addition, more importantly, the tumor image is particular, that is, the tumor image is composed of numerous slices, resulting in a relatively large difference between a tangent resolution and a normal resolution when the numerous slices synthesize a three-dimensional image. An error of pure three-dimensional image segmentation is relatively large, and pure two-dimensional segmentation directly ignores a correlation between the locality and the globality of the image, so that only 2.5-dimensional tumor image segmentation is most suitable.
[0130] In addition, as shown in FIG. 10, through a mutual combination of three-dimensional characteristics of the first dense block layer and the third dense block layer, and 2.5-dimensional characteristics of the second dense block layer and the fourth dense block layer, not only respective advantages of the former and the latter are integrated, but also features of each dimension of the input image are integrated on the basis of the latter, ensuring maximal collection and fusion of features, and further effectively improving the segmentation effects of image segmentation.
[0131] Correspondingly, in an exemplary embodiment, as shown in FIG. 12, the image segmentation process, that is, performing image segmentation on the input image by using the segmentation network, to determine the output image may include the following steps: Step 510: Extract key features from the input image in the downsampling stage of the segmentation network.
[0132] With reference to FIG. 10, the process of extracting key features is described.
[0133] Specifically, the input image "Input" is inputted to the downsampling stage 610 of the segmentation network 600, and convolution and downsampling is performed by using the group of first basic network layers 611 and 612 to determine intermediate features.
[0134] Then, after the intermediate features are determined, convolution can be performed on the intermediate features by using the group of first dense block layers 613 and 614, to determine the key features.
[0135] A process of determining intermediate features is further described as follows:
[0136] In the downsampling stage 610 of the segmentation network 600, the input image Input is inputted to a first first basic network layer 611, and convolution is performed on the input image by using the second dense block layer 6111 in the first first basic network layer 611.
[0137] Downsampling is performed on features outputted after the convolution by using the pooling layer 6112 in the first first basic network layer 611, so as to output the downsampled features to a second first basic network layer 612.
[0138] The other first basic network layers 612 in the group of first basic network layers are traversed according to a feature propagation sequence. After the traversal is performed, features downsampled by the second first basic network layer 612, that is, a last first basic network layer 612 are used as the intermediate features.
[0139] Step 530: Input the key features to the upsampling stage of the segmentation network, perform multi-scale feature fusion, and determine a feature map corresponding to the input image.
[0140] With reference to FIG. 10, a process of the multi-scale feature fusion is described.
[0141] Specifically, the key features are inputted to the upsampling stage 630 of the segmentation network 600, and deconvolution is performed by using the group of third dense block layers 634 and 633, to determine first scale features 651, to input the first scale features to a first plurality of second basic network layers.
[0142] In the first plurality of second basic network layers, feature fusion is performed between fourth dense block layers in the first plurality of second basic network layers and second dense block layers in a plurality of the first basic network layers, the fourth dense block layers and the second dense block layers are symmetric each other, and the first plurality of second basic network layers in the upsampling stage 630 are connected between a last third dense block layer 633 and a last second basic network layer 631.
[0143] In the last second basic network layer 631, upsampling is performed on features outputted after the feature fusion in the first plurality of second basic network layers by using the upsampling layer 6311 in the last second basic network layer 631, to determine second scale features 652.
[0144] Features outputted after the convolution by the second dense block layers 6111 and 6121 in the group of first basic network layers 611 and 612 are determined, and the determined features are used as third scale features 653.
[0145] Fusion is performed on the first scale features 651, the second scale features 652, and the third scale features 653 by using the fourth dense block layer 6312 in the last second basic network layer 631, and deconvolution is performed, to determine a feature map Output corresponding to the input image Input.
[0146] That is, the feature map Output corresponding to the input image Input is not only based on 1X upsampling features (the second scale features 652), 2X upsampling features (the features 653 outputted after the convolution of the second dense block layer 6121), and 4X upsampling features (the first scale features 651), but also based on zero upsampling features (the features 653 outputted after the convolution of the second dense block layer 6111), thereby implementing multi-scale feature fusion, so that segmentation results of the segmentation networks at all levels can achieve the best segmentation effects locally and globally, which effectively improves the segmentation effects.
[0147] A process of the feature fusion of the fourth dense block layer and the second dense block layer that are symmetric to each other is further described as follows: The first scale features 651 are inputted to the first second basic network layer 632, and upsampling is performed on the inputted first scale features 651 by using an upsampling layer 6321 in the first second basic network layer 632.
[0148] Based on a fourth dense block layer 6322 in the first second basic network layer 632, features 654 outputted after the convolution of a second dense block layer 6121 in the group of first basic network layers 612 are determined, the second dense block layer is symmetric to the fourth dense block layer, and the determined features are combined with the upsampled features, to determine combined features.
[0149] Deconvolution is performed on the combined features by using the fourth dense block layer 6322 in the first second basic network layer 632, to output the deconvoluted features to the second second basic network layer 631.
[0150] The other second basic network layers in the group of second basic network layers are traversed according to a feature propagation sequence, and after the traversal is performed, feature fusion of the fourth dense block layers and the second dense block layers that are symmetric to each other is performed.
[0151] Because FIG. 10 only includes two second basic network layers, in the upsampling stage 630, the second second basic network layer is essentially the last second basic network layer. Therefore, there is no need to traverse the other second basic network layers in the group of second basic network layers, and provided that deconvolution performed in the first second basic network layer 632 is performed, feature fusion of the fourth dense block layer 6322 and the second dense block layer 6121 that are symmetric to each other is performed.
[0152] Step 550: Perform class prediction on pixel points in the feature map corresponding to the input image, and determine classes of the pixel points in the feature map corresponding to the input image.
[0153] In this embodiment, the class prediction is implemented based on a classifier that is set in the segmentation network, that is, probabilities that pixel points in the feature map corresponding to the input image belong to different classes are calculated by using the classifier.
[0154] The classes can be an other-regions class, a general tumor region class, a tumor core region class, and an enhancing tumor core region class.
[0155] The segmentation networks at all levels are constructed based on two classes, that is, in the first-level segmentation network, the classes include the other-regions class and the general tumor region class. In this case, the other regions are non-tumor regions.
[0156] Similarly, in the second-level segmentation network, the classes include the other-regions class and the tumor core region class. In this case, the other regions refer to the non-tumor regions and the general tumor region that does not include the tumor core region.
[0157] In the third-level segmentation network, the classes include the other-regions class and the enhancing tumor core region class. In this case, the other regions refer to the non-tumor regions and the general tumor region that does not include the enhancing tumor core region.
[0158] Image segmentation of the other regions and the tumor core region performed in the second-level segmentation network is used as an example for description.
[0159] For a pixel point in the feature map corresponding to the input image, probabilities that the pixel point belongs to different classes are respectively calculated. Assuming that a probability that the pixel point belongs to the other-regions class is P1 and a probability that the pixel point belongs to the tumor core region class is P2, if P1 is greater, it indicates that the pixel point belongs to the other-regions class; otherwise, if P2 is greater, it indicates that the pixel point belongs to the tumor core region class.
[0160] Step 570: Mark pixel points of a designated class in the feature map corresponding to the input image, and determine the output image.
[0161] Marking is performed according to the class to which the pixel point belongs. The marking can be made by using a color or a symbol such as an asterisk, which is not limited herein.
[0162] In an embodiment, different classes of pixel points are marked with different colors, as shown in sub-figure (c) in FIG. 4.
[0163] It is worth mentioning that in the segmentation networks at all levels, designated classes are all different. For example, in the first-level segmentation network, the designated class is the general tumor region class; in the second-level segmentation network, the designated class is the tumor core region; and in the third-level segmentation network, the designated class is the enhancing tumor core region.
[0164] For the segmentation networks at all levels, provided that the class prediction of all the pixel points in the feature maps corresponding to all the input images is performed, the segmentation of the general tumor region, the tumor core region, and the enhancing tumor region in the tumor image is performed, that is, more precise positions of the general tumor region, the tumor core region, and the enhancing tumor region are localized in the tumor image.
[0165] Referring to FIG. 13, in an exemplary embodiment, the method further includes: constructing the cascaded segmentation network based on the machine learning model, where the machine learning model is a convolutional neural network model.
[0166] The constructing the cascaded segmentation network based on the machine learning model may include the following steps: Step 710: Determine training samples carrying labels.
[0167] The training samples are a tumor images on which the general tumor region, the tumor core region, and the enhancing tumor core region are labeled with different types of labels.
[0168] For brain tumors, labeling refers to only adding non-zero markers to the general tumor region, the tumor core region, or the enhancing tumor core region in the tumor image, and zero markers are made on the pixel points in the other regions in the tumor image.
[0169] For example, for the same tumor image, if only non-zero markers are added to the general tumor region in the tumor image, and zero markers are made on the pixel points in the other regions in the tumor image, the marking of the tumor image is performed, and a training sample carrying a general tumor region label is determined.
[0170] If the non-zero markers are only added to the tumor core region in the tumor image, and zero markers are made on the pixel points in the other regions in the tumor image, a training sample carrying a tumor core region label is determined.
[0171] Similarly, if only non-zero markers are added to the enhancing tumor core region in the tumor image, and zero markers are made on the pixel points in the other regions in the tumor image, a training sample carrying an enhancing tumor core region label is determined.
[0172] Optionally, before labeling, the pixel points in the tumor image are normalized, to improve the accuracy of image segmentation.
[0173] Step 730: Establish a plurality of training sample sets according to types of the labels carried by the training samples, each of the training sample sets corresponding to a type.
[0174] It is to be understood that because tumors have no fixed shape, size and orientation, model training is based on a large number of training samples. Therefore, in this embodiment, for each of the training samples, sample augmentation processing is performed.
[0175] The sample augmentation processing includes: flipping, rotating, zooming, contrast enhancement, and the like. The flipping refers to front-and-back flipping and left-and-right flipping of the tumor image; the rotating refers to rotating at a designated angle of the tumor image; the zooming refers to enlarging the tumor image, or shrinking the tumor image; and the contrast enhancement refers to changing contrast of pixel points in the tumor image.
[0176] By using the zooming as an example, the enlarging means that a 96×96×96 tumor image is interpolated into a 120×120×120-sized image, and then an intermediate image is cropped from the 120×120×120-sized image to 96×96×96; and the shrinking means that a 120×120×120 tumor image is shrunk to 96×96×96.
[0177] A corresponding training sample set is established by using training samples carrying the same type of labels, and then, a plurality of corresponding training sample sets may be established by using training samples of a plurality types of labels. For example, a corresponding training sample set is constructed by using training samples carrying the general tumor region label, and after the model training is performed on the convolutional neural network model, the image segmentation on the general tumor region is performed.
[0178] Through such setting, a number of the training samples is effectively expanded, which helps to improve the training value of tumors with different orientations and different shapes and sizes, thereby fully ensuring the accuracy of image segmentation.
[0179] Step 750: Perform model training on a plurality of convolutional neural network models having designated model structures respectively by using the plurality of training sample sets.
[0180] The model training is essentially to iteratively optimize parameters of the convolutional neural network model with a designated model structure by using the training sample set, so that a designated algorithm function constructed based on the parameters meets a convergence condition.
[0181] In this embodiment, the designated model structure is shown in FIG. 10. The designated algorithm function includes but is not limited to: an expectation maximization function, a loss function, and the like.
[0182] For example, parameters of the convolutional neural network model are randomly initialized, a probability is calculated through forward propagation according to a current training sample in the training sample set and based on the randomly initialized parameters, a loss function is constructed by using a Dice distance between the calculated probability and correct labeling, and further a loss value of the loss function is calculated.
[0183] If the loss value of the loss function does not reach a minimum value, the parameters of the convolutional neural network model are updated through back propagation, a probability is calculated according to a next training sample in the training sample set and based on the updated parameters, the loss function is reconstructed by using the Dice distance between the calculated probability and correct labeling, and the loss value of the reconstructed loss function is calculated again.
[0184] Such iterative looping is performed until the loss value of the constructed loss function reaches the minimum value, and the loss function is considered as convergent. In this case, if the convolutional neural network model also converges and meets a preset precision requirement, iteration is stopped.
[0185] Otherwise, the parameters of the convolutional neural network model are iteratively updated, and the loss value of the constructed loss function is calculated according to the other training samples in the training sample set and the updated parameters, until the loss function converges.
[0186] It is worth mentioning that, if the quantity of times of iterations has reached an iteration threshold before the loss function converges, the iteration also stops, to ensure the model training efficiency.
[0187] When the convolutional neural network model converges and meets the preset precision requirement, it indicates that the convolutional neural network model performs the model training, so that the cascaded segmentation network can be further constructed.
[0188] Step 770: Cascade the plurality of convolutional neural network models after the model training is performed, and determine the cascaded segmentation network.
[0189] For a plurality of different training sample sets, a plurality of convolutional neural network models that perform the model training can be determined. Each of the convolutional neural network models that perform the model training corresponds to a training sample set. For example, in the training sample set, the training sample is a tumor image on which the general tumor region is labeled with labels, and then the convolutional neural network model that therefore performs the model training performs image segmentation on the general tumor region.
[0190] A convolutional neural network model that performs the model training is used as a level of segmentation network, and a plurality of levels of segmentation networks are cascaded, to construct a cascaded segmentation network. For example, referring back to FIG. 6, the cascaded segmentation network 400 includes the three levels of segmentation networks 401, 402, and 403.
[0191] Through the above process, based on the segmentation networks at all levels in the constructed cascaded segmentation network, the segmentation end has an ability to predict classes of the pixel points of the feature map corresponding to the input image.
[0192] Therefore, when the input image is inputted to the cascaded segmentation network, class prediction can be performed on the pixel points in the feature map corresponding to the input image, to determine the classes of the pixel points in the feature map, thereby implementing the image segmentation on the input image.
[0193] In an exemplary embodiment, after step 350, the method described above may further include the following steps: correcting the segmented image by using a morphological algorithm.
[0194] The morphological algorithm includes but is not limited to corrosion, expansion, hole filling, Dense CRF (conditional random field), and the like, which is not specifically limited in this embodiment.
[0195] As a result, the segmented image is corrected, so that segmentation edges among the general tumor region, the tumor core region, and the enhancing tumor core region in the segmented image are smoothed, and / or, noises in the segmented image are canceled, thereby further effectively improving the segmentation effects of image segmentation.
[0196] An image segmentation method is described below with reference to a specific embodiment.
[0197] In this specific embodiment, for brain tumors, a segmentation end divides a tumor image segmentation task into a coarse segmentation subtask and a fine segmentation subtask. The tumor image is generated by scanning of an MRI device at an acquisition end, and is essentially a four-modality MRI image.
[0198] Specifically, with reference to FIG. 14 and FIG. 15, by performing step 801, the segmentation end obtains a tumor image 811 generated by scanning of the acquisition end.
[0199] As shown in FIG. 14, the coarse segmentation subtask is based on the tumor image 811, and tumor localization is performed by using a 3D U-Net network 820, to determine a candidate image 812 with a general tumor region included in a rectangular frame, so that the coarse segmentation subtask is performed, that is, step 802 is performed: based on the tumor image 811, coarse segmentation on the general tumor region is performed.
[0200] In the fine segmentation subtask, the candidate image 812 is used as a basis of the fine segmentation subtask. It can be seen that, a size of the candidate image 812 is greatly reduced compared with that of the tumor image 811.
[0201] The candidate image 812 is inputted to a first-level segmentation network 831 in a cascaded segmentation network 830, and image segmentation is performed, to determine a first-level intermediate segmented image 813 marked with the general tumor region. Compared with the candidate image 812, the general tumor region included in the first-level intermediate segmented image 813 is no longer roughly included in the rectangular frame, but is marked specifically, and first time of fine segmentation on the tumor image is implemented, that is, step 803 is performed: based on the candidate image 812, image segmentation on the general tumor region is performed.
[0202] The first-level intermediate segmented image 813 is used as an input of a second-level segmentation network 832, image segmentation is performed, to determine a second-level intermediate segmented image 814, the second-level intermediate segmented image 814 reflects a proper inclusion relationship between the general tumor region and the tumor core region, and second time of fine segmentation on the tumor image is implemented, that is, step 804 is performed: based on the first-level intermediate segmented image 813, image segmentation on the tumor core region is performed.
[0203] Finally, the second-level intermediate segmented image 814 is used as an input of a third-level segmentation network 833, image segmentation is performed to determine a segmented image 815, the segmented image 815 reflects a proper inclusion relationship among the general tumor region, the tumor core region, and the enhancing tumor core region, and third time of fine segmentation on the tumor image is implemented, that is, step 805 is performed: based on the second-level intermediate segmented image 814, image segmentation on the enhancing tumor core region is performed.
[0204] Therefore, for different characteristics of the three regions included in the brain tumor, the fine segmentation subtasks are performed through stepwise image segmentation, that is, image segmentation on different regions performed based on different input images.
[0205] Therefore, for a diagnosis end, by performing step 806, a segmented image 815 determined by the segmentation end can be received, so that a doctor understands the three regions of different severity degrees in the brain tumor in time, and the doctor is assisted in diagnosing a tumor more rapidly and accurately, for example, analyzing benignity or malignancy or a malignant degree of a tumor of a patient.
[0206] A network structure of the 3D U-Net network 810 is shown in FIG. 9, and a network structure of the segmentation networks at all levels in the cascaded segmentation network 830 is shown in FIG. 10.
[0207] In upsampling stages and downsampling stages of the segmentation networks at all levels, a structure of dense block layers is shown in FIG. 11, and through a mutual combination of three-dimensional convolution kernels and tangent convolution kernels as well as normal convolution kernels in convolution layers, processes of feature extraction and feature fusion are implemented. Table 1 Settings of a three-dimensional convolution kernel, a tangent convolution kernel, and a normal convolution kernel in a downsampling stageLayerDense block layer settingsDense Block (Second dense block layer)[3×3×1 conv]×3+[1×1×3 conv]Pooling (pooling layer)3×3×3 max pool, stride 2Dense Block (Second dense block layer)[3×3×1 conv]×3+[1×1×3 conv]Pooling (pooling layer)3×3×3 max pool, stride 2Dense Block (First dense block layer)[3×3×3 conv]×12Dense Block (First dense block layer)[3×3×3 conv]×3
[0208] By using the downsampling stage as an example, as shown in Table 1, [3×3×1 conv] represents a tangent convolution kernel, [1×1×3 conv] represents a normal convolution kernel, and [3×3×3 conv] represents a three-dimensional convolution kernel. Quantities of various types of convolution kernels that are set in different dense block layers can be flexibly adjusted according to an actual requirement of an application scenario, which is not specifically limited herein. For example, in this disclosure scenario, in the downsampling stage, 12 three-dimensional convolution kernels and 3 three-dimensional convolution kernels are respectively set in the first dense block layers.
[0209] In addition, for a four-modality MRI image, four channels are essentially configured in each of the convolution layers, so that the four-modality MRI image is inputted, through different channels to the cascaded segmentation network, for image segmentation, thereby fully ensuring integrity of the tumor image, and helping to improve the segmentation effects.
[0210] Through the above process, end-to-end automatic image segmentation is implemented, that is, as long as different-modality MRI images corresponding to a patient are inputted, three regions with different severity degrees can be determined, which can not only effectively assist a doctor in further analyzing a treatment plan for the patient, but also determine an operation region for the patient, so as to more accurately process a lesion.
[0211] Apparatus embodiments of this disclosure are described below, and may be used for performing the image segmentation method involved in this disclosure. For details not disclosed in the apparatus embodiment of this disclosure, refer to the method embodiment of the image segmentation method involved in this disclosure.
[0212] Referring to FIG. 16, in an exemplary embodiment, an image segmentation apparatus 900 includes, but is not limited to: an image determining module 910, an image coarse segmentation module 930, an image input module 940, and an image fine segmentation module 950.
[0213] The image determining module 910 is configured to determine a tumor image.
[0214] The image coarse segmentation module 930 is configured to perform tumor localization on the tumor image, and determine a candidate image for indicating a position of a general tumor region in the tumor image.
[0215] The image input module 940 is configured to input the candidate image to a cascaded segmentation network constructed based on a machine learning model.
[0216] The image fine segmentation module 950 is configured to start from performing image segmentation on the general tumor region in the candidate image using a first-level segmentation network in the cascaded segmentation network, and perform, level by level, image segmentation on an enhancing tumor core region to a last-level segmentation network in the cascaded segmentation network, and determine a segmented image.
[0217] When the image segmentation apparatus provided in the foregoing embodiment performs tumor image segmentation processing, the division of the functional modules is merely used as an example for description. In the practical application, the functions may be distributed to and implemented by different functional modules according to the requirements, that is, an internal structure of the image segmentation apparatus is divided into different functional modules, so as to finish all or some of the functions described above.
[0218] In addition, the image segmentation apparatus provided in the foregoing embodiment and the embodiments of the image segmentation method belong to a same ideal. Specific operations manners of the modules have been described in detail in the method embodiment, and the details are not described herein again.
[0219] Refer to FIG. 17, in an exemplary embodiment, a computing device 1000 includes at least one processor 1001, at least one memory 1002, and at least one communication bus 1003.
[0220] The memory 1002 stores computer-readable instructions, and the processor 1001 reads, by using the communication bus 1003, the computer-readable instructions stored in the memory 1002.
[0221] The computer-readable instructions, when executed by the processor 1001, implement the image segmentation method in the foregoing embodiments.
[0222] In an exemplary embodiment, a computer-readable storage medium stores a computer program, the computer program, when executed by a processor, implementing the image segmentation method in the foregoing embodiments.
Examples
Embodiment Construction
[0010]Exemplary embodiments are described in detail herein, and examples of the exemplary embodiments are shown in the accompanying drawings. When the following descriptions are made with reference to the accompanying drawings, unless otherwise indicated, same numbers in different accompanying drawings represent same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations that are consistent with this disclosure. On the contrary, the implementations are merely examples of apparatuses and methods that are described in detail in the appended claims and that are consistent with some aspects of this disclosure.
[0011]An embodiment of this disclosure provides an image segmentation method based on stepwise image segmentation, which can effectively improve segmentation effects in tumor image segmentation. Correspondingly, the image segmentation method is suitable for a tumor image segmentation apparatus. The tumor image ...
Claims
1. An image segmentation method, performed by a computing device, the method comprising: determining (310) a tumor image (111, 305, 811), wherein the tumor image (111, 305, 811) is a three-dimensional image synthesized by slices; performing (330) tumor localization on the tumor image (111, 305, 811), and determining (330) a candidate image (1311, 307, 812) for indicating a position of a general tumor region (3071, 3011) in the tumor image (111, 305, 811); inputting (340) the candidate image (1311, 307, 812) to a cascaded segmentation network (132, 830) constructed based on a machine learning model, wherein the cascaded segmentation network (132, 830) comprises three levels of segmentation networks; performing image segmentation on the candidate image (1311, 307, 812) using a first-level segmentation network (401, 831) in the cascaded segmentation network (132, 830), and determining a first-level intermediate segmented image (301, 813) marked with the general tumor region (3071, 3011); performing image segmentation on the first-level intermediate segmented image (301, 813) by using a second-level segmentation network (402, 832) in the cascaded segmentation network (132, 830), and determining a second-level intermediate segmented image (302, 814) marked with the general tumor region (3071, 3011) and a tumor core region (3021); and performing image segmentation on the second-level intermediate segmented image (302, 814) by using a third-level segmentation network (403, 833) in the cascaded segmentation network (132, 830), and determining a segmented image (303) marked with the general tumor region (3071, 3011), the tumor core region (3021), and an enhancing tumor core region (3031); wherein each segmentation network of the first-level segmentation network (401, 831), the second-level segmentation network (402, 832), and the third-level segmentation network (403, 833), comprises a downsampling stage (610) and an upsampling stage (630), the downsampling stage (610) comprises a group of first basic network layers (611, 612) and a group of first dense block layers (613, 614) connected sequentially, and a first basic network layer (611, 612) comprises a second dense block layer (6111, 6121) and a pooling layer (6112, 6122) connected sequentially; wherein each convolution layer in the second dense block layer (6111, 6121) transforms a three-dimensional convolution kernel (k×k×k) into a tangent convolution kernel (k×k×1) and a normal convolution kernel (1×1×k), to implement 2.5-dimensional-based image segmentation.
2. The method according to claim 1, wherein key features are extracted from the candidate image (1311, 307, 812) in the downsampling stage (610); and the key features are input to the upsampling stage (630) for performing multi-scale feature fusion and determining a feature map corresponding to the candidate image (307, 812); class prediction are performed on pixel points in the feature map, and classes of the pixel points in the feature map are determined; and pixel points of a designated class in the feature map are marked.
3. The method according to claim 1, wherein convolution is performed on the candidate image (1311, 307, 812) by using the second dense block layer (6111, 6121) in a first one of the group of first basic network layers (611, 612); downsampling is performed on features outputted after convolution, by using the pooling layer (6112, 6122) in the first one of the group of first basic network layers (611, 612), and downsampled features are output to a second one of the group of first basic network layers (611, 612); and other first basic network layers in the group of first basic network layers (611, 612) are traversed according to a feature propagation sequence.
4. The method according to claim 1, wherein the upsampling stage (630) and the downsampling stage (610) are symmetric to each other, the upsampling stage (630) comprises a group of third dense block layers (633, 634) and a group of second basic network layers (631, 632) connected sequentially, and a second basic network layer (631, 632) comprises an upsampling layer (6311, 6321) and a fourth dense block layer (6312, 6322) connected sequentially.
5. The method according to claim 4, wherein each convolution layer in the fourth dense block layer comprises a tangent convolution kernel and a normal convolution kernel.
6. The method according to claim 1, further comprising: constructing the cascaded segmentation network (132, 830) based on the machine learning model, wherein the machine learning model is a convolutional neural network model; wherein the constructing the cascaded segmentation network based on the machine learning model comprises: determining (710) training samples carrying labels, wherein the training samples are tumor images on which the general tumor region (3071, 3011), the tumor core region (3021), and the enhancing tumor core region (3031) are labeled with different types of labels; establishing (730) a plurality of training sample sets according to types of the labels carried by the training samples, each of the training sample sets corresponding to a type; performing (750) model training on a plurality of convolutional neural network models having designated model structures respectively by using the plurality of training sample sets; and cascading (770) the plurality of convolutional neural network models after the model training is performed, and determining the cascaded segmentation network (132, 830).
7. The method according to claim 1, wherein the performing tumor localization on the tumor image, and determining a candidate image for indicating a position of a general tumor region in the tumor image comprises: extracting (410) a feature map from the tumor image (111, 305, 811) based on a three-dimensional U-shaped fully convolutional neural network; performing (430) class prediction on pixel points in the feature map corresponding to the tumor image (111, 305, 811), and determining (430) classes of the pixel points in the feature map corresponding to the tumor image (111, 305, 811); and determining (450) the candidate image (1311, 307, 812) on which the general tumor region (3071, 3011) is accommodated in a designated region (3072) according to pixel points belonging to a general tumor region (3071, 3011) class in the feature map.
8. The method according to claim 7, wherein the three-dimensional U-shaped fully convolutional neural network (500) comprises an encoder network (501) and a decoder network (502); and the extracting a feature map from the tumor image (111, 305, 811) based on a three-dimensional U-shaped fully convolutional neural network comprises: extracting (411) context features of the tumor image (111, 305, 811) by using the encoder network; and extracting (413) localization features of the general tumor region (3071, 3011) by using the decoder network, performing (413) feature fusion of the context features and the localization features, and determining (413) the feature map corresponding to the tumor image (111, 305, 811); wherein the encoder network comprises a plurality of downsampling layers, and the decoder network comprises a plurality of upsampling layers; and the extracting localization features of the general tumor region by using the decoder network, performing feature fusion of the context features and the localization features, and determining the feature map corresponding to the tumor image comprises: performing upsampling on localization features corresponding to a deepest upsampling layer in the decoder network, and determining to-be-fused features, wherein the localization features corresponding to the deepest upsampling layer are context features corresponding to a deepest downsampling layer in the encoder network; inputting the to-be-fused features to a second deepest upsampling layer, combining the to-be-fused features with context features corresponding to a second deepest downsampling layer, and determining localization features corresponding to the second deepest upsampling layer by performing deconvolution; traversing other upsampling layers in descending order of depth, and determining localization features corresponding to the traversed upsampling layers; and determining the feature map corresponding to the tumor image (111, 305, 811) according to localization features corresponding to a shallowest upsampling layer after the traversal is performed.
9. An image segmentation apparatus (900), comprising: an image determining module (910), configured to determine a tumor image (111, 305, 811), wherein the tumor image (111, 305, 811) is a three-dimensional image synthesized by slices; an image coarse segmentation module (930), configured to perform tumor localization on the tumor image (111, 305, 811), and determine a candidate image (1311, 307, 812) for indicating a position of a general tumor region (3071, 3011) in the tumor image (111, 305, 811); an image input module (940), configured to input the candidate image (1311, 307, 812) to a cascaded segmentation network (132, 830) constructed based on a machine learning model, wherein the cascaded segmentation network (132, 830) comprises three levels of segmentation networks; and an image fine segmentation module (950), configured to perform image segmentation on the candidate image (1311, 307, 812) using a first-level segmentation network (401, 831) in the cascaded segmentation network (132, 830), and determine a first-level intermediate segmented image (301, 813) marked with the general tumor region (3071, 3011); perform image segmentation on the first-level intermediate segmented image (301, 813) by using a second-level segmentation network (402, 832) in the cascaded segmentation network (132, 830), and determine a second-level intermediate segmented image (302, 814) marked with the general tumor region (3071, 3011) and a tumor core region (3021); and perform image segmentation on the second-level intermediate segmented image (302, 814) by using a third-level segmentation network (403, 833) in the cascaded segmentation network (132, 830), and determine a segmented image (303) marked with the general tumor region (3071, 3011), the tumor core region (3021), and an enhancing tumor core region (3031); wherein each segmentation network of the first-level segmentation network (401, 831), the second-level segmentation network (402, 832), and the third-level segmentation network (403, 833), comprises a downsampling stage (610) and an upsampling stage (630), the downsampling stage (610) comprises a group of first basic network layers (611, 612) and a group of first dense block layers (613, 614) connected sequentially, and a first basic network layer (611, 612) comprises a second dense block layer (6111, 6121) and a pooling layer (6112, 6122) connected sequentially; wherein each convolution layer in the second dense block layer (6111, 6121) transforms a three-dimensional convolution kernel (k×k×k) into a tangent convolution kernel (k×k×1) and a normal convolution kernel (1×1×k), to implement 2.5-dimensional-based image segmentation.
10. A diagnosis system (100), comprising an acquisition end (110), a segmentation end (130, 200), and a diagnosis end (150), the acquisition end (110) being configured to acquire a tumor image (111, 305, 811), wherein the tumor image (111, 305, 811) is a three-dimensional image synthesized by slices, and transmit the tumor image (111, 305, 811) to the segmentation end (130, 200); the segmentation end (130, 200) being configured to perform tumor localization on the tumor image (111, 305, 811) transmitted (801) by the acquisition end (110), and determine (802) a candidate image (1311, 307, 812) for indicating a position of a general tumor region (3071, 3011) in the tumor image (111, 305, 811), and input the candidate image (1311, 307, 812) to a cascaded segmentation network (132, 830) constructed based on a machine learning model, wherein the cascaded segmentation network (132, 830) comprises three levels of segmentation networks; and perform image segmentation on the candidate image (1311, 307, 812) using a first-level segmentation network (401, 831) in the cascaded segmentation network (132, 830), and determine a first-level intermediate segmented image (301, 813) marked with the general tumor region (3071, 3011); perform image segmentation on the first-level intermediate segmented image (301, 813) by using a second-level segmentation network (402, 832) in the cascaded segmentation network (132, 830), and determine a second-level intermediate segmented image (302, 814) marked with the general tumor region (3071, 3011) and a tumor core region (3021); and perform image segmentation on the second-level intermediate segmented image (302, 814) by using a third-level segmentation network (403, 833) in the cascaded segmentation network (132, 830), and determine a segmented image (303) marked with the general tumor region (3071, 3011), the tumor core region (3021), and an enhancing tumor core region (3031); wherein each segmentation network of the first-level segmentation network (401, 831), the second-level segmentation network (402, 832), and the third-level segmentation network (403, 833), comprises a downsampling stage (610) and an upsampling stage (630), the downsampling stage (610) comprises a group of first basic network layers (611, 612) and a group of first dense block layers (613, 614) connected sequentially, and a first basic network layer (611, 612) comprises a second dense block layer (6111, 6121) and a pooling layer (6112, 6122) connected sequentially; wherein each convolution layer in the second dense block layer (6111, 6121) transforms a three-dimensional convolution kernel (k×k×k) into a tangent convolution kernel (k×k×1) and a normal convolution kernel (1×1×k), to implement 2.5-dimensional-based image segmentation; and the diagnosis end being configured to receive (806) the segmented image (303) transmitted by the segmentation end (130, 200), and display the segmented image (303), to assist a diagnostician in performing tumor diagnosis by using the segmented image (303).
11. A storage medium, storing a computer program, the computer program, when executed by a processor, implementing the image segmentation method according to any one of claims 1 to 8.
12. A computing device (1000), comprising: a processor (1001); and a memory (1002), the memory storing computer-readable instructions, and the computer-readable instructions, when executed by the processor, implementing the image segmentation method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Detection of prostate cancer in multi-parametric MRI using random forest with instance weighting & mr prostate segmentation by deep learning with holistically-nested networks
WO2018156778A1