Time Series Forecasting

Time Series Forecasting with Deep Learning is the application of neural network architectures to predict future values of temporal sequences — leveraging patterns in historical data including trends, seasonality, and complex nonlinear dependencies, where modern transformer and SSM-based forecasters now compete with and often surpass traditional statistical methods (ARIMA, ETS) on diverse benchmarks from energy demand to financial markets to weather prediction.

Deep Learning Architecture Timeline for Time Series

EraArchitectureKey Advantage
2015-2017LSTM/GRUCaptures sequential dependencies
2017-2019WaveNet/TCN (Temporal CNN)Parallelizable, dilated convolutions
2019-2021Informer/Autoformer (Transformer)Long-range attention, multi-horizon
2022+PatchTST, TimesNetChannel-independent patching
2023+TimesFM, Chronos (Foundation)Pre-trained on many datasets
2024+Mamba/SSM variantsLinear complexity, long sequences

Forecasting Paradigms

ParadigmMethodBest For
Point forecastPredict single future value at each stepSimple predictions
Probabilistic forecastPredict distribution (quantiles, parameters)Risk-aware decisions
Multi-horizonPredict multiple future steps simultaneouslyPlanning applications
MultivariatePredict multiple correlated series jointlyInterconnected systems

PatchTST (2023)

  • Key insight: Treat time series as sequence of patches (subsequences), not individual points.
  • Patch size P=16: Reduces sequence length by 16x → attention cost reduced 256x!
  • Channel-independent: Each variable processed independently → better scaling.
  • Result: SOTA on long-term forecasting benchmarks, beating complex Transformer designs.

Foundation Models for Time Series

ModelDeveloperApproach
TimesFMGooglePre-trained decoder-only on 100B+ timepoints
ChronosAmazonT5-style tokenization of time series values
Lag-LlamaSalesforceLLaMA-based probabilistic forecaster
MOIRAISalesforceUniversal forecaster, any-variate

Input Representation

  • Raw values: Direct numerical input → often normalized per-series.
  • Patching: Group consecutive values into patches → reduce length, capture local patterns.
  • Tokenization (Chronos): Bin continuous values into discrete tokens → use language model.
  • Frequency features: Add day-of-week, month, hour as covariates.
  • Lag features: Include values at known seasonal lags (e.g., same hour yesterday).

Evaluation Metrics

MetricFormulaWhat It Measures
MAEMean Absolute ErrorAverage absolute deviation
MSE/RMSE(Root) Mean Squared ErrorPenalizes large errors
MAPEMean Absolute Percentage ErrorScale-independent accuracy
CRPSContinuous Ranked Probability ScoreProbabilistic forecast quality
WQLWeighted Quantile LossQuantile prediction accuracy

Time series forecasting with deep learning is entering a foundation model era — pre-trained temporal models that generalize across domains are beginning to match or exceed specialized models, promising to make high-quality forecasting accessible without domain expertise, much as language models democratized NLP.

Take time series forecasting further

Ask the copilot about this term, or have our engineers assess it against your process.