ProtoTSNet: Interpretable Multivariate Time Series Classification With Prototypical Parts
Bartłomiej Małkus, Szymon Bobek, Grzegorz J. Nalepa
TL;DR
ProtoTSNet addresses the need for interpretable multivariate time series classification by introducing prototypical parts within an ante-hoc framework. It extends ProtoPNet with a grouped-convolution encoder, feature masking, encoder pretraining, and a prototype layer that computes subsequence distances via a $\max$ over all subsequences to learned prototypes, enabling direct input-to-prototype mapping. The approach yields explicit feature importance through a 1x1 mixer and transparent explanations in the form of prototype matches, termed the 'this resembles that' rationale. Empirical evaluation on the UEA multivariate archive shows ProtoTSNet achieving best performance among ante-hoc explainable methods and competitive results relative to non-explainable and post-hoc baselines, with thorough ablation and parameter-sensitivity analyses guiding design choices. This work provides a reproducible, interpretable framework suitable for deployment in safety-critical domains demanding transparent decision-making.
Abstract
Time series data is one of the most popular data modalities in critical domains such as industry and medicine. The demand for algorithms that not only exhibit high accuracy but also offer interpretability is crucial in such fields, as decisions made there bear significant consequences. In this paper, we present ProtoTSNet, a novel approach to interpretable classification of multivariate time series data, through substantial enhancements to the ProtoPNet architecture. Our method is tailored to overcome the unique challenges of time series analysis, including capturing dynamic patterns and handling varying feature significance. Central to our innovation is a modified convolutional encoder utilizing group convolutions, pre-trainable as part of an autoencoder and designed to preserve and quantify feature importance. We evaluated our model on 30 multivariate time series datasets from the UEA archive, comparing our approach with existing explainable methods as well as non-explainable baselines. Through comprehensive evaluation and ablation studies, we demonstrate that our approach achieves the best performance among ante-hoc explainable methods while maintaining competitive performance with non-explainable and post-hoc explainable approaches, providing interpretable results accessible to domain experts.
