Introduction
Time Series Forecasting (TSF) is a critical component in diverse fields ranging from financial market analysis to environmental monitoring. Traditional statistical methods, such as ARIMA, often struggle with the non-stationary nature of real-world data, where mean and variance fluctuate over time. Deep learning has emerged as a powerful alternative, capable of capturing complex non-linear patterns without the rigid assumptions of classical statistics.
Problem Statement
This study evaluates the effectiveness of modern deep learning architectures in forecasting PM2.5 air pollution levels—a highly volatile variable influenced by intricate meteorological patterns. The research specifically investigates two pivotal parameters:
- Look-Back Window ($w$): The optimal duration of historical data required for accurate prediction.
- Prediction Horizon ($k$): The temporal distance into the future for which reliable forecasts can be maintained.
Methodology
The researchers compared four distinct deep learning architectures: RNN, LSTM, GRU, and Transformers. While recurrent models (RNN, LSTM, GRU) process data sequentially, Transformers leverage Attention Mechanisms to weigh the significance of various past time points simultaneously.
To prepare the data for supervised learning, a sliding window approach was employed. This method converts continuous time-series data into discrete input-output pairs defined by the look-back size $w$ and the look-ahead size $k$.
The Transformer model was implemented with an encoder-decoder structure to handle multivariate input features and generate multi-step predictions effectively.
Dataset and Preprocessing
The study utilized the Beijing Air Quality Dataset (2010–2014) from the UCI Machine Learning Repository. The dataset includes hourly PM2.5 concentrations alongside multivariate features such as temperature, pressure, and wind speed. Data was normalized using Min-Max scaling, and categorical variables were one-hot encoded to ensure compatibility with the neural network inputs.
Key Insights and Results
The experimental results highlight several critical findings regarding model performance and data windowing:
- Transformer Dominance in Long-Range Tasks: Transformers outperformed recurrent models in 80% of scenarios, particularly when the look-back window exceeded 96 hours. This underscores the efficiency of attention mechanisms over traditional recurrence for long-range dependencies.
- The Niche for Recurrent Models: For short-term, single-step predictions (1 hour ahead) with smaller windows (24–48 hours), GRUs and LSTMs remained highly competitive, with the GRU achieving the lowest MAE (12.861) for a 1-day look-back.
- Window Size Sensitivity: Increasing the look-back window does not always improve accuracy. Beyond a certain threshold (typically 2-4 days for a 3-hour horizon), additional historical data introduces "noise" that can degrade performance.
- The 4-Hour Horizon Limit: A significant drop in accuracy was observed across all models when forecasting beyond a 4-hour horizon, indicating a current architectural bottleneck in long-term environmental forecasting.
Conclusion
While Transformers represent a significant leap forward for TSF, especially for long-context scenarios, traditional recurrent units like GRUs still offer superior efficiency and accuracy for near-term, single-step tasks. Future research should focus on improving the stability of forecasts over longer horizons and testing these architectures across more diverse geographical datasets.
Summary updated