Enhancing time series forecasting: a hybrid TCN-transformer approach
摘要
Accurate multivariate time series forecasting remains a fundamental challenge across critical domains including traffic management, environmental monitoring, and agricultural planning. While recent advances in deep learning have shown promise, existing approaches face inherent limitations: convolutional models struggle with long-range dependencies and cross-variable interactions, whereas pure attention-based architectures often overlook crucial local temporal patterns and suffer from quadratic computational complexity. To address these complementary weaknesses, we propose a novel hybrid architecture that systematically integrates Temporal Convolutional Networks (TCNs) for efficient local feature extraction with Transformer multi-head attention mechanisms for global dependency modeling. Our TCN-Transformer model employs dilated causal convolutions to capture hierarchical temporal patterns across multiple scales, followed by multi-head attention layers that learn cross-variable dependencies and long-range temporal relationships. We validate our approach across three diverse real-world domains: traffic volume prediction, air quality forecasting, and wheat productivity estimation across five Egyptian governorates. Experimental results demonstrate substantial improvements over established baselines, with the TCN-Transformer achieving coefficient of determination (