MTNet: A Multi-Task Learning Framework That Integrates Intra-Task and Task-Specific Dependencies for Traffic Forecasting
- 27 November 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Knowledge and Data Engineering
- Vol. 38 (2) , 1206-1220
Abstract
Traffic prediction is essential for modern transportation systems, enhancing traffic management and urban planning. Accurate predictions of traffic flow and speed are crucial for understanding road usage, mitigating congestion, and providing real-time traffic monitoring and dynamic route guidance, thus improving road safety and infrastructure efficiency. Traditional research has often focused on predicting traffic flow or speed independently, leading to higher resource consumption due to the need for separate models. Few studies have explored the simultaneous prediction of both metrics, with recent attempts failing to account for spatial correlations, resulting in suboptimal performance. To address these challenges, we propose MTNet, a multi-task learning framework for joint traffic flow and speed prediction. MTNet employs a Transformer-like Encoder-Decoder architecture to process and enhance feature representations, capturing complex spatio-temporal correlations. Specifically, MTNet extracts intra-task dependencies using a cross-task interaction module and models task-specific spatiotemporal dependencies using spatial and temporal-aware modules with cascaded residual structures. Additionally, spatio-temporal positional encoding is integrated to increase awareness of long-term and long-distance dependencies. Extensive experiments on three diverse traffic datasets—Manchester, PeMSD4, and PeMSD8—demonstrate that MTNet significantly outperforms state-of-the-art methods in both traffic flow and speed prediction. MTNet achieves substantial improvements in prediction accuracy and efficiency, striking an optimal balance between performance and computational resource usage.Keywords
Funding Information
- Natural Science Research Project for Universities in Anhui Province (KJ2021A0090)
- Natural Science Research Project for Universities in Anhui Province (2022AH050197)
- Wuhu Science and Technology Bureau Project (2023jc17)
- University Join Innovation Program of Anhui Province (GXXT-2022-054)
- High-level Scientific Research Platform Construction Project of Anhui Normal University (2023GFXK180)
- National Natural Science Foundation of China (62472006)
- Natural Science Foundation of Anhui Province (2408085MF169)
This publication has 52 references indexed in Scilit:
- Multi-Source Information Fusion Graph Convolution Network for traffic flow predictionExpert Systems with Applications, 2024
- Cross-Task Attention Network: Improving Multi-task Learning for Medical Imaging Applications2023
- Traffic flow matrix-based graph neural network with attention mechanism for traffic flow predictionInformation Fusion, 2023
- Adaboosting graph attention recurrent network: A deep learning framework for traffic speed forecasting in dynamic transportation networks with spatial-temporal dependenciesEngineering Applications of Artificial Intelligence, 2023
- Unleashing the power of context: Contextual association network with cross-task attention for joint relational extractionExpert Systems with Applications, 2023
- A novel hybrid method for achieving accurate and timeliness vehicular traffic flow prediction in road networksComputer Communications, 2023
- Traffic flow and speed forecasting through a Bayesian deep multi-linear relationship networkExpert Systems with Applications, 2022
- Attention-based dynamic spatial-temporal graph convolutional networks for traffic speed forecastingExpert Systems with Applications, 2022
- Missing Data Estimation in a Low-Cost Sensor Network for Measuring Air Quality: a Case Study in Aburrá ValleyWater, Air, & Soil Pollution, 2021
- An attention‐based deep learning model for traffic flow prediction using spatiotemporal features towards sustainable smart cityInternational Journal of Communication Systems, 2020