Abstract
Quantitative measurements from segmentations of soft tissues from magnetic resonance images (MRI) of human brains provide important biomarkers for normal aging, as well as disease progression. In this paper, we propose a patch-based tissue classification method from MR images using sparse dictionary learning from an atlas. Unlike most atlas-based classification methods, deformable registration from the atlas to the subject is not required. An “atlas” consists of an MR image, its tissue probabilities, and the hard segmentation. The “subject” consists of the MR image and the corresponding affine registered atlas probabilities (or priors). A subject specific patch dictionary is created by learning relevant patches from the atlas. Then the subject patches are modeled as sparse combinations of learned atlas patches. The same sparse combination is applied to the segmentation patches of the atlas to generate tissue memberships of the subject. The novel combination of prior probabilities in the example patches enables us to distinguish tissues having similar intensities but having different spatial location. We show that our method outperforms two state-of-the-art whole brain tissue segmentation methods. We experimented on 12 subjects having manual tissue delineations, obtaining mean Dice coefficients of 0:91 and 0:87 for cortical gray matter and cerebral white matter, respectively. In addition, experiments on subjects with ventriculomegaly shows significantly better segmentation using our approach than the competing methods.
Keywords: image synthesis, intensity normalization, hallucination, patches
1 Introduction
Magnetic resonance imaging (MRI) is a widely used noninvasive modality to image the human brain. Postprocessing of MR images, such as tissue segmentation, provides quantitative biomarkers for understanding many aspects of normal aging, as well as progression and prognosis of diseases like Alzheimers’ disease and multiple sclerosis. Finite mixture models of the image intensity distributions is the basis of many image segmentation algorithms, where the intensity histogram is fitted with a number of distributions, e.g. Gaussians, [1]. Other algorithms model the tissue intensities using fuzzy C-means (FCM) [2], partial volume models [3] etc. Prior information on the spatial locations of the tissue are usually incorporated using statistical atlases [4,2], which captures their spatial variability. Since there is no tissue-dependent global MR image intensity scale (unlike computed tomography), the intensity range and distribution varies significantly across scanners and imaging protocols. Thus it is sometimes unclear if a particular model is optimal for MR images with different acquisition protocols. Instead of trying to fit image intensities into pre-defined models, we rely on similar looking examples from expert segmented images.
In this paper, we propose an example based brain segmentation method, combining statistical atlas priors into sparse dictionary learning. The atlas comprises an MR image, corresponding stastistical priors, and the hard segmentation into tissue labels, e.g, cerebral gray matter(GM), cerebral white matter (WM), ventricles, cerebro-spinal uid (CSF) etc. An image patch from the subject MR along with the corresponding patches from the affine registered statistical priors in the subject space, comprise of an image feature. A sparse patch dictionary is learnt using the atlas and subject image features. For every subject patch, its sparse weight is found from the learnt dictionary. Corresponding atlas hard segmentation labels are weighted by the same weights to generate the tissue membership of the subject patch.
In a previous example based binary segmentation method [5], prior information about spatial location of a tissue is obtained from a deformable registration of the atlas to the subject image. A binary dictionary-based labeling method was proposed for hippocampal segmetation in [6]. Our method is similar in concept to this approach, but we perform whole brain segmentation using a single dictionary encompassing multiple tissue classes using statistical priors without the need for deformable registration between subject and atlas.
Since the previous example based methods [5,6] are only applicable to binary segmentation, we compare our method with two state-of-the-art publicly available whole brain multi-class segmentation methods, Freesurfer [3] and TOADS [2], and show that segmentation accuracy significantly improves with our example based method. We also experimented on 10 subjects with ventriculomegaly and show that when the anatomy between atlas and subject is significantly different (e.g., enlarged ventricles), our method is more robust.
2 Method
We define an atlas as a (n+1)-tuple of images, {a1, …, an+1}, where a1 denotes the T1-w MR scan, an+1 denotes the hard segmentation, and a2−an denotes (n − 1) statistical priors. At each voxel, a 3D patch can be defined on every atlas image and are rasterized as a d × 1 vector ak (i), where i = 1, …, M, is an index over the voxels of the atlas. A subject MR image is denoted by s1. Atlas a1 is affine registered to s1, and the priors a2−an are transformed to the subject space by the same affine transformation. The transformed priors are denoted by {s2, …, sn}. The subject patches are denoted by sk (j), j = 1, …, N. The idea is to use these images {a1, …, an+1, s1, …, sn} to generate a segmentation ŝn+1. The priors can be weighted, i.e., sk ← w × sk, where w is a scalar multiplying the prior images.
An atlas patch dictionary is defined as A1 ∈ ℝnd×M, where the ith column of A1, f(i), consists of the ordered concatenation of atlas patches (ak (i)), i.e., f(i) = [a1 (i)T … an (i)T]T. Thus the nd × 1 vectors f(i) becomes the atlas feature vectors. Similarly, the subject feature vectors are denoted by b(j) = [s1 (i)T … sn (i)T]T, b(j) ∈ ℝnd. We also refer to the nd × 1 feature vector as a “patch”. A patch encodes the intensity information of a voxel and its neighborhood, as well as its spatial information via the use of statistical atlases. The atlas segmentation image is also decomposed into patches an+1 (i), which forms the columns of the segmentation dictionary A2.
2.1 Sparse Dictionary Learning
If the atlas and the subjects have similar tissue contrasts, we can assume that for every subject patch s1(j), a small number of similar looking patches can always be found from the set of atlas patches (a1 (i)) [7,8].We extend this assumption for the nd×1 feature vectors b(j) as well, enforcing the condition that every subject feature can be matched to a few atlas feature vectors, having not only similar intensities but similar spatial locations as well. This idea of sparse matching can be written as
(1) |
Previous methods [6,5] try to enforce the similarity in spatial locations by searching for the similar patches in a small window around the jth voxel. We obviate the need for such windowed searching by adding statistical priors in the features. The non-negativity constraints in the weight x(j) enforces the similarity in texture between the subject patch and the chosen atlas patches.
The combinatorics of the ℓ0 problem in Eqn. 1 makes it infeasible to solve directly, but it can be transformed into an ℓ1 minimization problem,
(2) |
However, x(j) is a M × 1 vector, where M is the number of atlas patches, typically M ~ 107. Thus solving such a large optimization for every subject patch is computationally intensive. We use sparse dictionary learning to generate a dictionary of smaller length D1 ∈ ℝnd×L, from A1, which can be used instead of A1 in Eqn. 2 to solve for x(j). We have chosen L = 5000 empirically.
The advantage of learning a dictionary is twofold. First, although the dictionary elements are not orthogonal, all the subject patches (b(j)) can be sparsely represented using the dictionary elements. Second, the computational burden of Eqn. 2 for every subject patch is reduced. The sparse dictionary is learnt using training examples from the subject such that all subject patches can be optimally represented via the dictionary [9]. The dictionary learning approach is an alternating minimization to solve the following problem,
(3) |
f(i), i = 1 …, M are the columns of D1. Eqn. 3 can be solved in two alternating steps. First, keeping D1 fixed, we solve for x(j) for each j, as in Eqn. 2. Then keeping x(j) fixed, we solve
(4) |
A gradient descent approach leads to the following update equation,
(5) |
where η is the step-size and t denotes iteration numbers. We note that η should be chosen always, since the columns of D1 contains MR intensities and statistical priors. is generated using L randomly chosen columns of A1. The segmentation dictionary D2 is generated using corresponding columns of A2.
Once the dictionary is learnt after the convergence of Eqn. 5, Eqn. 2 is solved for every subject patch b(j) using D̂1 instead of A1, to find the sparse representation x(j). Every atlas patch in the learnt dictionary D1 has a corresponding segmentation patch in D2. Thus the columns of D2 contain segmentation labels {2, …, k}. It can be shown that ‖x(j)‖1 follows a Laplace distribution with mean 1. Empirically, the variance is found to be very small (~ 0.005). Thus we weigh the segmentation labels according to their weights in x(j) to generate tissue memberships,
(6) |
where 𝟙D2 (k) denotes the indicator matrix having the same size as D2, whose elements are 1 if the corresponding element in D2 is k, 0 otherwise. k = 2, …, n denotes (n − 1) tissue labels. We only take the central voxel of pk to generate the full membership image pk.
2.2 Updating Statistical Priors in the Segmentation
We have described a method to obtain tissue memberships from a set of MR images and statistical priors. Usually, fixed statistical priors should be non-zero and fuzzy, leaving a possibility that a CSF patch can be matched to a ventricle patch, which have similar intensity as well as similar prior. On the other hand, less fuzzy priors will introduce too much dependence on the accurate initial alignment between the atlas and the subject. Instead of using a fixed prior based on the initial atlas-to-subject registration, we dynamically update it by iterating the same patch selection method stated above. The statistical priors ({s2, …, sn}) at each iteration is replaced by a Gaussian blurred version of the obtained memberships pk [10]. The blurring relaxes the localization of the tissues in the memberships by increasing the capture range in the priors. The algorithm can be written as,
At t = 0, start with , where are the registered atlas priors, k = 2, …, n.
Generate dictionaries D̂1 and D2 from Eqn. 5 using . The subject patches are denoted by b(0)(j).
At t ← t + 1, for each subject patch b(t)(j), generate the sparse coefficient x(t)(j) using D̂1 from Eqn. 2.
Generate memberships using x(t)(j)s from Eqn. 6
Generate new statistical priors , k = 2, …, n. σ = 3mm is chosen empirically.
Generate b(t+1)(j) using the new
Stop if , else go to step 3.
3 Results
The run-time is approximately ½hours on 2.7GHz 12-core AMD processors for 181 × 217 × 181 sized 1mm3 images. SparseLab is used to solve Eqn. 2. We used 3 × 3 × 3 patches in all our experiments, and empirically chose the atlas weight w as 0.10. λ for Eqn. 2 and η for Eqn. 5 are chosen as 0.01 and 0.001, respectively. All images are skull-stripped [11] and corrected for any intensity inhomogeneity [12]. All MR images are intensity normalized so that their modes of WM intensities are unity [13]. WM intensity modes are found by fitting a smooth kernel density estimator to the histograms.
An example of the learnt dictionary is shown in Fig. 1, where is compared with . Clearly, after learning from the subject patches, there are more edges in patches, compared to the “at”-looking patches in , indicating can represent any unknown subject patch better than . Fig. 2 shows the effect of iteratively updating the priors via memberships. Since the atlas is registered to the subject using affine only, the strong GM prior in the middle of WM (red arrow) introduces non-zero membership to the WM patches. However, the dynamic prior update at each iteration, instead of a fixed prior in most EM based algorithms, reduces the dependence.
We validated on 12 subjects from CUMC12 database [14], which have manually segmented labels. The manual segmentations do not have any CSF. We segment the images into 4 classes, GM, WM, ventricle and subcortical GM (e.g., caudate, putamen, thalamus). One subject is randomly chosen as atlas. Since they do not have any tissue probability or memberships, Gaussian blurred tissue label-masks (σ = 3mm) are used as priors {a2, …, an}. The remaining 11 subjects are segmented using the atlas MR and priors. Dice coefficients comparing three methods on the four tissue classes, as well as the weighted average (W. Ave.) of the four, weighted by the volume of the corresponding tissue, are shown in Table 1. Our method outperforms the other two methods in GM, WM, subcortical GM and in the average (p < 0.05 in all cases). Since the ventricle boundary is usually the most robust feature in an MR image, all three methods perform similarly.
Table 1.
Ventricle | GM | Subcort. GM | WM | W. Ave. | |
---|---|---|---|---|---|
TOADS | 0.778 ±0.089 | 0.891 ±0.013 | 0.570 ±0.053 | 0.853 ±0.011 | 0.867 ±0.011 |
Freesurfer | 0.759 ±0.082 | 0.888 ±0.011 | 0.636 ±0.021 | 0.853 ±0.008 | 0.863 ±0.009 |
Dictionary | 0.785±0.055 | 0.910±0.012 | 0.755±0.023 | 0.869±0.008 | 0.881±0.008 |
bold indicates statistically significantly larger than the other two (p < 0.05).
Next we applied the dictionary learning algorithm on 10 subjects with normal pressure hydrocephalus (NPH), which have enlarged ventricles. Manual segmentations are available only on ventricles. They are segmented with Freesurfer using the -bigventricles flag. Fig. 3 shows one subject with the segmentations and the manual delineation of the ventricles. The atlas is shown in Fig. 2. In this case, 7 tissue classes, cerebellar GM, cerebellar WM, cerebral GM and WM, subcortical GM, CSF and ventricles, are used. Clearly, our method significantly improves the ventricle segmentation. Freesurfer segments part of the ventricles as WM and lesions (red arrow), while TOADS segments part of it as cortical GM. Visually, our method produces better CSF segmentation as well (green arrow). Quantitative improvement is shown in Fig. 4 where Dice coefficients between manually segmented ventricles and automatic segmentations are plotted for the three methods. Our method produces the most consistent Dice coefficient (mean 0.91) across all subjects with very little variance, and it is significantly (p < 0.05) larger than TOADS (mean Dice 0.71) and Freesurfer (mean Dice 0.72). Although we used default settings for TOADS or Freesurfer, no amount of parameter tuning would significantly improve the NPH results.
4 Discussion
We have presented a patch based sparse dictionary learning method to segment multiple tissue classes. Contrary to previous binary patch based segmentation methods, we use statistical priors to localize different tissues with similar intensities. We do not require any deformable registration of the subject to the atlas.
Footnotes
Support for this work included funding from the Department of Defense in the Center for Neuroscience and Regenerative Medicine and by the grants NIH/NINDS R01NS070906, NIH/NIBIB R21EB012765.
References
- 1.Ashburner J, Friston KJ. Unified segmentation. NeuroImage. 2005;26(3):839–851. doi: 10.1016/j.neuroimage.2005.02.018. [DOI] [PubMed] [Google Scholar]
- 2.Shiee N, Bazin P, Ozturk A, Reich DS, Calabresi PA, Pham DL. A Topology-Preserving Approach to the Segmentation of Brain Images with Multiple Sclerosis Lesions. NeuroImage. 2009 doi: 10.1016/j.neuroimage.2009.09.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Dale AM, Fischl B, Sereno MI. Cortical Surface-Based Analysis I: Segmentation and Surface Reconstruction. NeuroImage. 1999;9(2):179–194. doi: 10.1006/nimg.1998.0395. [DOI] [PubMed] [Google Scholar]
- 4.Leemput KV, Maes F, Vandermeulen D, Suetens P. Automated Model-Based Tissue Classification of MR Images of the Brain. IEEE Trans. on Med. Imag. 1999;18(10):897–908. doi: 10.1109/42.811270. [DOI] [PubMed] [Google Scholar]
- 5.Coupé P, Eskildsen SF, Manjn JV, Fonov VS, Collins DL the Alzheimer’s disease Neuroimaging Initiative. Simultaneous segmentation and grading of anatomical structures for patient’s classification: application to Alzheimer’s disease. NeuroImage. 2012;59(4):3736–3747. doi: 10.1016/j.neuroimage.2011.10.080. [DOI] [PubMed] [Google Scholar]
- 6.Tong T, Wolz R, Coupe P, Hajnal JV, Rueckert D The Alzheimer’s Disease Neuroimaging Initiative. Segmentation of MR images via discriminative dictionary learning and sparse coding: Application to hippocampus labeling. NeuroImage. 2013;76(1):11–23. doi: 10.1016/j.neuroimage.2013.02.069. [DOI] [PubMed] [Google Scholar]
- 7.Roy S, Carass A, Prince J. Magnetic Resonance Image Example Based Contrast Synthesis. IEEE Trans. Med. Imag. 2013;32(12):2348–2363. doi: 10.1109/TMI.2013.2282126. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Cao T, Zach C, Modla S, Powell D, Czymmek K, Niethammer M. Registration for correlative microscopy using image analogies. Workshop on Biomedical Image Registration (WBIR) 2012:296–306. doi: 10.1016/j.media.2013.12.005. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Aharon M, Elad M, Bruckstein AM. K-SVD: An Algorithm for Designing Overcomplete Dictionaries for Sparse Representation. IEEE Trans. Sig. Proc. 2006;54(11):4311–4322. [Google Scholar]
- 10.Shiee N, Bazin PL, Cuzzocreo J, Blitz A, Pham D. Segmentation of brain images using adaptive atlases with application to ventriculomegaly. Inf. Proc. in Medical Imaging. 2011:1–12. doi: 10.1007/978-3-642-22092-0_1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Carass A, Cuzzocreo J, Wheeler MB, Bazin PL, Resnick SM, Prince JL. Simple paradigm for extra-cerebral tissue removal: Algorithm and analysis. NeuroImage. 2011;56(4):1982–1992. doi: 10.1016/j.neuroimage.2011.03.045. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Sled JG, Zijdenbos AP, Evans AC. A non-parametric method for automatic correction of intensity non-uniformity in MRI data. IEEE Trans. on Med. Imag. 1998;17(1):87–97. doi: 10.1109/42.668698. [DOI] [PubMed] [Google Scholar]
- 13.Pham DL, Prince JL. An Adaptive Fuzzy C-Means Algorithm for Image Segmentation in the Presence of Intensity Inhomogeneities. Pattern Recog. Letters. 1999;20(1):57–68. [Google Scholar]
- 14.Klein A, et al. Evaluation of 14 nonlinear deformation algorithms applied to human brain MRI registration. NeuroImage. 2009;46(3):786–802. doi: 10.1016/j.neuroimage.2008.12.037. [DOI] [PMC free article] [PubMed] [Google Scholar]