Classification EM (CEM)
- Classification EM (CEM) is a variant of the Expectation-Maximization algorithm that replaces soft posterior probabilities with hard assignments to increase a complete-data criterion.
- It partitions data into ordered segments using logistic gating and regression mixtures, enabling effective temporal segmentation and Gaussian mixture clustering.
- CEM offers faster convergence and reduced computational cost compared to standard EM, but is more prone to local optima and requires careful initialization.
Searching arXiv for the cited papers and closely related CEM work. Classification EM (CEM) is a classifying variant of the Expectation-Maximization algorithm for latent-variable mixture models in which each iteration inserts a hard assignment of observations to components before parameter re-estimation. In the ordered temporal-segmentation framework of "Classification automatique de données temporelles en classes ordonnées" (Chamroukhi et al., 2013), CEM is used to partition a sequence of scalar responses into ordered segments by combining a regression mixture with a discrete latent process and time-dependent logistic gating. Subsequent work adapts the same hard-assignment principle to Gaussian mixtures for joint clustering and embedding in "Classification EM-PCA for clustering and embedding" (Tighidet et al., 24 Nov 2025) and to supervised shared-kernel mixtures in Pulford’s shared-kernel EM formulation (Pulford, 2022). Across these settings, the defining feature of CEM is that it monotonically increases a complete-data criterion under hard latent labels rather than the observed-data log-likelihood under soft responsibilities.
1. Core probabilistic formulation
In the temporal model, one observes scalar responses at time-points and seeks a partition into ordered segments. Latent indicators , or equivalently , specify segment membership. The regression-mixture model is
where is the polynomial-regression monomial vector of degree , , 0 i.i.d., and 1. The latent class probabilities are logistic-gating functions
2
with 3. The resulting observed model is a mixture of Gaussian regressions with time-dependent logistic weights (Chamroukhi et al., 2013).
The same CEM principle appears in a standard Gaussian-mixture setting for continuous data 4, where
5
and in supervised shared-kernel models, where class labels are known and class-conditioned mixing weights 6 are learned over a shared set of Gaussian kernels 7 (Tighidet et al., 24 Nov 2025, Pulford, 2022). These formulations differ in structure and supervision, but all introduce discrete latent component assignments and update parameters conditional on those assignments.
2. Complete-data criterion and the CEM iteration
For the temporal ordered-segmentation model, the complete-data log-likelihood is
8
The corresponding EM algorithm computes posterior probabilities
9
forms the expected complete-data criterion 0, and maximizes it with respect to both the gating parameters and the regression parameters. The M-step decomposes into a weighted multinomial logistic-regression problem for 1, solved by IRLS, and closed-form weighted least-squares updates for 2 and 3 (Chamroukhi et al., 2013).
CEM replaces the soft E-step used by EM with a hard classification step. After computing 4, it assigns each observation to the class of highest posterior probability,
5
or equivalently 6 for the maximizing class and 7 otherwise. The subsequent M-step maximizes the classification log-likelihood 8, using exactly the same parameter-update formulas as in EM but with 9 replaced by hard labels 0 (Chamroukhi et al., 2013).
In the Gaussian-mixture formulation, the same pattern holds. One computes responsibilities 1, then applies a C-step 2 if 3, followed by hard-label updates
4
The complete-data log-likelihood that CEM monotonically increases is
5
(Tighidet et al., 24 Nov 2025).
3. Ordered classes and successive activation in temporal segmentation
The ordered-segmentation application is distinguished by its gating mechanism. Because the pairwise log-ratios of the logistic weights satisfy
6
they are affine in 7. The paper states that each class is therefore active over a single convex time-interval and that the sequence of segment assignments is automatically ordered in time. As 8 increases, the logistic curves successively cross, so classes are activated one after the other, inducing an ordered segmentation (Chamroukhi et al., 2013).
This construction makes CEM and EM alternatives to Fisher’s algorithm for segmenting temporal data into ordered classes. The role of the latent process is not merely to cluster observations by similarity; it also imposes a temporal ordering constraint through the gating architecture. A plausible implication is that the model should be interpreted as a likelihood-based segmentation procedure with an embedded ordering mechanism, rather than as an unconstrained mixture model applied post hoc to a time axis.
The regression component further allows each segment to be represented by a polynomial trend of degree 9. In that sense, the segmentation is both classificatory and functional: each class is associated with a local regression law, while the gating process determines when that law is active. This suggests a direct connection between CEM and piecewise-polynomial modeling, but the ordering is enforced by the mixture architecture rather than by explicit dynamic programming.
4. Computational profile and convergence properties
For piecewise-polynomial segmentation of degree 0, Fisher’s dynamic-programming algorithm has time complexity 1. By contrast, EM for the regression-mixture model with logistic gating has cost 2, where 3 is the number of EM iterations and 4 the average number of IRLS iterations. The ratio of EM to Fisher is roughly 5, which is 6 for large 7 and small 8. The paper further states that CEM is even faster than EM because M-steps use hard labels rather than IRLS weighting, and that Table 2 shows runtime growth that is only linear in 9 for CEM over 0 from 1 to 2, approximately 3, whereas Fisher’s runtime grows quadratically, approximately 4 (Chamroukhi et al., 2013).
CEM alternates between classification and parameter updates and is guaranteed to increase the complete-data log-likelihood at each iteration; because there is a finite number of partitions, it converges in a finite number of steps. EM, by contrast, guarantees non-decreasing observed-data log-likelihood and converges to a stationary point. In the Gaussian-mixture setting, later work notes that CEM often converges in fewer iterations than EM because hard assignments force larger parameter updates, but it can also be more prone to local optima due to its greedy classification step (Tighidet et al., 24 Nov 2025).
For CEM-PCA, the reported per-iteration complexity is more heterogeneous because it combines graph smoothing, Gaussian clustering in an embedded space, and an SVD-based embedding update. The stated components are 5 for constructing the graph-Laplacian embedding 6 with a 7-NN graph, 8 or 9 for the C-step and M-step on 0 Gaussians in 1-dimensional space, and 2 for the SVD-based 3-update, yielding overall per-iteration complexity 4 (Tighidet et al., 24 Nov 2025).
5. Extensions to embedding and supervised classification
A major extension couples CEM with PCA in a single alternating-optimization framework. The method introduces a low-dimensional embedding 5, an orthonormal projection 6, and a denoised latent matrix 7, and minimizes
8
The first term is a PCA reconstruction criterion, the second ties the embedding to latent cluster representatives, and the third is a complete-data Gaussian-mixture term. Closed-form block updates are given for 9, 0, and 1, while 2 are updated by standard CEM on the rows 3. The paper states that this solves embedding and clustering simultaneously and non-sequentially (Tighidet et al., 24 Nov 2025).
The reported experiments span FCPS synthetic datasets, image datasets including COIL-20, USPS, Yale, and ORL, as well as biomedical and text data. Metrics are Clustering Accuracy, Normalized Mutual Information, and Adjusted Rand Index. On the five FCPS synthetic datasets at 4 and 5, CEM-PCA is reported to achieve 6, 7, and 8 on all sets; on images, it often leads or ties for first, with the example COIL20 result 9 versus a best baseline of approximately 0; and critical-difference plots over NMI ranks using a Nemenyi test at 1 place CEM-PCA as significantly better than all other methods (Tighidet et al., 24 Nov 2025).
A different extension appears in shared-kernel classification. There, the data are labeled, class labels 2 are known, and the model learns class-conditioned mixing weights 3 over a shared set of Gaussian kernels 4. The complete-data log-likelihood is
5
the E-step computes class-conditional responsibilities 6, and the M-step updates 7, 8, and 9 in closed form. At inference time, a new feature vector 0 is classified by evaluating
1
for each class and applying either the ML rule under uniform priors or the MAP rule under arbitrary priors (Pulford, 2022).
6. Limitations, initialization, and common points of confusion
A recurring limitation is the effect of hard assignment. In the temporal ordered-segmentation model, the hard C-step can bias the solution if clusters overlap strongly, and local modes may be reached more easily than with EM. In Gaussian mixtures, later work makes the same point in different terms: CEM often converges in fewer iterations, but its greedy classification step makes it more prone to local optima (Chamroukhi et al., 2013, Tighidet et al., 24 Nov 2025). A common misunderstanding is therefore to treat CEM as a uniformly superior replacement for EM; the published descriptions instead characterize it as a speed-oriented alternative whose optimization target and failure modes differ from those of soft EM.
Initialization is correspondingly important. For temporal data, suggested strategies include initialization by k-means on residuals, a few steps of soft EM, or spreading initial logistic breakpoints 2 uniformly over the time range (Chamroukhi et al., 2013). In CEM-PCA, sensitivity to initialization is again noted, and multiple restarts are required; the regularization parameter 3 must also be tuned, since too large a value over-emphasizes clustering whereas too small a value reduces the objective to pure PCA (Tighidet et al., 24 Nov 2025).
Model assumptions create additional constraints. CEM-PCA uses only linear PCA, and the mixture model assumes approximately Gaussian clusters in the embedding space; the paper explicitly identifies extensions to kernel PCA, deep autoencoders, and mixtures of 4-distributions as future directions. In shared-kernel classification, feature-vector factorization into disjoint subsets can reduce numeric instability in high dimensions and improve robustness, but this comes at the cost of ignoring cross-subset correlations. The same work states that, in its digit-data experiments, 5 tends to underfit, 6 invites over-fitting and can make EM diverge or become highly sensitive to initialization, and best performance usually occurs around 7 to 8 (Tighidet et al., 24 Nov 2025, Pulford, 2022).