Introduction

Explainability for time series forecasting #

Explainability is the degree to which a human can understand the cause of a decision (or prediction) made by a prediction model 1.

Types of time series #

typetime series onlytime series + external regressors
univariate1 ✔2 ✔
multiple univariate3 ✔4 ✔
multiple hierarchical univariate5 (phase 2)6 (phase 2)
multivariate7 ✘8 ✘

Domain of explanations #

whatexplain
dataExplain the time series based on trend, seasonality and cyclic patterns.
forecasterExplains the trained forecaster based on the historical time series.
forecastExplains the forecast at a certain point in time or a certain time interval.
residualExplains the residual on the historical time series to understand where the forecaster is making errors.

Scope of explanations #

scopedescription
global explanationExplains the forecaster trained on the historical time series.
local explanationExplains the forecast made by a forecaster at a certain point in time.
group explanationExplains the overall forecast made by a forecaster at a certain time interval. The individual local explanations can be used on each instance and then listed or aggregated for the entire interval.

Type of explanations #

typedescription
features basedExplanation is in terms of features that encode the time series (lag features, date encodings etc.) and external regressors.
instance basedExplanation is in terms of the importance or certain time points in the historical time series.

Examples from supervised learning #

⚡️featuresinstance
globalfeature importance plots
SHAP values
(what-if) Partial dependence plots
localLIMEprototypes and criticisms
SHAPinfluence functions
counterfactual explanation
(what-if) counterfactual queries

Model-agnostic explaninablity #

  • We have access to only fit and predict methods of a forecaster.
  • We have access to training data ?
  • We have access to features ?

Challenges #

  • Non-iid nature of data.
  • Robustness. If the the foreecast does not change drastically for the next time point the explanation should not change.
  • Explain prediction intervals and quantile forecasts.
  • Scalability.

Interpretable models #

Some time series forecasting models are inherently interprtable and we aim to wrap up the model specific interpretation whereever available.

  • Statistical models
    • Exponential Smoothing
    • Holt-Winter
    • S/ARIMA/X
    • Croston’s models
    • Theta
    • Prohet
  • machine learning models
    • Tree based algorithms like XGBoost, CatBoost
    • Gradient Boosted Machines like LightGBM
    • Gaussian Process Regression
  • deep learning models
    • Recurrent Neural Networks (RNN)
    • Temporal Convolutional Neural Networks (TCNN)

Taxonomy #

foo

Inspired from here

References #