Shape-driven Coordinate Ordering for Star Glyph Sets via Reinforcement Learning

Ruizhen Hu, Bin Chen, Juzhan Xu, Oliver van Kaick, Oliver Deussen, Hui Huang · DOI

Abstract

We present a neural optimization model trained with reinforcement learning to solve the coordinate ordering problem for sets of star glyphs. Given a set of star glyphs associated to multiple class labels, we propose to use shape context descriptors to measure the perceptual distance between pairs of glyphs, and use the derived silhouette coefficient to measure the perception of class separability within the entire set. To find the optimal coordinate order, we train a neural network using reinforcement learning to reward orderings with high silhouette coefficients. The network consists of an encoder and a decoder with an attention mechanism. Additionally, we introduce a neural network to efficiently estimate shape context similarity, speeding up training. User studies demonstrate that our method is preferred for perceiving class separation, and the model generalizes to unseen data sizes, dimensions, and even other plot types like RadViz.

Introduction

Star glyphs are a popular way to visualize multi-dimensional data points as compact, radial shapes. However, they have a major weakness: the visual appearance of a glyph changes drastically depending on the order of its axes. A poor axis order might make different classes look like indistinguishable blobs, while a good order makes them visually distinct. Finding the optimal order is an NP-hard problem equivalent to the Traveling Salesman Problem (TSP). This paper introduces a reinforcement learning (RL) framework that automatically finds coordinate sequences to maximize visual class separability.

Methodology

The framework treats axis ordering as a sequence-finding task and solves it using a neural optimization model.

The proposed framework for coordinate ordering, utilizing an encoder-decoder network with attention to optimize axis sequences based on class separation.

Perceptual Metric and Reward Function

To quantify how "different" two glyphs look, the framework employs shape context descriptors from computer vision. This measures the cost of matching points on the contours of two shapes, providing a mathematical proxy for human visual distance. The reward function for the RL agent is the Silhouette Coefficient, calculated using these shape-based distances. A high score indicates that glyphs in the same class look similar, while glyphs in different classes look distinct.

Architecture and Training

The system uses a set-to-sequence network with an RNN-based encoder and a decoder with an attention mechanism. Since no "ground truth" best order exists, the network is trained using reinforcement learning (policy gradients). To make training feasible, a proxy neural network was pre-trained to estimate shape context distances, speeding up the process by over 50x. The model can also be adapted to other plot types, such as RadViz, by replacing the shape-aware silhouette coefficient with appropriate quality metrics.

Results

The model was tested on synthetic data and real-world datasets, including the Sensorless Drive Diagnosis and Mice Protein Expression datasets.

Visual comparison of star glyph sets before (a) and after (b) optimization, showing how the model enhances class separability.

Efficiency and Generalization

Once trained, the model generates an optimized order in just 0.02 seconds, compared to 14 seconds for state-of-the-art heuristic baselines. Remarkably, the model generalizes to datasets with higher dimensions or different class counts without retraining, suggesting it learns general rules about coordinate influence on shape.

User Preference

In a study with 30 participants, users preferred the RL-optimized order over random orderings 73% of the time. When compared against a baseline heuristic, the RL method was still preferred in 61% of cases.

Conclusion

This work successfully applies reinforcement learning and computer vision techniques to the problem of axis ordering in information visualization. By focusing on global class separability rather than individual glyph aesthetics, the proposed model significantly improves the interpretability of star glyph sets for multi-dimensional data analysis.

Summary updated

BibTeX
@article{hu2021shape,
  author = {Ruizhen Hu and Bin Chen and Juzhan Xu and Oliver van Kaick and Oliver Deussen and Hui Huang},
  title = {{Shape-driven Coordinate Ordering for Star Glyph Sets via Reinforcement Learning}},
  journal = {IEEE Trans. Vis. Comput. Graph.},
  year = {2021},
  doi = {10.1109/tvcg.2021.3052167},
}
Figure