An Explainable Pipeline for Machine Learning with Functional Data
Katherine Goode, J. Derek Tucker, Daniel Ries, Heike Hofmann
TL;DR
The paper presents VEESA, an explainable ML pipeline for functional data that jointly accounts for vertical and horizontal variability via elastic functional PCA and provides interpretable explanations in the original data space using $PFI$ and visualizations. By smoothing, separating amplitude/phase, and projecting into efPCs, VEESA enables model training with uncorrelated predictors and yields interpretable variability directions linked to predictions. The approach is demonstrated on high-consequence tasks—H-CT material classification and inkjet printer identification from Raman spectra—showing interpretable, competitive performance and actionable insights for domain experts. The work highlights the importance of combining statistical description of functional structure with machine learning and outlines avenues for extending explainability to decision-makers and broader methodological refinements.
Abstract
Machine learning (ML) models have shown success in applications with an objective of prediction, but the algorithmic complexity of some models makes them difficult to interpret. Methods have been proposed to provide insight into these "black-box" models, but there is little research that focuses on supervised ML when the model inputs are functional data. In this work, we consider two applications from high-consequence spaces with objectives of making predictions using functional data inputs. One application aims to classify material types to identify explosive materials given hyperspectral computed tomography scans of the materials. The other application considers the forensics science task of connecting an inkjet printed document to the source printer using color signatures extracted by Raman spectroscopy. An instinctive route to consider for analyzing these data is a data driven ML model for classification, but due to the high consequence nature of the applications, we argue it is important to appropriately account for the nature of the data in the analysis to not obscure or misrepresent patterns. As such, we propose the Variable importance Explainable Elastic Shape Analysis (VEESA) pipeline for training ML models with functional data that (1) accounts for the vertical and horizontal variability in the functional data and (2) provides an explanation in the original data space of how the model uses variability in the functional data for prediction. The pipeline makes use of elastic functional principal components analysis (efPCA) to generate uncorrelated model inputs and permutation feature importance (PFI) to identify the principal components important for prediction. The variability captured by the important principal components in visualized the original data space. We ultimately discuss ideas for natural extensions of the VEESA pipeline and challenges for future research.
