Abstract
Multiple sclerosis (MS) is a long-term autoimmune disease that causes lesions, which are areas of damage, in the central nervous system. Doctors diagnose it by finding and outlining these lesions in magnetic resonance imaging (MRI) scans, and the size and shape of the lesions say a lot about how the disease is progressing. Outlining lesions by hand is slow, tiring and prone to error, and automatic methods struggle because lesions differ so much in size and shape.
This work combines three ideas to detect and segment MS lesions automatically: features taken at several scales, a 3D convolutional neural network (CNN) with several pathways, and a conditional random field (CRF). The network looks at each region of the scan at several resolutions, so that it can capture lesions of different shapes and sizes, and the CRF is applied afterwards to clean the result by removing false detections. The network was trained on 5 subjects and tested on 14 subjects from the ISBI 2015 MS lesion segmentation challenge. It obtained a Total Weighted Score of 91.1%, higher than the 89.4% score of a human rater.
Introduction
MS lesions are areas of damage in the central nervous system. They appear when the immune system attacks the myelin sheath, the protective layer around nerve fibers, which disrupts the nerve signals and causes neurological symptoms that depend on where the lesions are and how large they are. Lesions are usually found on MRI scans, and as they build up over time they can contribute to growing disability, affecting a patient’s movement, vision and thinking.
Finding and outlining the lesions is a critical step in diagnosis. It shows the size of the lesions and how the disease is progressing, and it helps in planning treatment. Today this is done mostly by hand, with some help from semi-automatic tools. Manual outlining by a radiologist is the gold standard, but it is tedious and time-consuming, and the results differ from one reader to another and even from one session to the next for the same reader.
This study builds on 3D CNN methods and adds two ideas: extracting features from 3D images at several resolutions, and refining the result with a CRF. The main contributions are:
- Features are extracted from 3D images at several resolutions, to capture lesions of different shapes and sizes.
- A CRF is used as a post-processing step, to reduce over-segmentation.
- Skip connections and dropout are used in the network to avoid overfitting and the vanishing gradient problem.
Related Work
Several earlier methods used 2D patches or single slices from the scan. Such methods lack information about the whole lesion in 3D. Other work used 3D networks. One method used a cascade of two 3D CNNs, where the first finds candidate lesion voxels and the second removes wrong ones. Another used a 3D network with densely connected blocks.
More recent studies show both progress and limits. A 3D CNN trained on 934 patients came close to human readers, but careful visual checking was still needed, especially for small, low-contrast lesions. An ensemble of 3D U-Nets called LST-AI needs paired T1-weighted and FLAIR images, which are not always available, and it finds fewer lesions as they get smaller.
Proposed Method
The overall flow is shown in Figure 1. During training, the MRI images are first preprocessed, which includes normalizing the intensities and augmenting the data. The 3D CNN then makes a prediction, a loss function measures how far it is from the true label, and the weights are updated by backpropagation. The best weights are saved. At test time, the same preprocessing is applied, the trained model segments the lesions, and a CRF is applied last to give the final result.
The data come from the ISBI 2015 challenge, a longitudinal collection of scans of MS patients, with 5 subjects for training and 14 for testing. The scans were taken with a Philips 3.0T MRI scanner. Four types of MRI sequence are available for each subject: T1-weighted (MPRAGE), proton density, T2-weighted and FLAIR. Because of memory limits, the model was trained using three of them: FLAIR, MPRAGE and T2-weighted. The true lesion outlines for the training subjects were drawn by hand by two radiologists, while the outlines for the test subjects are kept private by the challenge, so that nobody can tune a model to the test data. The task has two classes: lesion and background.
The network (Figure 2) is inspired by the DeepMedic framework. A whole 3D brain scan is too large for the computer’s memory, so the scan is cut into small 3D patches of 19×19×19 voxels, where a voxel is a 3D pixel. Each patch is looked at through three pathways at normal, medium and low resolution. The first pathway sees the fine detail around a point, while the others see a larger, downsampled area around the same point and so capture the wider context, such as the brain region. The features from the pathways are combined and passed through two fully connected layers, and a final layer gives, for each voxel, the probability that it belongs to a lesion.
Compared with the original DeepMedic, this model uses three resolution pathways instead of two, adds short skip connections to improve the flow of learning through the network, combines two kinds of regularization (L1 and L2) with dropout to reduce overfitting, and uses a patch size chosen through ablation experiments. Because lesion voxels are far fewer than normal voxels, two kinds of data augmentation were used to balance the data: flipping the scans left to right, and shifting and scaling the image intensities. The model was trained for 35 epochs.
Finally, a CRF is used to refine the segmentation. It looks at how the neighboring voxels relate to each other and removes isolated false detections, which reduces over-segmentation.
Results and Discussion
The results are measured with the Dice similarity coefficient, which scores the overlap between the predicted lesion and the true lesion from 0 (no overlap) to 1 (perfect overlap). Other measures used are precision, sensitivity, the rates of true and false positives for lesions, and the difference in lesion volume.
A series of ablation experiments tested which design choices matter. A patch size of 19×19×19 worked best and was used for the other experiments, because larger patches include too much irrelevant tissue. The design with three pathways and five convolutional layers gave the highest Dice score and the smallest volume difference. The L1 and L2 regularization strengths of 10-6 and 10-4 worked best, and short skip connections performed much better than long ones.
The CRF post-processing made a clear difference. It raised the Dice score from 0.576 to 0.633, an increase of 5.7%. Precision and sensitivity went up, while the false positive rate and the volume difference went down, so the predicted lesions moved closer to the true ones. Figure 3 shows examples before and after the CRF, next to the true labels.
Overall, the model reached a Total Weighted Score of 91.1%, which is 1.3% higher than the original DeepMedic model and higher than the 89.4% score of a human rater. This comes at a cost: the proposed model needs about 4.38 billion operations and has 324,112 trainable parameters, compared with about 1.22 billion operations and 57,610 parameters for DeepMedic. The authors consider the extra cost justified by the better detection of both local and global features and the lower over-segmentation.
When compared with other recent methods on the same dataset, the network by Hashemi and colleagues had the highest Total Weighted Score. The proposed model, however, did better on the Dice score, sensitivity, lesion true positive rate and volume difference, which shows that it finds the correct location of lesions well. Methods that work slice by slice lack the information about the whole lesion in 3D that this model uses.
Conclusions
This study presents a multi-pathway CNN for the automatic segmentation of MS lesions in brain MRI. Compared with other methods, it detected lesions of various sizes and shapes better, because the pathways at several resolutions let it extract both local and global features. The CRF raised the Dice score by 5.7% by removing false positives. The model was trained on the ISBI 2015 dataset, so before it is used in clinics it should be trained on data from various sources, which would also improve how well it works on new data.
Future work could train the model on larger and more varied datasets from several clinical centers, add attention mechanisms and transformer-based designs to find small, low-contrast lesions, and combine other kinds of data such as functional MRI and diffusion tensor imaging. The authors also see room for real-time processing on local devices that protects patient privacy, and for explainability methods that would help build clinical trust.
Acknowledgments
The authors thank the AIM Laboratory at the Ghulam Ishaq Khan Institute of Engineering Sciences and Technology, the American University of the Middle East, and the Cracow University of Technology for their support in carrying out this research.
Code and Data Availability
The code and data are available at github.com/sansari111/MSLesionSeg.