Abstract
This paper introduces a unified mathematical framework for predictive clustering, a supervised learning approach that groups data points specifically to improve prediction accuracy. By combining various cluster definitions—such as bounding boxes or closest centers—with regression and classification objectives, we provide both a "gold standard" global optimization via Mixed-Integer Linear Programming (MILP) and a highly scalable greedy algorithm for real-world applications. Our framework allows for a flexible "mix and match" of cluster assignments and supervised tasks, addressing the limitations of traditional "one-size-fits-all" models in the presence of heterogeneous data modes.
1. Introduction
In standard machine learning, the assumption is often that a single model can adequately represent the entire dataset. However, real-world data frequently exhibits a "mixture of modes" where relationships between variables vary across different subsets. For instance, the correlation between crime rates and housing prices may differ significantly between suburban and urban environments. A single linear regression model would average these distinct trends, leading to poor predictive performance in both contexts.
While "clusterwise regression" has been studied for decades, it has largely remained a collection of bespoke tools. There has been a lack of a generalized framework to integrate different cluster assignment strategies with diverse supervised tasks like regression and classification. Furthermore, finding optimal clusters is NP-hard, forcing a choice between slow exact solvers and unreliable heuristics. This work bridges that gap by providing a comprehensive taxonomy and optimization suite.
2. Methodology
The proposed framework decomposes the predictive clustering problem into two primary components: the prediction objective and the cluster assignment geometry.
2.1 Prediction Objectives
The framework supports several standard loss functions:
- Regression: Mean Absolute Error (MAE) and Mean Squared Error (MSE).
- Classification: Hinge Loss (SVM-style) for multi-class problems.
2.2 Cluster Assignment Geometries
We define three distinct ways to partition the feature space:
- Arbitrary: Points are assigned to clusters to maximize fit without geometric constraints, offering the highest flexibility but lowest interpretability.
- Closest Center: Points are assigned to the nearest "prototype" center, resulting in spherical Voronoi partitions.
- Bounding Box: Points are grouped into axis-parallel hypercuboids. This creates highly interpretable "if-then" rules (e.g., "If Income > $50k and Latitude < 37.7").
2.3 Optimization Strategies
To solve the resulting optimization problems, we employ two strategies:
- Global Optimization (MILP): Using the "Big-M" method to linearize objectives, we utilize off-the-shelf solvers like Gurobi to find mathematically optimal solutions for smaller datasets.
- Scalable Greedy Algorithm: Inspired by the Majorization-Minimization (MM) framework, we developed an iterative algorithm that alternates between optimizing models for fixed clusters and reassigning clusters for fixed models. This approach scales effectively to datasets with tens of thousands of observations.
3. Experimental Evaluation
The framework was evaluated on synthetic datasets designed with hidden modes and several real-world benchmarks:
- Boston Housing: Benchmarking regression against Optimal Predictive Clustering (OPC).
- FAA Wildlife-Strike: Analyzing bird-plane collisions to demonstrate the interpretability of Bounding Box clustering.
- SF Crime: Geospatial classification of crime trends in San Francisco.
- MovieLens 100k: Testing the scalability of the greedy approach on recommendation data.
4. Key Results and Insights
4.1 Interpretability and the "Power of the Box"
Bounding Box clustering proved particularly effective for interpretability. By defining clusters through feature ranges, the model functions similarly to a decision tree where each leaf contains a specialized linear model. In the FAA dataset, this revealed that the perceived increase in bird strikes was primarily due to improved reporting of "no damage" incidents rather than an increase in dangerous collisions.
4.2 Performance and Scalability
- Accuracy: On the SF Crime dataset, clusterwise classification achieved 69.2% accuracy, significantly outperforming a baseline linear classifier (55.8%).
- Predictive Power: For the FAA data, the framework reached an $R^2$ of 0.929, compared to 0.613 for standard Lasso regression, highlighting the importance of accounting for data modes.
- Efficiency: While MILP for "Closest Center" clustering struggled at $N=250$, the Bounding Box MILP was more efficient due to geometric constraints pruning the search space. The greedy MM approach consistently provided solutions near the global optimum.
5. Conclusion and Future Work
This framework provides a robust foundation for predictive clustering. While MILP remains computationally intensive for very large datasets, the greedy alternatives offer a practical path forward. Future research will focus on expanding the library of loss functions (e.g., Huber loss), exploring non-linear kernels within clusters, and developing automated methods for selecting the optimal number of clusters ($K$).
Summary updated