Research article  Open  Published:
A hierarchical Naïve Bayes Model for handling sample heterogeneity in classification problems: an application to tissue microarrays
BMC Bioinformaticsvolume 7, Article number: 514 (2006)
Abstract
Background
Uncertainty often affects molecular biology experiments and data for different reasons. Heterogeneity of gene or protein expression within the same tumor tissue is an example of biological uncertainty which should be taken into account when molecular markers are used in decision making. Tissue Microarray (TMA) experiments allow for large scale profiling of tissue biopsies, investigating protein patterns characterizing specific disease states. TMA studies deal with multiple sampling of the same patient, and therefore with multiple measurements of same protein target, to account for possible biological heterogeneity. The aim of this paper is to provide and validate a classification model taking into consideration the uncertainty associated with measuring replicate samples.
Results
We propose an extension of the wellknown Naïve Bayes classifier, which accounts for biological heterogeneity in a probabilistic framework, relying on Bayesian hierarchical models. The model, which can be efficiently learned from the training dataset, exploits a closedform of classification equation, thus providing no additional computational cost with respect to the standard Naïve Bayes classifier. We validated the approach on several simulated datasets comparing its performances with the Naïve Bayes classifier. Moreover, we demonstrated that explicitly dealing with heterogeneity can improve classification accuracy on a TMA prostate cancer dataset.
Conclusion
The proposed Hierarchical Naïve Bayes classifier can be conveniently applied in problems where within sample heterogeneity must be taken into account, such as TMA experiments and biological contexts where several measurements (replicates) are available for the same biological sample. The performance of the new approach is better than the standard Naïve Bayes model, in particular when the within sample heterogeneity is different in the different classes.
Background
The biomedical sciences are fraught with uncertainty. The sources of this uncertainty are manifold. Devices used to monitor biological processes vary in terms of resolutions. Gaps in the full understanding of basic biology compound this problem. Biological diversity or heterogeneity may make predictions difficult. Finally, uncertainty may be due to the unpredictable sources of noise, which can be inside or outside the biological system itself.
In molecular biology uncertainty is ubiquitous; for example, tissue heterogeneity makes it difficult to compare a tissue sample composed of pure tumor cell populations with one composed of tumor and other nontumoral elements such as supporting structural tissues (i.e. stroma) and vessels. However, in molecular biology, one rarely can examine an entire tumor and biopsies are taken with the assumption that they represent a portion of the whole tumor.
This paper addresses the uncertainty associated with measuring replicate samples. Understanding such kind of uncertainty would help guide decision making and allow for alternate strategies to be explored. Usually, the measurements of replicate samples are averaged to derive a single measurement. This value is then used for example when building a classification system which may play a critical role in the decision making process. Unfortunately, an average measurement (or median value) hides the uncertainty or heterogeneity present in the replicates, and may thus lead to decision making rules which are too reliant on this pooled data. This process may lead to a model that is not sufficiently robust to work in an independent dataset.
TMA studies represent a context where the issue of biological heterogeneity is particularly relevant. Where gene expression microarray experiments provide researchers with quantitative evaluation of transcripts, TMA evaluate DNA, RNA or protein targets through in situ investigations (analyses performed on tissues). In situ evaluations are characterized by the fact that the morphology of the analyzed samples is intact and therefore the potential biological heterogeneity within tumor tissue can be analyzed. TMAs allow for large scale profiling of tissue samples. For example, TMAs can be used to investigate panels of proteins that may play a role in tumor progression. They have the potential to be easily translatable to a clinical application such as the development of diagnostic biomarkers, e.g., AMACR [1] or to access a therapeutic target, e.g., Her2neu [2].
TMA datasets usually include replicate core biopsies of the same tissue from the same individual to ensure that enough representative tissue is available in each experiment and to better represent the biological variability of the tissue itself and of the protein activity (i.e. accurate sampling). Most TMA datasets are evaluated using straightforward pooling of the data from replicates, thus ignoring variations among biopsies from the same patient (the so called within sample variability). The mean, the maximum or the minimum is usually adopted and the strategy may be based on biological knowledge or on known protein associations. However, it has been found that different choices can lead to covariates with different significance levels in Cox regression [3]. Interestingly, when multiple biomarkers are evaluated, one approach is chosen and applied for all of them regardless of the biologic implications.
However the degree of heterogeneity of the tumor tissue may be an important biological parameter. In a probabilistic framework, for example, accounting for the within sample variability caused by the tumor tissue heterogeneity, could alter the probability of a case belonging to a certain class (even changing the predicted class), providing insight into the particular case study. When measurement occurs at different levels, i.e. different biopsies of the same tumor or different tumors, standard statistical techniques are not appropriate because they either assume that groups belong to entirely different populations or ignore the aggregate information entirely.
Hierarchical models (multilevel models) provide a way of pooling the information for the different groups without assuming that they belong to precisely the same population [4]. They are typically used when information is available but the observation units differ (i.e., metaanalysis of separate randomized trials).
Herein we propose a classification model, which accounts for the tumor within sample variability in a probabilistic framework, relying on Bayesian hierarchical models. Hierarchical Bayes models have been used for modeling individual effects in several experimental contexts, ranging from toxicology to tumor risk [4]. For this reason, their use in the classification context seems particularly suitable to handle TMA data and tumor heterogeneity.
The paper is structured as follows: we first provide relevant background on Bayesian classifiers (specifically on the Naïve Bayes classifiers) and on Bayesian hierarchical models. Then we describe the proposed method and compare its performances to a Naive Bayesian classifier, in which we applied standard pooling strategies. The results will be shown on simulated datasets characterized by different ratios of within and between samples variability and on a real classification problem based on TMA data we generated in our laboratory from a prostate cancer progression array (TMA Core of Dana Farber Harvard Cancer Center, Boston, MA) developed to identify proteins that can distinguish aggressive from indolent forms of this common tumor type.
Bayesian classifiers and the Naïve Bayes
In this paper we focus on classification problems, where, given the data coming from a target case, we must decide to which class the case belongs. For example, given the set of tumor marker values measured on biopsies of a tissue of a given patient, we must decide if the patient is affected by a particular kind of tumor.
From a Bayesian viewpoint, a classification problem can be written as the problem of finding the class with maximum probability given a set of observed attribute values. Such probability is seen as the posterior probability of the class given the data, and is usually computed using the Bayes theorem, as P(CX) = P(XC) P(C)/P(X), where C is any of the possible class values, X is a vector of N_{ feature }attribute values, while P(C) and P(XC) are the prior probability of the class and the conditional probability of the attribute values given the class, respectively. Usually Bayesian classifiers maximize P(XC)P(C), which is proportional to P(CX), being P(X) constant given a dataset.
Bayesian classifiers are known to be the optimal classifiers, since they minimize the risk of misclassification. However, they require defining P(XC), i.e. the joint probability of the attributes given the class. Estimating this probability distribution from a training dataset is a difficult problem, because it may require a very large dataset even for a moderate number of attributes in order to significantly explore all the possible combinations.
Conversely, in the framework of Naïve Bayes classifiers, the attributes are assumed to be independent from each other given the class. This allows us to write, following Bayes theorem, the posterior probability of the class C as: p(CX) = ∏_{l = 1}^{Nfeature}p(X^{l}C) p(C)/P(X). The Naïve Bayes classifier is therefore fully defined simply by the conditional probabilities of each attribute given the class. The conditional independence property largely simplifies the learning process of the model from data. In presence of discrete and Gaussian data this process turns out to be straightforward. Despite its simplicity, the Naïve Bayes classifier is known to be a robust method, which shows on average good performance in terms of classification accuracy, also when the independence assumption does not hold [5, 6]. Due to its fast induction, the Naïve Bayes classifier is often considered as a reference method in classification studies. Several approaches have been proposed to generalize such classifier [7] and there has been a recent interest in applying hierarchical models to Bayesian classification, such as in the field of expression array analysis [8, 9]. In this paper we present a step forward, describing a hierarchical Naïve Bayesian model which can be convenientln used for classification purposes in the presence of replicated measurements, as for TMA data.
Bayesian Hierarchical Models
Bayesian hierarchical models (BHM) [4] are powerful instruments able to describe complex interactions between the parameters of a stochastic model. In particular, BHMs are often used to describe population models, in which the parameters characterizing the model of an individual are considered to be related to the parameters of the other individuals belonging to the same population. In this paper we will cope with the problem of classifying tumors of different patients for which repeated measurements of tumor markers are available. The probability distribution of such measurements will depend on the patient; however, all the patients suffering from the same disease will be assumed to be related to each other in terms of tumor marker probability distributions.
Bayesian hierarchical models provide a natural way to represent this relationship by specifying a suitable conditional independence structure and a suitable set of conditional probability distributions.
The simpler structure of a BHM can be summarized as follows: let us suppose that a certain variable x (e.g. a tumor marker) has been measured n_{ rep }times in m patients belonging to the same population, i.e. they have the same tumor type. Let us also suppose that x is a stochastic variable depending on a set of parameter θ, so that for the ith subject, such dependency is expressed by the probability p(x_{i} θ_{ i }). The assumption that the individuals are "related" to each other can be then represented by introducing the conditional probability p(θ_{ i }ϕ), where ϕ is a set of hyperparameters typical of a population. In this way, each subject is characterized by a probability distribution that depends on population parameters which are common for all individuals of the same population. If we assign a prior distribution to ϕ, say p(ϕ), the joint prior distribution will be p(ϕ,θ) = p(θ ϕ)p(ϕ), where θ = {θ_{1}, θ_{2}, ..., θ_{ m }}. Once a data set X= {X_{1},..., X_{ m }} is observed on all m patients, where X_{ i }= (x_{i 1}, x_{i 2},..., ${x}_{i{n}_{repi}}$) is the measurement vector for the ith patient, the joint posterior distribution p(ϕ, θX) can be computed by applying the Bayes theorem. It is easy to show that such distribution is proportional to p(Xθ) p(θϕ) p(ϕ). Since the population parameters are usually unknown, the integral of such equation over ϕ allows to calculate the posterior distributions for the model parameters θ given the data coming from all patients.
BHMs have been applied in a variety of contexts, ranging from signal processing [10] to medicine and pharmacology [11, 12] and to bioinformatics. [13–16]. Moreover, several computational techniques for specifying and fitting BHMs have been introduced also to deal with discrete responses, multivariate models, survival models and time series models. Useful reviews can be found in papers and books [17, 18]. Recently, hierarchical models have been applied to extend the Naïve Bayes model in order to relax the assumptions of conditional independence between attributes [19]. In our paper we will use hierarchical models to handle repeated measurements and their heterogeneity.
Results
The Hierarchical Naïve Bayes approach
From a probabilistic perspective, a classification problem can be viewed as the selection of the class which has the highest (posterior) probability given the available data. Here we explicitly handle data with multiple replicate values.
In the case of TMA, we can think of one case as being the tumor tissue of one patient and replicates being the multiple biopsies from that patient. Therefore, the evaluation of a target protein (feature) on a TMA section will provide the pathologist with multiple evaluations of protein expression for each patient (case).
Let ${x}_{ij}^{lk}$ be the jth replicate measurement of the lth feature of the ith case corresponding to class k. For the sake of simplicity, given a class k and a feature l, we will write it as x_{ ij }, j = 1,...,n_{ rep }, i = 1,...,N_{ Ck }, where N_{ Ck }is the number of cases in the class C_{ k }.
Let us assume that the values of replicates of the generic case i are normally distributed around a mean value μ_{ i }with a variance σ^{2} (independent from i, but dependent on the class k), i.e. x_{ ij }~N(μ_{ i }, σ^{2}). The mean values μ_{ i }are, at their turn, normally distributed around a "population" mean value M with variance τ^{2}, i.e. μ_{ i }~N(M, τ^{2}). The assumption that the variance is the same for all patients belonging to the same class reflects the intuitive notion that the variability over replicates, due for example to the tissue heterogeneity, is a property of the disease. Such an assumption, which is realistic in TMA data, turns out to be convenient when estimating the variance from the data: the reliability of the estimate is increased by the higher number of measurements exploited. The resulting hierarchical model is presented in Fig. 1.
Given this probabilistic model, we here describe how to classify a new case, supposing that the class model parameters M, τ^{2}, σ^{2} are known for each class. In the Methods section we detail how to learn the model parameters from a training dataset. Moreover, the same section reports the classification and the learning phase of Standard Naïve Bayes (StNB) classifier, in order to highlight the differences.
To classify a new case in the Bayesian framework it is necessary to evaluate the posterior probability of each class given the case data. Let us define the vector X_{ i }= (x_{ i1 }, x_{i 2},..., x_{ inrepi }), which represents the replicate measurements of the ith case for a given feature (univariate case). For sake of simplicity, we omit the subindex i hereafter.
By applying the Bayes' theorem, the posterior probability for the class C_{k} given the set of data is
To evaluate the posterior probability, the marginal likelihood P(X C_{ k }, σ^{2}, M, τ^{2}) can be computed exploiting the conditional independence assumptions described in the hierarchical model of Figure 1 as:
The marginal likelihood can be written as (for sake of readability the subscript k and the model parameters M, τ^{2}, σ^{2} have been omitted in the left hand side of the equation):
Applying simple algebra (details are reported Additional file 1), we obtain:
Finally, given the model parameters, the new case X can be classified into the class that maximize the posterior probability, which is proportional to the marginal likelihood if the classes are a priori equally likely.
It is interesting to note that the main novelty of the method is that the classification rule (through the marginal likelihood) includes the information on the within sample heterogeneity. Such information is expressed by the parameter σ^{2}, which may therefore guide decisions when there is a clear difference between the within sample heterogeneity of cases belonging to the different classes. Let us note that standard approaches, such as the StNB or the quadratic discriminant analysis, can take into account only between samples variability, expressed in our model by the parameter τ^{2} . Moreover, since the classification rule can be calculated in closedform, it can be used in realtime applications, such as the StNB classifier.
The generalization for the multivariate case, i.e. $\overline{X}$ = (X^{1}, X^{2},...,X^{Nfeature}), can be obtained by assuming, as in the StNB classifier, the conditional independence of the features given the class, i.e. $P(\overline{X}C)={\displaystyle \prod _{l=1}^{Nfeature}P({X}^{l}C)}$
In this case, the posterior probability of class k is
Results on simulated and real data
We present the results we obtained using both computationally generated datasets and a real TMA protein expression dataset.
A first set of simulated data was generated to represent the best scenario, by incrementally varying the within sample variance σ^{2} for one class only. A second set of normally distributed data was generated using a variety of parameter values (see Additional file 2). The training and classification properties of the proposed algorithm were evaluated in both cases. Finally, we analyzed a set of real TMA protein expression data, in order to evaluate the potentials of the method for the analysis of real data.
In both studies, being the Hierarchical Naïve Bayes (HierNB) classifier an extension of the StNB classifier to cope with replicate measurements, results are compared with the StNB classifier to highlight, without introducing additional bias due to the different classification techniques, the advantage of the new approach. However, the real data were analyzed by several other classification methods and the results are reported in the Additional file 3.
The classifiers are compared on the basis of two indexes: the accuracy (defined as the ratio of the properly classified and the total classified cases) and the Brier score [20], measuring the difference between the probability of an event and its occurrence, expressed as 0 or 1 depending on if the event has occurred or not. Confidence intervals of accuracy are evaluated by repeating several times learning and classification after a suitable data randomization [21]. Moreover, in the case of the real TMA dataset, we use sensitivity (defined as the ratio of the true positive classified cases and all positive cases), specificity (defined as the ratio of the true negative classified cases and all negative cases) and the area under the ROC curve [21].
The data analysis reported in this paper has been implemented in the R statistical package [22].
Simulated data
Data description
We generated simulated datasets with 4000 patients (2000 for class 1 and 2000 for class 2), 5 replicates each and a number of independent features ranging from 1 to 10. For each feature, the values of the five replicates were randomly extracted from a normal distribution with fixed variance σ^{2} (dependent on the class and on the feature) and mean randomly generated from a normal distribution with fixed mean M and variance τ^{2}, again dependent on the class and on the feature.
A first set of experiments was run for the univariate case (one feature), so that the two classes basically had the same parameter values, but for the within sample variance parameter σ^{2} that is assumed bigger in the second class. In particular they had a similar population mean M and exactly the same class variance τ^{2} (M_{1} = 100, M_{2} = 105, τ_{1}^{2} = τ_{2}^{2} = 300, σ_{1}^{2} = 10). The parameter σ_{2}^{2} varied from 15 to 75.
A second set of experiments was run simulating both univariate case studies and multivariate case studies (here we report results for two, three and ten features). The values of the first feature were generated for all these experiments using 90, 300 and 100 as M, τ^{2} and σ^{2} for class 1 and 140, 600 and 400 as M, τ^{2} and σ^{2} for class 2.
The complete set of parameter values used for the model in the multivariate set of experiment is reported in the Additional file 2.
We assessed the performances of the two classifiers by equally dividing the dataset into training and test set.
Data results
The results of the first experiment are shown in Tables 1. There is an enormous advantage (both in term of accuracy and Brier score) in the HierNB model, respect to the standard approach, where basically no distinction can be made between the two classes (the two classes are not well separated). The advantage of the HierNB increases as the difference between the variance of the replicates in the two classes increases. This first experiment shows that the proposed method is able to extend the current classification approaches by taking advantage from the information which can be derived from within sample heterogeneity.
Results for the second set of four experiments are presented in Table 2. For each experiment we report the number of features, the accuracy and Brier Score for both the HierNB and the StNB classifier.
The HierNB classifier performs better in all the experiments, showing higher accuracy and lower Brier score.
In Figure 2, the posterior probabilities of both the classifiers evaluated on the test datasets of one experiment (Table 2, experiment #3) are shown.
The HierNB classifier shows a better separation between the two classes not only in term of accuracy but also in term of credibility of the classification (as highlighted by the Brier Score). The confidence intervals of the estimated accuracy confirm that in all the experiments the proposed method outperforms the standard classifier. This second experiment shows that, even if the experimental context is complex since the classes show an overlap due to the values of the within and between sample variability, the method is able to perform equal or better than the StNB.
Real data
Data description
We used a research dataset obtained from a recently constructed prostate progression TMA, as previously described [23].
The TMA was constructed to test molecular differences between localized and metastatic prostate cancer samples, on a total of 288 core biopsies. In this paper, we explore the expression of two proteins, i.e. EZH2 and AMACR known to be differentially expressed in non aggressive or localized tumors (class 1 or negative class) versus aggressive or metastatic prostate cancers (class 2 or positive class). The Polycomb Group protein, EZH2, is overexpressed in hormonerefractory and metastatic prostate cancer [24] and may play a role in the progression of prostate cancer as well as serve as a marker distinguishing indolent prostate cancer from those at risk of lethal progression. αMethylacyl CoA racemase (AMACR) is a biomarker that was identified by both differential display and expression array analysis as a gene abundantly expressed in prostate cancer relative to benign prostate epithelium [25–27]. AMACR is used as a clinical marker to diagnose prostate cancer [1]. Prostate cancers that produce lower levels of AMACR have a worse clinical outcome even after controlling for other clinical parameters [28].
The TMA dataset includes 72 patients (samples), 36 for each class, each case having four replicates. After the processing of the TMA slides, 35 and 34 cases were suitable for analysis for class 1 and class 2 respectively (69 cases) and each case was characterized measuring from 1 to 4 times for two proteins. The assumption that the data have a Gaussian distribution given the class has been verified by applying the KolmogorovSmirnov test. Table 3 describes the dataset through the model parameters M and τ^{2} estimated according to the StNB and σ^{2} estimated as the average within case variance for the two classes. Since the estimate of σ^{2} is different in the two classes, this classification problem may benefit from the use of the HierNB approach.
We assessed the performances of the two classifiers by applying one hundred times a 10 fold crossvalidation procedure with different fold randomization and then by computing the average results.
Data results
Results obtained for the prostate cancer dataset are presented in Table 4. We report accuracy, specificity, sensitivity, area under the ROC curve (ROC curves are shown in the Additional file 4) and Brier Score for the HierNB and for the StNB classifier. In Figure 3, we report histograms of posterior probabilities obtained by the two models.
The classification performance of the HierNB model clearly outperforms the StNB one, for what concerns all the evaluation parameters considered. In particular, both accuracy and the Brier score are significantly better in the HierNB case than in the StNB one, also considering the 95% confidence interval of the estimates. The fact that classification accuracy in distinguishing localized prostate cancer from metastases is only about 60% is not surprising. The complexity of this classification problem has been recently discussed in Bismar, Demichelis et al. [23].
The HierNB classifier also shows a significantly higher specificity, and a similar sensitivity. We note from the histogram of posterior probabilities (Figure 3) that the HierNB method has better performances for metastatic cancer (panel B) than the StNB approach (which shows uncertain classification for many patients, panel D).
Discussion
Few studies have dealt with the problem of uncertain data in classification [29, 30]. In the bioinformatics arena, several recent studies addressed the topic of uncertain data, in particular on DNA microarrays data. However, their main emphasis is related to the management of uncertainty when applying feature selection strategies [16, 31]. Another example of handling uncertainty in classification is provided by Bhattacharyya et al., where they characterize each data point with an uncertainty model based on ellipsoids [32].
In this paper we have proposed a classifier based on Bayesian hierarchical models and have applied it on TMA datasets. The approach permits embedding in the classification model the tumor variability (heterogeneity of protein levels across tumor tissue), using the tuple of protein level measurements of each case instead of unique representative value as done by conventional approaches.
Bayesian hierarchical models have two main advantages with respect to other methods: i) they coherently manage uncertainty in the framework of probability theory; ii) they make explicit the assumptions which the model relies on. The implementation of the Bayesian classifier presented in this paper is an extension of the well known Naïve Bayes classifier. It assumes that all the attributes are independent among each other given the class. Moreover, we have also assumed that the probability distributions are conditionally Gaussian.
Preliminary performance tests on simulated data give us some clues about the applicability of the proposed model. With respect to classification, we observed that when classes have similar within sample variances no differences in terms of classification accuracy are obtained, as expected. However, increasing differences in the posterior distributions are detected as the difference of the within sample variability increases, e.g. σ_{ 1 }^{2} <<σ_{ 2 }^{2}. In this case the HierNB model outperforms the standard approach.
On TMA real data, we saw that the hierarchical model may improve specificity, which is part of the clinical question, and emphasizes the information available at every level, accounting for the spread of the replicate measures and thus may provide interesting insights into the biology of the tumor samples being analyzed. Rather interestingly, in this case the classification model is able to improve the data comprehension, highlighting if the heterogeneity of the tumor tissue sample is critical or not in the decision making process. Moreover, hierarchical models are also able to exploit the information on the lack of heterogeneity.
Heterogeneous and homogeneous protein expression may reflect different biological processes occurring in tumors. Exploiting this data may be critical in understanding the underlying biology.
Finally, the HierNB presents interesting robustness properties when comparing the results obtained in the datarich case of the simulation study (4000 samples) with the relatively datapoor real one (69 samples). The real case is much more difficult than the simulated one, due to the lower number of samples and the smaller difference of the mean values of the markers in the two classes. Such a difficulty results in more spread posterior distributions and in lower accuracy and higher Brier score values of all tested classification models. However, in both the simulated and the real cases the HierNB shows nearly the same gain in accuracy with respect to the StNB, taking advantage from the within sample variability information to better separate classes.
From a practical point of view, in TMA experiments in which hundreds of cases are evaluated and only a fraction do not fit well into one class or another, one can imagine that by using the hierarchical Naïve Bayes model, cases with a posterior probability within a certain window around 0.5 would be classified as ambiguous and would require rereview.
From a methodological point of view, in order to generalize the proposed approach, we are now working on the following aspects:

1)
Learning: while the classification step fully follows the Bayesian approach, the learning phase of the proposed method is not fully Bayesian. This choice was motivated by the need to perform fast learning from potentially large datasets for the needed probability distributions. However, it is also possible to resort to a more rigorous learning procedure by paying the price of implementing iterative procedures, such as Expectation Maximization (EM) or Monte Carlo Markov chain (MCMC) approaches [33]. Future versions of our tool will include also such kind of estimation algorithms [34].

2)
Non Gaussian distributions: we have also implemented a version of the hierarchical Naïve Bayes approach for discrete variables, relying on multinomial and Dirichlet probability distributions [34, 35]. This extension allows managing arbitrary data distributions after proper discretization.
Conclusion
We have proposed a novel approach for dealing with uncertain data in classification, with applications to TMA microarrays. The proposed model has, as its unique property, the capability of handling data heterogeneity in a sound probabilistic way, without requiring additional computational burden with respect to the standard Naïve Bayes approach. Based on the results obtained on simulated and real data, we can conclude that the proposed approach is particularly useful when the within sample heterogeneity differs between classes. Its application to TMA data has been shown to provide more insight into the information available in the database and to improve the decision making process also in presence of a very limited number of features. The proposed model can be conveniently applied and extended to deal with other application domains in Bioinformatics.
Methods
Tissue microarray technology
TMAs were recently developed to facilitate tissuebased research [36]. TMAs can be used for any type of study where standard tissue slides had previously been used. However, they present numerous advantages [37]. TMAs allow for screening of a large number of tissue samples under similar experimental conditions (large scale process) while conserving tissue and resources. Typically a TMA block contains up to 600 tissue biopsies, depending on the needle diameter used to transfer the samples (from 0.6 to 2 mm). TMA sections are serially obtained at 4–5 micrometers thickness with a microtome. TMA sections are then processed as conventional histological tissue sections.
Cylindrical tissue biopsies are transferred with a biopsy needle from carefully selected morphologically representative areas from original paraffin blocks (donor blocks), each containing tumor tissue from a patient. Core tissue biopsies are then arrayed into a new "recipient" paraffin block by using a tissue arrayer using a precise spacing pattern along x and y axis, which generates a regular matrix of cores. Typically, more than one biopsy from each patient is included in a TMA block; replicates allow for good representation of the patient's tumor and to potentially detect heterogeneous expression of markers (e.g. proteins) of interest within the tumor. How well TMA samples represent entire tumors has been the focus of several recent studies [38]. The results of those studies are dependant on tumor types and study purposes. A biomarker with homogenous expression throughout the entire tumor will not require as many replicates as a biomarker that is only focally expressed by the target tissue.
Learning the Hierarchical Naïve Bayes Model
The classification algorithm described in the Results section assumes that the model parameters (M, τ^{2}, σ^{2}) have been estimated from a training dataset. In the implementation of the method presented in this paper, we have adopted an approximation of the maximum likelihood estimation approach, called empirical learning [39].
Following such approach, the within sample means and variances are estimated as:
and ${\widehat{\sigma}}^{2}={\displaystyle \sum _{i=1}^{{N}_{{C}_{k}}}\frac{{\displaystyle \sum _{j}^{{n}_{rep}}{({x}_{ij}{\widehat{\mu}}_{i})}^{2}}}{{N}_{{C}_{k}}{n}_{re{p}_{i}}}}$, while the population mean and variance as:
and ${\widehat{\tau}}_{corr}^{2}=\frac{{\displaystyle \sum _{i}^{{N}_{{C}_{k}}}{({\widehat{\mu}}_{i}{\widehat{M}}_{pool})}^{2}}}{{N}_{{C}_{k}}}\frac{{\displaystyle \sum _{i}^{{N}_{{C}_{k}}}{\displaystyle \sum _{j}^{{n}_{rep}}{({x}_{ij}{\widehat{\mu}}_{i})}^{2}}}}{{N}_{{C}_{k}}{n}_{re{p}_{i}}^{2}}$ where ${\widehat{\sigma}}_{i}^{2}=\frac{{\widehat{\sigma}}^{2}}{{n}_{re{p}_{i}}}$.
The estimate of the population variance includes two terms, representing between samples and within sample variances (expressing the intersubject variability and the intrasubject variability, respectively). The estimate of τ is particularly critical: it is valid as far as the within sample variability is less than the between sample one, i.e. under the assumption that the measurements heterogeneity is not too large [4]. In case such assumption does not hold, other learning strategies can be conveniently applied, such as the EM estimate. We note that empirical learning allows the exploitation of the HierNB approach without additional computational burden with respect to the standard (non hierarchical) approach.
Classification by standard Naïve Bayes Model
Also in this case the classification of a new case requires the evaluation of the posterior probability of each class given the case data. However, the standard Naïve Bayes classifier does not consider the replicate measurements, but only their aggregate value (standard pooling strategy, e.g. mean value). Let X be the mean value of a given feature (univariate case) of the case to classify. The likelihood of X, X ∈ R, is $P(XC)=\frac{1}{\sqrt{2\pi}\tau}\mathrm{exp}\phantom{\rule{0.1em}{0ex}}(\frac{1}{2{\tau}^{2}}{(XM)}^{2})$, being τ and M, the variance and the mean of the distribution of the feature values in the class C. By Bayes' theorem, the posterior probability of each class can be easily evaluated and the new instance classified into the class with maximal posterior probability. The generalization for the multivariate case can be obtained by exploiting the assumption of conditional independence of the features given the class as discussed in the Background section.
Learning of standard Naïve Bayes Model
Also in this case, the model parameters (M, τ^{2}) have to be estimated from a training dataset. They can be computed as:
and ${\widehat{\tau}}^{2}=\frac{{\displaystyle \sum _{i}^{{N}_{{C}_{k}}}{({\widehat{\mu}}_{i}\widehat{M})}^{2}}}{{N}_{{C}_{k}}}$.
References
 1.
Browne TJ, Hirsch MS, Brodsky G, Welch WR, Loda MF, Rubin MA: Prospective evaluation of AMACR (P504S) and basal cell markers in the assessment of routine prostate needle biopsy specimens. Hum Pathol 2004, 35(12):1462–1468. 10.1016/j.humpath.2004.09.009
 2.
Zhang D, SaltoTellez M, Do E, Putti TC, Koay ES: Evaluation of HER2/neu oncogene status in breast tumors on tissue microarrays. Hum Pathol 2003, 34(4):362–368. 10.1053/hupa.2003.60
 3.
Liu X, Minin V, Huang Y, Seligson DB, Horvath S: Statistical methods for analyzing tissue microarray data. J Biopharm Stat 2004, 14(3):671–685. 10.1081/BIP200025657
 4.
Gelman A: Bayesian Data Analysis, 2nd ed. Chapman & Hall; 2004.
 5.
Lavrac N: Intelligent data analysis for medical diagnosis: using machine learning and temporal abstraction. AI Communications 1998, 11: 191–218.
 6.
Michalski RS, Kaufman K: Learning Patterns in Noisy Data: The AQ Approach. In Machine Learning and its Applications. Edited by: Paliouras G, Karkaletsis V, Spyropoulos C. Berlin, SpringerVerlag; 2001:22–38.
 7.
Krishnapuram B, Hartemink AJ, Carin L, Figueiredo MA: A bayesian approach to joint feature selection and classifier design. IEEE Trans Pattern Anal Mach Intell 2004, 26(9):1105–1111. 10.1109/TPAMI.2004.55
 8.
Helman P, Veroff R, Atlas SR, Willman C: A Bayesian network classification methodology for gene expression data. J Comput Biol 2004, 11(4):581–615. 10.1089/cmb.2004.11.581
 9.
Shen R, Ghosh D, Chinnaiyan AM: Prognostic metasignature of breast cancer developed by twostage mixture modeling of microarray data. BMC Genomics 2004, 5(1):94. 10.1186/14712164594
 10.
Karklin Y, Lewicki MS: A hierarchical Bayesian model for learning nonlinear statistical regularities in nonstationary natural signals. Neural Comput 2005, 17(2):397–423. 10.1162/0899766053011474
 11.
Magni P, Bellazzi R, De Nicolao G, Poggesi I, Rocchetti M: Nonparametric AUC estimation in population studies with incomplete sampling: a Bayesian approach. J Pharmacokinet Pharmacodyn 2002, 29(5–6):445–471. 10.1023/A:1022920403166
 12.
Shkedy Z, Molenberghs G, Van Craenendonck H, Steckler T, Bijnens L: A hierarchical BinomialPoisson model for the analysis of a crossover design for correlated binary data when the number of trials is dosedependent. J Biopharm Stat 2005, 15(2):225–239.
 13.
Bae K, Mallick BK: Gene selection using a twolevel hierarchical Bayesian model. Bioinformatics 2004, 20(18):3423–3430. 10.1093/bioinformatics/bth419
 14.
Cho H, Lee JK: Bayesian hierarchical error model for analysis of gene expression data. Bioinformatics 2004, 20(13):2016–2025. 10.1093/bioinformatics/bth192
 15.
Ferrazzi F, Magni P, Bellazzi R: Random walk models for bayesian clustering of gene expression profiles. Appl Bioinformatics 2005, 4(4):263–276. 10.2165/0082294220050404000006
 16.
Hein AM, Richardson S, Causton HC, Ambler GK, Green PJ: BGX: a fully Bayesian integrated approach to the analysis of Affymetrix GeneChip data. Biostatistics 2005, 6(3):349–373. 10.1093/biostatistics/kxi016
 17.
Goldstein H, Browne W, Rasbash J: Multilevel modelling of medical data. Stat Med 2002, 21(21):3291–3315. 10.1002/sim.1264
 18.
Leyland AH, Goldstein H: Multilevel Modelling of Health Statistics. Wiley: Chichester; 2001.
 19.
Langseth H, Nielsen TD: Classification using Hierarchical Naive Bayes models. Machine Learning 2006, 63: 135–159. 10.1007/s1099400661362
 20.
Redelmeier DA, Bloch DA, Hickam DH: Assessing predictive accuracy: how to compare Brier scores. J Clin Epidemiol 1991, 44(11):1141–1146. 10.1016/08954356(91)90146Z
 21.
Witten IH, Frank E: Data Mining. San Francisco (CA), Morgan Kaufmann; 2000.
 22.
Ihaka RG R: R: A Language for Data Analysis and Graphics. Journal of Computational and Graphical Statistics 1996, 5(3):299–314. 10.2307/1390807
 23.
Bismar TA, Demichelis F, Riva A, Kim R, Varambally S, He L, Kutok J, Aster JC, Tang J, Kuefer R, Hofer MD, Febbo PG, Chinnaiyan AM, Rubin MA: Defining aggressive prostate cancer using a 12gene model. Neoplasia 2006, 8(1):59–68. 10.1593/neo.05664
 24.
Varambally S, Dhanasekaran SM, Zhou M, Barrette TR, KumarSinha C, Sanda MG, Ghosh D, Pienta KJ, Sewalt RG, Otte AP, Rubin MA, Chinnaiyan AM: The polycomb group protein EZH2 is involved in progression of prostate cancer. Nature 2002, 419(6907):624–629. 10.1038/nature01075
 25.
Rhodes DR, Barrette TR, Rubin MA, Ghosh D, Chinnaiyan AM: Metaanalysis of microarrays: interstudy validation of gene expression profiles reveals pathway dysregulation in prostate cancer. Cancer Res 2002, 62(15):4427–4433.
 26.
Rubin MA, Zhou M, Dhanasekaran SM, Varambally S, Barrette TR, Sanda MG, Pienta KJ, Ghosh D, Chinnaiyan AM: alphaMethylacyl coenzyme A racemase as a tissue biomarker for prostate cancer. Jama 2002, 287(13):1662–1670. 10.1001/jama.287.13.1662
 27.
Xu J, Stolk JA, Zhang X, Silva SJ, Houghton RL, Matsumura M, Vedvick TS, Leslie KB, Badaro R, Reed SG: Identification of differentially expressed genes in human prostate cancer using subtraction and microarray. Cancer Res 2000, 60(6):1677–1682.
 28.
Rubin MA, Bismar TA, Andren O, Mucci L, Kim R, Shen R, Ghosh D, Wei JT, Chinnaiyan AM, Adami HO, Kantoff PW, Johansson JE: Decreased alphamethylacyl CoA racemase expression in localized prostate cancer is associated with an increased rate of biochemical recurrence and cancerspecific death. Cancer Epidemiol Biomarkers Prev 2005, 14(6):1424–1432. 10.1158/10559965.EPI040801
 29.
Bi J: Support vector classification with input data uncertainty. Edited by: Zhang T. NIPS ; 2004.
 30.
Ishibuchi H, al. : Neural Networks that learn from Fuzzy IfThen rules. IEEE Trans Fuzzy Systems 1993, 1(2):85–97. 10.1109/91.227388
 31.
Yeung KY, Bumgarner RE, Raftery AE: Bayesian model averaging: development of an improved multiclass, gene selection and classification tool for microarray data. Bioinformatics 2005, 21(10):2394–2402. 10.1093/bioinformatics/bti319
 32.
Bhattacharyya C, Grate LR, Jordan MI, El Ghaoui L, Mian IS: Robust sparse hyperplane classifiers: application to uncertain molecular profiling data. J Comput Biol 2004, 11(6):1073–1089. 10.1089/cmb.2004.11.1073
 33.
Gilks WR: Markov Chain Monte Carlo in Practice. Chapman & Hall; 1996.
 34.
Bellazzi R, Demichelis F, Piergiorgi P, Magni P: Hierarchical Naive Bayes Classifiers for uncertain data. In DIS Technical Report. Pavia, I, Laboratory for Biomedical Informatics, University of Pavia; 2006.
 35.
Riva A, Bellazzi R: Learning temporal probabilistic causal models from longitudinal data. Artif Intell Med 1996, 8(3):217–234. 10.1016/09333657(95)000348
 36.
Kononen J, Bubendorf L, Kallioniemi A, Barlund M, Schraml P, Leighton S, Torhorst J, Mihatsch MJ, Sauter G, Kallioniemi OP: Tissue microarrays for highthroughput molecular profiling of tumor specimens. Nat Med 1998, 4(7):844–847. 10.1038/nm0798844
 37.
Bubendorf L, Nocito A, Moch H, Sauter G: Tissue microarray (TMA) technology: miniaturized pathology archives for highthroughput in situ studies. J Pathol 2001, 195(1):72–79. 10.1002/path.893
 38.
Mucci NR, Akdas G, Manely S, Rubin MA: Neuroendocrine expression in metastatic prostate cancer: evaluation of high throughput tissue microarrays to detect heterogeneous protein expression. Hum Pathol 2000, 31(4):406–414. 10.1053/hp.2000.7295
 39.
Mitchell TM: Machine Learning. New York, McGrawHill; 1997.
Acknowledgements
The authors would like to thank Robert Kim for his technical expertise in performing the TMA experiments, Juan Miguel Mosquera and Kirsten D. Mertz for their pathology evaluation of the tissue microarray experiments and Andrea Sboner and Rossana Dell'Anna for critical discussion on the paper. RB and PM acknowledge the FIRB project "Learning theory and engineering applications", funded by the Italian Ministry of University and scientific research. FD was supported by a Prostate Cancer Foundation award.
Author information
Additional information
Authors' contributions
FD, PM and RB developed and implemented the Hierarchical Naïve Bayes Model presented in the paper. MAR was involved in the discussions about the suitability of the model to face protein expression heterogeneity in human tumors and generated the TMA protein expression datasets. PP helped in the evaluation of the model performances. All authors read and approved the final manuscript.
Electronic supplementary material
Authors’ original submitted files for images
Rights and permissions
About this article
Received
Accepted
Published
DOI
Keywords
 Posterior Probability
 Conditional Independence
 Metastatic Prostate Cancer
 Marginal Likelihood
 Sample Variability