In high-stakes domains like energy grid management or weather prediction, accurate time series forecasting is critical. While deep learning models excel at this, they often act as black boxes. If a model predicts a massive spike in electricity demand, grid operators need to know why before they spend millions firing up auxiliary power plants.
Existing Explainable AI (XAI) methods for time series usually only offer "local" explanations—such as highlighting which specific past time steps the model paid attention to. They fail to explain the overall shape of the predicted curve (e.g., "why are there three distinct peaks today?"). Furthermore, they struggle to explain how a complex mix of "exogenous" variables (outside factors like temperature, humidity, and holidays) interact to create specific temporal patterns.
ProtoTS is a novel time series forecasting framework that achieves state-of-the-art accuracy while remaining inherently interpretable. It works by learning a hierarchical set of "prototypes"—human-readable temporal curves representing typical patterns (e.g., a typical summer day or a holiday). This allows domain experts to understand exactly how complex input variables shape the final forecast and even manually steer the model to improve its accuracy.
How ProtoTS Works
ProtoTS abandons the standard black-box approach in favor of an ante-hoc interpretable architecture built on three main pillars:
- Multi-Channel Embedding & Bottleneck Fusion: Instead of dumping all variables into one encoder, ProtoTS processes endogenous variables (the historical data of the target being predicted) and exogenous variables (discrete factors like day-of-week, continuous factors like temperature) through separate channels. A "bottleneck" layer then compresses this data, filtering out irrelevant noise while keeping the most predictive features.
- Hierarchical Prototype Learning: The model learns a set of "prototypes," which are actual temporal sequences (curves) representing typical patterns in the data. To balance accuracy and interpretability, these are organized in a tree. "Root" prototypes capture broad, global patterns (e.g., Winter vs. Summer). These split into "Child" prototypes that capture fine-grained local variations (e.g., Normal Holiday vs. Spring Festival).
- Prediction via Similarity: To make a forecast, the model compares the current input conditions to its learned prototypes. The final prediction is a weighted combination of the prototype curves, based on how similar the current input is to each prototype's learned embedding.
Key Insights and Capabilities
- Prototypes as Sequences: Most prototype-based AI models output a single class label (e.g., "this looks like a cat"). ProtoTS is unique because its prototypes decode into entire sequences (e.g., a 96-step forecast curve). This allows users to visually inspect the exact temporal dynamics the model is considering.
- Solving the XAI Trade-off: If you use too few prototypes, the model is inaccurate. If you use too many, the curves look identical, overwhelming the user and ruining interpretability. The hierarchical tree structure solves this by offering a high-level summary first, then allowing users to drill down into the nuances.
- Expert Steerability: Because the model's logic is transparent, human experts can literally "edit" the model. If an expert notices the model is blurring the nuances of a specific holiday, they can manually force a prototype to split, injecting domain knowledge directly into the architecture to boost accuracy.
Performance and Results
ProtoTS was evaluated on several datasets, including LOF (Load Forecasting), a newly released synthetic dataset simulating provincial/city-level electricity demand with 22 complex exogenous variables, and EPF (Electricity Price Forecasting), a real-world dataset covering day-ahead electricity prices.
- Superior Accuracy: On the complex LOF dataset, ProtoTS outperformed baselines (like TimeXer, iTransformer, and TiDE), reducing Mean Squared Error (MSE) by 48.3% and Mean Absolute Error (MAE) by 20.9%. It also achieved an 8% MSE reduction on the EPF dataset.
- Data Efficiency: When training data was reduced to 50%, baseline models degraded significantly. ProtoTS maintained highly stable performance, proving that prototype matching is highly data-efficient.
- Human-Verified Usability: In a user study, participants using ProtoTS to understand forecasts achieved a 77% precision rate in correctly inferring input conditions, compared to just 64% for TFT. It also scored a 73.36 on the System Usability Scale (SUS), vastly outperforming baselines (~30-38).
- Successful Steering: In a case study, an expert manually split the "Spring Festival" prototype to separate the base holiday pattern from a specific progressive daily pattern. This simple edit reduced the MSE for that period from 0.099 to 0.090.
Limitations
While powerful, ProtoTS has a few limitations. Because it relies on finding recurring typical patterns, its effectiveness drops on highly irregular, non-repetitive time series. Covering chaotic data requires too many prototypes, which diminishes interpretability. Additionally, the "steerability" feature requires actual domain experts to spend time manually analyzing and editing the prototypes. Finally, the multi-channel embedding and hierarchical matching introduce computational overhead, making training times slightly longer than simpler baseline models.
Summary updated