Method for training segmentation neural network and medical image segmentation method and device
By assisting the neural network to extract the edge features of the liver in abdominal CT images and generating multi-level circular hierarchical output, it solves the problem of insufficient liver edge feature extraction in the existing technology, improves the accuracy and calculation speed of liver segmentation, and reduces mis-segmentation. risk.
Patent Information
- Application Number
- CN202410867643.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-29
AI Technical Summary
Existing liver segmentation methods in abdominal CT images have deficiencies in extracting liver edge contour features, resulting in limited segmentation accuracy. Especially when there are lesions in other organs around the liver, the possibility of missegmentation increases, and the design of traditional edge operators is complex and computationally expensive. high.
An auxiliary neural network is used to help the segmentation neural network extract the edge features of the target organ. By generating edge grading output, it represents the multi-level annular area of the target organ from the inner center area to the edge contour area and its spatial correlation. It is combined with the distance transformation map for grading and simplification. Network structure to improve segmentation effect.
It improves the accuracy and calculation speed of liver segmentation, reduces mis-segmentation, consumes less parameters and calculations, and can distinguish organ lesions and liver areas around the liver, which is better than existing liver segmentation methods.
Smart Images

Figure CN118864844A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of using neural networks to process medical images, and in particular to a method for training a segmentation neural network, and a medical image segmentation method and device. Background Art
[0002] Liver cirrhosis and liver cancer are two of the top 20 causes of death worldwide. Automatic segmentation of the liver region in abdominal CT images can help doctors diagnose liver-related diseases and develop treatment plans. The quality of abdominal CT images is limited by imaging limitations, and the edges between organs may become blurred, hindering accurate segmentation of the liver region.
[0003] Compared with traditional segmentation methods, neural network-based liver segmentation methods for abdominal CT images have higher accuracy. The U-shaped neural network structure containing an encoder and a decoder has been shown to be able to segment the liver region well. However, the feature extraction ability of the U-shaped structure is closely related to the network structure design. In order to improve its feature extraction ability, previous studies have attempted to integrate the classic neural network architecture into the U-shaped architecture, such as combining it with a residual network architecture or a VGG network architecture. In addition, the number of encoders and decoders is increased to form a multi-task architecture, and the U-shaped architecture is reused to form a cascaded U-shaped architecture. Although these methods can improve the segmentation of the liver region in abdominal CT images, they lack an effective design for extracting the edge contour features of the liver, resulting in limited segmentation accuracy when the liver edge is blurred. If there are lesions of other organs around the liver in the abdominal CT image, the possibility of mis-segmentation may be further increased. Edge features are effective features for segmenting the target of interest. A segmentation method combined with edge feature extraction has been shown to further improve the accuracy of liver region segmentation in abdominal CT images. This method combines a multi-scale transformer to form a dual encoder U-shaped structure, and uses the traditional Sobel operator to increase the network structure's attention to edge features. This method performs well in segmenting the liver region, but traditional edge operators still have difficulty distinguishing the liver edge when faced with the above problems, and their design is complex and the computational cost is relatively high. Summary of the invention
[0004] According to one aspect of an embodiment of the present disclosure, a method for training a segmentation neural network is provided, wherein the segmentation neural network is used to process a medical image to generate a segmentation output, the medical image depicting a tissue region of a human body, and the segmentation output includes a score characterizing whether each pixel in the medical image corresponds to the interior of a target organ; the method includes:
[0005] receiving a training medical image;
[0006] Processing training medical images using a segmentation neural network to generate segmentation output;
[0007] Processing the intermediate output of the segmentation neural network using an auxiliary neural network to generate an edge classification output, the edge classification output comprising: a multi-level annular region characterizing the target organ from an inner central region to an edge contour region, and a classification value of the spatial correlation between each level of the annular region and the edge contour region;
[0008] Determine the segmentation loss and grading loss of the training medical image, wherein the segmentation loss is the error value between the score of whether each pixel in the training medical image corresponds to the interior of the target organ and the target score, and the target score defines whether the pixel corresponds to the interior of the target organ; the grading loss is the error value between the grading value of the pixel inside the target organ and the target grading value, and the target grading value defines the spatial correlation between the multi-level annular area inside the target organ and each level of the annular area and the edge contour area;
[0009] The network parameters of the segmentation neural network and the auxiliary neural network are adjusted based on the segmentation loss and the classification loss.
[0010] In some embodiments, the segmentation neural network includes a coding block sequence, a decoding block sequence, and a connection block, wherein the connection block connects the terminal coding block in the coding block sequence with the initial decoding block in the decoding block sequence; the auxiliary neural network includes a feature conversion module and an auxiliary decoding block sequence, wherein:
[0011] The intermediate output of the segmentation neural network is processed using an auxiliary neural network to generate edge classification outputs, including:
[0012] The feature conversion module performs feature conversion on the output of the connection block to generate a conversion output so that the auxiliary neural network extracts features suitable for generating edge classification output;
[0013] Each auxiliary decoding block in the auxiliary decoding block sequence processes a corresponding auxiliary decoding block input to generate an edge-leveled output; wherein,
[0014] The auxiliary decoding block input of the initial auxiliary decoding block in the auxiliary decoding block sequence includes: the conversion output, the coding block output of the terminal coding block, and the decoding block output of the initial decoding block;
[0015] The auxiliary decoding block input of the auxiliary decoding block after the initial auxiliary decoding block includes: the encoding block output of the corresponding encoding block, the decoding block output of the corresponding decoding block, and the auxiliary decoding block output of its previous auxiliary decoding block.
[0016] In some embodiments, the feature conversion module includes a fully connected layer, a feature recombination layer and a convolutional layer, wherein: the feature conversion module performs feature conversion on the output of the connection block to generate a conversion output, including: the fully connected layer performs feature mapping on the output of the connection block to output a one-dimensional sequence; the feature recombination layer reorganizes the one-dimensional sequence into a feature map of at least two channels; the convolutional layer convolves the feature map to generate a multi-channel feature map to obtain a conversion output.
[0017] In some embodiments, each auxiliary decoding block includes a bilinear interpolation module, and the bilinear interpolation module is used to perform bilinear interpolation up-sampling on the auxiliary decoding block input of the auxiliary decoding block.
[0018] In some embodiments, generating the edge classification output includes: performing a 1×1 convolution on the auxiliary decoding block output of the terminal auxiliary decoding block in the auxiliary decoding block sequence, and performing a ReLU activation on the convolution result to obtain the edge classification output.
[0019] In some implementations, the method further includes: generating a target grading value, including:
[0020] Based on the distance from the inner center to the edge contour of the target organ in the training medical image, a distance transformation map of the target organ is generated, wherein the pixel value of each pixel in the distance transformation map corresponds to the distance;
[0021] The distance transformation map is graded, including: for each pixel inside the target organ, based on the pixel value of the pixel and the pixel value range corresponding to each grade in multiple grades, determining the grade corresponding to the pixel, and setting the target grade value of the pixel to the grade value of the grade corresponding to the pixel.
[0022] In some embodiments, grading the distance transformation map also includes: normalizing the pixel value of each pixel in the distance transformation map to 0 to 1; reversing the normalized pixel value, and the reversal method is: x2=1-x1, wherein x1 represents the normalized pixel value, and x2 represents the reversed pixel value; wherein, for each pixel inside the target organ, the grade corresponding to the pixel is determined based on the pixel value after the pixel is reversed and the pixel value range corresponding to each grade in multiple grades.
[0023] According to another aspect of an embodiment of the present disclosure, a medical image segmentation method is provided, comprising: receiving a medical image; processing the medical image using a segmentation neural network to generate a segmentation output, wherein the medical image depicts tissue regions of a human body, and the segmentation output comprises a score representing whether each pixel in the medical image corresponds to the interior of a target organ; wherein the segmentation neural network is trained according to the above-mentioned method.
[0024] According to another aspect of an embodiment of the present disclosure, there is provided an apparatus for training a segmentation neural network, the segmentation neural network being used to process a medical image to generate a segmentation output, the medical image depicting a tissue region of a human body, the segmentation output comprising a score characterizing whether each pixel in the medical image corresponds to the interior of a target organ; the apparatus comprising:
[0025] A receiving module, used for acquiring training medical images;
[0026] Processing modules for:
[0027] Processing training medical images using a segmentation neural network to generate segmentation output;
[0028] Using an auxiliary neural network to process the intermediate output of the segmentation neural network to generate an edge classification output, the edge classification output comprising: a multi-level annular region characterizing the target organ from an inner central region to an edge contour region, and a classification value of the spatial correlation between each level of the annular region and the edge contour region;
[0029] Determine the segmentation loss and grading loss of the training medical image, wherein the segmentation loss is the error value between the score of whether each pixel in the training medical image corresponds to the interior of the target organ and the target score, and the target score defines whether the pixel corresponds to the interior of the target organ; the grading loss is the error value between the grading value of the pixel inside the target organ and the target grading value, and the target grading value defines the spatial correlation between the multi-level annular area inside the target organ and each level of the annular area and the edge contour area;
[0030] The network parameters of the segmentation neural network and the auxiliary neural network are adjusted based on the segmentation loss and the classification loss.
[0031] According to another aspect of an embodiment of the present disclosure, a medical image segmentation device is provided, comprising: a receiving module for receiving a medical image; a processing module for processing the medical image using a segmentation neural network to generate a segmentation output, wherein the medical image depicts a tissue region of a human body, and the segmentation output comprises a score representing whether each pixel in the medical image corresponds to the interior of a target organ; wherein the segmentation neural network is trained according to the above-mentioned method.
[0032] According to another aspect of an embodiment of the present disclosure, there is provided an electronic device, including: a processor; and a memory storing a program, wherein the program includes instructions, and when the instructions are executed by the processor, the processor executes the above-mentioned method.
[0033] According to another aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above-mentioned method.
[0034] One or more technical solutions provided in the embodiments of the present disclosure can improve the segmentation effect of the segmentation neural network by using an auxiliary neural network to help the segmentation neural network better extract the edge features of the target organ during training. In addition, the edge mechanism of the auxiliary neural network uses graded values to characterize the multi-level annular areas from the internal central area to the edge contour area of the target organ, as well as the spatial correlation between each level of the annular area and the edge contour area. This is different from previous studies that use the distance transformation map of the edge contour area or the object as a task, so that the segmentation neural network can better extract edge features and pay attention to the relationship between annular areas at different levels. Through one or more technical solutions provided in the embodiments of the present disclosure, a better segmentation effect can be achieved through a segmentation neural network with a relatively simple structure, thereby improving the calculation speed of medical image segmentation. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0036] Figure 1 A flow chart of a method for training a segmentation neural network according to an embodiment of the present disclosure is shown;
[0037] Figure 2 A schematic diagram showing a segmentation neural network and an auxiliary neural network according to an exemplary embodiment of the present disclosure is shown;
[0038] Figure 3 A flowchart of a method for determining a target ranking value according to an exemplary embodiment of the present disclosure is shown;
[0039] Figure 4 An exemplary distance transformation diagram according to an exemplary embodiment of the present disclosure is shown;
[0040] Figure 5 An exemplary abdominal CT image, a true liver segmentation image, and an edge grading image according to an exemplary embodiment of the present disclosure are shown;
[0041] Figure 6 A flowchart of a medical image segmentation method according to an embodiment of the present disclosure is shown;
[0042] Figure 7 A structural block diagram of a device for training a segmentation neural network according to an embodiment of the present disclosure is shown;
[0043] Figure 8 A structural block diagram of a medical image segmentation device according to an embodiment of the present disclosure is shown;
[0044] Fig. 9 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0045] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0046] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0047] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0048] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0049] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0050] It should be noted that the execution subject of the method provided in the embodiment of the present disclosure may be one or more electronic devices, which is not limited in the present disclosure; wherein, the electronic device may be a terminal (i.e., a client) or a server, then when the execution subject includes multiple electronic devices, and the multiple electronic devices include at least one terminal and at least one server, the EKMA curve graph generation method provided in the embodiment of the present disclosure may be jointly executed by the terminal and the server. Accordingly, the terminal mentioned here may include but is not limited to: smart phones, tablet computers, laptop computers, desktop computers, smart watches, smart voice interaction devices, smart home appliances, vehicle terminals, and the like. The server mentioned here may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing (cloud computing), cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and basic cloud computing services such as big data and artificial intelligence platforms, and the like.
[0051] The segmentation neural network in the disclosed embodiments is used to process a medical image to generate a segmentation output, the medical image depicting a tissue region of a human body, and the segmentation output includes a score characterizing whether each pixel in the medical image corresponds to the interior of a target organ. The medical image can be generated using any appropriate medical imaging modality (e.g., Computed Tomography (CT), Magnetic Resonance Imaging (MRI), or Ultrasound (US)). Exemplarily, the tissue region may include the abdomen, and the target organ may include the liver. The segmentation neural network processes a medical image depicting the abdomen of a human body to generate a segmentation output, and segments out the liver in the medical image.
[0052] The present disclosure provides a method for training a segmentation neural network. Figure 1 A flow chart of a method for training a segmentation neural network according to an embodiment of the present disclosure is shown. Figure 1 As shown, the method includes steps S101 to S105.
[0053] Step S101, receiving a training medical image.
[0054] The training medical images may be generated using any suitable medical imaging modality, such as computed tomography (CT), magnetic resonance imaging (MRI), or ultrasound (US).
[0055] Step S102, using a segmentation neural network to process the training medical image to generate a segmentation output.
[0056] The segmentation neural network is used to process training medical images to generate segmentation outputs, where the medical images depict tissue regions of the human body, and the segmentation outputs include a score characterizing whether each pixel in the training medical images corresponds to the interior of a target organ.
[0057] Neural network technology is widely used in object segmentation of medical images. In the embodiments of the present disclosure, the segmentation neural network is not limited. As an implementation, the segmentation neural network can be a U-shaped neural network structure including an encoder and a decoder. The encoder is used to encode the training medical image, and the decoder is used to decode the encoder's code to generate a segmentation output.
[0058] Step S103, using the auxiliary neural network to process the intermediate output of the segmentation neural network to generate an edge classification output.
[0059] In step S103, the edge grading output includes: multiple levels of annular regions representing the target organ from the inner central region to the edge contour region, and a grading value of the spatial correlation between each level of annular region and the edge contour region.
[0060] The above-mentioned edge mechanism in the embodiment of the present disclosure represents the multi-level annular areas from the internal central area to the edge contour area of the target organ through graded values, as well as the spatial correlation between each level of the annular area and the edge contour area, and the spatial correlation between the annular areas. This is different from previous studies that used distance transformation maps of edge contour areas or objects as tasks, and enables the segmentation neural network to better extract edge features and pay attention to the relationship between annular areas at different levels.
[0061] The target edge classification mechanism divides the interior of the target into different shape regions. This classification annular region can reflect the characteristics of the edge contour region, as well as the spatial correlation between the multi-level annular regions and the target internal edge contour region, and the correlation between the annular regions. This classification mechanism converts the internal relationship of a single pixel into the internal relationship of the internal region of the object. This can also reduce the impact of the distance map transfer method on feature extraction.
[0062] In the embodiments of the present disclosure, the auxiliary neural network is not limited. As an implementation mode, the auxiliary neural network is adapted to the segmentation neural network, for example, the segmentation neural network is a U-shaped neural network structure including an encoder and a decoder, and the auxiliary neural network can be a neural network structure including a decoder (referred to as an auxiliary decoder).
[0063] Step S104, determining the segmentation loss and classification loss of the training medical image.
[0064] In step S104, the segmentation loss is the error value between the score of whether each pixel in the training medical image corresponds to the interior of the target organ and the target score, and the target score defines whether the pixel corresponds to the interior of the target organ.
[0065] In step S102, the training medical image is processed using a segmentation neural network to generate a segmentation output, which can be regarded as a binary classification of the pixels of the training medical image, that is, whether the pixel belongs to the target organ, and the training medical image is divided into a non-target organ and a background image. As an implementation method, the segmentation loss in step S104 can be a binary cross entropy loss, which measures the distance between the score output by the segmentation neural network and the target score, and can well measure the similarity between the score distribution predicted by the segmentation neural network and the actual score distribution.
[0066] In step S104, the grading loss is the error value between the grading value of the pixel inside the target organ and the target grading value, and the target grading value defines the multi-level annular area inside the target organ and the spatial correlation between each level of the annular area and the edge contour area.
[0067] As an implementation method, the classification loss may be a mean square error loss, where the mean square error is the square average of the difference between the classification value output by the auxiliary neural network and the target classification value.
[0068] Step S105, adjusting the network parameters of the segmentation neural network and the auxiliary neural network based on the segmentation loss and the classification loss.
[0069] In step S105, the network parameters of the segmentation neural network and the auxiliary neural network are adjusted based on the segmentation loss and the grading loss. The multi-level annular areas of the target organ from the internal central area to the edge contour area, as well as the spatial correlation between each level of the annular area and the edge contour area, and the spatial correlation between the annular areas, affect the network parameters of the segmentation neural network, so that the trained segmentation neural network can better extract the edge features of the target organ.
[0070] As an embodiment, adjusting the network parameters of the segmentation neural network and the auxiliary neural network based on the segmentation loss and the classification loss includes: determining the total loss of the training medical image based on the segmentation loss and the classification loss of the training medical image, and adjusting the network parameters of the segmentation neural network and the auxiliary neural network based on the total loss. Exemplarily, the total loss is the sum of the segmentation loss and the classification loss, or the total loss is the weighted average of the segmentation loss and the classification loss.
[0071] For example, taking liver segmentation as an example, the segmentation neural network and the auxiliary neural network output a liver prediction probability map P(x) and an edge grading prediction map EG(x) respectively. liver and L EGThey represent segmentation loss and classification loss respectively, and the loss functions are binary cross entropy loss and mean square error loss respectively. The total loss function L total As shown in formula (1):
[0072]
[0073] L total -L liver +L EG (1)
[0074] Where H and W are the height and width of the output image, y ij and They are P L(x) and The ground truth value (target value) at the coordinate (i, j), p ij and They are the predicted values at coordinate (i, j) in the liver prediction probability map P(x) and the edge grading prediction map EG(x), respectively.
[0075] In the embodiments of the present disclosure, an auxiliary neural network is used to help the segmentation neural network better extract edge features of the target organ during training, which can improve the segmentation effect of the segmentation neural network. In addition, the edge mechanism of the auxiliary neural network uses graded values to characterize the multi-level annular areas from the internal central area to the edge contour area of the target organ, as well as the spatial correlation between each level of the annular area and the edge contour area. This is different from previous studies that use distance transformation maps of edge contour areas or objects as tasks, so that the segmentation neural network can better extract edge features and pay attention to the relationship between annular areas at different levels. Through one or more technical solutions provided in the embodiments of the present disclosure, a better segmentation effect can be achieved through a segmentation neural network with a relatively simple structure, thereby improving the calculation speed of medical image segmentation.
[0076] In some embodiments, Figure 2 As shown, the segmentation neural network 100 may include a coding block sequence 101, a decoding block sequence 102, and a connection block 103, wherein the connection block 103 connects the terminal coding block in the coding block sequence 101 with the initial decoding block in the decoding block sequence 102. The coding block sequence 101 performs multiple coding processes on the sequentially trained medical images and obtains a coding feature map. Exemplarily, the coding process includes sequentially performing downsampling and multiple convolution operations. The decoding block sequence 102 performs multiple decoding processes in sequence to generate a segmentation output, and the decoding process includes sequentially performing upsampling and multiple convolution operations.
[0077] As an implementation method, the coding block sequence 101 includes a plurality of coding blocks connected in sequence, such as Figure 2As shown, it includes sequentially connected coding blocks 101-1, coding blocks 101-2, coding blocks 101-3 and coding blocks 101-4, wherein coding block 101-1 is the initial coding block of coding block sequence 101, and coding block 101-4 is the terminal coding block in coding block sequence 101. Coding block 101-1 processes the medical image to generate a corresponding coding block output, and coding block 101-2, coding block 101-3 and coding block 101-4 respectively process the coding block output of the previous coding block to generate their own coding block output. Each coding block after the initial coding block generates its own coding block output by sequentially performing maximum pooling (Maxpooling) downsampling and multiple convolutions on its own coding block input.
[0078] Exemplary, reference Figure 2 As shown, coding block 101-1 and coding block 101-2 use the same convolution structure, both including 2 convolution layers, and batch normalization (BN) and ReLU function activation are performed after each convolution layer. Coding block 101-3, coding block 101-4 and connection block 103 use the same convolution structure, both including 3 convolution layers, and batch normalization and ReLU function activation are performed after each convolution layer. In this example, the aforementioned convolution layers use a 3×3 convolution kernel for each layer. Coding block 101-2, coding block 101-3 and coding block 101-4 perform maximum pooling downsampling on the coding block output of its previous coding block. Coding block 101-1, coding block 101-2, coding block 101-3, coding block 101-4 and connection block 103 extract the features F(x) of each layer as shown in formula (2):
[0079] F(x)=β(BN(ConvN(·))) (2)
[0080] Among them, ConvN(·) is a convolutional layer with a convolution kernel size of N×N (here N=3); BN(-) is batch normalization; β(-) is an activation function, and the ReLU activation function is used here.
[0081] refer to Figure 2 As shown, from coding block 101-1, coding block 101-2, coding block 101-3, coding block 101-4 to connection block 103, the number of feature channels is 32-64-128-256-512. For a training medical image with a spatial resolution of H×W and C channels (C=1), the output of connection block 103 is a set of feature maps with 512 channels and a spatial resolution of H / 16×W / 16.
[0082] As an implementation, the decoding block sequence 102 includes a plurality of decoding blocks connected in sequence, such as Figure 2As shown, it includes decoding blocks 102-1, 102-2, 102-3 and 102-4 connected in sequence, wherein decoding block 102-4 is the initial decoding block of the decoding block sequence 102, and decoding block 102-1 is the terminal decoding block of the decoding block sequence 102. The decoding blocks are connected with the coding blocks of the same layer through skip connections, wherein the decoding block input of decoding block 102-4 includes the coding block output of coding block 101-4 and the output of connection block 103, the decoding block input of decoding block 102-3 includes the coding block output of coding block 101-3 and the decoding block output of decoding block 102-4, the decoding block input of decoding block 102-2 includes the coding block output of coding block 101-2 and the decoding block output of decoding block 102-3, and the decoding block input of decoding block 102-1 includes the coding block output of coding block 101-1 and the decoding block output of decoding block 102-2. Each decoding block generates its own decoding block output by sequentially upsampling the decoding block output of its previous decoding block by bilinear interpolation, concatenating the upsampling result with the encoding block output of the encoding block of the same layer, and performing multiple convolutions on the concatenated result.
[0083] Exemplary, reference Figure 2 As shown, decoding block 102-3 and decoding block 102-4 use the same convolution structure, both including 3 convolution layers, and batch normalization and ReLU function activation are performed after each convolution layer. Decoding block 102-2 and decoding block 102-1 use the same convolution structure, both including 2 convolution layers, and batch normalization and ReLU function activation are performed after each convolution layer. Decoding block 102-4 performs bilinear interpolation upsampling on the output of connection block 103, and connects the encoding block output of the same-level encoding block (encoding block 101-4) in series with the upsampling result, and then performs corresponding convolution processing; decoding block 102-3 performs bilinear interpolation upsampling on the output of decoding block 102-3, and connects the encoding block output of the same-level encoding block (encoding block 101-3) in series with the upsampling result, and then performs corresponding convolution processing; decoding block 102-2 performs bilinear interpolation upsampling on the output of decoding block 102-3, and connects the encoding block output of the same-level encoding block (encoding block 101-2) in series with the upsampling result, and then performs corresponding convolution processing; decoding block 102-1 performs bilinear interpolation upsampling on the output of decoding block 102-2, and connects the encoding block output of the same-level encoding block (encoding block 101-1) in series with the upsampling result, and then performs corresponding convolution processing. The output layer of the decoding block 102-1 adopts a 1×1 convolution, followed by a Sigmoid activation operation, and finally outputs a liver segmentation probability map with the same spatial resolution as the training medical image.
[0084] As an implementation method, Figure 2As shown, the auxiliary neural network 200 may include a feature conversion module 201 and an auxiliary decoding block sequence 202. In step S103, the auxiliary neural network is used to process the intermediate output of the segmentation neural network to generate an edge classification output, including: using the feature conversion module 201 to perform feature conversion on the output of the connection block 103 to generate a conversion output, so that the auxiliary neural network extracts features suitable for generating edge classification outputs; each auxiliary decoding block in the auxiliary decoding block sequence 202 processes a corresponding auxiliary decoding block input to generate an edge classification output; wherein the auxiliary decoding block input of the initial auxiliary decoding block in the auxiliary decoding block sequence includes: the conversion output, the encoding block output of the terminal encoding block, and the decoding block output of the initial decoding block; the auxiliary decoding block input of the auxiliary decoding block after the initial auxiliary decoding block includes: the encoding block output of the corresponding encoding block, the decoding block output of the corresponding decoding block, and the auxiliary decoding block output of its previous auxiliary decoding block. The auxiliary decoding block input is a concatenation of the corresponding multiple parts.
[0085] like Figure 2 As shown, the auxiliary decoding block sequence 202 may include auxiliary decoding block 202-1, auxiliary decoding block 202-2, auxiliary decoding block 202-3 and auxiliary decoding block 202-4, wherein auxiliary decoding block 202-4 is the initial auxiliary decoding block of the auxiliary decoding block sequence 202, and auxiliary decoding block 202-1 is the terminal auxiliary decoding block of the auxiliary decoding block sequence 202. Each auxiliary decoding block generates an auxiliary decoding block output by sequentially performing bilinear interpolation upsampling and multiple convolutions on its own auxiliary decoding block input.
[0086] As an implementation mode, the feature conversion module 201 includes a fully connected layer, a feature recombination layer and a convolutional layer, wherein: the feature conversion module 201 performs feature conversion on the output of the connection block to generate a conversion output, including: the fully connected layer performs feature mapping on the output of the connection block to output a one-dimensional sequence; the feature recombination layer reorganizes the one-dimensional sequence into a feature map of at least two channels; the convolutional layer convolves the feature map of the at least two channels to generate a multi-channel feature map to obtain a conversion output, wherein batch normalization and ReLU function activation are performed after the convolutional layer.
[0087] As an implementation, the auxiliary neural network 200 further includes an output layer 203, and the output layer 203 may generate an edge grading output by: performing a 1×1 convolution on the output of the terminal auxiliary decoding block in the auxiliary decoding block sequence 202, and performing a ReLU (Rectified Linear unit) activation on the convolution result to obtain an edge grading output consistent with the spatial resolution of the training medical image, wherein the pixel value of each pixel inside the target organ in the edge grading output corresponds to the predicted grading value, which constitutes a multi-level annular area from the central area inside the target organ to the edge contour area. The output layer 203 may belong to the terminal auxiliary decoding block of the auxiliary decoding block sequence 202, i.e., the auxiliary decoding block 202-1.
[0088] For example, Figure 2 As shown, auxiliary decoding block 202-1, auxiliary decoding block 202-2, auxiliary decoding block 202-3 and auxiliary decoding block 202-4 use the same convolution structure, which includes 1×1 convolution layer, 3×3 convolution layer and 1×1 convolution layer connected in sequence, and batch normalization and ReLU function activation are performed after each convolution layer. This lightweight auxiliary neural network can effectively improve the liver segmentation performance, and has a simple structure and fast calculation speed.
[0089] In the embodiment of the present disclosure, during the training phase, according to Figure 1 The training method shown in the figure considers the segmentation neural network and the auxiliary neural network as a whole training. When performing medical image segmentation, the segmentation neural network is used to process the medical image to generate a segmentation output, and the auxiliary neural network may not participate in the medical image segmentation.
[0090] like Figure 2 The neural network shown can be used to segment the liver region in abdominal CT images. The network structure enriches the feature extraction of the segmentation neural network by adding a lightweight auxiliary branch decoder. In addition, the edge grading mechanism of the target internal area is combined, and the obtained edge grading map is used as the task target of the auxiliary branch decoder. It improves the perception of the target edge features in the network architecture and can better distinguish the target area from the background. It can effectively reduce the missegmentation of the liver area, which is better than the existing liver segmentation method, and has smaller parameters and computational consumption. In addition, the segmentation neural network has a simple structure and has the potential for further expansion and enhancement. In particular, the segmentation neural network trained by this training method can distinguish between organ lesions around the liver and the liver area. The pixels in the lesion area have similar characteristics to the tumor pixels inside the liver area, while the existing methods mistakenly identify them as pixels inside the liver area.
[0091] In some implementations, the above method further includes: generating a target grading value. Figure 3 A flow chart of a method for generating a target classification value provided by an embodiment of the present disclosure is shown. Figure 3 As shown, the method includes step S301 to step S302.
[0092] Step S301, based on the distance from the inner center to the edge contour of the target organ in the training medical image, a distance transformation map of the target organ is generated, wherein the pixel value of each pixel in the distance transformation map corresponds to the corresponding distance.
[0093] In this embodiment, the distance transformation in step S301 may adopt chessboard distance transformation (also called D4 distance transformation). Figure 4 An exemplary chessboard distance transform is shown, see Figure 4 As shown, before the transformation, the value of the edge contour pixel of the target organ is 0, and the value of the pixel inside the target organ is 1; after the transformation, the value of the pixel is the corresponding distance, from the center of the target organ to the edge contour, the farther away from the edge contour, the greater the distance, that is, in the distance transformation diagram, from the center of the target organ to the edge contour, the farther away from the edge contour, the greater the pixel value. The pixel value of the pixel can be equal to the distance value. Among them, the image before the transformation can be obtained by binarizing the training medical image, that is, the pixel value of the pixel in the target organ area is changed to 1, and the pixel value of the pixel in the area outside the target organ area (called the background area) is changed to 0.
[0094] Step S302, grading the distance transformation map, including: for each pixel inside the target organ, based on the pixel value of the pixel and the pixel value range corresponding to each grade in multiple grades, determining the grade corresponding to the pixel, and setting the target grade value of the pixel to the grade value of the grade corresponding to the pixel.
[0095] Through step S302, the pixel values of pixels in the same pixel value range can be set to the grading value corresponding to the pixel range, so that the pixel values of these pixels are equal. From the perspective of the visualized image, the pixel values of these pixels are equal, forming a ring area corresponding to the edge contour.
[0096] As an implementation method, in step S302, the pixel value (i.e., distance) of each pixel in the distance transformation map may be normalized to 0 to 1. In order to highlight the edge contour, the normalized pixel value may be reversed, and the reversal method is: x2=1-x1, wherein x1 represents the normalized pixel value, and x2 represents the reversed pixel value. After the reversal, the pixel value of the pixel of the edge contour becomes 1, and the pixel value of the pixel farther away from the edge contour becomes smaller.
[0097] Further, the normalized distance transform image after inversion is classified. For example, if the pixel value of the pixel in the normalized distance transform image after inversion is less than or equal to 0.5, the pixel value of the pixel is set to 0.5 (i.e., the classification value). For pixels between 0.5 and 1, the pixels are divided into 0.5-0.6 (classification value is 0.6), 0.6-0.7 (classification value is 0.7), 0.7-0.8 (classification value is 0.8), 0.8-0.9 (classification value is 0.9), 0.9-1.0 (classification value is 1.0) with a step size of 0.1. If the pixel value of the pixel is greater than 0.5 and less than or equal to 0.6, the pixel value of the pixel is set to 0.6; if the pixel value of the pixel is greater than 0.6 and less than or equal to 0.7, the pixel value of the pixel is set to 0.7. By analogy, the pixels can be classified into the aforementioned 6 classifications, and their pixel values are set to the corresponding classification values.
[0098] Furthermore, the grading result is graphically displayed. For example, by multiplying the graded pixel value by 255, a grayscale image with a pixel value between 0 and 255 can be obtained. Correspondingly, the target grading value can be the aforementioned 0.5, 0.6, 0.7, 0.8, 0.9 and 1.0, or the value after multiplying it by 255. In addition, the grading value corresponding to the grading can be set to the product of 0.5, 0.6, 0.7, 0.8, 0.9 and 1.0 and 255. This embodiment is not limited to this. Both methods can define the multi-level annular area inside the target organ and the spatial correlation between each level of the annular area and the edge contour area.
[0099] refer to Figure 5 As shown, Figure 5 In the figure, a is a training medical image, which is an abdominal CT image. Figure 5 In the figure b, the real liver segmentation is shown. The black area (pixel value is 0) is the background image, and the white area (pixel value is 255) is the area where the liver is located. Figure 5 In the figure c, the edge classification diagram is shown. The black area (pixel value is 0) is the background image, the central area of the liver is gray, and the pixels are all gray with 127 pixels (obtained from the aforementioned 0.5*255). A multi-level annular area is formed from the gray area to the edge contour area. The pixel values inside the annular area are the same, and the pixel values between the annular areas increase from the edge contour to the central area of the liver. Continuing from the above example, they are 255, 229 (taken from 0.9*255), 204 (taken from 0.8*255), 178 (taken from 0.7*255), and 153 (taken from 0.6*255). Such classification can achieve multi-level annular distribution in targets with larger areas, while for small targets, more attention is paid to the central area. This is because the edge contours of targets with larger areas are uneven, and the multi-level annular area can reflect the changing trend from the central area to the edge contour area. The edge contours of small targets are relatively smooth, and the characteristics of their central areas may be more important.
[0100] According to an embodiment of the present disclosure, a medical image segmentation method is also provided. Figure 6 As shown, the medical image segmentation method includes steps S601 to S602.
[0101] Step S601, receiving a medical image.
[0102] Step S602: Process the medical image using a segmentation neural network to generate a segmentation output, wherein the segmentation neural network is trained according to the above-mentioned method.
[0103] Medical images depict tissue regions of the human body, and the segmentation output includes a score characterizing whether each pixel in the medical image corresponds to the interior of the target organ. The medical image can be generated using any appropriate medical imaging modality (e.g., computed tomography (CT), magnetic resonance imaging (MRI), or ultrasound (US)).
[0104] The segmentation neural network processes medical images to generate segmentation outputs, which is similar to the segmentation neural network processing training medical images. Please refer to the previous description of this manual and will not be repeated here.
[0105] According to an embodiment of the present disclosure, there is also provided a device for training a segmentation neural network, the segmentation neural network is used to process a medical image to generate a segmentation output, the medical image depicts a tissue region of a human body, and the segmentation output includes a score characterizing whether each pixel in the medical image corresponds to the interior of a target organ. The device for training a segmentation neural network can be a computer program (including program code) running in an electronic device. Figure 7 As shown, the device includes: a receiving module 701 and a processing module 702. The receiving module 701 is used to obtain a training medical image; the processing module 702 is used to:
[0106] Processing training medical images using a segmentation neural network to generate segmentation output;
[0107] Using an auxiliary neural network to process the intermediate output of the segmentation neural network to generate an edge classification output, the edge classification output comprising: a multi-level annular region characterizing the target organ from an inner central region to an edge contour region, and a classification value of the spatial correlation between each level of the annular region and the edge contour region;
[0108] Determine the segmentation loss and grading loss of the training medical image, wherein the segmentation loss is the error value between the score of whether each pixel in the training medical image corresponds to the interior of the target organ and the target score, and the target score defines whether the pixel corresponds to the interior of the target organ; the grading loss is the error value between the grading value of the pixel inside the target organ and the target grading value, and the target grading value defines the spatial correlation between the multi-level annular area inside the target organ and each level of the annular area and the edge contour area;
[0109] The network parameters of the segmentation neural network and the auxiliary neural network are adjusted based on the segmentation loss and the classification loss.
[0110] In some embodiments, the segmentation neural network includes a coding block sequence, a decoding block sequence, and a connection block, wherein the connection block connects the terminal coding block in the coding block sequence with the initial decoding block in the decoding block sequence; the auxiliary neural network includes a feature conversion module and an auxiliary decoding block sequence. The processing module 702 uses the auxiliary neural network to process the intermediate output of the segmentation neural network to generate an edge classification output, including:
[0111] The feature conversion module performs feature conversion on the output of the connection block to generate a conversion output so that the auxiliary neural network extracts features suitable for generating edge classification output;
[0112] Each auxiliary decoding block in the auxiliary decoding block sequence processes a corresponding auxiliary decoding block input to generate an edge-leveled output; wherein,
[0113] The auxiliary decoding block input of the initial auxiliary decoding block in the auxiliary decoding block sequence includes: the conversion output, the coding block output of the terminal coding block, and the decoding block output of the initial decoding block;
[0114] The auxiliary decoding block input of the auxiliary decoding block after the initial auxiliary decoding block includes: the encoding block output of the corresponding encoding block, the decoding block output of the corresponding decoding block, and the auxiliary decoding block output of its previous auxiliary decoding block.
[0115] In some embodiments, the feature conversion module includes a fully connected layer, a feature reorganization layer, and a convolution layer. The feature conversion module performs feature conversion on the output of the connection block to generate a conversion output, including: the fully connected layer performs feature mapping on the output of the connection block to output a one-dimensional sequence; the feature reorganization layer reorganizes the one-dimensional sequence into a feature map of at least two channels; the convolution layer convolves the feature map to generate a multi-channel feature map to obtain a conversion output.
[0116] In some embodiments, each auxiliary decoding block includes a bilinear interpolation module, and the bilinear interpolation module is used to perform bilinear interpolation up-sampling on the auxiliary decoding block input of the auxiliary decoding block.
[0117] In some implementations, the processing module 702 generates the edge classification output including: performing 1×1 convolution on the auxiliary decoding block output of the terminal auxiliary decoding block in the auxiliary decoding block sequence, and performing ReLU activation on the convolution result to obtain the edge classification output.
[0118] In some implementations, the processing module 702 is further configured to generate a target ranking value, including:
[0119] Based on the distance from the inner center to the edge contour of the target organ in the training medical image, a distance transformation map of the target organ is generated, wherein the pixel value of each pixel in the distance transformation map corresponds to the distance;
[0120] The distance transformation map is graded, including: for each pixel inside the target organ, based on the pixel value of the pixel and the pixel value range corresponding to each grade in multiple grades, determining the grade corresponding to the pixel, and setting the target grade value of the pixel to the grade value of the grade corresponding to the pixel.
[0121] As an implementation, the processing module 702 may normalize the pixel value (i.e., distance) of each pixel in the distance transformation map to 0 to 1. In order to highlight the edge contour, the normalized pixel value may be reversed in the following manner: x2=1-x1, where x1 represents the normalized pixel value and x2 represents the reversed pixel value. After the reversal, the pixel value of the pixel of the edge contour becomes 1, and the pixel value of the pixel farther from the edge contour becomes smaller.
[0122] Further, the normalized distance transform image after inversion is classified. For example, if the pixel value of the pixel in the normalized distance transform image after inversion is less than or equal to 0.5, the pixel value of the pixel is set to 0.5 (i.e., the classification value). For pixels between 0.5 and 1, the pixels are divided into 0.5-0.6 (classification value is 0.6), 0.6-0.7 (classification value is 0.7), 0.7-0.8 (classification value is 0.8), 0.8-0.9 (classification value is 0.9), 0.9-1.0 (classification value is 1.0) with a step size of 0.1. If the pixel value of the pixel is greater than 0.5 and less than or equal to 0.6, the pixel value of the pixel is set to 0.6; if the pixel value of the pixel is greater than 0.6 and less than or equal to 0.7, the pixel value of the pixel is set to 0.7. By analogy, the pixels can be classified into the aforementioned 6 classifications, and their pixel values are set to the corresponding classification values.
[0123] Furthermore, the grading result is graphically displayed. For example, by multiplying the graded pixel value by 255, a grayscale image with a pixel value between 0 and 255 can be obtained. Correspondingly, the target grading value can be the aforementioned 0.5, 0.6, 0.7, 0.8, 0.9 and 1.0, or the value after multiplying it by 255. In addition, the grading value corresponding to the grading can be set to the product of 0.5, 0.6, 0.7, 0.8, 0.9 and 1.0 and 255. This embodiment is not limited to this. Both methods can define the multi-level annular area inside the target organ and the spatial correlation between each level of the annular area and the edge contour area.
[0124] According to an embodiment of the present disclosure, a medical image segmentation device is also provided, which may be a computer program (including program code) running in an electronic device. Figure 8 As shown, the medical image segmentation device includes: a receiving module 801 for receiving a medical image; a processing module 802 for processing the medical image using a segmentation neural network to generate a segmentation output, the medical image depicts the tissue region of the human body, and the segmentation output includes a score representing whether each pixel in the medical image corresponds to the inside of the target organ; wherein the segmentation neural network is trained according to the above-mentioned method. The segmentation neural network processes the medical image to generate the segmentation output, which is similar to the segmentation neural network processing the training medical image, which can be referred to the previous description of this specification, and will not be repeated here.
[0125] Automatically segmenting the liver in abdominal CT images helps doctors diagnose and treat liver diseases. Previous studies on liver segmentation have rarely considered the use of edge features, which results in poor liver segmentation performance when facing abdominal CT images with blurred edges or lesions of other adjacent organs. The disclosed embodiment combines the advantages of the classic neural network architecture and uses feature mapping to form a new dual-task segmentation network. Figure 2 As shown. Different from the previous edge perception, the embodiment of the present disclosure uses the distance value to grade the internal area of the liver, which improves the sensitivity of the network to edge features and effectively reduces the impact of the above problems on the accuracy of liver segmentation. In addition, the segmentation neural network and auxiliary neural network of the embodiment of the present disclosure have simple structures, small number of parameters, and fast inference speed.
[0126] According to one embodiment of the present invention, Figure 7 and Figure 8Each unit in the device shown can be separately or completely combined into one or several other units to form, or one (some) of the units can be further divided into multiple functionally smaller units to form, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present invention. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be realized by multiple units, or the functions of multiple units can be realized by one unit. In other embodiments of the present invention, any seismic inversion device can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units.
[0127] According to another embodiment of the present invention, the program can be executed by running a program on a general electronic device such as a computer including a central processing unit (CPU), a random access memory medium (RAM), a read-only memory medium (ROM), and other processing elements and storage elements. Figure 1 , Figure 3 or Figure 6 A computer program (including program code) for each step involved in the corresponding method shown in Figure 7 and Figure 8 The corresponding apparatus shown in and the method for implementing the embodiment of the present invention. The computer program can be recorded on, for example, a computer storage medium, and loaded into the above-mentioned electronic device through the computer storage medium and run therein.
[0128] The exemplary embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and the computer program is used to cause the electronic device to perform the method according to the embodiment of the present disclosure when executed by the at least one processor.
[0129] The exemplary embodiments of the present disclosure also provide a non-transitory computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is used to cause the computer to perform the method according to the embodiments of the present disclosure.
[0130] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor of a computer, the computer is used to enable the computer to perform the method according to the embodiments of the present disclosure.
[0131] refer to Fig. 9, a block diagram of an electronic device 900 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0132] like Fig. 9 As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0133] A plurality of components in the electronic device 900 are connected to the I / O interface 905, including: an input unit 906, an output unit 907, a storage unit 908, and a communication unit 909. The input unit 906 may be any type of device capable of inputting information to the electronic device 900, and the input unit 906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 908 may include, but is not limited to, a disk, an optical disk. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0134] The computing unit 901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above. For example, in some embodiments, the method mentioned in this specification may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 908. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. In some embodiments, the computing unit 901 may be configured to perform the method mentioned in this specification by any other appropriate means (e.g., by means of firmware).
[0135] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0136] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0137] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.
[0138] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0139] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0140] A computer system may include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship to each other.
Claims
1. A method for training a segmentation neural network, characterized in that: The segmentation neural network is used to process a medical image to generate a segmentation output, wherein the medical image depicts a tissue region of a human body, and the segmentation output includes a score characterizing whether each pixel in the medical image corresponds to the interior of a target organ; the method comprises: receiving a training medical image; processing the training medical images using the segmentation neural network to generate the segmentation output; Processing the intermediate output of the segmentation neural network using an auxiliary neural network to generate an edge grading output, wherein the edge grading output includes: a multi-level annular region characterizing the target organ from an inner central region to an edge contour region, and a grading value of a spatial correlation between each level of the annular region and the edge contour region; Determining the segmentation loss and the grading loss of the training medical image, wherein the segmentation loss is the error value between the score of whether each pixel in the training medical image corresponds to the interior of the target organ and the target score, and the target score defines whether the pixel corresponds to the interior of the target organ; the grading loss is the error value between the grading value of the pixel inside the target organ and the target grading value, and the target grading value defines the spatial correlation between the multi-level annular area inside the target organ and each level of the annular area and the edge contour area; The network parameters of the segmentation neural network and the auxiliary neural network are adjusted based on the segmentation loss and the classification loss.
2. The method according to claim 1, characterized in that The segmentation neural network includes a coding block sequence, a decoding block sequence and a connection block, wherein the connection block connects the terminal coding block in the coding block sequence and the initial decoding block in the decoding block sequence; the auxiliary neural network includes a feature conversion module and an auxiliary decoding block sequence, wherein: Processing the intermediate output of the segmentation neural network using an auxiliary neural network to generate an edge classification output includes: The feature conversion module performs feature conversion on the output of the connection block to generate a conversion output, so that the auxiliary neural network extracts features suitable for generating the edge classification output; Each auxiliary decoding block in the auxiliary decoding block sequence processes a corresponding auxiliary decoding block input to generate the edge classification output; wherein, The auxiliary decoding block input of the initial auxiliary decoding block in the auxiliary decoding block sequence includes: the conversion output, the coding block output of the terminal coding block, and the decoding block output of the initial decoding block; The auxiliary decoding block input of the auxiliary decoding block after the initial auxiliary decoding block includes: the encoding block output of the corresponding encoding block, the decoding block output of the corresponding decoding block, and the auxiliary decoding block output of its previous auxiliary decoding block.
3. The method according to claim 2, characterized in that The feature conversion module includes a fully connected layer, a feature reorganization layer and a convolutional layer, wherein: The feature conversion module performs feature conversion on the output of the connection block to generate a conversion output, including: The fully connected layer performs feature mapping on the output of the connection block to output a one-dimensional sequence; The feature reorganization layer reorganizes the one-dimensional sequence into feature maps of at least two channels; The convolution layer convolves the feature map to generate a multi-channel feature map to obtain the conversion output.
4. The method according to claim 2, characterized in that Each of the auxiliary decoding blocks comprises a bilinear interpolation module, and the bilinear interpolation module is used to perform bilinear interpolation up-sampling on the auxiliary decoding block input of the auxiliary decoding block; and / or Generating the edge classification output includes: performing 1×1 convolution on the auxiliary decoding block output of the terminal auxiliary decoding block in the auxiliary decoding block sequence, and performing ReLU activation on the convolution result to obtain the edge classification output.
5. The method according to claim 1, characterized in that Also includes: Generating the target classification value includes: Based on the distance from the inner center to the edge contour of the target organ in the training medical image, generating a distance transformation map of the target organ, wherein the pixel value of each pixel in the distance transformation map corresponds to the corresponding distance; The distance transformation map is graded, including: for each pixel inside the target organ, based on the pixel value of the pixel and the pixel value range corresponding to each grade in multiple grades, determining the grade corresponding to the pixel, and setting the target grade value of the pixel to the grade value of the grade corresponding to the pixel.
6. The method according to claim 5, characterized in that Classifying the distance transform graph further includes: Normalizing the pixel value of each pixel in the distance transformation map to 0 to 1; Reverse the normalized pixel value, and the reversal method is: x2=1-x1, where x1 represents the normalized pixel value and x2 represents the reversed pixel value; For each pixel inside the target organ, the grade corresponding to the pixel is determined based on the pixel value after the pixel is reversed and the pixel value range corresponding to each grade in the multiple grades.
7. A medical image segmentation method, characterized in that: include: receiving medical images; processing the medical image using a segmentation neural network to generate a segmentation output, the medical image depicting a tissue region of a human body, the segmentation output comprising a score characterizing whether each pixel in the medical image corresponds to an interior of a target organ; Wherein, the segmentation neural network is trained according to the method described in any one of claims 1 to 6.
8. A device for training a segmentation neural network, characterized in that: The segmentation neural network is used to process a medical image to generate a segmentation output, wherein the medical image depicts a tissue region of a human body, and the segmentation output includes a score representing whether each pixel in the medical image corresponds to the interior of a target organ; the apparatus comprises: A receiving module, used for acquiring training medical images; Processing modules for: processing the training medical images using the segmentation neural network to generate the segmentation output; Processing the intermediate output of the segmentation neural network using an auxiliary neural network to generate an edge classification output, wherein the edge classification output includes: a multi-level annular region characterizing the target organ from an inner central region to an edge contour region, and a classification value of the spatial correlation between each level of the annular region and the edge contour region; Determining the segmentation loss and the grading loss of the training medical image, wherein the segmentation loss is the error value between the score of whether each pixel in the training medical image corresponds to the interior of the target organ and the target score, and the target score defines whether the pixel corresponds to the interior of the target organ; the grading loss is the error value between the grading value of the pixel inside the target organ and the target grading value, and the target grading value defines the spatial correlation between the multi-level annular area inside the target organ and each level of the annular area and the edge contour area; The network parameters of the segmentation neural network and the auxiliary neural network are adjusted based on the segmentation loss and the classification loss.
9. An electronic device, comprising: processor; as well as Memory for storing programs, The program includes instructions, which, when executed by the processor, cause the processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.
