Does Preprocessing Quality Matter for AutoML? A Case Study on Time Series Forecasting with Environmental Data

Guilherme Castro Dallasta, Jan N. van Rijn, Andre Carlos Ponce de Leon Ferreira De CarvalhoAutoML 2026 ABCD Track OralPoster 2026 · OpenReview

TL;DR

Automated Machine Learning (AutoML) promises hands-off optimization for time series forecasting, but it frequently breaks down when faced with messy, real-world data. This paper demonstrates that integrating domain-specific quality control with a hierarchical, gap-size-dependent imputation strategy can reduce downstream AutoML forecasting errors by up to 69%. To prove this, the authors introduce a challenging new 10-year environmental dataset tracking dissolved oxygen in river basins.

What Problem Does This Paper Address?

AutoML frameworks excel at automating model selection, hyperparameter tuning, and ensembling. However, they operate under a dangerous assumption: that input data is complete and statistically consistent. In fields like environmental monitoring, this assumption is routinely shattered by sensor drift, biofouling, and communication dropouts, leading to massive data gaps and flat-line artifacts.

When bad data enters an AutoML pipeline, errors don't stay isolated. They trigger "data cascades"—compounding downstream failures where the AutoML system selects suboptimal models or generates physically impossible predictions. This paper investigates whether domain-aware preprocessing can halt these cascades and significantly boost downstream AutoML forecasting performance.

Methods

The authors design a domain-knowledge-inspired preprocessing pipeline consisting of two main phases:

  1. Quality Control: First, a physical plausibility filter strips out impossible values (outside 0–14.5 mg/L for dissolved oxygen). Second, a rolling-window anomaly detector flags faulty "flat-line" sensor readings by simultaneously evaluating the range, standard deviation, and linear regression slope against thresholds tailored to the station's specific environmental regime.
  2. Hierarchical Imputation: Instead of using a single imputation method, the pipeline dynamically selects a strategy based on the size of the missing data gap ($t$):
  3. Short gaps ($t \le 10$ hours): Linear interpolation.
  4. Medium gaps ($11 < t \le 42$ hours): Seasonal and Trend decomposition using Loess (STL).
  5. Medium-long gaps ($43 < t \le 72$ hours): Moving average.
  6. Long gaps ($t > 72$ hours): Prophet (a global seasonal model).

The cleaned data is then fed into two popular AutoML frameworks: AutoGluon-TimeSeries and sktime, evaluating models like DeepAR, XGBoost, SARIMA, and Prophet.

Datasets

The study introduces a new real-world benchmark dataset from the Integrated Water Quality Monitoring System (SIMQUA) in São Paulo, Brazil. It contains 10 years of hourly measurements (January 2015 to April 2025) of dissolved oxygen across six monitoring stations in the Tietê River Basin. The dataset is highly challenging, featuring missing data rates up to 27% and a wide variety of gap lengths.

Map of the monitoring stations across the Tietê River Basin

Key Insights and Ideas

  • AutoML is Not a Silver Bullet for Bad Data: Automating model selection cannot compensate for structurally broken inputs. AutoML frameworks require data to meet a minimum threshold of temporal coherence to deliver on their performance promises.
  • One Size Does Not Fit All for Imputation: Local imputation methods (like linear interpolation) work well for brief dropouts but distort broader temporal structures over long gaps. Conversely, complex global models are overkill for short gaps but essential for capturing seasonal cycles over multi-day outages.
  • Regime-Based Thresholding Matters: Environmental dynamics vary wildly between a fast-flowing river and a stagnant reservoir. The authors classified stations into behavioral regimes (e.g., Hypoxic-impacted, Diel-productive) using decision rules to ensure anomaly detection thresholds didn't accidentally wipe out genuine ecological signals.
Decision rules used to classify station behavioral regimes

Key Results

  • Imputation Quality: The hierarchical pipeline outperformed standard baselines (forward/backward fill and simple linear interpolation) across six out of seven reconstruction metrics. Notably, it achieved a 38% reduction in the Kolmogorov-Smirnov (KS) statistic, meaning the imputed data preserved the true statistical distribution of the original time series far better than simpler methods.
  • Forecasting Performance: When fed into AutoGluon-TimeSeries, the hierarchically preprocessed data led to massive accuracy gains. The Mean Absolute Scaled Error (MASE) for the DeepAR model was slashed by 69% at station EF01, 54% at EF06, and 51% at EF07.
  • For sktime, the pipeline generally improved forecast accuracy across four out of six stations, though it encountered a model-specific limitation with SARIMA at one station due to trend extrapolation issues.

Limitations and Future Work

  • Geographic Scope: The dataset and behavioral regimes are drawn from a single river basin in southeastern Brazil. It remains to be seen how well these specific quality-control rules generalize to different climatic zones or distinct aquatic ecosystems.
  • Compute & Replication: Stochastic models like DeepAR were only trained once per configuration without multiple random seed repetitions due to computational constraints.
  • Tight Coupling with AutoML: Currently, domain-specific preprocessing must be performed as a separate, static step before running AutoML. The authors note that a major opportunity for future AutoML system design is to treat reconstruction and imputation strategies as first-class, jointly-optimized components within the AutoML search space itself.

Summary updated

Abstract

Although AutoML forecasting pipelines assume that input time series are complete and statistically consistent, real-world environmental monitoring data are often affected by missing values, sensor artefacts, and heterogeneous temporal dynamics. This paper reports on a case study that investigates whether domain-aware preprocessing significantly affects downstream AutoML forecasting performance using dissolved oxygen series from river basin monitoring stations. In order to do so, we propose a hierarchical data cleaning pipeline with distinct preprocessing operations. The proposed approach is evaluated using two AutoML forecasting frameworks, AutoGluon-TimeSeries and sktime, across four forecasting models and three preprocessing variants on six real-world stations. The data spans ten years of hourly measurements with rates of missing values up to 27%. Two types of experiments are performed, in which we assess: (i) the performance on the preprocessing task of imputing missing values and (ii) the performance on forecasting future values. Experimental results show that the hierarchical pipeline behaved better on six of seven evaluated metrics and reduced MASE by up to 69% for one of the models we experimented with (DeepAR) in stations with a high number of missing values. Most importantly, this work provides a new real-world dataset based on dissolved oxygen environmental data, which highlights the importance of practical issues, such as implausible values and ranges of missing values, and shows the performance gains that AutoML can achieve on this particular real-world task.
BibTeX
@inproceedings{dallasta2026does,
  author = {Guilherme Castro Dallasta and Jan N. van Rijn and Andre Carlos Ponce de Leon Ferreira De Carvalho},
  title = {{Does Preprocessing Quality Matter for AutoML? A Case Study on Time Series Forecasting with Environmental Data}},
  booktitle = {AutoML 2026 ABCD Track OralPoster},
  year = {2026},
  url = {https://openreview.net/forum?id=QA7ULEIhFI},
}
Figure