16 Jul 2019: Mesbah S, Shalaby AM, Stills S, Soliman A, Willhite A, et al. (2019) Correction: Novel stochastic framework for automatic segmentation of human thigh MRI volumes and its applications in spinal cord injured individuals. PLOS ONE 14(7): e0219810. https://doi.org/10.1371/journal.pone.0219810 View correction
Severe spinal cord injury (SCI) leads to skeletal muscle atrophy and adipose tissue infiltration in the skeletal muscle, which can result in compromised muscle mechanical output and lead to health-related complications. In this study, we developed a novel automatic 3-D approach for volumetric segmentation and quantitative assessment of thigh Magnetic Resonance Imaging (MRI) volumes in individuals with chronic SCI as well as non-disabled individuals. In this framework, subcutaneous adipose tissue, inter-muscular adipose tissue and total muscle tissue are segmented using linear combination of discrete Gaussians algorithm. Also, three thigh muscle groups were segmented utilizing the proposed 3-D Joint Markov Gibbs Random Field model that integrates first order appearance model, spatial information, and shape model to localize the muscle groups. The accuracy of the automatic segmentation method was tested both on SCI (N = 16) and on non-disabled (N = 14) individuals, showing an overall 0.93±0.06 accuracy for adipose tissue and muscle compartments segmentation based on Dice Similarity Coefficient. The proposed framework for muscle compartment segmentation showed an overall higher accuracy compared to ANTs and STAPLE, two previously validated atlas-based segmentation methods. Also, the framework proposed in this study showed similar Dice accuracy and better Hausdorff distance measure to that obtained using DeepMedic Convolutional Neural Network structure, a well-known deep learning network for 3-D medical image segmentation. The automatic segmentation method proposed in this study can provide fast and accurate quantification of adipose and muscle tissues, which have important health and functional implications in the SCI population.
Citation: Mesbah S, Shalaby AM, Stills S, Soliman AM, Willhite A, Harkema SJ, et al. (2019) Novel stochastic framework for automatic segmentation of human thigh MRI volumes and its applications in spinal cord injured individuals. PLoS ONE 14(5): e0216487. https://doi.org/10.1371/journal.pone.0216487
Editor: Dzung Pham, Center for Neuroscience and Regenerative Medicine, UNITED STATES
Received: December 19, 2018; Accepted: April 22, 2019; Published: May 9, 2019
Copyright: © 2019 Mesbah et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: The source code for the proposed framework is available on a public GitHub repository (https://github.com/samine66m/Novel-Stochastic-Framework-for-Automatic-Segmentation-of-Human-Thigh-MRI-Volumes-and-Its-Application) and the data are available upon request from the University of Louisville Human Subjects Protection Program Office (email@example.com) for researchers who meet the criteria to access the confidential data.
Funding: This work was supported by the Leona M. and Harry B. Helmsley Charitable Trust: Susan Harkema; and Helmsley Restorative Medicine Fellowship: Ahmed Shalaby.
Competing interests: The authors have declared that no competing interests exist.
Spinal cord injury (SCI) is one of the primary causes of motor disabilities in humans, with an annual incidence of approximately 17700 new cases only in the United States . Skeletal muscles experience deleterious physiological changes after SCI. Animal studies showed that spinal cord transection reduced muscle mass of hind-limb extensors between 20% and 40% in one month [2–4]. Individuals with chronic SCI also showed cross-sectional area of the whole thigh, knee extensors and plantar flexors that were about 30% smaller compared to non-disabled individuals [5, 6]. In addition, SCI leads to fat infiltration within the muscle (intramuscular adipose tissue) and between muscles (intermuscular adipose tissue, IMAT) [6, 7]. The consequences of severe SCI-induced adaptations on skeletal muscle are two-fold: on one side, the muscle mechanical output is compromised, both in terms of force exertion and fatigue resistance [8, 9], which could limit motor function even if the recovery of neural control was sufficient. Additionally, the concurrent loss of muscle tissue and gain of ectopic (i.e. non-subcutaneous) adipose tissue can favor health-related complications such as pressure ulcer, glucose intolerance, insulin resistance and therefore type II diabetes, metabolic syndrome and cardiovascular disease [6, 7]. However, these negative muscle adaptations can be mitigated by proper interventions that include neuromuscular electrical stimulation, dietary programs and assisted movement trainings [10, 11].
Magnetic resonance imaging (MRI) is a suitable method for examining the effects of SCI and determining the effectiveness of subsequent rehabilitative interventions on skeletal muscle and adipose tissue distribution, because of its multiple forms of contrast weighting and its sensitivity to diffusion, perfusion, and chemical composition of tissues . In particular, determining the SCI- and intervention-induced adaptations in functional key muscle groups, such as knee extensors and flexors, is important for understanding if appropriate muscle volume and ratio between key muscle groups are present at different stages post SCI, as this can affect motor function. Also, MRI can provide useful information for understanding ectopic adipose tissue-related adaptations after SCI and different interventions in order to optimize prevention of SCI-induced health complications. For example, individual characteristics of SCI such as the level of spasticity may influence ectopic adipose tissue distribution as well as skeletal muscle size . Similarly, it is important to evaluate the effects of different interventions (i.e. dietary planning; activity-based training) in order to understand their efficacy and select the most appropriate ones for reducing ectopic adipose tissue and thus contributing to prevent SCI-induced health complications.
It is important to recognize that manually assessing these parameters from MR images presents some relevant limitations, as manual segmentation is laborious, time-consuming, impractical for large studies, and can make the estimated indices subjective to the inter-rater variability to some extent. To overcome these issues, different automatic segmentation methods of MRI images were proposed in the literature. Initial attempts for automatic segmentation of the MR thigh images started with the work of Barra et al. [14, 15] where they used intensity differences between tissues to segment the total muscle and fat areas in elderly population and it was further advanced by others to segment subcutaneous adipose tissue (SAT), IMAT and bone areas in obese or elderly populations [16–18]. More recently, various algorithms were proposed to use prior shape information to segment individual thigh muscles in healthy and elderly populations and individuals with chronic diseases [19, 20]. Automatic and semi-automatic atlas-based methods using image registration algorithms for muscle segmentation have gained more attention recently to segment quadriceps individual muscles and muscle group in healthy individuals [21, 22]. There have also been longitudinal studies on the human thigh muscles using the semi-automatic segmentation methods in individuals with osteoarthritis and those with muscular dystrophy [23, 24].
The field of segmentation and quantitative assessments of medical images has been considerably impacted in recent years by the emergence of deep learning neural networks. In particular, two and three-dimensional Convolutional Neural Networks (CNNs) have shown promising results in various medical imaging fields including several recent studies on segmentation of bone and cartilage in MRI thigh and knee scans [25–29]. However, there are several limitations and additional requirements needed for the application of CNNs on 3-D medical images segmentation, such as an increased number of adjustable network parameters, substantial memory and computational costs, and the need of high-level engineering expertise to properly perform training and testing steps for pre-designed networks [26, 30–32].
Despite the relevant developments regarding the automatic segmentation and quantitative assessments of medical images that have been reported in the literature, there has been no explicit automatic segmentation framework proposed for the SCI population that can accurately and efficiently segment muscle groups like knee extensors and flexors, which play a key functional role, and quantify different types of adipose tissue such as SAT and IMAT. In the present study, we propose a novel stochastic method that integrates intensity, spatial information and shape model to separate fat volumes from the muscle tissue and segment the muscle tissue into three compartments (knee extensors, knee flexors and a medial compartment including the adductor muscles), utilizing the Joint Markov Gibbs Random Field (MGRF) model. In order to test the accuracy of this method, we have applied the proposed framework on both a group of individuals with chronic SCI and a group of non-disabled (ND) individuals, comparing the automatic segmentation outcomes to those obtained from manual segmentation. Moreover, we have also compared the outcomes generated from our novel three-fold stochastic method with those obtained from two other well-known atlas-based techniques in order to highlight the potential improvements brought about by our approach. Finally, the thigh muscle and fat segmentation task was also performed using a well-known CNN architecture to evaluate the advantages and limitations of deep learning approach for this application.
Materials and methods
MRI scan specifications and characteristics of the research participants
In this work, the 3-D MRI scans were acquired using Siemens 3T Magnetom Skyra with pulse sequence–t1 vibe (for 3-D VIBE images) for in phase, opposite phase, water, and fat imaging. The volume dimensions (X, Y, Z) are 320 by 208 by 320 and the series length is 1. Voxel dimensions (X, Y, Z) are 1.5 x 1.5 x 1.5 mm, size of series point is 0.006 seconds and the slice gap is equal to zero. The thigh MRI scans analyzed in this study were collected from a total of 30 participants including 16 individuals with chronic SCI and 14 ND subjects. The characteristics of the 16 individuals with severe chronic SCI were the following: age (year): 32.4 ± 9.1; time since injury (year): 6.7 ± 7.7; 13 males and 3 females; 10 individuals classified as American Spinal Injury Association (ASIA) impairment scale (AIS) A, 5 individuals as AIS B, and 1 individual as C as for the International Standards for Neurological Classification of Spinal Cord Injury ; height (m): 1.78 ± 0.09; weight (kg): 77.19 ± 12.48; body mass index (BMI) (kg/m2): 24.36 ± 3.99. The 14 ND subjects included in this study presented were 11 males and 3 females with age (year): 28.47 ± 3.8; height (m): 1.80 ± 0.10; weight (kg): 92.56 ± 15.30; BMI (kg/m2): 28.54 ± 4.27 (S1 Table). All participants were fully informed about the aims of the study and written consent was provided from all individuals, which was approved by the University of Louisville Institutional Review Board. All research activities were performed in accordance with the guidelines and regulations of this Institutional Review Board.
Automatic segmentation framework
A 3-D stochastic framework for fat suppressed (FS) and water suppressed (WS) MRI muscles and fat segmentation is proposed in Fig 1. The proposed system consists of a preprocessing step to prepare the data for automatic segmentation, which includes bias-field correction, extraction of the central 50 slices between greater trochanter and lateral epicondyle of the femur, and cropping and resizing the MRI images to include only one thigh for further processing steps. The automatic segmentation part is divided to 4 steps. In the first step, which is devoted to fat and muscle area segmentation, the sum of WS and FS volumetric MRI is utilized to get the mask of the whole thigh volume and the bone marrow area utilizing Linear Combination of Discrete Gaussians (LCDG) algorithm . The same method was used on each FS-MRI volume to initially extract muscle volume and WS-MRI volume to segment the total adipose tissue. Moreover, SAT was separated from IMAT by overlaying the muscle tissue mask, obtained from the FS volume, on the total fat segments from the WS volume. In the second step, each greyscale muscle volume and its manually segmented muscle groups (training dataset) are co-aligned to a reference dataset using a 3-D cubic B-splines-based approach (described in ) to account for the anatomical differences of each patient’s extracted muscle volumes. The third step consists of joint Markov model that simultaneously maximizes the likelihood estimation of three components: Appearance-based shape (muscles anatomy), spatial (second order appearance) and intensity (first order appearance) models by using iterated conditional modes to localize and segment three muscle groups (knee extensors, knee flexors and the medial compartment, which includes Sartorius, adductor longus, gracilis, adductor brevus, and adductor magnus muscles) for the test subjects. The fourth and last step consisted in quantifying the effects of SCI on human thigh muscles by calculating the volume of the segmented tissues. More details about the joint Markov model will be discussed in the following sections.
The Block diagram of the proposed framework for muscles/fat segmentation and quantification based on MRI 3-D volumes.
Linear Combination of Discrete Gaussians (LCDG).
The main objective of LCDG is to find the threshold for each gray volume that extracts the 2 classes (corresponding to the dark tissues, and light tissues) from their background. In case of FS-MRI scans (Fig 2A), the dark tissues represent the fat and the light tissues represent the muscles area (vice versa for WS-MRI scans). At the end of the LCDG step, we get two probabilities for each voxel of the input volumes: P1 which is the probability of belonging to class 1 (dark tissue) and P2 which is the probability of belonging to class 2 (light tissue). The voxel-wise LCDG probability, will be combined to obtain the muscle, SAT and IMAT areas from FS, WS and FS+WS MRI scans. Fig 2 illustrates the steps of the muscle area segmentation using LCDG algorithm for FS-MRI volumes. Fig 2B shows the initial approximation of the bi-modal empirical distribution of Q = 256 grey levels over a typical FS-MRI volume of human thigh. The dominant modes represent the brighter muscles area and its darker background (fat area). After calculating the deviations between the dominant modes and the empirical distribution, the additive and subtractive parts of the deviations (standard and absolute) are approximated with DG mixtures. The initial mixed LCDG-model consists of the 2 dominant, 4 additive and 4 subtractive DGs (brown curves), as shown in Fig 2C and 2D). Finally, the estimated LCDG as well as conditional LCDG models of the two classes (i.e. muscles and fat tissues) are illustrated in Fig 2E and 2F. This algorithm is also used for WS-MRI scans to segment the fat tissue and FS+WS to segment the whole thigh mask and the bone.
LCDG algorithm output on (a) exemplary 3D FS-MRI image data; (b) probability density functions of the image voxels in Fig 2A, as determined empirically, and as approximated via LCDG using two dominant DGs; (c) the deviations (standard and absolute) between the empirical and estimated marginal probability density functions in Fig 2B; (d) LCDG algorithm output on the dominant and subordinate DGs in the image data in Fig 2A; (e) the final estimated LCDG model of the empirical density function; and (f) the final LCDG output of the conditional probability density functions of light tissue (muscle) and dark tissue (fat) intensities and the empirical density function.
Joint Markov Gibbs Random Field Model.
In order to divide the extracted muscles area into various groups, a registered-to-reference database of grayscale volume, g, of the muscle groups area and its map, m, are described with a joint probability model: P(g,m) = P(g|m)P(m), which combines a conditional probability distribution of the input volume given the map P(g|m), and an unconditional probability distribution of maps P(m) = Psp(m)PV(m), where, Psp(m) represents an adaptive shape prior and PV(m) is a Gibbs probability distribution with potentials V, which denotes a sample of a 3D MGRF model of m .
Appearance-based shape model. In order to reduce the variability across subjects and enhance the segmentation accuracy, an adaptive shape model of each muscle group is employed. To create the shape database, a selected training set of volumes, collected from manually segmented subjects, are registered to a reference dataset using a 3-D B-splines-based transformation that is previously developed . The selection for training dataset has been done based on the 2-D correlation coefficient (number between 0 and 1) between the grayscale images of the manually segmented volumes and the test volume. If the average correlation coefficient for the whole volume is more than or equal to 0.5, that dataset will be selected for training otherwise it will be rejected. After selection, the training volumes are registered to the reference volume. Therefore, for each new test subject, an individual training set is built to help with variability reduction for muscle group segmentation.
In summary, each source volume f (i.e., each of the training subjects) is aligned to the reference template g on a domain Ω ⊂ R3 by using a non-rigid registration. Given a certain source f, the registration estimates the deformation field T for all x ∈ Ω, by displacing a sparse grid, Ω’ ⊂ Ω of control points, : (1) where is the displacement vector of the control point and the weighting function (.) measures the contribution of any control point in Ω’ to the displacement of a point in Ω. The goal is that the deformation field minimizes the point-wise dissimilarity between the target g and the deformed source f: (2) where is the dissimilarity function (we used the sum of absolute differences). The objective function in Eq 2 is minimized using a Markov random field model of displacements of the control points . The dense displacement field is then determined from the control point displacements through representing free form deformations via cubic B-splines. We have selected this method because it is fully automated (no manual initialization or hand-picked landmarks) and has low computational time. More details can be found in , .
The probabilistic shape priors are spatially variant independent random fields of region labels, as following: (3) where psp:x,y,z(l) is the voxel-wise empirical probabilities for each label l ∈ L. To segment each input MRI data, an adaptive process guided by the visual appearance features of the input MRI data is used to construct the shape prior. This shape prior consists of four labels: the 3 muscle groups and the background. In the training phase, we use N-1 (N number of subjects) manually segmented data sets by an MRI expert to create the probabilistic maps for the four labels. For the testing phase, each training set is registered using the same approach in , to the test MRI volume used to create the discussed shape prior.
Spatial interaction (second-order appearance model). In order to overcome noise effects and to ensure segmentation homogeneity, spatially homogeneous 3D pair-wise interactions between the region labels are additionally incorporated in the proposed segmentation model. These interactions are estimated using the Potts model, i.e., an MGRF with the nearest 26-neighbors of the voxels (also known as cliques), and analytic bi-valued Gibbs potentials, that depend only on whether the nearest pairs of labels are equal or not. The utilized second-order 3D MGRF model of the region map m is defined as: (4) where is the normalization factor. Let feq(m) denote the relative frequency of equal labels in the neighboring voxel pairs. The initial region map results in an approximation with the following analytical maximum likelihood estimates of the potentials : (5) which allows for computing the voxel-wise probabilities of each label; l ∈ L. More details are in .
Intensity (first-order appearance) model. Our approach also accounts for the visual appearance of the muscles besides the learned shape model and the spatial interactions. Therefore, an intensity-based model using LCDG with positive and negative DG sub-components is applied to improve the initially obtained segmentation accuracy. The role of LCDG is to accurately approximate the empirical gray level distribution of FS-MRI voxel intensities with combination of dominant and subordinate DGs for each label (muscle group). This approximation adapts the segmentation to the changes in appearance, such as non-linear intensity variations caused by different IMAT distributions between muscle groups. At the end of this stage, each grayscale voxel existing in the target volume was mapped to a class with the highest occurrence probability.
Algorithm I: The proposed muscles group segmentation approach
For each input FS and WS MRI volumes with grayscale volume g:
- a) Use LCDG to initially extract muscle volume from adipose tissue and bone.
- b) Select atlas volumes using 2-D correlation coefficient measure between the training database and the target volume.
- c) Use non-linear registration to transpose selected atlas volumes' voxels to the reference volume space.
- d) Form an initial region map m using the marginal estimated density and prior shape of each muscle group label.
- e) Find the Gibbs potentials for the MGRF model from the initial map.
- f) Approximate the marginal intensity distribution P(g|m) of each muscle group using LCDG.
- g) Improve the region map m by assigning each voxels to a class with the highest probability density based on its gray value.
Segmentation accuracy metrics
To evaluate the results, we calculated the segmentation accuracy compared to the ground truth (obtained from manual segmentation) using Dice similarity coefficient (DC) , Recall (R = ), Precision (P = ) and the Hausdorff distance (HD) . The DC measures the concordance between two enclosed volumes as follows (6)
where FP represents the number of false positive (i.e. the total number of the misclassified voxels of the background), FN is the number of false negative (i.e. the total number of the misclassified voxels of the object), and TP is the true positive (i.e. total number of the correctly classified pixels), as shown in Fig 3A and 3B. On the other hand, The HD is defined as: (7) where X and Y are the boundaries of two different volumes. It measures how far two subsets of a metric space are from each other, as shown in Fig 3B. High DC, R, P and a low HD are desirable for good segmentation.
(a) In the segmentation quality measurements, there are 4 regions to be considered as: True positive (TP), false positive (FP), true negative (TN), and false negative (FN). (b) The calculation of the HD between the red line X and the blue line Y.
Manual segmentation, ANTs, STAPLE and DeepMedic algorithms
Manual segmentation of MR images were performed by one expert operator using MANGO software (Research Imaging Institute, UTHSCSA) for determining SAT, IMAT, whole muscle, and the 3 muscle compartments considered in this study.
To compare the proposed method (A1) with other automatic segmentation alternatives, MRI volumes are subsequently segmented using: (A2) an atlas based segmentation approach using ANTs registration algorithm . In this technique, to estimate accurate mapping between the same structures/tissues of each atlas subject and the test one, the nonlinear Symmetric Normalization (diffeomorphic metric mapping algorithm) has been used to obtain such a 3D deformation fields that will be applied for the corresponding labeled subject. Finally, a majority voting classifier is used to fuse the aligned atlas subjects into the final automatic segmentation. The second method (A3) is known as simultaneous truth and performance level estimation (STAPLE) described in [41, 42]. This algorithm considers a collection of segmentations (atlas subjects) and computes a probabilistic estimate of the final segmentation. All atlas MRI scans are aligned to the target scan and the obtained deformation fields are applied to the counterpart segmentation. The fused final segmentation is formed by estimating an optimal combination of the aligned atlas subjects incorporating a prior model for the spatial distribution of structures being segmented as well as spatial homogeneity constrains.
The total thigh MRI segmentation framework was also performed with a pre-designed CNN architecture known as DeepMedic network, which was initially designed for segmentation of brain lesions in 3-D multi-modal MRI images and won the SISS-ISLES 2015 segmentation challenge . We followed the implementation steps as recommended by the developers in order to achieve the network’s best segmentation performance for segmenting SAT, IMAT, bone and three muscle compartments. To calculate the total accuracy of the DeepMedic network, we used three-fold validation method by training the network with 20 3-D MRI scans, including both SCI and ND thigh scans, and testing on the remaining 10 scans and then swapping between training and testing groups to assess the automatic segmentation results for all scans.
The manual segmentation and the proposed framework were run on a PC with 3.60 GHz, Core i7 CPU and 16.0 GB RAM. The ANTs and STAPLE algorithms were run with 3.0 GHz Core i7 Quad CPU processor and 64GB RAM. Both computers had Windows 10 OS, MATLAB R2015b and C++ programs. The CNN code was run on both 3.50 GHz, 12 Core CPU with 256.0 GB RAM and NVIDIA 1070 Ti GPU with Linux OS and Python and TensorFlow programs.
Data availability statement
The source code for the proposed framework is available on a public GitHub repository (https://github.com/samine66m/Novel-Stochastic-Framework-for-Automatic-Segmentation-of-Human-Thigh-MRI-Volumes-and-Its-Application) and the data are available from the University of Louisville Human Subjects Protection Program Office (firstname.lastname@example.org) for researchers who meet the criteria to access the confidential data.
Segmentation of SAT, IMAT and bone
Fig 4 shows examples of the LCDG results on the sum of WS- and FS-MRI volumes, WS-MRI volumes and FS-MRI volumes (Fig 4A) for extraction of the whole thigh, whole fat, whole muscle mask (Fig 4B) as well as bone area (Fig 4C). Also, an example of 3D visualization of the final thigh segmentation results for SCI and ND is reported in Fig 4D. As explained in the methodology section, the SAT and IMAT areas were separated by using the whole muscle area as a mask on the whole fat area.
(a) From left to right: gray scale MR images for FS+WS, WS and FS; (b) From left to right: binary mask of total thigh area, total fat and total muscle area; (c) From left to right: steps for segmenting the bone and bone marrow; (d) 3-D representations of the segmentation results for SCI (left) and ND (right) thigh; Grey: Muscle area, Yellow: SAT, Blue: IMAT, Red: bone.
The average accuracy of the initial segmentation of fat tissue was tested by comparison of the automatic results with the manual segmentation of SAT, IMAT and thigh muscle. The comparison was made based on calculating the DC, R and P as accuracy measures. The average values of these three accuracy measures are presented in Table 1. Additionally, the individual numbers for all the accuracy metrics are presented in S2 Table.
Muscles group segmentation
To obtain the accuracy of the three automatic muscle group segmentations, we used the common technique of “leave-one-subject-out”, where N-1 subjects are used to build the atlas and one subject was left out for testing, and we repeated this for all subjects in the SCI and ND groups separately. Fig 5 reports examples of the cross sectional area of the original grayscale MRIs (Fig 5A), the results of the automatic segmentation of the muscle groups (Fig 5B), manually segmented muscle groups overlaid on automatic segmentation (Fig 5C), and 3-D representation of automatic segmentation of muscle groups (Fig 5D).
(a) original cross sectional MR image; (b) automatic segmentation of muscle groups: blue area is extensor, red is flexor and yellow presents the medial compartment; (c) manually segmented muscle groups (cyan lines) overlaid on automatic segmentation for comparison; and (d) 3-D representation of automatic segmentation of muscle groups: blue volume is extensor, red is flexor and yellow presents the medial muscle group.
Comparison with ANTs and STAPLE
The average accuracy results for different methods (A1: proposed joint MGRF algorithm, A2: ANTs, and A3: STAPLE) are presented in Table 2, and related boxplot representations for DC and HD results are also reported in S3 and S4 Tables. The proposed method (A1) reaches 90.79% overall DC, 91.08% of precision, 91.19% of recall, and 16.83 mm of HD compared to DC = 84.39%, P = 90.72%, R = 81.96%, and HD = 19.64 mm for A2, and DC = 86.03%, P = 91.12%, R = 86.16%, and HD = 18.29 mm for A3. In summary, these data show that our approach leads to more accurate results compared to the other two methods that were tested in this study.
Comparison with 3-D CNN
In order to examine advantages and limitations of the deep learning approach for thigh MRI segmentation task, we have implemented the DeepMedic CNN network structure to perform the segmentation task on our entire dataset. Based on the DC similarity measure for segmentation of the three muscle groups without the IMAT, and segmentation of bone and SAT volumes, the performance of the trained CNN network was 0.93±0.03 when all 30 subjects included in the present study were considered; this value was slightly higher than that obtained using the framework proposed in this study (0.92±0.05). On the other hand, the precision measure of our framework (0.94±0.06) was slightly higher than the CNN (0.93±0.05) and the total HD calculated for our framework is only 11.82±6.72 mm which is considerably higher than the HD value calculated for the CNN network, 20.48±16.43 mm, suggesting that CNN network tended to be less accurate than the framework proposed in the present based on this accuracy measure (S5 Table).
Comparison between SCI and ND volumes
The volumes of SAT, IMAT, thigh muscle, extensor muscles, flexor muscles, and medial compartment muscles were calculated based on both manual and automatic segmentation for all subjects, and presented for the SCI and ND groups separately (Fig 6). In order to determine any statistically significant difference between SCI and ND groups for each of these parameters, we used the non-parametric two-tailed Wilcoxon rank sum test with alpha level set at 0.05. This test can be used for two populations with unequal sample sizes and independent samples. The SAT and IMAT volumes were significantly greater in ND compared to SCI when the results from automatic segmentation were considered (Fig 6A and 6B), and the same trend (p = 0.058) was observed also for manual segmentation. Similarly, all muscle-related volumes were significantly greater in the ND group (p<0.0001) when both manual and automatic segmentation were considered (Fig 6C–6F). The individual numbers for this comparison are presented in S6 Table.
The primary focus of this study was to design, implement and examine a fully automatic framework for MRI thigh muscle and adipose tissue segmentation and volume quantification in individuals with severe SCI. The proposed segmentation framework (Fig 1) consists of three main steps: total muscle and adipose tissue segmentation based on the intensity contrast between different tissues; three muscle compartments segmentation based on three-fold stochastic integrated model (shape prior, spatial interactions and intensity); and volume quantification of the segmented parts.
In the early attempts for automatic segmentation of fat and muscle areas in MRI scans, most methods were initially designed to separate muscle and adipose tissues based on their pixel signal intensity differences. Particularly in the segmentation of MRI scans of human thighs, Barra et al. [14, 15] proposed fuzzy clustering algorithm using gray-level as voxel feature with post-processing adjustments to segment muscle and fat volumes. Histogram thresholding methods were also utilized broadly in the literature for this task . Imamoglu et al.  also used MRI thigh scans with saliency features to extract thigh muscle volumes using morphological operations and binary fuzzy decision-based fusion. In spite of their popularity, intensity-based methods have a major setback as, for example, they cannot distinguish between different types of fat (SAT/IMAT). Therefore, the automatic segmentation methods have evolved to more advanced techniques to make these separations possible. For instance, Positano et al.  in 2009 added the active contour algorithm to the fuzzy clustering method to segment SAT and bone area and expectation maximization (EM) algorithm to separate IMAT from muscle area when investigating obese individuals. Similarly, Kovacs et al.  used the contouring method to segment fascia lata to separate SAT and IMAT in severe muscular dystrophy cases. In a recent study, Irmakci et al.  proposed an extended version of fuzzy connectivity method to segment the fat and whole muscle areas of thighs as well as brain and whole body tissue using multi-modal MRI images. However, segmenting the challenging task of segmenting different muscles or muscle groups in the absence of substantial intensity differences between muscles is not addressed in this study. In the present study, we also used LCDG intensity-based method for assessing thigh muscle and adipose tissue using FS and WS MRI scans of thigh. The multi-modal MRI scans of thigh muscles have been rarely used in previous automatic thigh segmentation studies. This alternative modality of MRI is particularly advantageous for thigh segmentation since it uses opposite contrasts for fat and muscle tissues in FS and WS images, and therefore by utilizing intensity-based method (LCDG) only, we could segment the whole adipose tissue in WS slices and the whole muscle area in FS images and use it as a mask to separate SAT and IMAT. Utilizing the sum of WS and FS was also used to segment the bone and bone marrow areas (Fig 4). This approach allowed us to avoid the use of a priori shape information or iterative contouring algorithm for this part of the segmentation.
The segmentation of different muscles and/or muscle groups is also a task that intensity-based segmentation methods cannot accomplish. This type of segmentation started with Andrews et al. , who proposed a framework for using principal component analysis (PCA)-based shape prior from the training dataset to segment the knee flexor and extensor individual muscles in MR 3-D volumes. Similarly, Baudin et al. [19, 46] introduced the iterative random walk (RW) segmentation framework for segmenting individual muscles by starting from a priori shape information and utilizing the support vector machine (SVM) method to estimate the RW parameters. A hybrid method was proposed by Andrews and Hamarneh  by combining the generalized log-ratio probabilistic shape model and random forest binary detector to segment each individual muscle of the human thigh. Utilizing the atlas-based methods has been gained more attention in recent years with Ahmad et al.  framework of atlas construction and image registration to segment the quadriceps muscle group. Another atlas-based segmentation method was proposed by Troter et al.  to segment four individual muscle volumes inside the quadriceps group by using semi-automated single-atlas and fully automated multiple-atlas approaches and suggesting that the single-atlas method was more robust for individual muscle segmentation and has a better accuracy. In 2017, Orgier et al.  have proposed a new semi-automatic technique for segmenting the same four quadriceps muscles by manually segmenting the top and bottom slices and using the propagating non-linear registration approach to segment the middle slices. In the thigh volumes segmentation application, we were particularly interested in segmenting knee extensors and knee flexors muscle groups because of their important functional role in human movement generation. Unlike previous studies that only used prior shape information for muscle segmentation, our proposed method uses all three components of shape, spatial (MGRF) and intensity (LCDG) to determine if a given voxel belongs to any of the three muscle groups considered (knee extensors, knee flexors, or medial compartment) (Fig 5). The segmentation method proposed in this study was applied on a group of individuals with severe SCI and on a group of ND individuals. In order to build a generic thigh segmentation atlas for ND group, we recruited individuals considered as normal (N = 3), overweight (N = 5) and obese (N = 6) as for their BMI . The DC accuracy values (Table 1) suggest that the fat and thigh muscle area, which were segmented using the LCDG intensity-based approach showed overall high accuracy values, which were equal to 90.97 ± 6.74% for the SCI group and 93.91 ± 7.02% for the ND group. For the muscle compartment segmentation, the proposed method showed on average 90.41 ± 5.59% accuracy for SCI group and 91.18 ± 5.02% for ND (breakdown numbers are presented in Table 2). The very similar accuracy for the muscle compartment segmentation between SCI and ND is noteworthy, seen as the SCI group showed substantial inter-individual differences, as exemplified in Fig 5 (see subject 4 compared to the other three subjects).
In order to further evaluate our segmentation method, we also compared the accuracy results related to muscle compartment segmentation with those obtained from two other well-known segmentation methods (ANTs and STAPLE). The three-fold integrated model proposed in this study showed an overall greater accuracy compared to ANTs and STAPLE, as for the accuracy measures that were calculated (DC, R, P and HD; Table 2). This may be due to the positive effect of integrating both the appearance and spatial models with the prior shape information from the atlas into a three joint MGRF model. In particular, the prior atlas enables the proposed approach to use known muscle anatomy to distinguish and correctly classify different muscle compartments that have the same appearance, while the spatial models handle any inhomogeneity that may exist within a muscle compartment.
We also performed the entire thigh muscle and fat segmentation task with the well-known DeepMedic 3-D CNN structure to compare its performance with the stochastic-based algorithm proposed in this study. The different trends observed for DC and HD indexes may be due to the fact that the falsely segmented voxels of the CNN method were mostly happened far from the boundary of the targeted areas which have longer distances from the actual borders (greater HD) whereas for the joint MGRF method, the falsely segmented voxels mostly happened near the borders of the muscle groups which lead to smaller HD values. While the CNN performance was comparable to the proposed method for muscle MRI segmentation task, implementing the CNN code required extensive memory and computations as well as expertise in programming in Linux OS, Python and TensorFlow. The total executive run-time for segmenting the entire database using 3-D CNN was 52.0 hours on GPU while the total run-time for the proposed method was only 5.3 hours on CPU (S7 Table). We also attempted to run the DeepMedic software multiple times over 4 weeks for the training step using a regular CPU, but we were unable to properly train the network. The CNN training duration is still dramatically longer than the processing time of the proposed framework. However, once the CNN algorithm is trained, the processing time for segmenting the testing subjects was relatively low. We have shown that the 3-D CNN-based method can be quickly adjusted to thigh MRI segmentation task without any changes to the network structure. Also the CNN can be trained on part of the dataset and segment the other part (test scans) with acceptable accuracy and relatively fast using GPU; however, as the number of test subjects grows over time in a clinical setting, it would be desirable to re-train the network or use transfer learning  to improve the segmentation accuracy. Conversely, in the proposed framework, all the previously segmented and reviewed scans can be utilized in the future atlases to guide the segmentation of a new thigh MRI scan without substantial additional computational cost.
Finally, we compared the volumes of SAT, IMAT, thigh muscle, knee extensors, knee flexors, and medial compartment between SCI and ND groups using the results obtained from both automatic and manual segmentation (Fig 6). The main goal of this comparison was to examine whether the same conclusion in terms of physiological differences between the two groups could be achieved using both segmentation methods. SAT and IMAT volumes were significantly greater (p = 0.023 and p = 0.009, respectively) in ND using automatic segmentation outcomes; a similar trend (p = 0.058) was also observed using the volumes calculated from manual segmentation (Fig 6A and 6B). The greater adipose tissue volumes found in ND is an unexpected finding, as most of the data reported in the literature show that after SCI there is an increase in body fat mass as well as IMAT in the thigh [6, 50]. The ratio between IMAT and thigh muscle volume calculated in the SCI group of the present study (19.8%) is within the range observed in other SCI individuals [6, 50]. On the other hand, most of the ND individuals enrolled in the present study were either overweight or obese, and these conditions can result in increased SAT and IMAT volumes .
Thigh muscle volume and the volumes of the three investigated muscle compartments were significantly greater in ND individuals compared to the SCI group when outcomes from both automatic and manual segmentation were considered (Fig 6C–6F).These findings are in agreements with previous studies that showed marked SCI-induced muscle atrophy [5, 6].
In conclusion, we developed a novel and accurate MRI-based segmentation framework that can automatically segment thigh subcutaneous and intermuscular adipose tissue as well as muscle tissue related to knee extensors and knee flexors in individuals with SCI. These parameters have important health and functional implications in the SCI population and the proposed segmentation method can facilitate the use of MRI to assess individual characteristics and possibly the effects of different interventions. This framework could be further improved by increasing the MRI resolution, which would allow an accurate segmentation of intra-muscular adipose tissue and individual muscles, and by increasing the number of thigh MRI slices from the 50 central to the whole thigh in order to make a more comprehensive assessment of the different volumes.
S1 Table. Clinical characteristics.
Clinical characteristics of research participants.
S2 Table. Accuracy values of proposed method.
Accuracy values for each segmented volume including Extensor muscle group, Flexor muscle group, Medial muscle group, IMAT, SAT, Muscle Area, based on Dice similarity index (SI), Precision (P), Recall (R) and Hausdorff distance (HD) measures.
S3 Table. Accuracy values of ANTs method.
Accuracy values for segmenting extensor, flexor and medial muscle compartments based on Dice similarity index (SI), Precision (P), Recall (R) and Hausdorff distance (HD) measures.
S4 Table. Accuracy values of STAPLE method.
Accuracy values for segmenting extensor, flexor and medial muscle compartments based on Dice similarity index (SI), Precision (P), Recall (R) and Hausdorff distance (HD) measures.
S5 Table. Accuracy values of 3D CNN-based segmentation method and the proposed method.
Accuracy values for segmenting SAT, Extensor compartment without IMAT, Flexor compartment without IMAT and Medial compartment based on Dice similarity index (SI), Precision (P), Recall (R) and Hausdorff distance (HD) measures.
S6 Table. Comparison of automatic and manual segmentation.
Calculated volumes and ratios for manual and automatic segmentation results for Extensor volume, Flexor volume, Medial volume, IMAT volume, SAT volume and Total muscle volume.
- 1. NSCIS. SCI Facts and Figures at a Glance. Birmingham, Alabama: 2018.
- 2. Hiraizumi Y, Fujimaki E, Tachikawa T. Long-term morphology of spastic or flaccid muscles in spinal cord-transected rabbits. Clin Orthop Relat Res. 1990;(260):287–96. pmid:2225635.
- 3. Durozard D, Gabrielle C, Baverel G. Metabolism of rat skeletal muscle after spinal cord transection. Muscle Nerve. 2000;23(10):1561–8. pmid:11003792.
- 4. Landry E, Frenette J, Guertin PA. Body weight, limb size, and muscular properties of early paraplegic mice. J Neurotrauma. 2004;21(8):1008–16. pmid:15319000.
- 5. Shah PK, Stevens JE, Gregory CM, Pathare NC, Jayaraman A, Bickel SC, et al. Lower-extremity muscle cross-sectional area after incomplete spinal cord injury. Arch Phys Med Rehabil. 2006;87(6):772–8. pmid:16731211.
- 6. Gorgey A, Dudley G. Skeletal muscle atrophy and increased intramuscular fat after incomplete spinal cord injury. Spinal Cord. 2007;45:304–9. pmid:16940987
- 7. Nery M, Driver S, Vanderbom K. Systematic Framework to Classify the Status of Research on Spinal Cord Injury and Physical Activity. Archives of Physical Medicine and Rehabilitation. 2013;94(10):2027–31. pmid:23643686
- 8. Shields RK. Fatigability, relaxation properties, and electromyographic responses of the human paralyzed soleus muscle. J Neurophysiol. 1995;73(6):2195–206. pmid:7666132.
- 9. Shields RK. Muscular, skeletal, and neural adaptations following spinal cord injury. J Orthop Sports Phys Ther. 2002;32(2):65–74. pmid:11838582; PubMed Central PMCID: PMCPMC4693289.
- 10. Gorgey AS, Dolbow DR, Dolbow JD, Khalil RK, Gater DR. The effects of electrical stimulation on body composition and metabolic profile after spinal cord injury–Part II. The Journal of Spinal Cord Medicine. 2015;38(1):23–37. pmid:25001669
- 11. Gorgey AS, Dolbow DR, Cifu DX, Gater DR. Neuromuscular electrical stimulation attenuates thigh skeletal muscles atrophy but not trunk muscles after spinal cord injury. Journal of Electromyography and Kinesiology. 2013:977–84. pmid:23683374
- 12. Schick F. Tissue segmentation: a crucial tool for quantitative MRI and visualization of anatomical structures. Magn Reson Mater Phys Biol Med. 2016;29(2):89–93.
- 13. Gorgey AS, Dudley GA. Spasticity may defend skeletal muscle size and composition after incomplete spinal cord injury. Spinal Cord. 2008;46(2):96–102. Epub 2007/07/20. pmid:17637764.
- 14. Barra V, Morio B, Colin A, Vermorel M, Boire J, editors. Automatic assessment of muscle/fat temporal variations on MR images of the thigh. Proceedings of 18th Annual International Conference of the IEEE Engineering in Medicine and Biology Society; 1996; Amsterdam.
- 15. Barra V, Boire J. egmentation of fat and muscle from MR images of the thigh by a possibilistic clustering algorithm. Computer Methods and Programs in Biomedicine. 2002;68(3):185–93. pmid:12074845
- 16. Positano V, Christiansen T, Santarelli MF, Ringgaard S, Landini L, Gastaldelli A. Accurate Segmentation of Subcutaneous and Intermuscular Adipose Tissue From MR Images of the Thigh. JOURNAL OF MAGNETIC RESONANCE IMAGING. 2009;(29):677–84.
- 17. Urricelqui L, Malanda A, Villanueva A. Automatic segmentation of thigh magnetic resonance images. International Journal of Medical, Health, Biomedical, Bioengineering and Pharmaceutical Engineering. 2009;3(10):314–20.
- 18. Irmakci I, Hussein S, Savran A, Kalyani RR, Reiter D, Chia CW, et al. A Novel Extension to Fuzzy Connectivity for Body Composition Analysis: Applications in Thigh, Brain, and Whole Body Tissue Segmentation. IEEE Trans Biomed Eng. 2018. pmid:30176577.
- 19. Baudin P, Goodman D, Kumar P, Azzabou N, Carlier P, Paragios N, et al., editors. Discriminative Parameter Estimation for Random Walks Segmentation. Medical Image Computing and Computer-Assisted Intervention (MICCAI); 2013: Springer.
- 20. Andrews S, Hamarneh G. The Generalized Log-Ratio Transformation: Learning Shape and Adjacency Priors for Simultaneous Thigh Muscle Segmentation. IEEE TRANSACTIONS ON MEDICAL IMAGING. 2015;34(9):1773–87. pmid:25700442
- 21. Ahmad E, Yapa MH, Degensb H, McPhee JS, editors. Atlas-registration based image segmentation of MRI human thigh muscle in 3-D space. Proceedings of SPIE; 2014: The International Society for Optical Engineering.
- 22. Le Troter A, Fouré A, Guye M, Confort‑Gouny S, Mattei JP, Gondin J, et al. Volume measurements of individual muscles in human quadriceps femoris using atlas‑based segmentation approaches. J of Magn Reson MAter Phy. 2016;29:245–57.
- 23. Fatehi F, Salort-Campana E, Le Troter A, Lareau-Trudel E, Bydder M, Fouré A, et al. Long-term follow-up of MRI changes in thigh muscles of patients with Facioscapulohumeral dystrophy: A quantitative study. PLoS ONE 2017;12(8).
- 24. Kemnitz J, Eckstein F, CulvenorRuhdorfer A, Dannhauer T, Ring‑Dimitriou S, Sänger A, et al. Validation of an active shape model‑based semi‑automated segmentation algorithm for the analysis of thigh muscle and adipose tissue cross‑sectional areas. Magn Reson Mater Phy. 2017;30:489–503.
- 25. Hinton GE, Srivastava, N., Krizhevsky, A., Sutskever, I., Salakhutdinov. Improving neural networks by preventing co-adaptation of feature detectors. arXiv. 2012.
- 26. Kamnitsas K, Ledig C, Newcombe VFJ, Simpson JP, Kane AD, Menon DK, et al. Efficient multi-scale 3D CNN with fully connected CRF for accurate brain lesion segmentation. Med Image Anal. 2017;36:61–78. pmid:27865153.
- 27. Deniz CM, Xiang S, Hallyburton RS, Welbeck A, Babb JS, Honig S, et al. Segmentation of the Proximal Femur from MR Images using Deep Convolutional Neural Networks. Scientific Reports. 2018;8(1):16485. pmid:30405145
- 28. Liu F, Zhou Z, Jang H, Samsonov A, Zhao G, Kijowski R. Deep convolutional neural network and 3D deformable approach for tissue segmentation in musculoskeletal magnetic resonance imaging. Magn Reson Med. 2018;79(4):2379–91. pmid:28733975; PubMed Central PMCID: PMCPMC6271435.
- 29. Norman B, Pedoia V, Majumdar S. Use of 2D U-Net Convolutional Neural Networks for Automated Cartilage and Meniscus Segmentation of Knee MR Imaging Data to Determine Relaxometry and Morphometry. Radiology. 2018;288(1):177–85. Epub 03/27. pmid:29584598.
- 30. Prasoon A, Petersen K., Igel C., Lauze F., Dam E., Nielsen M., Deep fea- ture learning for knee cartilage segmentation using a triplanar convolutional neural network. Medical Image Computing and Computer-Assisted Interven- tion–MICCAI: Springer; 2013.
- 31. Roth HR, Lu L., Seff A., Cherry K.M., Hoffman J., Wang S., et al. A new 2.5D representation for lymph node detection us- ing random sets of deep convolutional neural network observations. Medical Image Computing and Computer-Assisted Intervention–MICCAI: Springer; 2014.
- 32. Li R, Zhang W, Suk H-I, Wang L, Li J, Shen D, et al. Deep learning based imaging data completion for improved brain disease diagnosis. Medical Image Computing and Computer-Assisted Intervention–MICCAI: Springer; 2014.
- 33. Waring WP 3rd, Biering-Sorensen F, Burns S, Donovan W, Graves D, Jha A, et al. _ 2009 review and revisions of the international standards for the neurological classification of spinal cord injury. J Spinal Cord Med. 2010;33(4):346–52. pmid:21061894; PubMed Central PMCID: PMCPMC2964022.
- 34. Farag A, El-baz A, Gimelfarb G. Precise segmentation of multi-modal images. IEEE Trans Image Process. 2006;15(4):952–68. pmid:16579381
- 35. Glocker B, Sotiras A, Komodakis N, Paragois N. Deformable medical image registration: Setting the state of the art with discrete methods. Annual Review of Biomedical Engineering. 2011;13:219–44. pmid:21568711
- 36. El-Baz A, Gimel’farb G, Suri JS. Stochastic Modeling for Medical Image Analysis: Taylor & Francis, ISBN; 2016.
- 37. Khalifa F, Beache G, Gimel'farb G, Giridharan G, El-Baz A. Accurate automatic analysis of cardiac cine images. IEEE Trans Biomed Eng. 2012;59(2):445–55. pmid:22057040
- 38. Dice LR. Measures of the Amount of Ecologic Association Between Species. Ecology. 1945;26(3):297–302.
- 39. Huttenlocher DP, Rucklidge WJ, editors. A multi-resolution technique for comparing images using the Hausdorff distance. Proceedings of IEEE Conference on Computer Vision and Pattern Recognition; 1993 15–17 Jun 1993.
- 40. Avants BB, Tustison NJ, Song G, Cook PA, Klein A, Gee JC. A reproducible evaluation of ANTs similarity metric performance in brain image registration. Neuroimage. 2011;54(3):2033–44. pmid:20851191; PubMed Central PMCID: PMCPMC3065962.
- 41. Akhondi-Asl A, Warfield SK. Simultaneous truth and performance level estimation through fusion of probabilistic segmentations. IEEE Trans Med Imaging. 2013;32(10):1840–52. pmid:23744673; PubMed Central PMCID: PMCPMC3788853.
- 42. Warfield SK, Zou KH, Wells WM. Simultaneous truth and performance level estimation (STAPLE): an algorithm for the validation of image segmentation. IEEE Transactions on Medical Imaging. 2004;23(7):903–21. pmid:15250643
- 43. Ogawa M, Lester R, Akima H, Gorgey AS. Quantification of intermuscular and intramuscular adipose tissue using magnetic resonance imaging after neurodegenerative disorders. Neural regeneration research. 2017;12(12):2100–5. pmid:29323052; PubMed Central PMCID: PMCPMC5784361.
- 44. Imamoglu N, Gomez-Tames J, He S, Gu DY, Kita K, Yu W, editors. Unsupervised muscle region extraction by fuzzy decision based saliency feature integration on thigh MRI for 3D modeling. 2015 14th IAPR International Conference on Machine Vision Applications (MVA); 2015 18–22 May 2015.
- 45. Kovacs W, Liu CY, Summers R, Yao J, editors. Identification of muscle and subcutaneous and intermuscular adipose tissue on thigh MRI of muscular dystrophy. 2016 IEEE 13th International Symposium on Biomedical Imaging (ISBI); 2016 13–16 April 2016.
- 46. Baudin PY, Azzabou N, Carlier PG, Paragios N, editors. Prior knowledge, random walks and human skeletal muscle segmentation. MICCAI; 2012: Springer.
- 47. Ogier A, Sdika M, Fouré A, Le Troter A, Bendahan D, editors. Individual muscle segmentation in MR images: A 3D propagation through 2D non-linear registration approaches. 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC); 2017.
- 48. Garrow JS, Webster J. Quetelet's index (W/H2) as a measure of fatness. Int J Obes. 1985;9(2):147–53. pmid:4030199.
- 49. Shin HC, Roth HR, Gao M, Lu L, Xu Z, Nogues I, et al. Deep Convolutional Neural Networks for Computer-Aided Detection: CNN Architectures, Dataset Characteristics and Transfer Learning. IEEE Trans Med Imaging. 2016;35(5):1285–98. pmid:26886976; PubMed Central PMCID: PMCPMC4890616.
- 50. Elder C, Apple D, Bickel C, Meyer R, Dudley G. Intramuscular fat and glucose tolerance after spinal cord injury–a cross-sectional study. Spinal Cord. 2004:711–6. pmid:15303112
- 51. Addison O, Marcus RL, Lastayo PC, Ryan AS. Intermuscular fat: a review of the consequences and causes. International journal of endocrinology. 2014;2014:309570. Epub 2014/02/15. pmid:24527032; PubMed Central PMCID: PMCPMC3910392.