[Paper Review] clustvarsel: A Package Implementing Variable Selection for Model-based Clustering in R
This paper introduces the R package clustvarsel, which implements variable selection for model-based clustering using BIC-based subset selection. It enhances clustering accuracy and interpretability by identifying the most informative variables through stepwise or headlong search algorithms, with optional parallelization to accelerate computation, achieving up to 7.7x theoretical speedup via Amdahl's Law.
Finite mixture modelling provides a framework for cluster analysis based on parsimonious Gaussian mixture models. Variable or feature selection is of particular importance in situations where only a subset of the available variables provide clustering information. This enables the selection of a more parsimonious model, yielding more efficient estimates, a clearer interpretation and, often, improved clustering partitions. This paper describes the R package clustvarsel which performs subset selection for model-based clustering. An improved version of the methodology of Raftery and Dean (2006) is implemented in the new version 2 of the package to find the (locally) optimal subset of variables with group/cluster information in a dataset. Search over the solution space is performed using either a stepwise greedy search or a headlong algorithm. Adjustments for speeding up these algorithms are discussed, as well as a parallel implementation of the stepwise search. Usage of the package is presented through the discussion of several data examples.
Motivation & Objective
- To address the problem of noisy or irrelevant variables degrading clustering performance in model-based clustering.
- To develop an automated method for selecting the most informative subset of variables that carry group structure.
- To improve model parsimony, estimation efficiency, and interpretability by excluding variables without clustering information.
- To reduce computational burden through algorithmic optimizations and parallelization in variable selection.
- To provide a user-friendly R package integrating variable selection into the mclust framework for model-based clustering.
Proposed method
- Uses the Bayesian Information Criterion (BIC) to compare nested mixture models fitted on different subsets of variables.
- Employs a stepwise greedy search (forward or backward) or a headlong algorithm to explore the variable subset space.
- Applies the framework of Raftery and Dean (2006) and extends it via Maugis et al. (2009a) to model linear dependencies between noise and clustering variables.
- Implements a parallelized version of the stepwise search using the doParallel and foreach packages in R.
- Utilizes Amdahl’s Law to model theoretical speedup and estimate the fraction of non-parallelizable code (f = 0.13).
- Integrates with the mclust package for model-based clustering and leverages its parsimonious covariance parameterizations.
Experimental results
Research questions
- RQ1How can variable selection improve the accuracy and interpretability of model-based clustering in the presence of irrelevant or noisy features?
- RQ2What is the impact of including noise variables on the estimation of the number of clusters and cluster recovery in model-based clustering?
- RQ3How effective is the stepwise or headlong search algorithm in identifying the optimal subset of variables with group information?
- RQ4To what extent can parallelization reduce the computational time of variable selection in model-based clustering?
- RQ5What is the theoretical and practical speedup achievable through parallel implementation of the BIC-based variable selection algorithm?
Key findings
- The clustvarsel package successfully identifies the most informative subset of variables, improving clustering accuracy and model parsimony.
- The inclusion of noise variables without proper selection leads to degraded clustering performance and poor estimation of the number of clusters.
- The stepwise greedy search and headlong algorithm effectively locate locally optimal variable subsets using BIC as a selection criterion.
- Parallelization reduces computation time by approximately 50% when using 4 cores on a 4-core machine, achieving a 35% speedup with 2 cores.
- The estimated fraction of non-parallelizable code in the algorithm is f = 0.13, implying a theoretical maximum speedup of 7.7x using Amdahl’s Law.
- The simulation study confirms that the observed speedup closely follows the theoretical prediction from Amdahl’s Law, validating the efficiency of the parallel implementation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.