HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Pattern-Matching Dynamic Memory Network for Dual-Mode Traffic Prediction

Wenchao Weng Mei Wu Hanyu Jiang Wanzeng Kong Xiangjie Kong Feng Xia

Pattern-Matching Dynamic Memory Network for Dual-Mode Traffic Prediction

Abstract

In recent years, deep learning has increasingly gained attention in the field of traffic prediction. Existing traffic prediction models often rely on GCNs or attention mechanisms with O(N^2) complexity to dynamically extract traffic node features, which lack efficiency and are not lightweight. Additionally, these models typically only utilize historical data for prediction, without considering the impact of the target information on the prediction. To address these issues, we propose a Pattern-Matching Dynamic Memory Network (PM-DMNet). PM-DMNet employs a novel dynamic memory network to capture traffic pattern features with only O(N) complexity, significantly reducing computational overhead while achieving excellent performance. The PM-DMNet also introduces two prediction methods: Recursive Multi-step Prediction (RMP) and Parallel Multi-step Prediction (PMP), which leverage the time features of the prediction targets to assist in the forecasting process. Furthermore, a transfer attention mechanism is integrated into PMP, transforming historical data features to better align with the predicted target states, thereby capturing trend changes more accurately and reducing errors. Extensive experiments demonstrate the superiority of the proposed model over existing benchmarks. The source codes are available at: https://github.com/wengwenchao123/PM-DMNet.

Code Repositories

wengwenchao123/PM-DMNet
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
traffic-prediction-on-pems07PM-DMNet(P)
MAE@1h: 19.35
traffic-prediction-on-pems07PM-DMnet(R)
MAE@1h: 19.18
traffic-prediction-on-pems08PM-DMNet(P)
MAE@1h: 13.55
traffic-prediction-on-pems08PM-DMNet(R)
MAE@1h: 13.40
traffic-prediction-on-pemsd4PM-DMNet(R)
12 steps MAE: 18.37
12 steps MAPE: 12.01
12 steps RMSE: 30.68
traffic-prediction-on-pemsd4PM-DMNet(P)
12 steps MAE: 18.34
12 steps MAPE: 12.05
12 steps RMSE: 30.36
traffic-prediction-on-pemsd7PM-DMNet(R)
12 steps MAE: 19.18
12 steps MAPE: 7.95
12 steps RMSE: 33.15
traffic-prediction-on-pemsd7PM-DMNet(P)
12 steps MAE: 19.35
12 steps MAPE: 8.05
12 steps RMSE: 33.33
traffic-prediction-on-pemsd7-lPM-DMNet(R)
12 steps MAE: 2.79
12 steps MAPE: 6.99
12 steps RMSE: 5.81
traffic-prediction-on-pemsd7-lPM-DMNet(P)
12 steps MAE: 2.81
12 steps MAPE: 7.13
12 steps RMSE: 5.79
traffic-prediction-on-pemsd7-mPM-DMNet(R)
12 steps MAE: 2.60
12 steps MAPE: 6.57
12 steps RMSE: 5.36
traffic-prediction-on-pemsd7-mPM-DMNet(P)
12 steps MAE: 2.61
12 steps MAPE: 6.55
12 steps RMSE: 5.33
traffic-prediction-on-pemsd8PM-DMNet(P)
12 steps MAE: 13.55
12 steps MAPE: 9.04
12 steps RMSE: 23.35
traffic-prediction-on-pemsd8PM-DMNet(R)
12 steps MAE: 13.40
12 steps MAPE: 8.87
12 steps RMSE: 23.22

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Pattern-Matching Dynamic Memory Network for Dual-Mode Traffic Prediction | Papers | HyperAI