Assessment of this performance of an algorithm generally relates to its efficiency, ease of operation and operation results. We are concerned about the efficiency of the iteration, and one of the factors that affect the efficiency of the iteration is the selection of the initial value. EM algorithm has a very important application in the Gaussian mixture model (GMM). In simple terms, if we don’t know neither the parameters of the mixed model nor the classification of the observed data, EM algorithm is a popular algorithm for estimating the parameters of finite mixture model. However, sometimes its performance is poor. This algorithm has an obvious shortcoming: it is very sensitive to the initial value. Therefore, in order to get the parameter estimation of the closest to the true value, we have to find a method to initialize the EM algorithm. We can list several usual methods with initialization: random center, hierarchical clustering, k-means algorithm and so on . As a result of the k-means clustering algorithm is also a kind of dynamic iterative algorithm and decides the classification number by subjective factors. Further, it is accordant with EM algorithm for parameter estimation of finite mixture model. Hence we can use outlier detection based on proximity to remove the outliers in order to reduce the influence of noise for the parameter estimation. Then, a rough grouping of the rest of the mixed data is given by k-means clustering. Finally, a rough estimate of parameters is given based on packet data.
2. Gaussian Mixture Modeling
The mixture model is a useful tool for density estimation, and can be viewed as a kind of kernel method . If the d-dimensional random vector has a finite mixture normal distribution, its probability density function is as follows:
Also there is:
This is the probability density function of the i-th branch, which has a mean
, a covariance , and mixing proportion , and , ,
is a vector corresponding to all unknown parameters.
2.1. The EM Algorithm
The classical and natural method for computing the maximum-likelihood estimates (MLEs) for mixture distributions is the EM algorithm (Dempster et al., 1977), which is known to possess good convergence properties. In other words, the EM algorithm is a kind of the iterative algorithm to solve the maximum likelihood estimate when the observation data is incomplete data, which has good application value as well. The process of parameter estimation of the EM algorithm is given in reference : Y is generally assumed to be the observed data, Z is potential data, is unknown parameters, a posteriori distribution density function based on the observed data Y of parameter denoted by , called observed posterior distribution, represents that the posterior distribution density function of parameter is obtained after the addition of data Z, called addition posterior distribution, represents the conditional distribution density function of the potential data Z in given and observation data Y. The goal is to estimate the parameter values of the observed posterior distribution , hence the EM algorithm is carried out as follows: Let be the estimate values of the posterior mode at the beginning of the t + 1 iteration. The two step of the t + 1 iteration is:
Expectation Step: calculate mathematical expectation of or on the conditional distribution of Z, namely:
Maximization Step: maximize the , that is to find a point , then:
after getting , this forms an iteration , iterate Expectation step and Maximization step until or is sufficiently small.
2.2. Outlier Detection Based on Proximity
Outliers are data objects that are inconsistent with behavior or model of most of the data in the entire data set . An object is abnormal if it is far away from most points. This method is more general and easier to use than the statistical method, because it is easier to determine meaningful proximity metrics than statistical distribution for data sets.
One of the easiest ways to measure whether an object is far away from most points is using the distance to the k-nearest neighbor. The outlier score of an object is given by the distance between the object and its the k-nearest neighbor. The minimum outlier score is 0, and the maximum value is the maximum value of the distance function: it is usually infinite.
Outlier score is highly sensitive to the value of k. If the k is too small, then a small amount of adjacent outliers can lead to a low outlier score. If k is too large, all objects in the clusters with points less than k are likely to be outliers. In order to make the scheme more robust for the selection of k, we can use the average distance of the first k nearest neighbors.
2.3. K-Means Algorithm
The K-means algorithm is one of the most popular iterative descent clustering methods . This algorithm takes as the parameter, then objects are divided into clusters, in the same cluster objects in a high similarity, while objects in different clusters in the greater dissimilarity. First, selecting objects at random, each object represents a cluster center. For the rest of each object, which assigned to the most similar class according to the distance between the object and the cluster centers. And then calculate the new center of each cluster. This process is iterated until convergence. The method is based upon the following steps:
Step 1: Choose samples randomly: as the cluster centers of mixed data.
Step 2: For the remaining data, noted:
This function represents the distance from to , , . For fixed , if . Then is classified into the category . Thus, we divide the data into classes: .
Step 3: Use formula:
Find out the sample mean of the data of each class in the second step as a new cluster center.
Step 4: For a given number , if , then stop iteration,
Otherwise, the new clustering center in the third step into the first step to replace the old clustering center, repeat the second step and third step operation.
2.4. The K-Means Algorithm Is Used to Initialize EM Algorithm after Deleting Outliers
First, we compute the distance between each observation data and its the k-nearest neighbor (this distance is called the k-NN distance), deleting those points which have relatively large the k-NN distances, namely abnormal observations that is far from most points. Second, we give a rough grouping of mixed data using k-means cluster method for the rest of data. Then according to the packet data, a rough estimate of parameters, as the initial value of the iterative algorithm, are given. Finally, execute EM algorithm until convergence to estimate the parameters of gaussian mixture modeling.
2.5. Simulation Studies
We compare the effect of parameter estimation about the improved initial value method and original method on the simulation data in this section.
First, we generate a one-dimensional data set; its histogram is shown in Figure 1. Simulated example with two classes, the data in first class are generated from one-dimensional normal population , and the data in second class are generated from one-dimensional normal population . The numbers of the data points of the 2 classes are 2000 and 3000. After iteration of the EM algorithm, the parameter estimation results are shown in later.
The original random initial value method of EM algorithm is very unstable, sometimes it need to be iterated nearly 100 times, and usually can not be very
Figure 1. Histogram and density curve of the original data.
close the true value of the parameters. However, number of iterations of EM algorithm is greatly reduced by the improved initial value method which is pretty stable. And the final parameter estimates are closer to the true value compared to original method. Here, we select a test result to draw a line graph (see Figure 2 in next page).
The average iteration times of the original EM algorithm is approximately 33, and the final iteration result is also highly unstable. Then we compare the parameter estimation results of the original method and the improved method on some realization. We can draw some conclusion from Figure 2, after 22 iterations, the final output parameter estimates of the original method are:
The outliers are removed by the distances between each sample and its 10-nearest neighbor in improved initial value method. Then use the k-means method to classify the remaining points. The class center of each class is used as the initial value of the mean, the sample variance of each class is used as the initial value of the variance. The proportion of each class is used as the initial value of the coefficient. After 7 iterations, the change of the parameter is less than 10−2. The results of parameter estimation are as follows
Obviously, the performance of the improved method outperforms that of the original method . The improved method has less number of iterations and
Figure 2. Effect comparison between improved initial value method and original method for parameter estimation.
better parameter estimation results. What is more, its statistical meaning is easy to understand. Then, the improved initial value method can be used not only for one-dimensional Gaussian mixture model, but also for multidimensional Gaussian mixture model.
However, it is need to further study how to choose the k when using the k-NN distance to remove outliers. At the same time, if we can further optimize the process of initial value selection (reducing complexity of deleting outliers and k-means clustering), it will bring greater use value.