Oracle® Data Mining Concepts 12c Release 1 (12.1) E1769215 


PDF · Mobi · ePub 
This chapter describes Expectation Maximization clustering as it is implemented by Oracle Data Mining. See Chapter 7 for information about clustering.
This chapter contains these topics:
Expectation Maximization (EM) estimation of mixture models is a popular probability density estimation technique that is used in a variety of applications. Oracle Data Mining uses EM to implement a distributionbased clustering algorithm (EMclustering).
Expectation Maximization is an iterative method. It starts with an initial parameter guess. The parameter values are used to compute the likelihood of the current model. This is the Expectation step. The parameter values are then recomputed to maximize the likelihood. This is the Maximization step. The new parameter estimates are used to compute a new expectation and then they are optimized again to maximize the likelihood. This iterative process continues until model convergence.
In density estimation, the goal is to construct a density function that captures how a given population is distributed. In probability density estimation, the density estimate is based on observed data that represents a sample of the population. Areas of high data density in the model correspond to the peaks of the underlying distribution.
Densitybased clustering is conceptually different from distancebased clustering (for example kMeans) where emphasis is placed on minimizing intercluster and maximizing the intracluster distances. Due to its probabilistic nature, densitybased clustering can compute reliable probabilities in cluster assignment. It can also handle missing values automatically.
Although Expectation Maximization is wellestablished as a distributionbased clustering algorithm, it presents some challenges in its standard form. The Oracle Data Mining implementation includes significant enhancements, such as scalable processing of large volumes of data and automatic parameter initialization. The strategies that Oracle Data Mining uses to address the inherent limitations of EM clustering are described further in this section.
Note: The EM abbreviation is used here to refer to EMclustering.
Limitations of Standard Expectation Maximization:
Scalability — EM has linear scalability with the number of records and attributes. The number of iterations to convergence tends to increase with growing data size (both rows and columns). EM convergence can be slow for complex problems and can place a significant load on computational resources.
High dimensionality — EM has limited capacity for modeling high dimensional (wide) data. The presence of many attributes slows down model convergence, and the algorithm becomes less able to distinguish between meaningful attributes and noise. The algorithm is thus compromised in its ability to find correlations.
Number of components — EM typically requires the user to specify the number of components. In most cases, this is not information that the user can know in advance.
Parameter initialization — The choice of appropriate initial parameter values can have a significant effect on the quality of the model. Initialization strategies that have been used for EM have generally been computationally expensive.
From components to clusters — EM model components are often treated as clusters. This approach can be misleading since cohesive clusters are often modeled by multiple components. Clusters that have a complex shape need to be modeled by multiple components.
The Oracle Data Mining implementation of Expectation Maximization uses database parallel processing to achieve excellent scalability. EM computations naturally lend themselves to row parallel processing, and the partial results are easily aggregated. The parallel implementation efficiently distributes the computationally intensive work across slave processes and then combines the partial results to produce the final solution.
For information about parallel execution, refer to Oracle Database VLDB and Partitioning Guide.
The Oracle Data Mining implementation of Expectation Maximization can efficiently process highdimensional data with thousands of attributes. This is achieved through a twofold process:
The data space of singlecolumn (not nested) attributes is analyzed for pairwise correlations. Only attributes that are significantly correlated with other attributes are included in the EM mixture model. The algorithm can also be configured to restrict the dimensionality to the M most correlated attributes.
Highdimensional (nested) numerical data that measures events of similar type is projected into a set of lowdimensional features that are modeled by EM. Some examples of highdimensional, numerical data are: text, recommendations, gene expressions, and market basket data.
Typical implementations of Expectation Maximization require the user to specify the number of model components. This is problematic because users do not generally know the correct number of components. Choosing too many or too few components can lead to overfitting or underfitting, respectively.
In Oracle Data Mining, the number of EM components is automatically determined. The algorithm uses a heldaside sample to determine the correct number of components, except in the cases of very small data sets when Bayesian Information Criterion (BIC) regularization is used.
Choosing appropriate initial parameter values can have a significant effect on the quality of the solution. EM is not guaranteed to converge to the global maximum of the likelihood function but may instead converge to a local maximum. Therefore different initial parameter values can lead to different model parameters and different model quality.
In Oracle Data Mining, the EM model is grown incrementally. As new components are added, their parameters are initialized to areas with poor distribution fit.
Expectation Maximization model components are often treated as clusters. However, this approach can be misleading. Cohesive clusters are often modeled by multiple components. The shape of the probability density function used in EM effectively predetermines the shape of the identified clusters. For example, Gaussian density functions can identify single peak symmetric clusters. Clusters of more complex shape need to be modeled by multiple components.
Ideally, high density areas of arbitrary shape should be interpreted as single clusters. To accomplish this, the Oracle Data Mining implementation of EM builds a component hierarchy that is based on the overlap of the individual components' distributions. Oracle Data Mining EM uses agglomerative hierarchical clustering. Component distribution overlap is measured using the Bhattacharyya distance function. The number of highlevel clusters is determined automatically by choosing an appropriate cutoff level in the hierarchy.
The Oracle Data Mining implementation of EM produces an assignment of the model components to highlevel clusters. The highlevel clusters are additionally described by statistics like means, variances, modes, histograms, rules. The algorithm can be configured to either produce clustering assignments at the component level or at the cluster level.
In Oracle Data Mining, Expectation Maximization can effectively model very large data sets (both rows and columns) without requiring the user to supply initialization parameters or specify the number of model components. While the algorithm offers reasonable defaults, it also offers flexibility.
The following list describes some of the configurable aspects of EM:
Whether or not independent nonnested column attributes are included in the model. The choice is systemdetermined by default.
Whether to use Bernoulli or Gaussian distribution for numerical attributes. By default, the algorithm chooses the most appropriate distribution, and individual attributes may use different distributions. When the distribution is userspecified, it is used for all numerical attributes.
Whether the convergence criterion is based on a heldaside data set or on Bayesian Information Criterion (BIC). The convergence criterion is systemdetermined by default.
The percentage improvement in the value of the log likelihood function that is required to add a new component to the model. The default percentage is 0.001.
Whether to define clusters as individual components or groups of components. Clusters are associated to groups of components by default.
The maximum number of components in the model. By default, the algorithm determines the number of components based on improvements in the likelihood function or based on regularization (BIC), up to the specified maximum.
Whether the linkage function for the agglomerative clustering step uses the nearest distance within the branch (single linkage), the average distance within the branch (average linkage), or the maximum distance within the branch (complete linkage). By default the algorithm uses single linkage.
See Also:
"Global Settings" and "Algorithm Settings: Expectation Maximization" in Oracle Database PL/SQL Packages and Types ReferenceIf you use Automatic Data Preparation (ADP), you do not need to specify additional data preparation for Expectation Maximization. ADP normalizes numerical attributes (in nonnested columns) when they are modeled with Gaussian distributions. ADP does not transform categorical or nested attributes for Expectation Maximization.
Missing value treatment is not needed since Oracle Data Mining algorithms handle missing values automatically. The Expectation Maximization algorithm replaces missing values with the mean in singlecolumn numerical attributes that are modeled with Gaussian distributions. In other singlecolumn attributes (categoricals and numericals modeled with Bernoulli distributions), NULLs are not replaced; they are treated as a distinct value with its own frequency count. In nested columns, missing values are treated as zeros.
See Also:
Chapters 3 and 4 in Oracle Data Mining User's Guide for information about data transformations, missing value treatment, and Automatic Data Preparation