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:
- 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.
- 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$):
- Short gaps ($t \le 10$ hours): Linear interpolation.
- Medium gaps ($11 < t \le 42$ hours): Seasonal and Trend decomposition using Loess (STL).
- Medium-long gaps ($43 < t \le 72$ hours): Moving average.
- 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.
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.
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