mritc: A Package for MRI Tissue Classification

Similar documents
MRI Tissue Classification Using High Resolution. Bayesian Hidden Markov Normal Mixture Models

MR IMAGE SEGMENTATION

An Introduction To Automatic Tissue Classification Of Brain MRI. Colm Elliott Mar 2014

Histograms. h(r k ) = n k. p(r k )= n k /NM. Histogram: number of times intensity level rk appears in the image

Image analysis. Computer Vision and Classification Image Segmentation. 7 Image analysis

Preprocessing II: Between Subjects John Ashburner

Modified Expectation Maximization Method for Automatic Segmentation of MR Brain Images

Neuroimaging and mathematical modelling Lesson 2: Voxel Based Morphometry

Processing math: 100% Intensity Normalization

Package PottsUtils. R topics documented: February 19, 2015

Norbert Schuff VA Medical Center and UCSF

ADAPTIVE GRAPH CUTS WITH TISSUE PRIORS FOR BRAIN MRI SEGMENTATION

Segmenting Glioma in Multi-Modal Images using a Generative Model for Brain Lesion Segmentation

MRI Segmentation MIDAS, 2007, 2010

Discriminative, Semantic Segmentation of Brain Tissue in MR Images

MEDICAL IMAGE COMPUTING (CAP 5937) LECTURE 9: Medical Image Segmentation (III) (Fuzzy Connected Image Segmentation)

MEDICAL IMAGE COMPUTING (CAP 5937) LECTURE 10: Medical Image Segmentation as an Energy Minimization Problem

Comparison Study of Clinical 3D MRI Brain Segmentation Evaluation

Subvoxel Segmentation and Representation of Brain Cortex Using Fuzzy Clustering and Gradient Vector Diffusion

CHAPTER 3 TUMOR DETECTION BASED ON NEURO-FUZZY TECHNIQUE

Performance Evaluation of the TINA Medical Image Segmentation Algorithm on Brainweb Simulated Images

Application of fuzzy set theory in image analysis. Nataša Sladoje Centre for Image Analysis

MRI Segmentation. MRI Bootcamp, 14 th of January J. Miguel Valverde

A Nonparametric Bayesian Approach to Detecting Spatial Activation Patterns in fmri Data

MEDICAL IMAGE COMPUTING (CAP 5937) LECTURE 10: Medical Image Segmentation as an Energy Minimization Problem

Norbert Schuff Professor of Radiology VA Medical Center and UCSF

EMSegment Tutorial. How to Define and Fine-Tune Automatic Brain Compartment Segmentation and the Detection of White Matter Hyperintensities

Methods for data preprocessing

PET Image Reconstruction using Anatomical Information through Mutual Information Based Priors

Norbert Schuff Professor of Radiology VA Medical Center and UCSF

AN AUTOMATED SEGMENTATION FRAMEWORK FOR BRAIN MRI VOLUMES BASED ON ADAPTIVE MEAN-SHIFT CLUSTERING

Ischemic Stroke Lesion Segmentation Proceedings 5th October 2015 Munich, Germany

Automatic Generation of Training Data for Brain Tissue Classification from MRI

Lesion Segmentation and Bias Correction in Breast Ultrasound B-mode Images Including Elastography Information

Discussion: Clustering Random Curves Under Spatial Dependence

Classification of Subject Motion for Improved Reconstruction of Dynamic Magnetic Resonance Imaging

Spatial Regularization of Functional Connectivity Using High-Dimensional Markov Random Fields

QUANTITATION OF THE PREMATURE INFANT BRAIN VOLUME FROM MR IMAGES USING WATERSHED TRANSFORM AND BAYESIAN SEGMENTATION

CS839: Probabilistic Graphical Models. Lecture 10: Learning with Partially Observed Data. Theo Rekatsinas

IDENTIFYING different materials within sampled datasets

Chapter 3 Set Redundancy in Magnetic Resonance Brain Images

Graphical Models, Bayesian Method, Sampling, and Variational Inference

Automatic Registration-Based Segmentation for Neonatal Brains Using ANTs and Atropos

Correction of Partial Volume Effects in Arterial Spin Labeling MRI

for Images A Bayesian Deformation Model

Unsupervised Learning

Segmentation of Cerebral MRI Scans Using a Partial Volume Model, Shading Correction, and an Anatomical Prior

Spline-Based Probabilistic Model for Anatomical Landmark Detection

An ITK Filter for Bayesian Segmentation: itkbayesianclassifierimagefilter

Digital Image Processing Laboratory: Markov Random Fields and MAP Image Segmentation

International Journal of Engineering Science Invention Research & Development; Vol. I Issue III September e-issn:

Segmenting Glioma in Multi-Modal Images using a Generative-Discriminative Model for Brain Lesion Segmentation

Bayesian estimation of optical properties of the human head via 3D structural MRI p.1

Neuroimage Processing

10-701/15-781, Fall 2006, Final

Turku PET Centre Modelling report TPCMOD Appendix C Marketta Hiissa. Pseudo-code for the Markov random field clustering algorithm

BAYESIAN SEGMENTATION OF THREE DIMENSIONAL IMAGES USING THE EM/MPM ALGORITHM. A Thesis. Submitted to the Faculty.

Semantic Segmentation. Zhongang Qi

Multiple Sclerosis Brain MRI Segmentation Workflow deployment on the EGEE grid

Bayesian Segmentation and Motion Estimation in Video Sequences using a Markov-Potts Model

Image Segmentation using Gaussian Mixture Models

IMAGE SEGMENTATION. Václav Hlaváč

Monte Carlo for Spatial Models

Machine Learning A WS15/16 1sst KU Version: January 11, b) [1 P] For the probability distribution P (A, B, C, D) with the factorization

Automatic White Matter Lesion Segmentation in FLAIR MRI

Computational Neuroanatomy

CHAPTER 2. Morphometry on rodent brains. A.E.H. Scheenstra J. Dijkstra L. van der Weerd

Automatic MS Lesion Segmentation by Outlier Detection and Information Theoretic Region Partitioning Release 0.00

Research Article A Unified Framework for Brain Segmentation in MR Images

Image Processing Techniques for Brain Tumor Extraction from MRI Images using SVM Classifier

Automatic Optimization of Segmentation Algorithms Through Simultaneous Truth and Performance Level Estimation (STAPLE)

Classification of High Dimensional Data By Two-way Mixture Models

Image Enhancement: To improve the quality of images

Knowledge-Based Segmentation of Brain MRI Scans Using the Insight Toolkit

Calibration and emulation of TIE-GCM

Lecture 21 : A Hybrid: Deep Learning and Graphical Models

ECSE 626 Project Report Multimodality Image Registration by Maximization of Mutual Information

Smooth Image Segmentation by Nonparametric Bayesian Inference

ECE521: Week 11, Lecture March 2017: HMM learning/inference. With thanks to Russ Salakhutdinov

ASAP_2.0 (Automatic Software for ASL Processing) USER S MANUAL

Probabilistic Graphical Models

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Lecture 4 Image Enhancement in Spatial Domain

Global Thresholding Techniques to Classify Dead Cells in Diffusion Weighted Magnetic Resonant Images

Magnetic resonance image tissue classification using an automatic method

Computer vision: models, learning and inference. Chapter 10 Graphical Models

Basic relations between pixels (Chapter 2)

Learning to Identify Fuzzy Regions in Magnetic Resonance Images

Cognitive States Detection in fmri Data Analysis using incremental PCA

High Accuracy Region Growing Segmentation Technique for Magnetic Resonance and Computed Tomography Images with Weak Boundaries

Modeling and Monitoring Crop Disease in Developing Countries

Supervised Learning for Image Segmentation

Automatic Extraction of Tissue Form in Brain Image

Parametric Response Surface Models for Analysis of Multi-Site fmri Data

Supplementary methods

An Efficient Model Selection for Gaussian Mixture Model in a Bayesian Framework

Machine Learning A W 1sst KU. b) [1 P] Give an example for a probability distributions P (A, B, C) that disproves

Machine Learning A W 1sst KU. b) [1 P] For the probability distribution P (A, B, C, D) with the factorization

Global Journal of Engineering Science and Research Management

Knowledge-Based Segmentation of Brain MRI Scans Using the Insight Toolkit

Transcription:

mritc: A Package for MRI Tissue Classification Dai Feng 1 Luke Tierney 2 1 Merck Research Labratories 2 University of Iowa July 2010 Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 1 / 19

Outline Basics of MRI Tissue Classification Available Methods Computational Issues Overview of the Package Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 2 / 19

Magnetic Resonance Imaging (MRI) MRI is a non-invasive method for imaging the inside of objects. MRI has many medical applications. Different contrast: T1, T2, PD Sometimes more than one image type is available. Each image is a 3D array of image intensities, one for each voxel (volume picture element). Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 3 / 19

Brain Tissue Classification Major brain tissue types: White matter (WM) Gray Matter (GM) Cerebrospinal fluid (CSF) There are others, but tissue classification usually focuses on these. Some applications: Diagnosis of disease Surgery preparation Manual tissue classification is very labor intensive. Automated methods try to match quality of manual at lower cost. Focus on using intensities in a T1 MR image. WM = light gray GM = medium gray CSF = dark gray Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 4 / 19

Basic Properties of the Data Data consist of image intensities y 1,..., y N for N voxels in a 3D grid. N is large, for example 256 256 192. Intensities are often scaled to [0, 255] and rounded to an integer. Tissue types are denoted by z i {1,..., k} with k = 3 corresponding to three tissue types. A density plot of a relatively low noise MR image: Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 5 / 19

A Simple Mixture Model A common model: given the tissue structure z, intensities are independent normally distributed, y i z i N(µ(z i ), σ 2 (z i )) Mean and and variance depend on the tissue type. Assuming tissue types are independent leads to a simple normal mixture model f (y) = N i=1 z i =1 k φ µ(zi ),σ 2 (z i )(y i )p(z i = k) Parameters are easily estimated by the EM algorithm. Tissue types can be assigned using the Bayes classifier. Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 6 / 19

Incorporating Spatial Information Adjacent voxels are likely to contain the same tissue type. A more realistic model accounts for this spatial homogeneity in z. The Potts model family provides simple models for spatial homogeneity: p(z) = C(β) 1 exp α i (z i ) + β w ij f (z i, z j ) i i j This is an example of a Markov random field model. Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 7 / 19

Incorporating Spatial Information Iterated Conditional Modes The hidden Markov normal mixture model can be fitted by p(y z, µ, σ 2 )p(z) Iterated Conditional Modes (ICM) algorithm alternately maximizing each parameter conditional on all others being fixed. Hidden Markov Random Field EM (HMRFEM) algorithm a variation of EM algorithm in the E step. Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 8 / 19

Incorporating Spatial Information A Bayesian Formulation Alternatively, we can specify a prior distributions p(µ, σ 2 ) on µ, σ 2 use MCMC to compute characteristics of the posterior distribution p(µ, σ 2, z y) Assume µ, σ 2, z are independent and µ i.i.d. normal distribution σ 2 i.i.d inverse Gamma distribution Then the full conditionals satisfy µ independent normal σ 2 independent inverse Gamma z Potts model with external field α i (z i ) = log f (y i µ(z i ), σ(z i )) Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 9 / 19

Partial Volume Effect Partial volume effect some voxels contain more than one tissue type. One approach is to introduce intermediate classes: CG (CSF/GM) and GW (GM/WM). This helps reduce confounding in estimation. A number of studies have used this approach. Normal mixture model with dependent means and variances (GPV) performs well. The means and variances of CG and GW are equal to weighted average of corresponding pure tissues The densities of voxels from CG and GW are equal to mean densities based on the distribution of weights Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 10 / 19

A Higher Resolution Spatial Model We have adopted a different approach: Each voxel is divided in half in the x, y, z directions, producing 8 subvoxels. Each subvoxel is viewed as containing only one tissue type. The observed voxel intensity y i is y i = v i1 +... + v i8 where v i1,..., v i8 are the unobserved subvoxel intensities. Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 11 / 19

A Higher Resolution Spatial Model The Subvoxel-level Model Conditional on the tissue types, the v ij are independent normals A spatial model is used at the subvoxel level To capture the fact that CSF and WM rarely coexist in a voxel we use: p(z) = C(β 1, β 2 ) 1 exp f (z i, z j ) where β 1 if z i = z j f (z i, z j ) = β 2 if {z i, z j } = {CSF,WM} 0 otherwise We call this model the Repulsion Potts Model Use a Bayesian formulation to solve it i j Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 12 / 19

Computational Issues Table Lookup Table lookup methods are used in various places due to: the nature of the data intensities are integers between 0 and 255. the nature of the distribution from the Potts family given neighbors, the tissue type of voxels having the same discrete distribution. Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 13 / 19

Computational Issues Conditional Independence If the voxels are organized in a checkerboard pattern, then black voxels are conditionally independent given white ones. Black and white voxels can each be updated as a group. This can be used for vectorized computation. This can also be used for parallel computation. Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 14 / 19

Computational Issues OpenMP Specifying parallel execution by compiler pragmas (directives) #pragma omp parallel for firstprivate ( k, ldd,... ) Specifying variable type for ( i = 0 ; i < n ; i++) { } Implicit barrier for synchronization for ( i = 0 ; i < n ; i++) { } Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 15 / 19

Computational Issues OpenMP Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 16 / 19

Overview of Functions of the Package The Analyze, NIfTI, and raw byte file formats are supported for input and output Different functions for different methods are provided Initial values of the means, variances, and proportions of normal mixture models can be generated by the function initotsu Various spatial input parameters for different methods can be obtained using the function makemrispatial There is a wrapper for functions with easier usage mritc(intarr, mask, method) Generic summary and plot methods are provided for the object of class mritc Different metrics for accuracy of predictions based on truth are available Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 17 / 19

An Example R> T1 <- readmri("t1.rawb.gz", c(181,217,181), format="rawb.gz") R> slices3d(t1) R> mask <- readmri("mask.rawb.gz", c(181,217,181), format="rawb.gz") R> tc <- mritc(t1, mask, method="mcmcsub") R> plot(tc) Figure: Tissue Classification Feng & Tierney (Merck & U of Iowa) MRI Tissue Classification July 2010 19 / 19