Introduction
Support Vector Machines (SVMs) are widely recognized for their high classification accuracy and robustness in machine learning tasks. However, their "black-box" nature often limits their applicability in domains requiring high interpretability, such as medicine or autonomous robotics. Users typically face challenges in parameter tuning—such as selecting the penalty parameter $C$ or kernel types—and understanding the underlying logic of specific classification decisions. Furthermore, non-linear kernels like the Radial Basis Function (RBF) create complex decision boundaries that are nearly impossible to visualize or translate into human-readable rules.
To address these issues, we present EasySVM, a visual analytics platform designed to transform SVMs into "open-box" models. By integrating interactive 2D projections with a local-first modeling strategy, EasySVM enables users to visually refine models, handle non-linearity through piecewise linear approximations, and extract interpretable classification logic.
Methodology
The EasySVM framework is built upon three core innovations designed to bridge the gap between algorithmic complexity and human intuition.
Side-View Projections
Visualizing high-dimensional hyperplanes is a significant challenge. EasySVM utilizes an orthogonal projection technique to create a "side view" of the data. By projecting the dataset along the SVM's weight vector ($w$), the system collapses the decision boundary into a single line. This view allows users to intuitively assess the margin (the "gap" between classes) and immediately identify misclassified points or outliers that may be skewing the model.
Local SVM Construction
Rather than relying on a single, complex non-linear model for the entire dataset, EasySVM adopts a "divide and conquer" strategy. Users can interactively define "Regions of Interest" (ROIs) where data distribution is particularly complex. Within these regions, the system builds a sequence of local linear SVMs. This approach approximates non-linear boundaries through a series of interpretable linear segments, maintaining high performance without sacrificing transparency.
Visual Rule Extraction
To facilitate human-readable logic, the platform integrates a flexible linked axes view, similar to parallel coordinates. Users can interactively brush specific ranges on feature axes to define "if-then" rules. For instance, a user might discover a rule such as: "If Sensor A > 0.5 and Sensor B < 0.2, then Classify as X." This feature allows for the direct translation of geometric boundaries into logical statements.
Case Study: Wall-Following Robot Navigation
The efficacy of EasySVM was evaluated using the Wall-following Robot Navigation dataset from the UCI Machine Learning Repository. The dataset consists of 4,302 instances with 24 ultrasound sensor readings, tasked with binary classification between "Move-Forward" and "Sharp-Right-Turn" movements.
Performance and Insights
The visual interface revealed that a standard global linear SVM achieved an accuracy of approximately 81% (±1.0%). Through the side-view projection, users identified overlapping data branches that the global model failed to separate. By applying local SVMs to these specific branches, the classification accuracy improved significantly to 88% (±3.0%).
Beyond accuracy, the system enabled the discovery of specific sensor-range rules that governed the robot's navigation logic. This level of insight allowed users to "clean" the model by identifying and removing noise or creating specialized local components for distinct data clusters.
Discussion and Limitations
EasySVM demonstrates that linearity can serve as a powerful tool for interpretability when combined with human-guided refinement. By using multiple local linear models, the system achieves the performance of non-linear kernels while maintaining the clarity of linear equations.
However, several challenges remain. Scalability is a primary concern; as datasets grow to millions of instances, 2D scatterplots may suffer from visual clutter. Future iterations could incorporate pre-processing clustering techniques to manage density. Additionally, high-dimensional feature spaces require more sophisticated visual selection methods. Finally, while human-in-the-loop modeling improves trust, it introduces a risk of overfitting. Future work will focus on developing automated "sanity checks" to ensure that user-defined local models generalize well to unseen data.
Summary updated