Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (10): 3171-3179.DOI: 10.11772/j.issn.1001-9081.2025091098
• Data science and technology • Previous Articles
Jinxiang WEI, Leichun WANG(
), Xiangfeng LU, Ruirui SONG, Yunping HE, Xiaomeng LIU
Received:2025-09-22
Revised:2025-12-18
Accepted:2025-12-19
Online:2026-03-13
Published:2026-10-10
Contact:
Leichun WANG
About author:WEI Jinxiang, born in 2000, M. S. candidate. Her research interests include intelligent transportation.Supported by:
魏金香, 王雷春(
), 卢祥凤, 宋芮芮, 何运平, 刘小萌
通讯作者:
王雷春
作者简介:魏金香(2000—),女,安徽阜阳人,硕士研究生,CCF会员,主要研究方向:智能交通基金资助:CLC Number:
Jinxiang WEI, Leichun WANG, Xiangfeng LU, Ruirui SONG, Yunping HE, Xiaomeng LIU. Traffic flow prediction model with spatial-temporal awareness and self-supervised Transformer[J]. Journal of Computer Applications, 2026, 46(10): 3171-3179.
魏金香, 王雷春, 卢祥凤, 宋芮芮, 何运平, 刘小萌. 融合时空感知与自监督转换器的交通流预测模型[J]. 《计算机应用》唯一官方网站, 2026, 46(10): 3171-3179.
Add to citation manager EndNote|Ris|BibTeX
URL: https://www.joca.cn/EN/10.11772/j.issn.1001-9081.2025091098
| 数据集 | 区域数 | 周期/min | 时间范围 |
|---|---|---|---|
| NYCBike1 | 16×8 | 60 | 2014-04-01—2014-09-30 |
| NYCBike2 | 10×20 | 30 | 2016-01-07—2016-08-29 |
| NYCTaxi | 10×20 | 30 | 2015-01-01—2018-03-01 |
Tab. 1 Dataset description
| 数据集 | 区域数 | 周期/min | 时间范围 |
|---|---|---|---|
| NYCBike1 | 16×8 | 60 | 2014-04-01—2014-09-30 |
| NYCBike2 | 10×20 | 30 | 2016-01-07—2016-08-29 |
| NYCTaxi | 10×20 | 30 | 2015-01-01—2018-03-01 |
| 模型 | NYCBike1 | NYCBike2 | NYCTaxi | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 流入 | 流出 | 流入 | 流出 | 流入 | 流出 | |||||||
| MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | |
| ARIMA | 10.66 | 33.05 | 11.33 | 35.03 | 8.91 | 28.86 | 8.70 | 28.22 | 20.86 | 21.49 | 16.80 | 21.23 |
| SVR | 7.27 | 25.39 | 7.98 | 27.42 | 12.82 | 46.52 | 11.48 | 41.91 | 52.16 | 65.10 | 41.71 | 64.06 |
| ST-ResNet | 5.53 | 25.46 | 5.74 | 26.36 | 5.63 | 32.17 | 5.26 | 30.48 | 13.48 | 24.83 | 10.78 | 24.42 |
| GMAN | 6.77 | 31.72 | 7.17 | 34.74 | 5.24 | 27.38 | 4.97 | 26.75 | 15.09 | 22.73 | 12.06 | 21.97 |
| ST-SSL | 4.94 | 23.69 | 5.26 | 24.60 | 5.04 | 22.54 | 4.74 | 21.17 | 11.99 | 16.38 | 9.78 | 16.86 |
| PDFormer+ADCSD | 4.90 | 28.61 | 4.80 | 28.09 | 5.72 | 40.52 | 6.20 | 43.64 | 14.32 | 15.41 | 11.73 | 16.74 |
| STFGNN | 6.53 | 32.14 | 6.79 | 32.88 | 5.80 | 30.73 | 5.51 | 29.98 | 16.25 | 24.01 | 12.47 | 23.28 |
| STGCN | 5.33 | 26.92 | 5.59 | 27.69 | 5.21 | 27.73 | 4.92 | 26.83 | 13.12 | 21.01 | 10.35 | 20.78 |
| AGCRN | 5.17 | 25.59 | 5.47 | 26.63 | 5.18 | 27.17 | 4.79 | 26.17 | 12.13 | 18.78 | 9.87 | 18.41 |
| STSGCN | 5.81 | 26.51 | 6.10 | 27.56 | 5.25 | 29.26 | 4.94 | 28.02 | 13.69 | 22.91 | 10.75 | 22.37 |
| STA-Autoformer | 4.79 | 22.31 | 5.11 | 23.10 | 4.95 | 22.23 | 4.63 | 21.09 | 11.82 | 15.64 | 9.65 | 16.49 |
Tab. 2 Comparison of MAE and MAPE among different models
| 模型 | NYCBike1 | NYCBike2 | NYCTaxi | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 流入 | 流出 | 流入 | 流出 | 流入 | 流出 | |||||||
| MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | MAE | MAPE/% | |
| ARIMA | 10.66 | 33.05 | 11.33 | 35.03 | 8.91 | 28.86 | 8.70 | 28.22 | 20.86 | 21.49 | 16.80 | 21.23 |
| SVR | 7.27 | 25.39 | 7.98 | 27.42 | 12.82 | 46.52 | 11.48 | 41.91 | 52.16 | 65.10 | 41.71 | 64.06 |
| ST-ResNet | 5.53 | 25.46 | 5.74 | 26.36 | 5.63 | 32.17 | 5.26 | 30.48 | 13.48 | 24.83 | 10.78 | 24.42 |
| GMAN | 6.77 | 31.72 | 7.17 | 34.74 | 5.24 | 27.38 | 4.97 | 26.75 | 15.09 | 22.73 | 12.06 | 21.97 |
| ST-SSL | 4.94 | 23.69 | 5.26 | 24.60 | 5.04 | 22.54 | 4.74 | 21.17 | 11.99 | 16.38 | 9.78 | 16.86 |
| PDFormer+ADCSD | 4.90 | 28.61 | 4.80 | 28.09 | 5.72 | 40.52 | 6.20 | 43.64 | 14.32 | 15.41 | 11.73 | 16.74 |
| STFGNN | 6.53 | 32.14 | 6.79 | 32.88 | 5.80 | 30.73 | 5.51 | 29.98 | 16.25 | 24.01 | 12.47 | 23.28 |
| STGCN | 5.33 | 26.92 | 5.59 | 27.69 | 5.21 | 27.73 | 4.92 | 26.83 | 13.12 | 21.01 | 10.35 | 20.78 |
| AGCRN | 5.17 | 25.59 | 5.47 | 26.63 | 5.18 | 27.17 | 4.79 | 26.17 | 12.13 | 18.78 | 9.87 | 18.41 |
| STSGCN | 5.81 | 26.51 | 6.10 | 27.56 | 5.25 | 29.26 | 4.94 | 28.02 | 13.69 | 22.91 | 10.75 | 22.37 |
| STA-Autoformer | 4.79 | 22.31 | 5.11 | 23.10 | 4.95 | 22.23 | 4.63 | 21.09 | 11.82 | 15.64 | 9.65 | 16.49 |
| 模型 | NYCBike1 | NYCBike2 | NYCTaxi |
|---|---|---|---|
| GMAN | 107.19 | 207.34 | 130.67 |
| PDFormer+ADCSD | 76.68 | 136.24 | 85.31 |
| STA-Autoformer | 9.75 | 33.79 | 34.67 |
Tab. 3 Comparison of training time per epoch among different models on three datasets
| 模型 | NYCBike1 | NYCBike2 | NYCTaxi |
|---|---|---|---|
| GMAN | 107.19 | 207.34 | 130.67 |
| PDFormer+ADCSD | 76.68 | 136.24 | 85.31 |
| STA-Autoformer | 9.75 | 33.79 | 34.67 |
| [1] | Yin C T, Xiong Z, Chen H, et al. A literature survey on smart cities[J]. SCIENCE CHINA Information Sciences, 2015, 58(10): No.100102. |
| [2] | Kumar S V, Vanajakshi L. Short-term traffic flow prediction using seasonal ARIMA model with limited input data[J]. European Transport Research Review, 2015, 7: No.21. |
| [3] | Wang Y, Papageorgiou M. Real-time freeway traffic state estimation based on extended Kalman filter: a general approach[J]. Transportation Research Part B: Methodological, 2005, 39(2): 141-167. |
| [4] | van Lint H, van Hinsbergen C. Short-term traffic and travel time prediction models[J]. Artificial Intelligence Applications to Critical Transportation Issues, 2012(E-C168): 22-41. |
| [5] | Castro-Neto M, Jeong Y S, Jeong M K, et al. Online-SVR for short-term traffic flow prediction under typical and atypical traffic conditions[J]. Expert Systems with Applications, 2009, 36(3 Pt 2): 6164-6173. |
| [6] | Lin G, Lin A, Gu D. Using support vector regression and K-nearest neighbors for short-term traffic flow prediction based on maximal information coefficient[J]. Information Sciences, 2022, 608: 517-531. |
| [7] | Zhang J, Zheng Y, Qi D. Deep spatio-temporal residual networks for citywide crowd flows prediction[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2017, 31(1): 1655-1661. |
| [8] | Wang J, Wu N, Zhao W X, et al. Empowering A* search algorithms with neural networks for personalized route recommendation[C]// KDD 2019. New York: ACM, 2019: 539-547. |
| [9] | Jiang J, Han C, Zhao W X, et al. PDFormer: propagation delay-aware dynamic long-range Transformer for traffic flow prediction[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2023, 37(4): 4365-4373. |
| [10] | Guo X, Zhang Q, Jiang J, et al. Towards explainable traffic flow prediction with large language models[J]. Communications in Transportation Research, 2024, 4: No.100150. |
| [11] | Guo P, Jin P, Li Z, et al. Online test-time adaptation of spatial-temporal traffic flow forecasting[PP/OL]. arXiv (2024-01-08) [2024-09-28].. |
| [12] | Chen J, Ye H, Ying Z, et al. Dynamic trend fusion module for traffic flow prediction[J]. Applied Soft Computing, 2025, 174: No.112979. |
| [13] | 袁蓉,彭莉兰,李天瑞,等. 基于双路先验自适应图神经常微分方程的交通流预测[J]. 计算机科学, 2024, 51(4): 151-157. |
| Yuan Rong, Peng Lilan, Li Tianrui, et al. Traffic flow prediction model based on dual prior-adaptive graph neural ODE network[J]. Computer Science, 2024, 51(4): 151-157. | |
| [14] | Zou G, Lai Z, Wang T, et al. MT-STNet: a novel multi-task spatio-temporal network for highway traffic flow prediction[J]. IEEE Transactions on Intelligent Transportation Systems, 2024, 25(7): 8221-8236. |
| [15] | Zhong R, Hu B, Wang F, et al. Multi-factor embedding GNN-based traffic flow prediction considering intersection similarity[J]. Neurocomputing, 2025, 620: No.129193. |
| [16] | 肖培成,曹阳,沈琴琴,等. 基于ARMA过滤器的时空图卷积网络短时交通流预测[J]. 计算机工程与应用, 2024, 60(21): 308-314. |
| Xiao Peicheng, Cao Yang, Shen Qinqin, et al. Short-term traffic flow prediction based on spatial-temporal graph convolutional network with ARMA filter[J]. Computer Engineering and Applications, 2024, 60(21): 308-314. | |
| [17] | Wang D, Cheng M, Liu Z, et al. TimeDART: a diffusion autoregressive Transformer for self-supervised time series representation [PP/OL]. V5. arXiv (2025-06-11) [2025-12-18]. . |
| [18] | Ji J, Wang J, Huang C, et al. Spatio-temporal self-supervised learning for traffic flow prediction[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2023, 37(4): 4356-4364. |
| [19] | Zheng C, Fan X, Wang C, et al. GMAN: a graph multi-attention network for traffic prediction[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2020, 34(1): 1234-1241. |
| [20] | Li M, Zhu Z. Spatial-temporal fusion graph neural networks for traffic flow forecasting[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2021, 35(5): 4189-4196. |
| [21] | Bai L, Yao L, Li C, et al. Adaptive graph convolutional recurrent network for traffic forecasting[C]// NeurIPS 2020. Red Hook: Curran Associates Inc., 2020: 17804-17815. |
| [22] | Yu B, Yin H, Zhu Z. Spatio-temporal graph convolutional networks: a deep learning framework for traffic forecasting[C]// IJCAI 2018. California: IJCAI, 2018: 3634-3640. |
| [23] | Song C, Lin Y, Guo S, et al. Spatial-temporal synchronous graph convolutional networks: a new framework for spatial-temporal network data forecasting[J]. Proceedings of the AAAI Conference on Artificial Intelligence, 2020, 34(1): 914-921. |
| [1] | Jianqiang YAN, Beibei DONG, Boting QU, Chen PENG. Bi-directional diffusion dynamic graph convolutional network with multi-source information fusion and graph-level attention for traffic flow prediction [J]. Journal of Computer Applications, 2026, 46(7): 2327-2333. |
| [2] | Xiuli DU, Xing GAO, Xiaoyu ZHANG, Chengsheng PAN, Qijie ZOU. Video snapshot compressive imaging reconstruction method based on dense spatio-temporal deformable attention [J]. Journal of Computer Applications, 2026, 46(7): 2288-2296. |
| [3] | Yunping HE, Leichun WANG, Ruirui SONG, Xiangfeng LU, Jinxiang WEI, Xiaomeng LIU. Dual-channel multimodal sentiment analysis model based on contrast invariance and reinforcement specificity [J]. Journal of Computer Applications, 2026, 46(6): 1767-1775. |
| [4] | Qianfei WANG, Yang LI, Deyu LI, Suge WANG. Dual-channel feature fusion representation method for short-text clustering based on large language model [J]. Journal of Computer Applications, 2026, 46(5): 1441-1449. |
| [5] | Ruirui SONG, Leichun WANG, Yunping HE, Jinxiang WEI, Xiangfeng LU, Xiaomeng LIU. Long time series prediction based on hybrid self-attention and differentiated normalization [J]. Journal of Computer Applications, 2026, 46(5): 1499-1506. |
| [6] | Wenhao LI, Yinzhang GUO. Urban traffic flow prediction based on dual-layer multi-scale dynamic graph convolutional network model [J]. Journal of Computer Applications, 2026, 46(4): 1323-1333. |
| [7] | Hu LUO, Mingshu ZHANG. Rumor detection method based on cross-modal attention mechanism and contrastive learning [J]. Journal of Computer Applications, 2026, 46(2): 361-367. |
| [8] | Feng HAN, Yongfeng BU, Haoxiang LIANG, Shuwen HUANG, Zhaoyang ZHANG, Shijie SUN. Vehicle trajectory anomaly detection based on multi-level spatio-temporal interaction dependency [J]. Journal of Computer Applications, 2026, 46(2): 604-612. |
| [9] | Na FAN, Chuang LUO, Zehui ZHANG, Mengyao ZHANG, Ding MU. Semantic privacy protection mechanism of vehicle trajectory based on improved generative adversarial network [J]. Journal of Computer Applications, 2026, 46(1): 169-180. |
| [10] | Xiang WANG, Zhixiang CHEN, Guojun MAO. Multivariate time series prediction method combining local and global correlation [J]. Journal of Computer Applications, 2025, 45(9): 2806-2816. |
| [11] | Chen LIANG, Yisen WANG, Qiang WEI, Jiang DU. Source code vulnerability detection method based on Transformer-GCN [J]. Journal of Computer Applications, 2025, 45(7): 2296-2303. |
| [12] | Xiaoqiang ZHAO, Yongyong LIU, Yongyong HUI, Kai LIU. Batch process quality prediction model using improved time-domain convolutional network with multi-head self-attention mechanism [J]. Journal of Computer Applications, 2025, 45(7): 2245-2252. |
| [13] | Quan WANG, Qixiang LU, Pei SHI. Multi-graph diffusion attention network for traffic flow prediction [J]. Journal of Computer Applications, 2025, 45(5): 1472-1479. |
| [14] | Hui LI, Bingzhi JIA, Chenxi WANG, Ziyu DONG, Jilong LI, Zhaoman ZHONG, Yanyan CHEN. Generative adversarial network underwater image enhancement model based on Swin Transformer [J]. Journal of Computer Applications, 2025, 45(5): 1439-1446. |
| [15] | Kunyuan JIANG, Xiaoxia LI, Li WANG, Yaodan CAO, Xiaoqiang ZHANG, Nan DING, Yingyue ZHOU. Boundary-cross supervised semantic segmentation network with decoupled residual self-attention [J]. Journal of Computer Applications, 2025, 45(4): 1120-1129. |
| Viewed | ||||||
|
Full text |
|
|||||
|
Abstract |
|
|||||