{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/t-gcn-a-temporal-graph-convolutionalnetwork","title":"T-GCN: A Temporal Graph ConvolutionalNetwork for Traffic Prediction","arxiv_id":"1811.05320","date":"2018-11-12","proceeding":null,"authors":["Ling Zhao","Yujiao Song","Chao Zhang","Yu Liu","Pu Wang","Tao Lin","Min Deng","Haifeng Li"],"abstract":"Accurate and real-time traffic forecasting plays an important role in the\nIntelligent Traffic System and is of great significance for urban traffic\nplanning, traffic management, and traffic control. However, traffic forecasting\nhas always been considered an open scientific issue, owing to the constraints\nof urban road network topological structure and the law of dynamic change with\ntime, namely, spatial dependence and temporal dependence. To capture the\nspatial and temporal dependence simultaneously, we propose a novel neural\nnetwork-based traffic forecasting method, the temporal graph convolutional\nnetwork (T-GCN) model, which is in combination with the graph convolutional\nnetwork (GCN) and gated recurrent unit (GRU). Specifically, the GCN is used to\nlearn complex topological structures to capture spatial dependence and the\ngated recurrent unit is used to learn dynamic changes of traffic data to\ncapture temporal dependence. Then, the T-GCN model is employed to traffic\nforecasting based on the urban road network. Experiments demonstrate that our\nT-GCN model can obtain the spatio-temporal correlation from traffic data and\nthe predictions outperform state-of-art baselines on real-world traffic\ndatasets. Our tensorflow implementation of the T-GCN is available at\nhttps://github.com/lehaifeng/T-GCN.","url_abs":"http://arxiv.org/abs/1811.05320v3","url_pdf":"http://arxiv.org/pdf/1811.05320v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/lehaifeng/T-GCN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/R4h4/AIforSEA_Traffic_Management","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/benedekrozemberczki/pytorch_geometric_temporal","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/martinwhl/T-GCN-PyTorch","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/pursuer0123/T-GCN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/yangjun1994/CAGCN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/zouchangjie/T-GCN--------","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok"}},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/MindSpore-paper-code-2/code3/tree/main/tgcn","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/MindSpore-paper-code-2/code399/tree/main/GCN","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null},{"paper_slug":"t-gcn-a-temporal-graph-convolutionalnetwork","repo_url":"https://github.com/mindspore-ai/models/blob/master/research/cv/tgcn/","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"mindspore","reach":null}],"tasks":[{"task_slug":"management","task_name":"Management"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"traffic-prediction","task_name":"Traffic Prediction"}],"methods":[{"method_slug":"gcn","method_name":"GCN"}],"datasets_introduced":[{"slug":"sz-taxi","name":"SZ-Taxi","full_name":"Shenzhen Taxi Speed"}],"methods_introduced":[],"results":[{"leaderboard":"/sota/traffic-prediction-on-sz-taxi","task":"Traffic Prediction","dataset":"SZ-Taxi","model":"GRU","rank_in_archive_order":4,"of":5,"metrics":{"MAE @ 15min":"2.6814","MAE @ 30min":"2.7009","MAE @ 45min":"2.7207","MAE @ 60min":"2.7431"},"uses_additional_data":false},{"leaderboard":"/sota/traffic-prediction-on-sz-taxi","task":"Traffic Prediction","dataset":"SZ-Taxi","model":"T-GCN","rank_in_archive_order":5,"of":5,"metrics":{"MAE @ 15min":"2.7061","MAE @ 30min":"2.7452","MAE @ 45min":"2.7666","MAE @ 60min":"2.7889"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1811.05320","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1811.05320"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/benedekrozemberczki/pytorch_geometric_temporal","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yangjun1994/CAGCN","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MindSpore-paper-code-2/code399/tree/main/GCN","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/MindSpore-paper-code-2/code3/tree/main/tgcn","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/martinwhl/T-GCN-PyTorch","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pursuer0123/T-GCN","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/lehaifeng/T-GCN","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/R4h4/AIforSEA_Traffic_Management","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mindspore-ai/models/blob/master/research/cv/tgcn/","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zouchangjie/T-GCN--------","reach":{"status":"ok"}}],"summary":{"unverified":5},"by_repo_kind":{"listed":{"samples":5,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"814a89361d5f8275","entry":"accuracy","repo":"martinwhl/T-GCN-PyTorch","repo_kind":"listed","path":"utils/metrics.py","file_url":"https://github.com/martinwhl/T-GCN-PyTorch/blob/HEAD/utils/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"814a89361d5f8275"}},{"code_sha256_prefix":"76f4329957d2659c","entry":"calculate_laplacian_with_self_loop","repo":"martinwhl/T-GCN-PyTorch","repo_kind":"listed","path":"utils/graph_conv.py","file_url":"https://github.com/martinwhl/T-GCN-PyTorch/blob/HEAD/utils/graph_conv.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"76f4329957d2659c"}},{"code_sha256_prefix":"ce1537180e1d98a6","entry":"explained_variance","repo":"martinwhl/T-GCN-PyTorch","repo_kind":"listed","path":"utils/metrics.py","file_url":"https://github.com/martinwhl/T-GCN-PyTorch/blob/HEAD/utils/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ce1537180e1d98a6"}},{"code_sha256_prefix":"945557d540ec7991","entry":"mse_with_regularizer_loss","repo":"martinwhl/T-GCN-PyTorch","repo_kind":"listed","path":"utils/losses.py","file_url":"https://github.com/martinwhl/T-GCN-PyTorch/blob/HEAD/utils/losses.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"945557d540ec7991"}},{"code_sha256_prefix":"aad50acb99c1b62c","entry":"r2","repo":"martinwhl/T-GCN-PyTorch","repo_kind":"listed","path":"utils/metrics.py","file_url":"https://github.com/martinwhl/T-GCN-PyTorch/blob/HEAD/utils/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"aad50acb99c1b62c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}