Research on the TSM-Transformer Algorithm for Network Traffic Forecast
Abstract
The rapid growth of Internet applications has led to increasingly complex network traffic, posing new challenges for accurate long-term forecasting. To address the limitations of traditional linear models in capturing nonlinear temporal dependencies, this paper proposes an improved TSM-Transformer model that introduces a Trend Attention module for long-term tendencies and a Seasonal Attention module for periodic variations. The model also optimizes encoder–decoder fusion to enhance information interaction. Experiments on the Traffic_One_Cell dataset demonstrate that the proposed model achieves the lowest MAE (1.2 × 10⁻3) and RMSE (2.9 × 10⁻3) with an R2 of 92.1%, outperforming ARIMA, GRU, and SVM baselines. The results confirm the model’s superiority in long-horizon network traffic prediction, providing reliable support for proactive resource allocation and network management.