Full interpretable machine learning in 2D with inline coordinates

Boris Kovalerchuk, Hoang PhanIV 2021

Abstract: Machine learning interpretability is often hampered by the high-dimensionality of data. This paper explores a "Full 2D Machine Learning" paradigm using Inline Coordinates (ILC), a lossless mapping technique that preserves n-dimensional information in a 2D plane. We describe a Box Classification Algorithm that derives geometric rules from these mappings. Testing on the Wisconsin Breast Cancer dataset shows that this method achieves 97.65% accuracy while maintaining a significantly simpler rule set than traditional decision trees, facilitating human-in-the-loop verification.

Introduction

Machine learning (ML) models are frequently criticized as "black boxes" due to the difficulty of visualizing high-dimensional decision logic. While dimensionality reduction techniques like PCA or t-SNE are commonly used to project data into 2D, they are inherently "lossy," discarding information to achieve visual simplicity. This paper proposes a shift toward Full 2D Machine Learning, where data is mapped losslessly into a 2D space, allowing models to be built, visualized, and interpreted directly by human experts.

Methodology

Inline Coordinates (ILC)

The core of this approach is General Line Coordinates (GLC), specifically In-Line Coordinates (ILC). Unlike Parallel Coordinates, which utilize multiple vertical axes, ILC places all n-dimensional axes on a single horizontal line.

Comparison of Collocated and Generic Inline Coordinates (ILC) for representing n-dimensional data.

In this system, an n-dimensional point is represented as a series of curves or polylines. By using dynamic mapping—where the position of a point on the screen is a function of previous attribute values—the system can visually separate different classes into distinct regions of the 2D plane without losing any underlying data integrity.

Box Classification Algorithm

To perform classification within this 2D space, the authors introduce the Box Classification Algorithm. Rather than calculating complex neural weights, the algorithm identifies geometric "boxes" (rectangular or trapezoidal regions) that contain high concentrations of a specific class.

The Box Classification Algorithm identifies geometric regions in 2D space to define interpretable rules.

A data point is classified based on whether its polyline trajectory passes through these defined boxes. To prevent overfitting, the algorithm employs rule joining and pruning, merging small, specific boxes into larger, more general rules and discarding those that represent statistically insignificant cases.

Experimental Results

The methodology was validated using the Wisconsin Breast Cancer (WBC) dataset, a benchmark containing 699 instances with 9 attributes.

  • Accuracy and Robustness: In 10-fold cross-validation, the model maintained an average accuracy of 97.65%.
  • Interpretability: The Box Algorithm discovered 13 rules that covered 100% of the cases. Notably, over 88% of all cases were classified using just the four simplest rules.
  • Comparison to Decision Trees: A traditional decision tree required 57 nodes to reach 100% accuracy on the same data. The 2D Box method achieved the same result with only 13 rules, significantly reducing the cognitive load required for a human to audit the model.

Discussion and Conclusion

Full 2D ML via ILC demonstrates that lossless visualization is not only possible but provides a superior foundation for interpretable modeling. By transforming abstract logic into simple geometry, the system enables a "human-in-the-loop" approach where domain experts can visually verify patterns and refine models to avoid overfitting.

Future research will focus on scaling these techniques to massive datasets using GPU acceleration and exploring more complex geometric shapes to capture subtle data patterns. This work moves us closer to a future where machine learning is as transparent as it is powerful.

Summary updated

BibTeX
@inproceedings{kovalerchuk2021full,
  author = {Boris Kovalerchuk and Hoang Phan},
  title = {{Full interpretable machine learning in 2D with inline coordinates}},
  booktitle = {IV},
  year = {2021},
  doi = {10.1109/iv53921.2021.00038},
}
Figure