Forecast, detect, and benchmark time series without switching libraries
Salesforce built Merlion so engineers wouldn't have to stitch together separate libraries for time series forecasting, anomaly detection, and benchmarking.

What it does
Merlion is an end-to-end Python framework for time series intelligence. It wraps forecasting, anomaly detection, and change point detection—both univariate and multivariate—into a single pipeline that handles data loading, model training, output post-processing, and evaluation. The goal is to let you experiment and benchmark without juggling a half-dozen separate libraries.
The interesting bit
Rather than forcing you to choose between statistical methods, tree ensembles, or deep learning, Merlion exposes all of them through one shared interface, then adds AutoML, ensembles, and a clickable web dashboard on top. It also simulates live production conditions with evaluation pipelines that retrain models and apply industry-inspired post-processing rules to suppress false positives.
Key highlights
- One API for forecasting, anomaly detection, and change point detection on uni- and multivariate series.
- Bundles classical statistics, tree ensembles, and deep learning models with AutoML and ensemble support.
- Includes a clickable web dashboard for experimenting with custom datasets visually.
- Evaluation pipelines simulate live deployment, retraining, and post-processing to reduce false alarms.
- Optional PySpark backend for distributed, industrial-scale computation.
Caveats
- Several models carry external system dependencies: some forecasting models need OpenMP, and some anomaly detectors require a JDK, so a pure-Pip environment may not be enough for full functionality.
Verdict
Data scientists and platform engineers who need to compare multiple time series techniques or run structured benchmarks will find Merlion fills a gap. If you only need one narrow algorithm and want zero system dependencies, it is probably overkill.
Frequently asked
- What is salesforce/Merlion?
- Salesforce built Merlion so engineers wouldn't have to stitch together separate libraries for time series forecasting, anomaly detection, and benchmarking.
- Is Merlion open source?
- Yes — salesforce/Merlion is open source, released under the BSD-3-Clause license.
- What language is Merlion written in?
- salesforce/Merlion is primarily written in Python.
- How popular is Merlion?
- salesforce/Merlion has 4.5k stars on GitHub.
- Where can I find Merlion?
- salesforce/Merlion is on GitHub at https://github.com/salesforce/Merlion.