Computer Science > Machine Learning
[Submitted on 30 Jul 2025]
Title:Cluster-Based Random Forest Visualization and Interpretation
View PDF HTML (experimental)Abstract:Random forests are a machine learning method used to automatically classify datasets and consist of a multitude of decision trees. While these random forests often have higher performance and generalize better than a single decision tree, they are also harder to interpret. This paper presents a visualization method and system to increase interpretability of random forests. We cluster similar trees which enables users to interpret how the model performs in general without needing to analyze each individual decision tree in detail, or interpret an oversimplified summary of the full forest. To meaningfully cluster the decision trees, we introduce a new distance metric that takes into account both the decision rules as well as the predictions of a pair of decision trees. We also propose two new visualization methods that visualize both clustered and individual decision trees: (1) The Feature Plot, which visualizes the topological position of features in the decision trees, and (2) the Rule Plot, which visualizes the decision rules of the decision trees. We demonstrate the efficacy of our approach through a case study on the "Glass" dataset, which is a relatively complex standard machine learning dataset, as well as a small user study.
Ancillary-file links:
Ancillary files (details):
- Interviews/Interview1NotesFromInterviewer1.txt
- Interviews/Interview1NotesFromInterviewer2.txt
- Interviews/Interview2NotesFromInterviewer2.txt
- Interviews/Interview2NotesfromInterviewer1.txt
- Interviews/IntroductionToStudy+Questions.pdf
- Survey/Post_task_survey__Responses_.xlsx
- Survey/SurveyQuestions.pdf
- Video/Interaction_Demo_Compressed.mp4
- code/RandomForestVis/README.md
- code/RandomForestVis/backend/fastapi-rf.py
- code/RandomForestVis/backend/requirements.txt
- code/RandomForestVis/backend/static/Depth_data/RF_Glass-clean.csv
- code/RandomForestVis/backend/static/Depth_data/RF_penguins_max_depth4.csv
- code/RandomForestVis/backend/static/classification/classification_Glass-clean.json
- code/RandomForestVis/backend/static/classification/classification_penguins_max_depth4.json
- code/RandomForestVis/backend/static/clustering/complete_linkage_Glass-clean_rule_interval.json
- code/RandomForestVis/backend/static/clustering/complete_linkage_penguins_max_depth4_rule_interval.json
- code/RandomForestVis/backend/static/datasets/Glass-clean.csv
- code/RandomForestVis/backend/static/datasets/Iris.csv
- code/RandomForestVis/backend/static/datasets/penguins_max_depth4.csv
- code/RandomForestVis/backend/static/models/random_forest_Glass-clean.joblib
- code/RandomForestVis/backend/static/models/random_forest_penguins_max_depth4.joblib
- code/RandomForestVis/backend/static/node_link/node_link_trees_Glass-clean.json
- code/RandomForestVis/backend/static/node_link/node_link_trees_penguins_max_depth4.json
- code/RandomForestVis/backend/static/projections/MDS_Glass-clean_projection.npy
- code/RandomForestVis/backend/static/projections/MDS_penguins_max_depth4_projection.npy
- code/RandomForestVis/backend/static/rules/Rule_Data_Glass-clean.json
- code/RandomForestVis/backend/static/rules/Rule_Data_penguins_max_depth4.json
- code/RandomForestVis/backend/static/trees/trees_Glass-clean_rule_interval.npy
- code/RandomForestVis/backend/static/trees/trees_penguins_max_depth4_rule_interval.npy
- code/RandomForestVis/dist/favicon.png
- code/RandomForestVis/dist/index.html
- code/RandomForestVis/dist/node_modules_pixi_js_lib_environment-browser_browserAll_mjs.bundle.js
- code/RandomForestVis/dist/node_modules_pixi_js_lib_environment-webworker_webworkerAll_mjs.bundle.js
- code/RandomForestVis/dist/style.css
- code/RandomForestVis/js/Barcode/Barcode.ts
- code/RandomForestVis/js/Barcode/LinkageSplits.ts
- code/RandomForestVis/js/Barcode/Orderer.js
- code/RandomForestVis/js/Barcode/Tooltip.ts
- code/RandomForestVis/js/Barcode/Tree.ts
- code/RandomForestVis/js/DataLoader.ts
- code/RandomForestVis/js/Featureplot/Featureplot.ts
- code/RandomForestVis/js/InputSlider.ts
- code/RandomForestVis/js/Interactions.ts
- code/RandomForestVis/js/Kernels.ts
- code/RandomForestVis/js/LinearLayout.ts
- code/RandomForestVis/js/Metrics/FeatureImportance.ts
- code/RandomForestVis/js/Metrics/TreeDistance.ts
- code/RandomForestVis/js/NodeLink.ts
- code/RandomForestVis/js/Projection.ts
- code/RandomForestVis/js/Sidebar/ClassChart.ts
- code/RandomForestVis/js/Sidebar/FeatureChart.ts
- code/RandomForestVis/js/Sidebar/Sidebar.ts
- code/RandomForestVis/js/TextUtils.ts
- code/RandomForestVis/js/Timing.ts
- code/RandomForestVis/js/colors.ts
- code/RandomForestVis/js/index.ts
- code/RandomForestVis/js/types.ts
- code/RandomForestVis/package-lock.json
- code/RandomForestVis/package.json
- code/RandomForestVis/scripts/RF_generateFP_data.ipynb
- code/RandomForestVis/tsconfig.json
- code/RandomForestVis/webpack.config.js
References & Citations
Bibliographic and Citation Tools
Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)
Code, Data and Media Associated with this Article
alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)
Demos
Recommenders and Search Tools
Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
IArxiv Recommender
(What is IArxiv?)
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.