Time-Series Forecasting in Safety-Critical Environments: An EU-AI-Act-Compliant Open-Source Package / Zeitreihenprognose in sicherheitskritischen Umgebungen: Ein KI-VO-konformes Open-Source-Paket

arXiv cs.AI / 4/28/2026

📰 NewsDeveloper Stack & InfrastructureSignals & Early TrendsTools & Practical UsageModels & Research

Key Points

  • The article introduces “spotforecast2-safe,” an open-source Python package designed for time-series point forecasting in safety-critical settings with a Compliance-by-Design approach aligned to the EU AI Act and other key security/functional-safety standards.
  • Unlike external compliance tooling (e.g., scanners or runtime layers), the package embeds compliance requirements directly into the library via API contracts, persistence formats, and CI gates.
  • It enforces four development rules—zero dead code, deterministic processing, fail-safe handling, and minimal dependencies—alongside process rules such as model cards, executable docstrings, CI workflows, CPE identification, REUSE-compliant licensing, and a release pipeline.
  • Deep-learning, LLM backends, interactive visualization, hyperparameter tuning, and AutoML are intentionally excluded to reduce attack surface, avoid non-determinism, and preserve reproducibility.
  • A bidirectional traceability matrix links regulatory provisions to specific code mechanisms, and an end-to-end example in European electricity generation/transmission/consumption forecasting demonstrates usage; the project is released under AGPL 3.0-or-later.

Abstract

With spotforecast2-safe we present an integrated Compliance-by-Design approach to Python-based point forecasting of time series in safety-critical environments. A review of the relevant open-source tooling shows that existing compliance solutions operate consistently outside of the library to be used - e.g. as scanners, templates, or runtime layers. spotforecast2-safe takes the inverse approach and anchors the requirements of Regulation (EU) 2024/1689 (the EU AI Act, in German: KI-VO), of IEC 61508, of the ISA/IEC 62443 standards series, and of the Cyber Resilience Act within the library: in application-programming-interface contracts, persistence formats, and continuous-integration gates. The approach is operationalised by four non-negotiable code-development rules (zero dead code, deterministic processing, fail-safe handling, minimal dependencies) together with the corresponding process rules (model card, executable docstrings, CI workflows, Common-Platform-Enumeration (CPE) identifier, REUSE-conformant licensing, release pipeline). Interactive visualisation, hyperparameter tuning and automated machine learning (AutoML), as well as deep-learning and large-language-model backends are deliberately excluded, because each of these components either enlarges the attack surface, introduces non-determinism, or impairs reproducibility. A bidirectional traceability matrix maps every regulatory provision onto the corresponding mechanism in the code; an end-to-end example of European-market electricity generation, transmission, and consumption forecasting demonstrates the application. The package is open-source and available under Affero General Public License (AGPL) 3.0-or-later.