patch - based methods have been shown to be an effective approach for labeling brain structures ( and other body structures ) , as shown , for example , in [ 1 , 2 ] .
in general , these approaches label each voxel of a target image by comparing the image patch , centered on the voxel with patches from an atlas library , and assigning the most probable label according to the closest matches .
various patch - based label fusion procedures have been proposed and were shown to produce accurate and robust segmentation .
using affine registration , comparable results to works that use nonrigid registration have been reported .
patch - based techniques have recently demonstrated high performance in various computer vision tasks , including texture synthesis , inpainting , and super resolution .
nonlocal means denoising   has helped advance the field and has led to the development of various patch - based segmentation tools for medical imaging applications methods [ 1 , 2 , 7 , 8 ] .
the focus of segmentation tasks in existing works is on regions of interest which are substantial in size and/or are anatomically localized ( e.g. , brain tumors , knee , brain tissues , the hippocampus , cortical parcellation , and brain structures ) . in these cases
the anatomical context provides labeling support and a good approximate alignment of the image to an atlas ( expert priors ) is needed and is a key component .
for example , in the hippocampus or the knee , the algorithm is designed to differentiate between the surrounding tissues and the convex target region ; thus the inner voxels are easy to label .
similarly , in the case of brain tissues , anatomical constraints facilitate labeling most of the voxels , and the errors are mainly in the border voxels . in the current work ,
the regions of interest examined here , such as lesions , do not entail anatomical constraints , and hence the location of these lesions is subject to inconsistency in terms of both neighboring tissues and the absolute position .
these regions are not contained within other regions , as is the case for brain tumor or the knee .
we aim to overcome the lack of spatial constraints and anatomical context by a novel spatial consistency step , as discussed in section 2.6 .
we deal with ms lesion detection and segmentation in mr images of the brain which involve a number of challenges ; in particular ms lesions are very small , they can appear anywhere in the brain image , and they are relatively similar to other brain tissues
. examples of ms lesions are presented in figures 1 , 2 , and 3 .
it is an inflammatory demyelinating disease that is primarily associated with axonal loss and formation of lesions in the central nervous system , which are characterized by demyelination , axonal injury , and axonal conduction block .
these classically described white matter ( wm ) lesions are visible in conventional magnetic resonance imaging ( mri ) , appearing as hyperintense in t2-weighted ( t2w ) images and as hypointense in t1-weighted ( t1w ) images ( see figure 1 ) .
fluid attenuated inversion recovery ( flair ) images have been shown to be the most sensitive to wm lesions but can also present other hyperintensity artifacts .
mri is currently used to diagnose of ms , assess disease progression , and evaluate the efficiency of drug therapy .
the most common quantitative parameter is the lesion load of the disease , expressed in terms of the number and volume of brain lesions .
the mri measured lesion load is highly correlated with clinical findings [ 11 , 12 ] .
an accurate segmentation at the voxels level is a necessary step to calculate the lesion load or any other measure .
furthermore , the 3d data of an mri scan requires multislice segmentation which makes the manual segmentation a laborious task .
fully automated algorithms for ms lesion detection and segmentation have been the focus of research for many years .
algorithms to date have failed to respond to the complexity of the task and new approaches have recently been introduced [ 1417 ] .
pattern recognition and machine learning techniques have been widely investigated to identify the patterns of ms lesions by making use of the neuroimaging data [ 1821 ] .
these segmentation methods can be classified as supervised or unsupervised as a function of the mathematical algorithms they implement .
unsupervised methods [ 23 , 24 ] are designed to solve the segmentation task without needing labeled training data .
these methods attempt to formalize the definition of a lesion and differentiate lesions from other tissues on the basis of anatomical knowledge .
for example , in   the ms lesions were identified as outlier from a constrained gaussian mixture model ( cgmm ) .
likewise , in , the lesions are identified as outliers using dictionary learning and sparse coding . some works [ 15 , 25 ]
use an anatomical atlas as the prior anatomical knowledge , but since these works required accurate 3d registration step , this step may be misdirected in the presence of lesions .
supervised methods are a useful way to recognize a pattern in a new test sample based on information learned from the training samples .
typically studies use one of the many available supervised learning methods , for example , k - nearest neighbor ( k - nn ) , support vector machine ( svm ) [ 26 , 27 ] , cellular neural networks ( cnn ) , or a bayesian framework . for example , one of the outstanding works   used a discriminative random decision forest to provide a voxel - wise probabilistic classification of the volume .
since the detection of white matter lesions ( wml ) is a challenging task , extraction of discriminative features plays an important role in lesion segmentation .
voxel - related features , such as the probabilities of different tissues ( gray matter ( gm ) , white matter ( wm ) , and cerebrospinal fluid ( csf ) ) and the multichannel intensity ( i.e. , t1 , t2 , and flair ) , play an important role in neuroimaging studies .
crucially , although some authors use only one sequence ( t1 or flair ) [ 15 , 30 ] , the lesion should be confirmed in other sequences to avoid false positives ( fps ) .
nevertheless , voxel - related features are not sufficient for good segmentation , since other tissues have a similar appearance , and therefore , spatial information is necessary .
specifically , the spatial information is usually included in the local mean , using the neighborhood information as in many imaging applications [ 1 , 2 , 5 , 19 ] . the local spatial information reduces the impact of noise and improves coherence of the results . to use the spatial information , mathematical techniques as markov random fields ( mrf ) , graph cut , and kernel features are employed . in this study
we propose a patch - based method for detection and segmentation of ms lesions in brain mri by utilizing multimodal spatial information . the segmentation is first obtained based on intensity patch similarity and then further iteratively refined with the spatial label information .
this makes the framework robust to registration errors which are likely to occur if there is a high degree of anatomical variability .
the main contributions of this paper can be summarized as follows : adding a spatial consistency refinement step to the patch - based approach using a novel label propagation based metric.creating a patch database for the ms task . in ms ,
we therefore can not use the same anatomical volumes of interest as in classic patch - based segmentation.providing a framework for segmentation of ms lesions that does not require registration , with no need for an atlas . adding a spatial consistency refinement step to the patch - based approach using a novel label propagation based metric . creating a patch database for the ms task . in ms ,
we therefore can not use the same anatomical volumes of interest as in classic patch - based segmentation . providing a framework for segmentation of ms lesions that does not require registration , with no need for an atlas .
then , in section 3 , extensive experiments and comparisons with other segmentation methods on the miccai08 grand challenge datasets are presented to demonstrate the segmentation accuracy of the proposed method . finally , in section 4
our method is based on labeling the test image voxels ( as lesion or nonlesion ) by finding similar patches in a database of manually labeled images .
the training step involves constructing a patch database using expert - marked lesion regions which provide voxel - level labeling .
for all candidate voxels we find the k - nearest neighbor patches from the patch database .
labels of the selected patches are used to determine the current patch label , using a voting scheme , thus generating the test image label map .
finally , to enforce spatial consistency , we iteratively incorporate a label decision from the neighboring voxels obtained during the previous iteration , by adding them to the k - nn metric . before we applied our method preprocessing steps , subject selection step and candidate region detection
are done . in the following subsections we provide a detailed description of the algorithm . before starting the segmentation process ( in the training phase as well as for a new test image ) , a few preprocessing steps are taken . during these steps ,
the brain is extracted to avoid nonrelevant tissues ( i.e. , the skull and scalp ) .
we subsample the images so that they all are the same size 169  129  130 and the same isotropic resolution 1  1  1  mm .
the subsampling is designed to reduce the computational time and the background as much as possible . from this step on
the most crucial step in the preprocessing is the normalization of the intensities in the image .
this is mandatory to ensure that all brain tissues in different subjects have the same contrast and luminance .
we use the normalization procedure of nyl et al .   to make patch matching between different subjects possible .
some authors use normalization to zero mean and unit standard deviation . in the datasets we experimented with we found that using the intensity as is provided better results . note that for the analysis we need very good intensity normalizations across brains . in order to support the normalization procedure we add an additional step of subject selection ( section 2.3.3 ) to select the most similar brains in the training set . to ensure that each tissue type has the same intensity within a single image , the well - known n4itk intensity nonuniformity correction in   is used on all three channels .
classification to wm , gm , and csf was also applied using . in this classification process
, voxels in an intensity - normalized image are classified using a maximum a posteriori ( map ) classifier .
this classifier combines the partial volume tissue measurement model with a gibbs prior that models the spatial properties of the brain .
recent patch - based segmentation works are based on the nonlocal means ( nlm ) idea [ 6 , 37 ] , where similar patches are searched in a cubic region around the location under study . a patch - to - patch similarity in specific anatomical regions
is assumed to hold true and the segmentation tasks are considered to have spatial consistency ( e.g. , the hippocampus in different brains appears in the same region ) .
ms lesions , however , can be found in different brain regions and local region patch matching can not be implemented . to overcome this shortcoming , we suggest a labeled patch database creation step . in the training step , we extract regions - of - interest ( rois ) around all manually marked lesions .
a roi is defined as the bounding box of the lesion ( see figure 2 ) .
note that we expand the borders of the bounding box by a few voxels ( three ) in order to capture the surrounding tissue as well .
rois therefore represent the lesion and nonlesion around the lesions in a roughly balanced way . to better represent the entire brain
we add randomly selected patches from all brain regions . this way we represent all brain tissues but give special attention to complex lesion regions and the  normal appearing white matter .  from each roi , and for each input channel , we then extract 3  3  3 patches as in [ 16 , 38 ] .
patches are concatenated across the input channels ( in our case : t1 , t2 , and flair ) to form augmented patches p  r ( referred to hereafter as concatenated patches ) .
this set of patches forms the training patch database d. we further examine the use of different weights for the three modalities using multiplication by three constants ; see section 2.5.3 for details . in many segmentations tasks , multiple training subjects ( or atlases )
are used and a process of label fusion is needed to combine the different segmentations . a subject selection step is needed in order to ensure fusion of information from most similar sources .
for example , in [ 1 , 39 , 40 ] , the nearest subjects are selected for each region that requires labeling , by comparing the euclidean distance between corresponding regions .
in contrast , in our method , we do not use the concept of similar anatomical regions for patch retrieval ; rather we use the labeled patch database originating from multibrain regions .
we define a global subject selection step , to facilitate a selection of similar brains , to increase the accuracy of similarity comparisons between patches . given a set of m training images { tnn = 1 , 
, m } we select a subset of n training images { tnn = 1 ,  , n } whose kullback - leibler ( kl ) divergence   from the test image is minimal .
let r and q be the multimodal histograms ( i.e. , three histograms , one for each modality , concatenated ) of the given test image and a train image , respectively .
the kl divergence is defined to be(1)dklr||q=irilogriqi.the subject selection leads to a labeled patch subset di  d denoted by di = { p  tnn = 1 ,  , n}. for the training images the label maps { lnn = 1 ,  ,
n } are known . following the subject selection step we select a subset of patches di , out of di , by subsampling in fixed increments , such that the number of lesion and nonlesion patches is equal and the total number of patches reaches a fixed number .
thus the subsampling is in a sense in space ; recall that patches from the same roi have close indexes . from our empirical experimentation we found an appropriate number to be between 100 and 150 thousand patches .
next , we focus on automatically detecting candidate lesion regions in a given test image .
the detection is based on two clinical rules:(i)the lesions appear as hyperintense in flair images ; thus they can be roughly identified using thresholding .
it is well known that the flair input channel is a good source for analyzing ms lesions .
using a global threshold ( th ) on a flair image provides high sensitivity in the detection .
since such a threshold results in poor specificity , we can use the flair input to provide an initial rough delineation of candidate lesion regions ( see   for a detailed description).(ii)the lesions are characterized by demyelination ; thus they are part of the wm tissue .
lesions tend to be found in the wm or on the border between wm and gm .
we classify the brain tissues using a maximum a posteriori probability classifier ( map )   ( see preprocessing , section 2.2.4 ) and extracted the wm region ( dilated ) as a second mask . the dilation step is done in order to guarantee that lesions surrounded by wm , wm boundaries , and peripheral lesions will be in the mask . the structure element used is a  ball  with 10 pixels radius .
the lesions appear as hyperintense in flair images ; thus they can be roughly identified using thresholding .
it is well known that the flair input channel is a good source for analyzing ms lesions .
using a global threshold ( th ) on a flair image provides high sensitivity in the detection .
since such a threshold results in poor specificity , we can use the flair input to provide an initial rough delineation of candidate lesion regions ( see   for a detailed description ) .
the lesions are characterized by demyelination ; thus they are part of the wm tissue .
lesions tend to be found in the wm or on the border between wm and gm .
we classify the brain tissues using a maximum a posteriori probability classifier ( map )   ( see preprocessing , section 2.2.4 ) and extracted the wm region ( dilated ) as a second mask .
the dilation step is done in order to guarantee that lesions surrounded by wm , wm boundaries , and peripheral lesions will be in the mask .
the final set of lesion candidate regions consists of all the voxels above the flair th intensity which are in the wm dilated region , as follows:(2)lesionmaskx=1flairx > thxwm0otherwise , where x is a voxel in the test image and th is defined similar to ( 3)th=gm+gm.gm and gm are the mean and standard deviation of the gm tissue in the flair test image , respectively .
the extracted lesionmask , which includes the set of candidate lesion regions , contains around 20% of the brain voxels , but more than 95% of the lesions .
this stage significantly reduces the number of voxels that need to be further analyzed for lesions .
it was found in   to decrease false positives ( fps ) , almost without any degradation of the true positives ( tps ) , that is , less than 5% loss .
the parameter  was chosen as the maximum value that maintains 95% of the lesions in the candidate lesion regions .
note that for  = 0 ( i.e. , th = gm ) the results were almost identical .
after the procedure described above , the voxels marked by the mask are further analyzed as lesion or nonlesion using a patch - based decision method .
this patch - based segmentation strategy is based on the nlm estimator   that has been tested on a variety of tasks [ 1 , 2 , 26 ] . likewise , in our work , given an augmented patch from a test image ( combining several mr channels in the patch definition ) , similar patches are found in the labeled database described above . given input image i and the selected patch database di , the similar patch labels are combined to yield a lesion segmentation map , as follows . for each voxel x in the test image
, we extract a corresponding patch px centered at x. we then retrieve k similar patches pi(x ) , i = { 1 ,  , k } , from the database di. each selected patch is weighted as follows:(4)wx , pid = expdpx , pidx2,where d( ,  ) is the square euclidean distance and  is the maximum distance measure obtained for all the voxels x and for all the patches in the database di. equations ( 6 ) and ( 7 ) below are alternative metric definitions for modalities balancing and spatial refinement , respectively . to obtain a label for a test voxel x
, a vote aggregation method is defined using all labeled patches extracted via the k - nearest neighbors ( nn ) patch matching procedure .
the voxel x appears in l = 27 test patches centered on x and its neighboring voxels . for each test patch px
, k from the dataset di. each retrieved similar patch , along with its labels { li(x)i = 1 ,  , k } and its weight , contributes a vote .
thus , for a given voxel x we have l  k votes that are averaged .
the aggregation of votes results in a probabilistic lesion decision , as follows:(5)plesion    x=ypxi=1kwy , pidylidy , xypxi=1kwy , pidy , where y goes over the 27 neighboring voxels of x and li(y , x ) is the label that the training patch pi(y ) ( which is similar to the patch centered at y ) assigns to x. the final lesion label , l(x ) , for each voxel x , is defined as 1 if p(lesionx ) > 0.5 and 0 otherwise .
we examined the use of different weights for the three modalities , m = { t1 , t2 , flair } , using multiplication by three constants , cm = { ct1 , ct2 , cflair}. this can be achieved by reformulation of the metric for the patch - based voting aggregation algorithm described above .
the augmented patch ( px ) is a concatenation of the t1 patch ( px ) , the t2 patch ( px ) , and the flair patch ( px ) ; thus the balanced metric between a test patch px and a training patch pd is defined as follows:(6)dipx , pd=mcmdpxm , pdm.the balanced metric has the opportunity to treat each channel of the mri acquisition differently and , hence , give more weight to the more incriminating channel .
this metric also enables examination of the patch source , that is , using one , two , or three modalities .
for example , by using cm = { ct1 = 1 , ct2 = 0 , cflair = 1 } t2 is ignored .
for example , it may be the case that a single voxel is labeled as nonlesion even though all its neighboring voxels are labeled as lesions ( see , e.g. , the segmentation results shown in figure 4(c ) ) . in the following ,
as noted in , a segmentation method that relies solely on voxel intensity is unlikely to produce sufficient results . as such
, many attempts have been made to incorporate spatial or anatomical information within the segmentation process [ 8 , 42 ] .
in other patch - based segmentation algorithms [ 1 , 2 ] a search volume is defined around the voxel under study . however ,
this can not be applied in a ms lesion task given the lack of clear anatomical location , in addition to the potential weakness of reliance on good affine registration in the presence of lesions . in wang et al .
( 2013 )   an alternative framework that combines the use of k - nn ball trees and a spatial weight label fusion scheme to search for patches in large regional areas was suggested . this spatially aware patch - based segmentation ( saps )
is designed to overcome the problem of limited search windows and combine spatial information by using the anatomical location of the patch .
( 2014 )   an iterative refinement step using a sparse representation was implemented to correct the anatomical errors introduced in the segmentation .
our goal is to use the label information to enforce a consistency of the decision .
the term spatial consistency is adapted from freeman et al .   where the authors proposed a markov random field solution for spatial consistency .
they introduced a one - pass algorithm that used the neighbors relation in a similar way to the one reflected in the mrf pixel grid . in our method
we enforce spatial consistency using a new metric for the patch - based voting aggregation algorithm described above .
a weighting parameter ,  , is used to determine the relative importance of the intensity similarity and the spatial consistency constraint .
this new metric is used in the patch matching step and in the vote weighing step .
the metric between a test patch px and a training patch pd is defined as follows:(7)dpx , pd = dipx , pd+dlpx , pd , where di( ,  ) is the intensity - based metric described above and dl(px , pd ) is the square euclidean distance between the current labels of the patch px and the labels of training patch pd .
a larger weight parameter  tends to favor the current labeling decision of the algorithm .
we use the following definition for the weight:(8)t=0t1with constant 0 ensuring that the intensity metric and label metric are on the same scale and t is the iteration number . in the first iteration ,  = 0 ; thus we start with the patch - based method as described in section 2.3 . as 
is increased from one iteration to the next , it gives more weight to labels of the nearest - neighbor training patches in making the current label decision .
a large  ensures that the labels of the nearest - neighbor training patches coincide with the current label decision and therefore the algorithm converges .
we have found that in practice there is no need for more than 4 - 5 iterations until convergence .
our method imposes a global consistency constraint between the labels of neighboring voxels in an efficient way . for each patch
we find the most similar patch based on intensity while also taking into account spatial compatibility with the neighboring voxels .
the initial patch - based segmentation results are sensitive to small hyperintense regions that are caused by noise and inhomogeneities .
the majority of these voxels are correctly labeled as nonlesions during the refinement stage .  
the proposed method was implemented in matlab 8.0 using c / mex code and the experiments were conducted using an intel core i7 - 3770 processor at 3.4  ghz with 8  gb ram .
this section reports on the segmentation results and compares the patch - based approach to other top - ranked methods [ 1416 ] .
we evaluated our framework using clinical public data provided by the ms lesion segmentation challenge which was introduced at the miccai ms lesion segmentation workshop 2008 .
this is the largest dataset publicly available , and most recent works in the field use this dataset as it provides a benchmark for algorithm comparisons .
the ms lesion grand challenge offers two datasets : a labeled dataset ( originally designed for training ) and an unlabeled dataset ( used for testing ) .
the public set ( train set ) contains 20 cases , 10 from the university of north carolina ( unc ) and 10 from the children 's hospital boston ( chb ) datasets .
the private dataset ( testing set ) contains 15 cases from chb and 10 from unc . for the private dataset two lesion markings are available , segmented by unc and chb rater .
the dataset shows high variability in intensity contrast , image noise , and bias field .
the dataset contains highly heterogeneous cases and can thus be considered as a realistic test case . in all cases ,
the data resolution is 0.5  mm isotropic in three different modalities ( t1w , t2w , and flair ) .
all data were rigidly registered to a common reference frame and resliced to isotropic voxel spacing using b - spline based interpolation by the challenge organizers .
our procedure was evaluated in a leave - one - out framework for each medical center ( chb and unc ) .
we computed true positives ( tps ) , true negatives ( tns ) , false positives ( fps ) , and false negatives ( fns ) and used the following validation measures : true positive rate ( tpr ) defined as tp/(tp + fn ) , positive predictive value ( ppv ) defined as tp/(tp + fp ) , and dice similarity coefficient ( dsc ) defined as ( 2tp)/(fp + fn + 2tp ) .
the scores appear in table 1 along with a comparison to three state - of - the - art works using the same dataset .
the winner of the miccai ms lesion grand challenge ; weiss et al . , the latest work published using this database ; and geremia et al . , one of the outstanding supervised methods published . note that dsc measures were not provided by the authors in the first two methods . the proposed method achieved a mean tpr of 40% , a mean ppv of 29% , and a mean dsc of 31% .
these results are comparable with the other state - of - the - art algorithms using the same data .
the input image is presented in figure 4(a ) and the final segmentation map is shown in figure 4(e ) .
the similarity to the reference segmentation , shown in figure 4(f ) , is evident .
there was a substantial decrease in fps , as part of the algorithm iterative refinement procedure , in both cases .
in addition , observe an increased number of border voxels being classified as lesions in iterations 3 to 5 .
thus overall there was a significant decrease in the quantity of the fps and an increase in all the measured indices .
quantitative evaluation was also carried out on the private dataset using a set of known metrics defined in . in order to allow quantitative comparison between methods and to human export
each metric is related to the result that could be expected if an independent human observer would perform the segmentation manually .
thus 100 points mean a perfect result ( the best value that could be obtained for a metric ) and a predefined amount ( see   for details ) of 90 for a score that is typical for an independent human observer . the algorithm results on the miccai2008 private dataset , as provided by the ms - lesion challenge organizers , are available in the challenge website ( http://www.ia.unc.edu/msseg ) .
the proposed method achieved an average score of 72% , where the average scores on unc and chb databases were 68% and 74% , respectively .
generally , a significant difference is reflected when comparing the method results on the unc ( 68% ) and chb ( 74% ) datasets .
it is hard to understand the specific reason for that difference in the absence of the gt .
we believe that this difference could be explained by changes in the mri acquisition parameters which the normalization steps failed to bridge . due to the high dimension of the search space , finding the absolute best match would be computationally prohibitive .
instead , we used flann ( fast library for approximate nearest neighbors ) [ 44 , 45 ] .
flann is a library for performing fast approximate nearest neighbor searches in high dimensional spaces .
it contains a collection of algorithms found to work best for nearest neighbor searches and a system for automatically choosing the best algorithm and optimum parameters depending on the dataset . using flann ,
each nn iteration takes less than 1 minute ( 40  sec ) and results in a total time of less than 4 minutes .
note that when we compared the approximated result to an accurate result achieved by brute force nn implementation , the results were similar , without a significant disparity . computational times in other methods
, an example of execution time on one case was given , and the computational time reported ( without the preprocessing ) was 34  min .
weiss et al .   reported 5  min , which is similar to the patch - based method .
did not report the computational time for a single test case , but rather a significant training time of 8 hours to train the random forest classifier they used .
all frameworks use similar preprocessing steps ; thus the comparison of preprocessing time is irrelevant .
the driving force behind the patch - based approach is the intensity similarity between the patches .
we compared the mean intensity of the lesions detected by the algorithm , to those marked by the expert .  
figure 5 shows the mean intensity of the lesion across the multimodal images . generally , the fit between the lesion dots is high , suggesting that the intensity range of our method is compatible with the ground truth .
each sample in figure 5 represents one lesion ; some of the lesions in the ground truth ( the full blue dots ) appear to be significant outliers , for example , the two lesions with the lowest flair and t1 intensities and the highest t2-intensity ( flair(t1 ) graph : upper left corner , t2(t1 ) graph : bottom left corner ) .
furthermore , this figure emphasizes the importance of the subject selection step for outlier handling .
it is clear that if the database characterization contains too few patches or represents the brain tissue and the lesions poorly this can lead to misclassification .
fp errors are instances of retrieved patches which are similar to lesions but originate from healthy tissue , and therefore their labels lead to misclassification .
we also tried to use only the patches in the roi marked as example in figure 2 ( section 2.3 ) and the results were slightly worse .
furthermore , the wm segmentation mask may contain classification errors or adjacent tissues which may cause the need to decide whether patches from other tissues are lesion or not . in classical machine learning systems , the training data and the testing data are usually identical in terms of their properties .
that is , to classify all the brain voxels , it makes sense to train all of them .
however , creating a huge database , containing millions of patches would cause the classifier to favor the healthy class . therefore , we chose to build the database with patches extracted from the lesion regions .
the parameter that determines the amount of patches that are proximal to the lesions is the size of the bounding box around the lesion . as the bounding box is larger it will contain more healthy patches and the database size will increase .  
the results in figure 6(a ) support our selection of a bounding box expansion of 3 voxels . from figure 6(b ) we see that the best dsc result was obtained for a patch number between 100,000 and 150,000 patches . 

figure 7 depicts performance change as a function of the number of nearest patches k and for different number of selected subject n. it shows that tpr increases and ppv decreases as k increases , which causes the dsc to remain almost unchanged .
we chose an optimal working point , where the ppv and tpr are similar ; that is , k = 30 . 

when the number of training images is very large , images that are not very similar ( large kl divergence in the subject selection stage ) are also used , and thus the patch matching is biased .
conversely , for n = 1 the patch selection is too small , and thus for some of the patches similar patches are not found .
generally , we found that the true positive rate increases as k increases ; this could be explained by the fact that in ( 4 ) we calculate the weights for each patch vote .
for dissimilar patches this weight is practically zero ; thus for k > 100 the results are with small change . in practice
we selected k = 30 because when using more patches , the algorithm tends to classify the patches as lesions .
as explained in section 2.3.1 , the selection of the patches represented the lesion and nonlesion in a roughly balanced way ; thus when k > 30 the algorithm finds patches that are quite similar to the target patch with high probability to be lesion .
moreover , we found that the patches retrieved after the 30th patch are different one from the other mainly in the noise level ; this causes the classification probability to be as in the database , roughly balanced , and thus decreases the overall performance ( while the tpr is increasing ) . 

a mean dsc value of 21% was achieved before the patch - based label refinement process ; a mean dsc of 25% was obtained after two iterations and in the last iteration we achieved a mean dsc of 31% which shows a substantial improvement .
the weighting for the spatial information is determined by 0 . specifically , we selected a value of 20 , which results in parameter  to range between 0 and 80 ( from the initial iteration to the fifth ) .
the value of  in the fifth iteration is similar to the average intensity of a lesion ( across all mr channels ) . in this work
, augmented patches are used ; that is , we concatenate the patches across the different mri modalities .
using the augmented patches in this way ensures that all three modalities are approximately equally treated .
using the euclidean distance , which is sensitive to the intensity of the patch , may in fact result in the fact that the brightest modality ( flair ) has the greatest effect .
still , the effect of the differences in intensity is relatively random , making it legitimate to assume that the overall effect on patch matching is negligible .
figure 9 shows dsc , tpr , and ppv values for three single - modality , three double - modality , and one multimodal patch sources .
when using a single modality , t2 resulted in the best performance . combining across several modalities reduced the fps and increased the tps . on the entire dataset , the combination t1w + t2w + flair performed statistically better than all other combinations ( aside from t1w + t2w in the tpr measure ) . 

figure 10 shows dsc , tpr , and ppv values for five different modality weights cm = { ct1 , ct2 , cflair}. in this experiment , we did not perform an accurate optimization of the three weight parameters .
our goal was to identify the influence of the parameter set and its possible future use in patch - based segmentation approaches .
this result is compatible with the fact that the main characteristic of a wm lesion is that its intensity is brighter than its surroundings on t2w and flair .
in this paper , we proposed a novel patch - based method for detection and segmentation of ms lesions in brain mri by utilizing multimodal spatial information . the segmentation is first obtained based on intensity patch similarity and then further iteratively refined with the spatial label information .
this makes the framework robust to registration errors which are likely to occur if there is a high degree of anatomical variability .
the relationships between patches can be modeled as a markov network ( or random field ) .
we let the test brain image patches be observation nodes and selected the k closest examples to each input patch as the different states of the hidden nodes that we sought to estimate . in   a good approximate solution for this relationship
these authors also introduced a new one - pass algorithm that computes the patch compatibilities for previously selected neighboring patches . in our algorithm
we use this idea in order to take the relationships between the labels of neighboring patches into account
. a few main characteristics of the presented approach include the following : ( 1 ) the patch - based segmentation method is nonparametric .
in other parametric models the amount of lesion load needs to be determined a priori .
( 2 ) we integrate the spatial information through the patch - based metric by incorporating the label term .
the spatial refinement step adds both the neighborhood relations and introduces spatial consistency . ( 3 ) the proposed framework is supervised and thus aims to represent the lesion and nonlesion tissues using labeled data . in other unsupervised methods , finding outliers in the model is the guiding principle . in this paper
, we compared the proposed method against three other methods . in souplet et al .
, the authors showed that a global threshold on the flair mr sequence , inferred using em brain tissue classification , suffices to detect most ms lesions .
the final segmentation is then constrained to appear in the white matter by applying morphological operations .
the method reported here achieves better accuracy than the souplet et al . method . in geremia
, the authors proposed a discriminative random decision forest framework to provide a voxel - wise probabilistic classification of the volume .
the method uses multichannel mr intensities , knowledge about tissue classes , and long - range spatial context to discriminate lesions from background .
a symmetry feature is introduced to account for the fact that some ms lesions tend to develop in an asymmetric way .
when compared to this method , our findings are mixed . this may be due to the fact that in the current work we are using intensity only features .
. indicated that sophisticated features such as context - rich and symmetric features reduce the strong normalization preprocessing requirements .
we therefore believe that combining some of the context - rich and symmetry features may enable us to reach better results . in weiss
et al . , an unsupervised approach addressing the problem with dictionary learning and sparse coding was used .
this method is the most recent published work addressing the ms lesion segmentation task using the miccai08 datasets .
it is interesting to note the low results for subject unc01 , for both our algorithm and souplet et al .   and geremia et al
this specific case contains two lesions , where the first is relatively small and the second is very similar to the csf tissue and touches it ( figure 5 shows the significant intensity outlier ) .
in addition , when comparing the average intensity of the second lesion in all three channels , it appears as a significant outlier .
one of the major drawbacks of mri is the lack of standard and quantifiable interpretation of image intensities . unlike other modalities , such as x - ray computerized tomography , mr images of the same patient taken on
the same scanner at different times may appear different from each other due to a variety of scanner - dependent variations and therefore the absolute intensity values do not have a fixed meaning .
the key step in overcoming this drawback is a normalization step during preprocessing ( section 2.2 ) ; this enables intensity - based patch comparisons .
out of the 20 subject mr images in the datasets , a few of them ( e.g. , chb2 and chb5 ) differ markedly .
the impact was considerable on these subject 's segmentation results and in fact went from total segmentation failure to reasonable results . in the patch selection stage ( section 2.3 )
a fixed number of patches were selected ( 150  k ) . in our experimentations
we have found that this fixed number of patches is satisfactory for any training data size , as long as the patch database formed contains sufficient diversity .
the fixed number of patches selected provides invariance to data size and any scalability concerns . in future research
we plan to explore various additional representations for the patches , such as using the histogram of oriented gradients ( hog ) .
one possible explanation for the lower results we achieved on the private dataset is the difficulty of the subject selection step to find sufficiently good matches for the test cases .
in other words the advantage of comparing patches from a variety of brains and tissues caused misclassification of lesions .
evidence for that is the relative high score on the volume difference as compared with the fpr and tpr scores .
this framework could be coupled with dictionary learning , as well as additional pre- and postprocessing to improve performance . in
future work we aim to improve the results using better database characterization and advanced metric learning .
evaluation of our algorithm on larger datasets from varying input sources will allow us to test the robustness of the algorithm to noise and other variance .
we are now working on a system for screening of highly noisy patches , or patches which are extracted from fundamentally different brains .
we believe that better learning of the database will lead to a considerable improvement in the results .
to conclude , we presented a novel framework for patch - based segmentation that integrates intensity information with a patch - based label refinement .
the method does not call for nonlinear alignment of the training images onto the space of the testing image .
many other works use this step , which is a major source of error and is computationally expensive . the database concept , as the novel refinement step ,
although the patch - based algorithm is based on a k - nn search , a good approximation for the search was found to result in less than 5  min . the total segmentation time (
not including preprocessing ) makes the method one of the fastest proposed for the ms lesion task .
the method proposed is a general one and as we believe can be generalized to other small lesion tasks such as liver metastasis and chest x - ray pathologies .
 this paper presents an automatic lesion segmentation method based on similarities between multichannel patches . 
 a patch database is built using training images for which the label maps are known . 
 for each patch in the testing image , k similar patches are retrieved from the database . the matching labels for these k patches 
 are then combined to produce an initial segmentation map for the test case . 
 finally an iterative patch - based label refinement process based on the initial segmentation map is performed to ensure the spatial consistency of the detected lesions . 
 the method was evaluated in experiments on multiple sclerosis ( ms ) lesion segmentation in magnetic resonance images ( mri ) of the brain . 
 an evaluation was done for each image in the miccai 2008 ms lesion segmentation challenge . 
 results are shown to compete with the state of the art in the challenge . 
 we conclude that the proposed algorithm for segmentation of lesions provides a promising new approach for local segmentation and global detection in medical images . 
1. Introduction
2. Patch-Based Segmentation and Label Refinement
3. Results
4. Discussion and Conclusion