Comparison of hidden Markov chain models and hidden Markov random field models in estimation of computed tomography images
Kristi Kuljus, Fekadu L. Bayisa, David Bolin, J\"uri Lember, and Jun, Yu

TL;DR
This study compares hidden Markov chain models and hidden Markov random field models for predicting CT images from MRI data, finding that HMMs outperform HMRFs in this application.
Contribution
The paper demonstrates that hidden Markov chain models outperform hidden Markov random field models in CT image prediction from MRI, suggesting HMMs as a promising alternative.
Findings
HMMs outperform HMRFs in CT image prediction.
HMMs show advantages in modeling applications for medical imaging.
Results support further investigation of HMMs in imaging tasks.
Abstract
There is an interest to replace computed tomography (CT) images with magnetic resonance (MR) images for a number of diagnostic and therapeutic workflows. In this article, predicting CT images from a number of magnetic resonance imaging (MRI) sequences using regression approach is explored. Two principal areas of application for estimated CT images are dose calculations in MRI-based radiotherapy treatment planning and attenuation correction for positron emission tomography (PET)/MRI. The main purpose of this work is to investigate the performance of hidden Markov (chain) models (HMMs) in comparison to hidden Markov random field (HMRF) models when predicting CT images of head. Our study shows that HMMs have clear advantages over HMRF models in this particular application. Obtained results suggest that HMMs deserve a further study for investigating their potential in modelling applications…
| HMM | HMRF | GMM | |||||
|---|---|---|---|---|---|---|---|
| Head | K=5 | K=8 | K=10 | K=5 | K=8 | K=5 | K=8 |
| 1 | 160.21 | 146.31 | 144.38 | 149.42 | 203.94 | 161.24 | 169.96 |
| 2 | 170.83 | 146.15 | 150.11 | 157.66 | 177.91 | 175.45 | 166.92 |
| 3 | 293.24 | 297.35 | 298.28 | 291.86 | 302.68 | 291.48 | 298.37 |
| 4 | 190.20 | 157.00 | 154.78 | 173.47 | 177.48 | 194.79 | 186.38 |
| 5 | 251.54 | 259.67 | 271.97 | 256.20 | 302.37 | 256.51 | 267.80 |
| 6 | 211.59 | 199.34 | 221.07 | 198.01 | 238.29 | 215.09 | 224.79 |
| 7 | 355.96 | 351.73 | 350.19 | 368.19 | 347.40 | 341.20 | |
| 8 | 183.09 | 153.21 | 149.71 | 167.52 | 162.44 | 181.53 | 171.75 |
| 9 | 170.33 | 153.87 | 151.88 | 161.78 | 171.26 | 167.24 | |
| Mean | 220.78 | 207.18 | 210.26 | 213.79 | 221.64 | 221.60 | |
| Head | [-1] | [-2] | [-3] | [-4] | [-5] | [-6] | [-7] | [-8] | [-9] |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 146.31 | 144.96 | 142.37 | 147.48 | 135.68 | 139.04 | 141.91 | 147.74 | 146.17 |
| 2 | 145.80 | 146.15 | 142.64 | 147.94 | 137.89 | 141.56 | 142.49 | 147.73 | 146.28 |
| 3 | 293.46 | 292.65 | 297.35 | 292.05 | 290.75 | 289.85 | 299.26 | 292.95 | 293.19 |
| 4 | 151.98 | 151.91 | 148.38 | 157.00 | 145.70 | 149.41 | 146.56 | 155.58 | 153.46 |
| 5 | 218.76 | 219.27 | 217.91 | 217.49 | 259.67 | 239.26 | 222.24 | 217.46 | 218.07 |
| 6 | 183.24 | 183.34 | 181.24 | 184.24 | 208.66 | 199.34 | 182.44 | 183.63 | 183.44 |
| 7 | 318.16 | 318.67 | 323.02 | 316.76 | 320.35 | 314.42 | 351.73 | 316.44 | 317.14 |
| 8 | 149.32 | 148.52 | 146.09 | 151.98 | 137.93 | 142.30 | 143.53 | 153.21 | 149.67 |
| 9 | 152.88 | 151.79 | 149.18 | 154.76 | 145.60 | 147.65 | 149.32 | 154.89 | 153.87 |
| HMM | HMRF | GMM | ||||
| Head | K=5 | K=8 | K=5 | K=8 | K=5 | K=8 |
| 1 | 133.57 | 133.86 | 137.80 | 158.51 | 153.69 | 144.92 |
| 2 | 138.69 | 141.30 | 137.47 | 158.98 | 160.12 | 153.39∗ |
| 4 | 154.97 | 149.47 | 159.14 | 162.37 | 179.56 | 166.32 |
| 8 | 139.34 | 136.32 | 145.09 | 146.71∗ | 160.55 | 150.91 |
| 9 | 143.90 | 151.02 | 165.41 | 152.39∗ | 169.99 | 160.68 |
| Mean | 142.09 | 142.39 | 148.98 | 155.79 | 164.78 | 155.24 |
| HMM | |||||
|---|---|---|---|---|---|
| M1 | -1018 | -527 | -13 | 32 | 654 |
| M2 | -1018 | -512 | -3 | 31 | 657 |
| M3 | -1020 | -590 | -12 | 31 | 500 |
| M4 | -1018 | -518 | -10 | 31 | 600 |
| M5 | -1018 | -515 | -12 | 32 | 652 |
| HMRF | |||||
| M1 | -1019 | -590 | -17 | 32 | 546 |
| M2 | -1019 | -544 | -9 | 31 | 599 |
| M3 | -1021 | -617 | -18 | 31 | 475 |
| M4 | -1020 | -585 | -15 | 31 | 485 |
| M5 | -1021 | -608 | -17 | 32 | 513 |
| GMM | |||||
| M1 | -1021 | -649 | -7 | 32 | 499 |
| M2 | -1024 | -748 | 2 | 32 | 471 |
| M3 | -1024 | -743 | -10 | 31 | 439 |
| M4 | -1024 | -757 | -4 | 31 | 429 |
| M5 | -1024 | -755 | -7 | 32 | 473 |
| HMM | ||||||||
|---|---|---|---|---|---|---|---|---|
| M1 | -1021 | -659 | -47 | -39 | 29 | 34 | 43 | 914 |
| M2 | -1021 | -655 | -31 | -6 | 28 | 33 | 44 | 922 |
| M3 | -1022 | -660 | -47 | -41 | 28 | 32 | 41 | 890 |
| M4 | -1021 | -657 | -55 | -40 | 28 | 33 | 44 | 868 |
| M5 | -1022 | -672 | -48 | -41 | 29 | 34 | 43 | 924 |
| HMRF | ||||||||
| M1 | -1021 | -645 | -68 | -42 | 28 | 34 | 37 | 940 |
| M2 | -1022 | -678 | -35 | -22 | 28 | 33 | 37 | 936 |
| M3 | -1022 | -655 | -52 | -43 | 27 | 32 | 37 | 918 |
| M4∗ | -1023 | -1009 | -504 | -142 | -24 | 33 | 34 | 763 |
| M5∗ | -1024 | -1009 | -520 | -62 | -27 | 33 | 34 | 942 |
| GMM | ||||||||
| M1 | -1024 | -908 | -55 | -15 | 32 | 34 | 212 | 1129 |
| M2∗ | -1024 | -780 | -238 | -9 | 31 | 33 | 436 | 747 |
| M3 | -1024 | -781 | -24 | -19 | 31 | 33 | 241 | 1097 |
| M4 | -1024 | -752 | -36 | -2 | 26 | 33 | 50 | 800 |
| M5 | -1024 | -752 | -36 | 12 | 28 | 34 | 49 | 875 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMedical Imaging Techniques and Applications · Advanced Radiotherapy Techniques · Radiomics and Machine Learning in Medical Imaging
Comparison of hidden Markov chain models and hidden Markov random field models in estimation of computed tomography images
Kristi Kuljus 1111Corresponding author, e-mail: [email protected], Fekadu L. Bayisa 2, David Bolin 3, Jüri Lember 1 and Jun Yu 2
(April 17, 2017)
Abstract
There is an interest to replace computed tomography (CT) images with magnetic resonance (MR) images for a number of diagnostic and therapeutic workflows. In this article, predicting CT images from a number of magnetic resonance imaging (MRI) sequences using regression approach is explored. Two principal areas of application for estimated CT images are dose calculations in MRI based radiotherapy treatment planning and attenuation correction for positron emission tomography (PET)/MRI. The main purpose of this work is to investigate the performance of hidden Markov (chain) models (HMMs) in comparison to hidden Markov random field (HMRF) models when predicting CT images of head. Our study shows that HMMs have clear advantages over HMRF models in this particular application. Obtained results suggest that HMMs deserve a further study for investigating their potential in modeling applications where the most natural theoretical choice would be the class of HMRF models.
1University of Tartu, Estonia; 2Umeå University, Sweden;
3Chalmers University of Technology and University of Gothenburg, Sweden
Keywords:
computed tomography, magnetic resonance imaging, pseudo-CT, hidden Markov model, hidden Markov random field, unsupervised modeling, radiotherapy, attenuation correction
1 Introduction
Magnetic resonance imaging (MRI) and computed tomography (CT) are two different medical imaging technologies that enable to image the anatomy of the human body. Images are widely used for medical diagnostics. The two technologies provide complementary information, both have advantages and limitations. For most MRI sequences, the soft tissue contrast is superior to that of CT. Therefore, MRI provides a considerable advantage over CT when identifying or delineating tumors. Varying the imaging parameters enables to obtain MR images better suited for particular purposes. A major disadvantage of MRI is that the contrast between air and bone is poor. Since bone has low hydrogen density, both bone and air appear dark in an MR image. CT images are acquired using ionizing radiation, which is both an advantage and disadvantage of CT imaging. On the one hand, CT intensity values reflect the radiation interaction properties of the tissues that are needed for dose planning in radiotherapy. On the other hand, being exposed to radiation during CT examinations is associated with a risk to induce cancer, because radiation can damage body cells. Further, CT gives better images of bones and CT investigation takes shorter time. To summarize, one can say that if MRI and CT could yield the same diagnostic information, then MRI would be preferred and recommended over CT. Therefore, it is desirable to investigate whether one can substitute CT images with so-called pseudo-CT images (sometimes also called CT substitutes) that are estimated from MRI sequences. The question is how good CT estimates are we able to obtain and for what purposes are these pseudo-CT images feasible.
There is a crucial need for estimating CT images from MR images. Two very important application areas for pseudo-CT images are attenuation correction in positron emission tomography (PET)/MRI and MRI-based dose planning in radiotherapy. A comprehensive state-of-the-art overview of MRI-guided attenuation correction methods in PET/MRI can be found in Mehranian et al. (2016). The existing works in the area of deriving CT images from MR images can be roughly divided into four classes (see Huynh et al. (2016) and the references therein): tissue segmentation based methods, atlas-based methods, learning-based methods, integration of atlas-based and pattern recognition methods. The latest contribution to deriving pseudo-CT images in the class of learning-based methods is the random forest method (Huynh et al., 2016). For a short overview of different pseudo-CT generating methods, we refer also to Johansson (2014) and the references therein.
In this article we continue exploring a voxel-wise direct conversion method introduced in Johansson et al. (2011) and further studied in Johansson et al. (2012, 2013), belonging to the class of learning-based methods. It was seen in these works that the studied regression method provides pseudo-CT images with satisfying quality for dose calculations and attenuation correction. The idea of learning-based methods is that a model for predicting CT images from MR images is estimated using a training data set, and the estimated model is then applied to a target MR image(s). As mentioned above, it is difficult to image bones with MRI, but there is a particular category of MRI sequences with ultrashort echo time (so-called UTE sequences) that can sample the MRI signal from bone before it is lost. Even if with UTE sequences bones can be imaged with weak intensity and poor resolution, these sequences make regression approach for predicting CT images feasible. The main idea is to model the joint distribution of a CT measurement sequence and a number of MRI sequences. The regression function is then obtained as the conditional expectation of CT given the MRI sequences, and pseudo-CT images are derived voxel-wise. In Johansson et al. (2011, 2012, 2013), the regression approach was applied with Gaussian mixture models (GMMs), which ignore spatial dependence structure by assuming that voxels are independent. Since obviously voxels in the human body are not spatially independent, it is essential to study how much better substitute images can be derived with more appropriate models, where spatial dependence structure in the data is accounted for.
The main aim of this article is to investigate the performance of hidden Markov (chain) models (HMMs) in comparison to hidden Markov random field (HMRF) models and GMMs, when the purpose is to estimate head CT images from a number of MR sequences. For all the three model classes, the observed variables depend on latent variables indicating what class (i.e. tissue class or a mixture of tissue classes) the corresponding voxel belongs to. In GMM, the latent variables are assumed to be independent. In the case of first-order neighbourhood structure, every voxel has six neighbours in . The HMRF model takes into account all the six neighbours, while HMM accounts for two neighbours. Therefore, HMM lies somewhere between GMM and HMRF. Examples in Fjørtoft et al. (2003) show that HMRF and HMM can compete in terms of parameter estimation and classification accuracy, while HMM is more robust and computationally much faster and easier to handle. Besides, the classification examples in Fjørtoft et al. (2003) demonstrate that classification with HMM represents small structures more precisely, which might be an advantage in our application. The named arguments provide the main motivation for studying HMMs in the problem of deriving CT images from MR images.
The outline of the article is as follows. In Section 2 we describe our data set and how the data is prepared for modeling with HMM. Section 3 explains the parametrizations of HMM and HMRF and describes main model evaluation criteria. In Section 4, the principal modeling results are presented. Section 5 summarizes the main outcomes with a short discussion.
2 Data description
We use data from nine patients to evaluate the methods on (five female and four male patients). For each patient, there are measurements on four MRI sequences and one CT image. The MR images were acquired using two dual echo UTE sequences with two different flip angles (10 degrees and 30 degrees). The UTE sequences sampled a first echo (FID) with an echo time of 0.07 ms and a second echo (gradient echo) with an echo time of 3.76 ms. The images were reconstructed to voxels with a voxel size of 1.33 mm. To achieve voxel-wise correspondence between the images, images of the same patient were co-registered. To separate observation voxels from the air surrounding a head, a binary mask was calculated. Thus, for every voxel we have a observation vector with the following variables: 1) binary mask (1 – observation belongs to the patient, 0 – surrounding air); 2) CT-value; 3) UTE1-value (70 , ); 4) UTE2-value (3.76 , ); 5) UTE3-value (70 , ); 6) UTE4-value (3.76 , ). Additional details concerning image acquisition, registration and mask calculation can be found in Johansson et al. (2011). As an example of the data, we have presented in Figure 1 a slice of one head for all the six variables.
2.1 Sequencing data with the Hilbert curve
A hidden Markov model is a one-dimensional process, where the observations are assumed to be ordered in space or time. To be able to apply HMMs to 3-dimensional head data, we have to ‘sequence’ the data using a space filling curve. A space filling curve maps 3-dimensional data into a 1-dimensional sequence and there are several ways to do it. In Sakoğlu et al. (2014), the following space filling curves for ordering 3-dimensional data to 1-dimensional are studied: simple linear ordering (that is row-wise or column-wise ordering), Z-ordering and Hilbert curve ordering. A good space filling curve tries to minimize discontinuity in the head structure, so that anatomically close voxels appear as close as possible also in the corresponding sequence. Sakoğlu et al. (2014) show that out of the three studied space filling curves, the Hilbert curve preserves local structure best. After sequencing the data every voxel has two neighbours and thus, we can only make partial use of the information on a head’s spatial structure. One could think of using 3-dimensional HMMs instead (see, for example Joshi et al. (2006)), but these 3-dimensional HMMs are quite specific models favouring one certain direction in the space and hence, they lack isotropy. The Hilbert curve, on the contrary, moves through the space in an isotropic way. Moreover, we aim to keep our HMM as simple as possible in terms of number of parameters and their interpretation, and computational complexity.
In order to perform sequencing with help of the Hilbert curve, we enlarge the data cube of size to a cube so that the data is in the middle. It follows that when sequencing a head data with the Hilbert curve, we move out of the head and back into the head a number of times. Therefore, we will have to deal with the so called ‘edge effect’. We have to keep track on the voxels, where we leave the head and where we enter the head. Sometimes these voxels will not be spatial neighbours and we will have a breaking point, that is the sequence is broken into independent segments. When the voxels can be considered as neighbours, we connect them. Thus, after sequencing, the data for one head will consist of a number of independent sequences. For example, for a head of size voxels, we obtain 12239 independent sequences. There are many short sequences (2299 with only one observation, 1884 with two observations etc.), but they correspond to a relatively small amount of voxels. About of the voxels in this head have two neighbours after sequencing. The maximum sequence length for the considered head is .
3 Models for estimating CT images
3.1 Hidden Markov models
After mapping the head data with the Hilbert curve, we obtain for each head a number of independent voxel sequences. To the sequenced data we can apply HMMs. Consider an arbitrary voxel sequence of length . Let denote the value of the CT image for voxel and let denote the values of MR intensities for voxel . We assume that the observed variables depend on an unobservable or latent variable , which indicates what class the voxel belongs to. In the current application, the classes can be thought of as tissue types or as mixtures of different tissues. An HMM is a double stochastic process , where the observable process depends on an unobservable Markov chain . Given , the variables are conditionally independent. For any voxel , the hidden Markov chain is in one of the states of . We assume a first order Markov chain. Thus, for any voxel , a change of state will occur according to a set of probabilities (transition probabilities) associated with the current state as follows:
[TABLE]
Another model component that characterizes HMMs is initial distribution , where . Since we move into and out of a head a number of times, the initial distribution can be reliably estimated in the current application. We assume that observations for a given state follow a multivariate normal distribution, that is
[TABLE]
Modeling the joint distribution with the normal distribution is in agreement with earlier works Johansson et al. (2011, 2012, 2013), where Gaussian mixture models were applied and thus, the normal distribution allows a fair comparison. Further, the joint normal distribution allows to model the conditional independence of and given . Let us partition the conditional mean vector and covariance matrix of as follows:
[TABLE]
Denote all the model parameters by . After estimating the joint distribution of CT and MRI sequences, a function for predicting the CT value is obtained by taking the conditional expectation of CT for given MRI sequences and parameters :
[TABLE]
where stands for pseudo-CT. Let us denote . Since for any random variables , we have , we obtain:
[TABLE]
For given , the observations are independent, and can be calculated for each . In our case this is just a conditional expectation in a multivariate normal distribution:
[TABLE]
Thus, when we take the expectation over the distribution of , we obtain that the estimated CT image value for voxel is given by
[TABLE]
An important advantage of HMM compared to HMRF is that the weights can be calculated exactly with the forward-backward algorithm.
3.2 Hidden Markov random field models
In the class of HMRF models, the observed variables depend also on latent variables indicating what class the corresponding voxel belongs to, whereas spatial dependence is accounted for through a MRF prior on the latent variables. Consider again the value of the CT image and MRI sequences at voxel , that is . Let denote the hidden variable taking on one of the values . The joint distribution of the latent variables can be formulated using the Gibbs field (Winkler, 2003):
[TABLE]
where is the energy function defined as and the potential depends on only through , where is the set of all cliques. As in the case of HMMs, we assume a first order neighbourhood structure for , which in means that every voxel has six neighbours. Therefore, the possible cliques are singletons and neighbour pairs, and the potentials can be specified as
[TABLE]
[TABLE]
The parameter vector determines the prior probabilities for classes and determines the strength of spatial dependence. The case corresponds to independent voxels and gives GMM. Thus, the interaction between the voxel classes is captured through the energy function. Observe that the considered parametrization is isotropic, that is the parameters do not depend on direction. The isotropy property justifies also using the Hilbert curve, which includes possible neighbour pairs in different directions with equal proportions. Note even that in the current parametrization, the voxel pairs with voxels belonging to different tissue classes do not contribute to the energy function.
We assume again that , . Therefore, the parameters to be estimated in HMRF in the case of normally distributed observations are , where . The regression function obtained for calculating the CT estimate will have the same form as (1). The important difference compared to the HMM case is that the weights cannot be computed analytically anymore. The weights have to be estimated using Gibbs sampling, see also Bolin et al. (2014).
3.3 Parameter estimation
The EM algorithm (Baum-Welch) and an algorithm following the ideas of the EM gradient algorithm by Lange (1995) is used to estimate the parameters of HMM and HMRF, respectively. That the parameters of HMM can be estimated with the EM algorithm is another big advantage over HMRF, where the EM algorithm is not directly applicable and should be combined with gradient methods. The estimation procedure by Hildeman et al. (2016) which is used for HMRF can be viewed as an EM algorithm, where the M-step is performed by one iteration of Newton’s method. The EM gradient algorithm contains several approximations, in particular it maximizes the pseudo-likelihood instead of the likelihood. The algorithm is not fully developed yet. Therefore, in the current work the models estimated with this algorithm are just used to obtain comparative numbers to HMM. We are not comparing HMRF models in terms of log-likelihood values, which in this application can also be very computer-intensive, since evaluating log-likelihood values requires Gibbs sampling.
Since both the EM algorithm and EM gradient algorithm can be very sensitive with respect to initial parameter values, we used a number of different initial parameter sets in the estimation process. In the case of HMM, we used the parameter estimates for each single head as initial parameters. Thus, for every step of the leave-one-out cross-validation (LOOCV) scheme with 9 heads we estimated 9 models, the model with the highest log-likelihood value was chosen as the best model in each cross validation step. As convergence criterion the relative log-likelihood augmentation was used. In the case of HMRF, the initial parameter set was obtained as the one with highest log-likelihood value among a number of GMM models. As convergence criterion the norm of the difference between the consecutive parameter estimates was used. Mean absolute error was used to compare HMRF models. For the EM algorithm in estimating the GMM parameters, the initial parameter sets were chosen by using the -means algorithm and agglomerative hierarchical clustering.
3.4 Model assessment
The main purpose of this study is to evaluate the class of HMM models in comparison to HMRF models in this particular application of generating pseudo-CT images. Observe that GMM can be seen as a special case of HMRF models and the results for this model class are presented to show how much accounting for the first order neighbourhood structure helps to improve the model. The loss function we use for measuring errors between CT and pseudo-CT images is the voxel-wise absolute error. Thus, for each CT estimate its mean absolute error (MAE) is calculated and this is one of the main criteria for measuring goodness of estimated CT images. Let the number of measurement voxels for head be , then the mean absolute error for head is given by
[TABLE]
For studying model behaviour in different regions of the head, we have used smoothed residual plots. Smoothed residuals have been calculated by moving over the CT range with non-overlapping windows of size 20, for each window the average of the residuals (or their absolute values) is computed. Smoothed residual plots enable to observe the general behaviour of the residuals for these models and to point out areas where the three models differ at most.
The complexity of the models increases with increasing number of underlying states (number of tissue classes). To obtain a fair comparison between the three model classes, it is essential to study how the number of states, the number of patients used for training a model and variability between patients affects modeling. To investigate this, we have run the LOOCV scheme for the nine patients with 5 and 8 tissue classes, for HMM also with 10 tissue classes. Since the first modeling round demonstrated that the fitted models give bad results for some heads, we have run the LOOCV scheme also for a subset of five heads only.
4 Model comparisons
4.1 Modeling results for 9 patients
In Table 1, a summary of MAEs is given for HMM, HMRF and GMM for different number of underlying state classes. To clarify the comparison, the average of MAEs over the nine heads is presented in the last row of the table. The MAE value for each head is calculated using the model where the respective head was excluded when training the model parameters. Comparing the rows for different heads in this table shows directly that none of the three model classes seems to work for heads 3, 5, and 7, head 6 is on the borderline. The MAE values for these heads are much larger in comparison to heads 1, 2, 4, 8 and 9 and increasing the number of underlying tissue classes does not give any improvement, either. The best result is obtained for HMM with . Increasing the number of underlying states to improves MAEs for ‘good’ heads only slightly, we shall comment more on this issue in Section 5. We can see that HMM and GMM give very similar results for . Increasing the number of states from 5 to 8 does not improve MAE values for GMM. For HMRF with we experienced numerical difficulties in estimating the models. Since it is clear from Table 1 that the nine heads cannot be treated together, we left two cells for HMRF with empty.
Since MAE is very summarizing as a measure of goodness, we have also calculated and compared smoothed residuals and absolute values of the smoothed residuals for the studied models. Smoothed residuals have always been computed for non-overlapping windows of size 20, meaning that the average residual value in each window of this size is calculated and presented. In Figure 2 we have plotted the smoothed absolute values of residuals corresponding to HMM with 8 state classes for three heads: one ‘good’ head (head 1) and two ‘bad’ heads (head 3 and head 7). The green line corresponding to head 1 represents the typical residual behaviour for these models, the same pattern can be seen for example in Johansson et al. (2012). The blue and red line on the other hand illustrate that the model does not work at all for head 3 and head 7. Thus, Figure 2 is a warning signal, because if we want to use these latent variable models in practice, we want them to be robust in regard to different heads.
Table 2 presents MAE values for the LOOCV scheme in the case of HMM with 8 state classes. In each row we can see the MAEs for the respective head for the nine estimated models (each model is trained with 8 heads). The table illustrates that LOOCV does not have any particular effect on parameter estimation, the row-wise MAE values are stable. In particular, the table shows that among the nine heads we cannot point out any single outlier. On the other hand, this does not mean that all the heads are forming a homogeneous group. Table 2 suggests that there is a homogeneous subset of ‘good’ heads (1, 2, 4, 8, 9) and the rest of the heads seem not to fit into this subset.
Based on these preliminary numerical results, we continued modeling using the subset of ‘good’ heads (1, 2, 4, 8, 9) only. Considering the heads that behave homogeneously should allow us to get better comparisons between HMM, HMRF and GMM in this particular application.
4.2 Modeling results for the subset of 5 patients
A summary of MAE values for the subset models is presented in Table 3. Because of numerical problems when estimating the parameters for 8 state classes, three models in Table 3 (one for GMM and two for HMRF) were estimated by adding some noise to the data. These MAE values are marked with ∗. The best result in terms of MAE is received for HMM, the models with and give practically the same MAEs. For GMM increasing the number of tissue classes from 5 to 8 improves the summary measure of goodness by approximately 10 units. The MAE values in Table 3 show that the HMM models behave better than the HMRF models, the best average MAEs are 142 and 149, respectively. In terms of MAE, the performance of GMM with is similar to the performance of HMRF with .
Again, since MAE is very summarizing as a measure of goodness, we also present the smoothed residuals and the absolute values of the smoothed residuals for the subset models with 5 state classes. In Figure 4, the smoothed residuals for window size 20 are plotted, meaning that the average residual value of each window is calculated and plotted. The average is calculated over all the five heads. In Figure 3, the same is done for the absolute values of the residuals. Figure 3 shows that neither HMM or HMRF is superior over the whole CT observation range: on average, the HMM model gives better result than HMRF for the negative CT values, whereas HMRF has slightly lower absolute residuals for the positive CT values. Figure 4 demonstrates that all the models tend to overestimate the true negative CT values and underestimate the true positive CT values. In Figure 5, the smoothed residuals are plotted together with standard deviation values for the subset models with 5 classes. This figure illustrates that variation in the residuals is huge.
5 Discussion and conclusions
One of the main aims of this study was to compare the performance of HMMs and HMRF models in estimation of CT images. Since HMM is computationally much faster and easier to handle (parameters can be estimated with the EM algorithm and weights in the regression function can be computed exactly with the forward-backward probabilities), this model class has a clear advantage over HMRF in applications with big data amounts if model diagnostics are comparable for both models. One big advantage of HMM models when applying the ML method for estimating the parameters is that the log-likelihood value can be calculated analytically. This enables to employ the ML approach fully. The log-likelihood values can be used in model comparisons and are valuable information on how the chosen modeling approach works, since we are able to calculate different information criteria. In the case of HMRF models log-likelihood values can be evaluated by Gibbs sampling, but this can be very computer-intensive, because sampling from random field distributions for given parameter sets can require many iterations due to poor mixing of the Gibbs sampler.
Our results confirm that model diagnostics are better for HMM than for HMRF in this particular application. Comparison of MAEs shows that HMM performs better than HMRF (see the results for HMM and HMRF in Table 3). Concerning residual behaviour, Figures 3 and 4 show that neither HMM or HMRF is superior in the whole CT region. In Tables 4 and 5 we have presented the estimates of expected CT values for our subset models with and states, respectively.
With M1,,M5 we denote the best models when heads , respectively, were excluded when training a model. Figure 3 together with Table 4 suggests that residual behaviour is mostly determined by the CT group means . Tables 4 and 5 show that increasing the number of tissue classes might not help in obtaining a more uniform distribution of CT group means over the whole CT range. This might also explain why in the case of nine heads, MAE for HMM with is slightly better than with . To guarantee a more uniform location of the CT group means, one should maybe fix a certain number of CT group means and estimate the models under restrictions. This indicates that purely model-based approach where everything is estimated from data (unsupervised modeling) might not be justified in this application and possibilities for including appropriate available information to HMM in the best way (supervised modeling) should be investigated in the future. One possible direction could be combining regression with segmentation and atlas-based approach. With HMMs it is easy to perform segmentation and this can be done in different ways (Lember et al., 2011). In the current application, when underlying states have physical meaning (tissue classes), it is realistic to assume that in some regions of the head the underlying states can be revealed. This basically means that a certain amount of states can be assumed to be known, and as the study in Kuljus and Lember (2016) shows, even the tiny fraction of truth can make a big improvement in inferences.
An important advantage of HMM in comparison to HMRF and GMM is its stability. In Tables 4 and 5, for all the five HMM models the number of positive and negative CT group means is the same and the means do not differ so much between the models. In the case of HMRF and GMM, for location of group means varies over M1–M5. Besides, our computations show that HMRF is sensitive with regard to initial values and small changes in the data (for example adding some noise). That HMM is more robust than HMRF has been demonstrated also in other studies (Fjørtoft et al., 2003).
Modeling results for 9 and 5 heads illustrate the sensitivity of the considered models with respect to data. It is worrying that MAE can differ so much depending on a head. Previous studies (Johansson et al., 2011, 2012, 2013) for the same application with GMM have not reported the robustness problem. It is essential to investigate this issue and find out why do the models not work for some heads and what characterizes those heads, because this might determine the potential of the whole approach in practice.
We can conclude that both HMM and HMRF give better results than GMM, meaning that including the spatial dependence information improves the model. The comparison of HMM and HMRF shows that HMM has definitely more advantages. Therefore, as HMMs have better performance than HMRF models in the current application, they deserve a further study for investigating their potential in obtaining good estimates of CT images.
Acknowledgments
This work is supported by the Swedish Research Council grant (Reg.No. 340-2013-5342) and Estonian institutional research funding IUT34-5. Adam Johansson is acknowledged for providing us with data.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Bolin et al. (2014) Bolin, D., Wallin, J., and Lindgren, F. (2014). Multivariate latent Gaussian random field mixture models. Preprint 2014:1, Chalmers University of Technology and University of Gothenburg .
- 2Fjørtoft et al. (2003) Fjørtoft, R., Delignon, Y., Pieczynski, W., Sigelle, M., and Tupin, F. (2003). Unsupervised classification of radar images using hidden Markov chains and hidden Markov random fields. IEEE Transactions on Geoscience and remote sensing , 41(3):675–686.
- 3Hildeman et al. (2016) Hildeman, A., Bolin, D., Wallin, J., Johansson, A., Nyholm, T., Asklund, T., and Yu, J. (2016). Whole-brain substitute CT generation using Markov random field mixture models. ar Xiv:1607.02188 .
- 4Huynh et al. (2016) Huynh, T., Gao, Y., Kang, J., Wang, L., Zhang, P., Lian, J., and Shen, D. (2016). Estimating CT image from MRI data using structured random forest and auto-context model. IEEE Transactions on Medical Imaging , 35(1):174–183.
- 5Johansson (2014) Johansson, A. (2014). Magnetic resonance imaging with ultrashort echo time as a substitute for X-ray computed tomography . Number 1675 in Umeå University Medical Dissertations. Umeå University, Umeå.
- 6Johansson et al. (2013) Johansson, A., Garpebring, A., Karlsson, M., Asklund, T., and Nyholm, T. (2013). Improved quality of computed tomography substitute derived from magnetic resonance (MR) data by incorporation of spatial information–potential application for MR-only radiotherapy and attenuation correction in positron emission tomography. Acta Oncologica , 52:1369–1373.
- 7Johansson et al. (2011) Johansson, A., Karlsson, M., and Nyholm, T. (2011). CT substitute derived from MRI sequences with ultrashort echo time. Med. Phys. , 38(5):2708–2714.
- 8Johansson et al. (2012) Johansson, A., Karlsson, M., Yu, J., Asklund, T., and Nyholm, T. (2012). Voxel-wise uncertainty in CT substitute derived from MRI. Med. Phys. , 39(6):3283–3290.
