Welcome to the code behind Clusters in Focus: A Simple and Robust Detail-On-Demand Dashboard for Patient Data, presented at EG VCBM 2025 at TU Delft.
Research use only. Not a medical device. See DISCLAIMER.md for intended use, data provenance and limitations.
Exploring tabular datasets to understand how different feature pairs partition data into meaningful cohorts is crucial in domains such as biomarker discovery, yet comparing clusters across multiple feature pair projections is challenging. We introduce Clusters in Focus, an interactive visual analytics dashboard designed to address this gap.
Clusters in Focus employs a three-panel coordinated view: a Data Panel offers multiple perspectives (tabular, heatmap, condensed with histograms / SHAP values) for initial data exploration; a Selection Panel displays the 2D clustering (K-Means / DBSCAN) for a user-selected feature pair; and a novel Cluster Similarity Panel featuring two switchable views for comparing clusters. A ranked list enables the identification of top-matching feature pairs, while an interactive similarity matrix with reordering capabilities allows for the discovery of global structural patterns and groups of related features. This dual-view design supports both focused querying and broad visual exploration.
A use case on a Parkinson's disease speech dataset demonstrates the tool's effectiveness in revealing relationships between different feature pairs characterizing the same patient subgroup.
The use case in the paper uses the Parkinson's disease voice measurement dataset by Max Little (UCI Machine Learning Repository, CC BY 4.0), as redistributed on Kaggle.
It ships with the app as frontend/public/parkinsonsdata.csv.
You can open your own CSV files through the interface. All computation (clustering, similarities, SHAP values) runs in your browser via WebAssembly, so your data never leaves your machine; opened datasets are saved only in your browser's IndexedDB.
The computations live in the Rust crate compute/, compiled to WebAssembly and run in a Web Worker.
For development you need Rust (the wasm target is installed via rust-toolchain.toml), the matching wasm-bindgen CLI and bun:
cargo install wasm-bindgen-cli --version 0.2.130 --locked # once; must match compute/Cargo.toml
bun install && bun dev # http://localhost:5173/clusters-in-focusreference/ keeps the original Python implementation (scikit-learn, scipy, xgboost + shap); its parity tests run the Rust crate against it:
bun run test # cargo test + uv run pytestThe app is a static site. docker-compose.yml builds it into an nginx image and serves it behind Traefik at https://hereditary.cgv.tugraz.at/clusters-in-focus/, on the external web network:
docker compose build
docker compose up -dIn order to recreate the screenshot above and in the paper (Figure 1), run bun dev and open Firefox on http://localhost:5173/clusters-in-focus.
You should now be able to see the interface.
On the top right dropdown, select parkinsonsdata.csv (example).
You should now be able to see a tabular view of the data. In order to get to the heatmap view, click on the list icon in the top-right corner of Panel 1 (the Data Panel).
Now for example, select the two columns MDVP:FO(HZ) and MDVP:FLO(HZ).
Panel 2 should display a scatter plot of all entries within the dataset across these two features.
Click on one of the data points to open Panel 3 and you will be presented with a similarity analysis of all other possible clusters within the same dataset which share a high overlap of entries.
This similarity is based on the Jaccard Index
You can switch between a list and matrix view, again on the top right. The colored intensities there correspond to a high Jaccard Index, enabling a robust workflow for cluster re-identification.
If you found this tool helpful for your work, please cite it as follows:
@inproceedings{2025-clusters-in-focus,
booktitle = {VCBM 2025 - Eurographics Symposium on Visual Computing for Biology and Medicine},
editor = {Garrison, Laura and Krueger, Robert},
title = {{Clusters in Focus: A Simple and Robust Detail-On-Demand Dashboard for Patient Data}},
author = {Schilcher, Lukas and Waldert, Peter and Kantz, Benedikt and Schreck, Tobias},
year = {2025},
publisher = {The Eurographics Association},
issn = {2070-5786},
isbn = {978-3-03868-276-9},
doi = {10.2312/vcbm.20251250}
}
Funded by the European Union under grant agreement No 101137074 (HEREDITARY). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Health and Digital Executive Agency (HaDEA). Neither the European Union nor the granting authority can be held responsible for them.
MIT, see LICENSE.
