NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

pyWATTS: Python Workflow Automation Tool for Time Series

Benedikt Heidrich, Andreas Bartschat, Marian Turowski, Oliver Neumann, Kaleb Phipps, Stefan Meisenbacher, Kai Schmieder, Nicole Ludwig, Ralf Mikut, Veit HagenmeyerarXiv 2021

TL;DR

This paper introduces pyWATTS, an open-source Python package designed to streamline time series analysis. It addresses the challenges of integrating diverse tools, replicating results, and avoiding repetitive coding by offering a flexible, non-sequential workflow automation framework.

What Problem Does This Paper Address?

Time series data is ubiquitous, powering everything from financial markets to energy systems. However, the growing complexity of analysis tools and methods, coupled with unclear APIs and poor documentation, makes it difficult for researchers to integrate new approaches and, crucially, reproduce existing results. This often leads to the unnecessary re-implementation of common, repetitive tasks, wasting valuable research time. The paper aims to solve this by providing a robust and user-friendly tool for automating time series analysis workflows.

Methods

pyWATTS is built around three core classes: Pipeline, Step, and Module.

  • Pipeline: Represents the entire workflow as a directed acyclic graph (DAG), allowing for complex, non-sequential execution paths.
  • Step: Acts as a node in the pipeline graph, managing the execution of a specific module, handling its inputs and outputs, and enabling callbacks for intermediate results.
  • Module: Encapsulates individual algorithms or methods. pyWATTS distinguishes between modules that require training (fit method) and those that don't (transform method).

A key innovation is the support for non-sequential workflows, meaning steps don't have to execute in a strict linear order. This allows for parallel processing, branching, and conditional execution. pyWATTS also offers:

  • Subpipelining: Enables users to group and reuse parts of a workflow.
  • Saving and Loading: Facilitates easy reproduction of experiments.
  • Plug-and-Play Module Integration: Supports seamless incorporation of new or existing methods.
  • Wrapper Modules: Provide native integration with popular libraries like scikit-learn, PyTorch, and Keras.

Datasets

Not discussed in the paper. The paper focuses on the framework itself and its capabilities rather than specific datasets for evaluation.

Key Insights and Ideas

  • The power of non-sequential pipelines: Moving beyond linear execution unlocks significant flexibility for complex time series analysis, mirroring real-world scenarios where tasks can be performed concurrently or conditionally.
  • Bridging the reproducibility gap: By enabling easy saving, loading, and modularity, pyWATTS directly tackles the challenge of reproducing research findings, a critical aspect of scientific advancement.
  • Democratizing complex workflows: The tool aims to lower the barrier to entry for advanced time series analysis by abstracting away much of the boilerplate code and integration effort, especially for deep learning models.
  • Extensibility as a core principle: The design emphasizes making it easy for users to add their own modules or integrate with existing libraries, fostering a collaborative and evolving ecosystem.

Key Results

The paper doesn't present quantitative results from a specific benchmark. Instead, it highlights the capabilities of pyWATTS as a tool:

  • Platform Independence: Runs on any environment supporting Python.
  • Re-usability: Achieved through subpipelining.
  • Reproducibility: Enabled by saving and loading pipeline configurations.
  • Seamless Integration: Supports popular ML/DL libraries.
  • Conditional Branching: Allows for data-dependent workflow execution.

Limitations and Future Work

Limitations: * The paper acknowledges that while pyWATTS provides wrappers for popular libraries, the integration of all possible functions from these libraries might not be exhaustive. * The current implementation focuses on time series analysis, and its applicability to other sequential data types might require further development.

Future Work: * Copy-Paste Imputation: Extending pyWATTS with methods for imputing missing values in energy time series. * Time Series Forecasting: Incorporating advanced forecasting techniques like Profile Neural Networks. * Anomaly Detection: Developing capabilities for inserting typical anomalies in energy time series to create ground truth datasets for anomaly detection research. * Synthetic Data Generation: Generating realistic synthetic energy time series. * Pipeline Tuning and Selection: Automating the iterative process of designing and optimizing pipelines. * Deployment: Integrating pyWATTS as an execution environment within research infrastructures like "Energy Lab 2.0".

Summary updated

BibTeX
@misc{heidrich2021pywatts,
  author = {Benedikt Heidrich and Andreas Bartschat and Marian Turowski and Oliver Neumann and Kaleb Phipps and Stefan Meisenbacher and Kai Schmieder and Nicole Ludwig and Ralf Mikut and Veit Hagenmeyer},
  title = {{pyWATTS: Python Workflow Automation Tool for Time Series}},
  year = {2021},
  eprint = {2106.10157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.10157},
}
Figure