Pathological image segmentation method based on point annotation data
By using point annotation data to train the encoder and decoder in the medical image segmentation network, combined with pre-training parameters and bilinear upsampling, the problem of poor pathological image segmentation in the existing technology is solved, and the position of the cell nucleus, The accurate extraction and segmentation of size and shape reduces the annotation workload and improves the accuracy of automated analysis.
Patent Information
- Application Number
- CN202210569641.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-05-24
AI Technical Summary
Existing medical image segmentation algorithms perform poorly on pathological images, especially due to the difficulty in feature extraction due to sensitivity to pixel values and complexity of pathological images. Moreover, pixel-level annotation is time-consuming and labor-intensive, and point annotation provides insufficient information. , affecting the training effect of the segmentation network.
A cell nucleus segmentation method based on point annotation data is adopted. Through iterative training of the encoder and decoder in the segmentation network, pre-training parameters and bilinear upsampling are used to reduce the data annotation workload and achieve accurate position, size and shape of the cell nucleus. segmentation.
It significantly reduces the workload in the data annotation stage, improves the segmentation effect of the segmentation network on cell nuclei, can obtain the appearance characteristics of cell nuclei from pathological images, and improves the accuracy of automated analysis.
Smart Images

Figure CN114821067B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image processing, and further relates to a pathological image segmentation method, which can be used in a computer-aided diagnosis system. Background Art
[0002] The diagnosis of cancer generally requires five steps: clinical diagnosis, imaging diagnosis, surgical diagnosis, cytopathology diagnosis, and histopathology diagnosis. Histopathology diagnosis is the most accurate and reliable final diagnosis. Histopathology diagnosis is usually determined by pathologists through observation of histopathology sections to determine the type of cancer, the stage of cancer, the grade of cancer, and subsequent treatment plans. This traditional diagnostic method relies on the clinical experience of pathologists, and often causes fatigue due to a large number of film readings, which affects the diagnostic results.
[0003] With the development of computer vision technology and the huge improvement in the computing power of computing hardware, it has become possible to use computers to automatically analyze pathological images. Compared with manual inspection, the use of computer automated analysis technology to assist diagnosis can greatly reduce the labor intensity of pathologists and improve work efficiency.
[0004] In recent years, as a key step in the automated analysis of pathological images, medical image segmentation technology has received widespread attention, and there are many algorithms for medical image segmentation. Traditional segmentation algorithms such as threshold segmentation, watershed, active contour, etc., are sensitive to pixel values and the complexity of pathological images, which makes them subject to greater interference when extracting image features, so there is a lot of room for improvement. In contrast, algorithms based on convolutional neural networks perform well in medical image segmentation.
[0005] Convolutional neural networks are highly adaptable to medical image segmentation, but the segmentation effect is heavily dependent on training data with high-quality pixel-level annotations. Pixel-level annotation is the pixel-by-pixel marking of the target contour. Manual pixel-level annotation of data requires a great deal of effort and time, especially in the field of medical image analysis that requires relevant domain knowledge. If point annotation is used, that is, only one or more pixels are annotated for each target, although a large amount of data can be quickly annotated at a very low labor cost. However, compared with pixel-level annotation, point annotation provides limited target information, only the location information of the target, but no key appearance features such as size and shape. The lack of this key training information will result in the trained segmentation network being unable to segment the entire area of the target, affecting the subsequent automated analysis results, and is likely to cause diagnostic errors and medical accidents. Summary of the invention
[0006] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and propose a cell nucleus segmentation method based on point annotation data, so that the encoder and decoder in the segmentation network are trained separately, so that the trained network can obtain the appearance features such as the position, size and shape of the cell nucleus from the pathological image, reduce the workload required in the data annotation stage, and achieve accurate segmentation of the cell nucleus.
[0007] To achieve the above purpose, the technical solution of the present invention is: first, the encoder is trained separately through the target position information provided by the point annotation data, then the weight of the encoder is fixed, and then the decoder is iteratively trained so that the decoder can decode the target position, size, shape and other information according to the features provided by the encoder. After the training is completed, the trained encoder and decoder can be spliced into an end-to-end segmentation network. The specific implementation includes the following:
[0008] (1) Read the pathological image training data and test data, and first use point annotation for the cell nuclei in the training set images, and then expand the point annotations to obtain labels for more parts of the cell nuclei, and obtain the expanded point annotation image G; use pixel-level annotation for the cell nuclei in the test set images to obtain the pixel-level annotation image G test ;
[0009] (2) The encoding part of the classic segmentation model U-Net is replaced by the convolutional neural network VGG-16 which uses the pre-trained parameters on the large image database ImageNet and removes the fully connected layer to obtain a new segmentation model;
[0010] (3) Train the encoder of the newly created segmentation model:
[0011] 3a) Set the loss function L1 of the segmentation model encoder according to the binary cross entropy loss function:
[0012] L1=L BCE (P1,G)
[0013] Among them, L BCE (·) represents the binary cross loss function, P1 represents the preliminary prediction result of the training set image, and G represents the point annotation image;
[0014] 3b) Input the training set image into the encoder of the newly created segmentation model to obtain the image features of each layer. The highest layer feature passes through a convolution layer with a convolution kernel size of 1*1 to obtain a single-channel image, and then uses bilinear upsampling to restore it to the size of the input image to obtain the preliminary prediction result P1 of the training set image;
[0015] 3c) Use the loss function L1 to supervise the encoding part of the segmentation network until the loss function L1 converges to obtain a trained encoder;
[0016] (4) Train the decoder of the newly created segmentation model:
[0017] 4a) Construct a new loss function L n :
[0018] L n =(G∪P n-1 >0.7+G∪P n-1 <0.3)×L BCE [P n ,(G∪P n-1 )]
[0019] Among them, P n is the prediction result of the training set image in this training stage, n represents the current stage and n>1, G is the point annotation image, P n-1 is the prediction result of the previous stage, L BCE (·) represents the binary cross loss function;
[0020] 4b) Input the training set image into the trained encoder to obtain the image features of each layer, and then input the features of each layer into the decoder. The decoder outputs a single-channel image, which is the current prediction result P of the training set image. n ;
[0021] 4c) Fixed encoder parameters, using loss function L n The decoder part of the segmentation network is trained in a supervised manner until the loss function L n Converge and get the current segmentation model M n ;
[0022] 4d) Input the test set image into the current segmentation model M n The prediction result P of the test set image obtained in test , calculate the current stage P test With pixel-level annotation image G test Dice similarity coefficient d n , and the Dice similarity coefficient d obtained in this stage n The Dice similarity coefficient d obtained in the previous stage n-1 For comparison:
[0023] If d n ≥d n-1 , then save the current model parameters and return to step 4b) to start the n+1th training stage;
[0024] Otherwise, the training ends and the segmentation model M obtained in the n-1th stage is n-1 As the final cell nucleus segmentation model;
[0025] (5) The image to be segmented is input into the cell nucleus segmentation model. The segmentation model outputs a single-channel binary image of the same size as the input image. In the binary image, the area composed of all pixels with a value of 1 is the segmented target area, and the area composed of all pixels with a value of 0 is the segmented background area.
[0026] Compared with the prior art, the present invention has the following advantages:
[0027] 1) The present invention can use point-annotated data to train a complete segmentation model, which greatly reduces the workload required in the data annotation stage compared to pixel-level annotation;
[0028] 2) The present invention aims at the uniqueness of the functions of each part of the segmentation network, first trains the feature extraction capability of the encoder, and then iteratively trains the feature interpretation capability of the decoder, so that the trained network can obtain the appearance features such as the position, size and shape of the cell nucleus from the pathological image, thereby improving the segmentation effect of the segmentation network. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a flow chart of the implementation of the present invention;
[0030] Figure 2 is a schematic diagram of a training segmentation model in the present invention;
[0031] Figure 3 This is a diagram showing the effect of using the present invention to segment cell nuclei in thyroid pathology images. DETAILED DESCRIPTION
[0032] The embodiments and effects of the present invention are further described below in conjunction with the accompanying drawings.
[0033] Reference Figure 1 and Figure 2 ,The implementation steps of this example are as follows;
[0034] Step 1: Read the point-annotated pathological image training set and test set.
[0035] Read the pathological image training set and test set, where: the training set contains several pathological images and point-level annotated images corresponding to the pathological images, the values of all marked pixel positions are 1, and the pixel values of other positions are 0; the test set contains several pathological images and pixel-level annotated images G corresponding to the pathological images. test ;
[0036] After reading the point-marked image, some of the marked pixels in the point-marked image are set to 0 according to a preset ratio;
[0037] The point annotation image processed above is expanded according to the following formula:
[0038]
[0039] Among them, A represents the expanded image, B represents a 5*5 matrix with all element values 1, represents the expansion of A using B, x, y represents the coordinates of matrix B when it slides on image A, Represents the empty set.
[0040] The expanded point annotation image G can be obtained.
[0041] Step 2: Build a segmentation model based on the encoder-decoder structure.
[0042] Based on the classic segmentation model U-Net based on the encoder-decoder structure, the encoding part is replaced by the convolutional neural network VGG-16 without the fully connected layer, and the pre-trained parameters on the large image database ImageNet are used as the initial parameters of the encoder to obtain a new segmentation model with the following structure:
[0043] The encoder is divided into 5 layers. The first layer contains two 3*3 convolutions, the second layer contains a maximum pooling and two 3*3 convolutions, and the third to fifth layers all contain a maximum pooling, two 3*3 convolutions and one 1*1 convolution. After the image is input from the first layer, each layer will output a feature map;
[0044] The decoder is the same as U-Net, with a total of four layers, which correspond one to one with the first four layers of the encoder. Each layer of the decoder contains an upsampling and two 3*3 convolutions. The input feature map is upsampled and concatenated with the feature map transmitted by the corresponding layer of the encoder. The concatenated feature map is convolved twice to obtain a feature map. The feature maps obtained by the first three layers of the decoder are input to the next layer, and the features obtained by the last layer of the decoder are output after a 1*1 convolution.
[0045] Step 3: Train the newly created segmentation model.
[0046] Reference Figure 2 , the specific implementation of this step is as follows:
[0047] 3.1) Train the encoder of the new segmentation model:
[0048] 3.1.1) Construct loss function L1:
[0049] L1=L BCE (P1,G)
[0050] Among them, P1 represents the preliminary prediction result of the training set image, G represents the point annotation image, and L BCE (·) represents the binary cross loss function, which is defined as:
[0051]
[0052] in, and i Represents two images of the same size and the value of the i-th pixel in Y, N represents the number of pixels in Y;
[0053] 3.1.2) Input the training set image into the encoder to obtain the image features of each layer. The highest layer feature passes through a convolution layer with a convolution kernel size of 1*1 to obtain a single-channel image, and then uses bilinear upsampling to restore it to the size of the input image to obtain the preliminary prediction result P1 of the training set image;
[0054] 3.1.3) Use the loss function L1 to supervise the encoding part of the segmentation network:
[0055] 3.1.3.1) Set the training parameters: batch size is 4, optimizer uses Adam, and the initial learning rate is set to 0.0001;
[0056] 3.1.3.2) Divide the training set data into several batches, each batch contains 4 samples;
[0057] 3.1.3.3) Input a batch of 4 samples into the decoder together to get the prediction results of the batch, and use the Adam optimizer to update the encoder parameters according to the loss value calculated by the loss function L1;
[0058] 3.1.3.4) Iterate all batches to perform the process in 3.1.3.3) to update the encoder parameters until the loss function L1 converges to obtain a trained encoder.
[0059] 3.2) Train the decoder of the newly created segmentation model:
[0060] 3.2.1) Construct a new loss function L n :
[0061] 3.2.1.1) The prediction result P of the n-1th stage training set n-1 After being combined with the point annotation image G, they serve as the supervision image of the nth stage;
[0062] 3.2.1.2) Using the binary cross entropy loss function L BCE (·) Calculate the prediction result P of the supervision image and the training set of the nth stage n loss;
[0063] 3.2.1.3) According to the pixel value size in the supervision image, the confidence region is divided. Pixels with values greater than 0.7 are divided into high-confidence foreground regions, pixels with values less than 0.3 are divided into high-confidence background regions, and other pixels are classified as low-confidence regions;
[0064] 3.2.1.4) Keep the loss value calculated in the high confidence region, set the loss value calculated in the low confidence region to 0, and construct the loss function L n :
[0065] L n =(G∪P n-1 >0.7+G∪P n-1 <0.3)*L BCE [P n ,(G∪P n-1 )]
[0066] Among them, P n is the prediction result of the training set image in this training stage, n represents the current stage and n>1, G is the point annotation image, P n-1 is the prediction result of the previous stage, L BCE (·) represents the binary cross loss function;
[0067] 3.2.2) Input the training set image into the trained encoder to obtain the image features of each layer, and then input the features of each layer into the decoder. The decoder outputs a single-channel image, which is the current prediction result P of the training set image. n ;
[0068] 3.2.3) Fixed encoder parameters, using loss function L n Perform supervised training on the decoding part of the segmentation network:
[0069] 3.2.3.1) Set the batch size to 4, use Adam as the optimizer, and the initial learning rate to 0.0001;
[0070] 3.2.3.2) Divide the training set data into several batches, each batch contains 4 samples;
[0071] 3.2.3.3) Input a batch of 4 samples into the segmentation network to obtain the prediction results of the batch, and use the Adam optimizer according to the loss function L n Calculate the loss value and update the decoder parameters;
[0072] 3.2.3.4) Iterate all batches through the process in 3.2.3.3) and update the decoder parameters until the loss function L n Converge and get the current segmentation model M n ;
[0073] 3.2.4) Input the test set image into the current segmentation model M n In the above example, we get the prediction result P of the test set image. test , calculate the current stage P test With pixel-level annotation image G test Dice similarity coefficient d n :
[0074]
[0075] Among them, n represents the current stage, p i and g i Represents the image P test With image G test The value of the i-th pixel, p j and g j Represents the image P test With image G test The value of the jth pixel of G test The number of pixels in ;
[0076] 3.2.5) The Dice similarity coefficient d obtained in this stage n The Dice similarity coefficient d obtained in the previous stage n-1 For comparison:
[0077] If d n ≥d n-1 , then save the current model parameters and return to step 3.2) to start the n+1th training stage;
[0078] Otherwise, the training ends and the segmentation model M obtained in the n-1th stage is n-1 As the final cell nucleus segmentation model.
[0079] Step 5, input the cell nucleus image to be segmented into the cell nucleus segmentation model, and the segmentation model outputs a single-channel binary image of the same size as the input image. In the binary image, the area composed of all pixels with a value of 1 is the segmented target area, and the area composed of all pixels with a value of 0 is the segmented background area, thus completing the segmentation of the pathological image.
[0080] The effect of the present invention can be further illustrated by the following experiments.
[0081] 1. Experimental conditions:
[0082] The computer processor used is Intel(R) Core(TM) i7 CPU@3.5GHz, running memory is 128G, and the graphics card is an NVIDIA TITAN X GPU with a video memory of 12GB. The operating system is 64-bit Ubuntu 20.04, and the deep learning framework used is PyTorch (version 1.1.0). All network training uses the back-propagation algorithm to calculate the residuals of each layer, and the stochastic gradient descent algorithm with kinetic energy and weight decay terms is used to update the network parameters.
[0083] Evaluation indicators: Dice similarity coefficient, pixel accuracy PA.
[0084] 2. Experimental content:
[0085] Experiment 1: Under the above experimental conditions, the segmentation network was trained using the method of the present invention. In the training data used, one pixel in each cell nucleus was marked, and the marking ratio was 100%. The above evaluation indicators were used to evaluate the segmentation effect of the segmentation model obtained in each training stage. The evaluation results are shown in Table 1.
[0086] Table 1 Test results at each stage
[0087] Training phase Dice(%) PA(%) 1 68.91 86.72 2 74.58 87.13 3 76.63 87.41 4 78.52 89.90 5 80.10 88.57 6 79.94 91.02 7 80.08 89.34 …… …… ……
[0088] From the results shown in Table 1, it can be seen that as the number of training iterations increases, the Dice similarity coefficient and the pixel accuracy rate will gradually increase. After the fifth stage, that is, the fifth iteration, the Dice will fluctuate around 80%, and the pixel accuracy rate will fluctuate around 90%. This shows that an effective segmentation network can be obtained using the method of the present invention.
[0089] Experiment 2: The segmentation network is trained using training data with different annotation ratios. The experimental results are shown in Table 2.
[0090] Table 2 Comparison of segmentation results under different annotation ratios
[0091] Annotation scale Dice(%) PA(%) Current stage 0% 30.43 53.61 20 5% 30.92 56.35 20 10% 50.14 75.22 15 20% 61.15 86.13 15 30% 63.31 86.77 10 40% 71.83 87.56 8 50% 73.51 87.94 8 70% 78.29 88.21 6 90% 80.25 88.90 6 100% 80.10 88.57 5
[0092] From the results shown in Table 2, it can be seen that when the annotation ratio continues to decrease, the Dice similarity coefficient and pixel accuracy PA will also decrease, and the stage at which the best segmentation effect is achieved will also be later. When the cell nucleus annotation ratio is 90%, the result is almost the same as that when 100% is annotated, and the normal training is not affected. When the cell nucleus annotation ratio is between 70% and 20%, the Dice similarity coefficient will decrease with the decrease in the annotation ratio, indicating that the training process is affected, and the final segmentation model's ability to segment the cell nucleus has decreased; while the pixel accuracy does not change much, indicating that the segmentation model can still correctly segment most of the background. When the cell nucleus annotation ratio is 10%, both the Dice similarity coefficient and the pixel accuracy have been greatly reduced, indicating that the training of the segmentation model has been greatly affected. When the cell nucleus annotation ratio drops to 5% and 0%, the Dice similarity coefficient has dropped to about 30%, and the pixel accuracy has also dropped to between 50% and 60%, indicating that the target can no longer be segmented at this time, and the segmentation network cannot be successfully trained at this ratio.
[0093] The segmentation results under different cell nucleus annotation ratios are shown in Figure 2. Figure 3 As shown in Figure 3 The figure shows the segmentation results at 6 different annotation ratios: 5%, 10%, 30%, 50%, 70%, and 100%. Figure 3 It can be seen that when the annotation ratio is 5%, the segmentation network cannot be effectively trained; when the annotation ratio is 10%, the network can only segment very obvious targets, and it is still unable to segment images with complex contents; when the annotation ratio exceeds 30%, the network can segment most of the cell nuclei, but it is still difficult to segment the lighter-colored cell nuclei, but this situation will improve as the annotation ratio increases.
Claims
1. A pathological image segmentation method based on point annotation data, characterized in that: The steps include: (1) Read the pathological image training data and test data, and first use point annotation for the cell nuclei in the training set images, and then expand the point annotations to obtain labels for more parts of the cell nuclei, and obtain the expanded point annotation image G; use pixel-level annotation for the cell nuclei in the test set images to obtain the pixel-level annotation image G test ; (2) The encoding part of the classic segmentation model U-Net is replaced by the convolutional neural network VGG-16 which uses the pre-trained parameters on the large image database ImageNet and removes the fully connected layer to obtain a new segmentation model; (3) Train the encoder of the newly created segmentation model: 3a) Set the loss function L1 of the segmentation model encoder according to the binary cross entropy loss function: L1=L BCE (P1,G) Among them, L BCE (·) represents the binary cross loss function, P1 represents the preliminary prediction result of the training set image, and G represents the point annotation image; 3b) Input the training set image into the encoder of the newly created segmentation model to obtain the image features of each layer. The highest layer feature passes through a convolution layer with a convolution kernel size of 1*1 to obtain a single-channel image, and then uses bilinear upsampling to restore it to the size of the input image to obtain the preliminary prediction result P1 of the training set image; 3c) Use the loss function L1 to supervise the encoding part of the segmentation network until the loss function L1 converges to obtain a trained encoder; (4) Train the decoder of the newly created segmentation model: 4a) Construct a new loss function L n : L n =(G∪P n-1 >0.7+G∪P n-1 <0.3)×L BCE [P n ,(G∪P n-1 )] Among them, P n is the prediction result of the training set image in this training stage, n represents the current stage and n>1, G is the point annotation image, P n-1 is the prediction result of the previous stage, L BCE (·) represents the binary cross loss function; 4b) Input the training set image into the trained encoder to obtain the image features of each layer, and then input the features of each layer into the decoder. The decoder outputs a single-channel image, which is the current prediction result P of the training set image. n ; 4c) Fixed encoder parameters, using loss function L n The decoder part of the segmentation network is trained in a supervised manner until the loss function L n Converge and get the current segmentation model M n ; 4d) Input the test set image into the current segmentation model M n The prediction result P of the test set image obtained in test , calculate the current stage P test With pixel-level annotation image G test Dice similarity coefficient d n , and the Dice similarity coefficient d obtained in this stage n The Dice similarity coefficient d obtained in the previous stage n-1 For comparison: If d n ≥d n-1 , then save the current model parameters and return to step 4b) to start the n+1th training stage; Otherwise, the training ends and the segmentation model M obtained in the n-1th stage is n-1 As the final cell nucleus segmentation model; (5) The cell nucleus image to be segmented is input into the cell nucleus segmentation model. The segmentation model outputs a single-channel binary image of the same size as the input image. In the binary image, the area composed of all pixels with a value of 1 is the segmented target area, and the area composed of all pixels with a value of 0 is the segmented background area.
2. The method according to claim 1, wherein the expansion operation on the point annotation in step (1) is performed according to the following formula: in, A represents the expanded image, B represents a 5*5 matrix with all element values 1. represents the expansion of A using B, x, y represents the coordinates of matrix B when it slides on image A, Represents the empty set.
3. The method according to claim 1, wherein the newly created segmentation model in step (2) comprises an encoder and a decoder, and the structure is as follows: The encoder uses VGG-16 without the fully connected layer. It is divided into 5 layers. The first layer contains two 3*3 convolutions, the second layer contains a maximum pooling and two 3*3 convolutions, and the third to fifth layers all contain a maximum pooling, two 3*3 convolutions and one 1*1 convolution. After the image is input from the first layer, each layer will output a feature map; The decoder part has a total of four layers, which correspond to the first four layers of the encoder one by one. Each layer of the decoder contains an upsampling and two 3*3 convolutions. The input feature map is upsampled and concatenated with the feature map transmitted by the corresponding layer of the encoder. The concatenated feature map is convolved twice to obtain a feature map. The feature maps obtained by the first three layers of the decoder are input into the next layer, and the features obtained by the last layer of the decoder are output after a 1*1 convolution.
4. The method according to claim 1, wherein the binary cross entropy loss function in step 3a) is expressed as follows: in, and i Represents two images of the same size and the value of the i-th pixel in Y, where N represents the number of pixels in Y.
5. The method according to claim 1, wherein: In step 3c), the loss function L1 is used to supervise the encoding part of the segmentation network, which is implemented as follows: 3c1) Set the training parameters: batch size is 4, optimizer uses Adam, and the initial learning rate is set to 0.0001; 3c2) Divide the training set data into several batches, each batch contains 4 samples; 3c3) Input a batch of 4 samples into the decoder together to get the prediction results of the batch, and use the Adam optimizer to update the encoder parameters according to the loss value calculated by the loss function L1; 3c4) Iterate all batches to perform the process in 3c3) to update the encoder parameters until the loss function L1 converges to obtain a trained encoder.
6. The method according to claim 1, wherein in step 4a), a new loss function L is constructed n , implemented as follows: 4a1) The prediction result P of the n-1th stage training set n-1 After being combined with the point annotation image G, they serve as the supervision image of the nth stage; 4a2) Using the binary cross entropy loss function L BCE (·) Calculate the prediction result P of the supervision image and the training set of the nth stage n loss; 4a3) Divide the confidence region according to the pixel value size in the supervision image, divide the pixels with a value greater than 0.7 into the high confidence foreground region, the pixels with a value less than 0.3 into the high confidence background region, and the other pixels into the low confidence region; 4a4) Keep the loss value calculated in the high confidence region, set the loss value calculated in the low confidence region to 0, and construct the loss function L n : L n =(G∪P n-1 >0.7+G∪P n-1 <0.3)×L BCE [P n ,(G∪P n-1 )]。 7. The method according to claim 1, wherein: In step 4d), the loss function L1 is used to supervise the decoding part of the segmentation network, which is implemented as follows: 4d1) Set the training parameters: batch size is 4, optimizer uses Adam, and the initial learning rate is set to 0.0001; 4d2) Divide the training set data into several batches, each batch contains 4 samples; 4d3) Input a batch of 4 samples into the segmentation network together to obtain the prediction results of the batch, and use the Adam optimizer according to the loss function L n Calculate the loss value and update the decoder parameters; 4d4) Iterate all batches through the process in 4d3) and update the decoder parameters until the loss function L n Converge and get the trained decoder.
