{"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/trajgail-generating-urban-trajectories-using","title":"TrajGAIL: Generating Urban Vehicle Trajectories using Generative Adversarial Imitation Learning","arxiv_id":"2007.14189","date":"2020-07-28","proceeding":null,"authors":["Seongjin Choi","Jiwon Kim","Hwasoo Yeo"],"abstract":"Recently, an abundant amount of urban vehicle trajectory data has been collected in road networks. Many studies have used machine learning algorithms to analyze patterns in vehicle trajectories to predict location sequences of individual travelers. Unlike the previous studies that used a discriminative modeling approach, this research suggests a generative modeling approach to learn the underlying distributions of urban vehicle trajectory data. A generative model for urban vehicle trajectories can better generalize from training data by learning the underlying distribution of the training data and, thus, produce synthetic vehicle trajectories similar to real vehicle trajectories with limited observations. Synthetic trajectories can provide solutions to data sparsity or data privacy issues in using location data. This research proposesTrajGAIL, a generative adversarial imitation learning framework for the urban vehicle trajectory generation. In TrajGAIL, learning location sequences in observed trajectories is formulated as an imitation learning problem in a partially observable Markov decision process. The model is trained by the generative adversarial framework, which uses the reward function from the adversarial discriminator. The model is tested with both simulation and real-world datasets, and the results show that the proposed model obtained significant performance gains compared to existing models in sequence modeling.","url_abs":"https://arxiv.org/abs/2007.14189v4","url_pdf":"https://arxiv.org/pdf/2007.14189v4.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":"trajgail-generating-urban-trajectories-using","repo_url":"https://github.com/benchoi93/TrajGAIL","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"imitation-learning","task_name":"Imitation Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2007.14189","atlas_url":"https://app.syntology.ai/?focus=2007.14189","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2007.14189"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/benchoi93/TrajGAIL","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":6},"by_repo_kind":{"official":{"samples":6,"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":"dd3cd8c6570cec9d","entry":"atanh","repo":"benchoi93/TrajGAIL","repo_kind":"official","path":"models/gail/algo/gailrnn_pytorch.py","file_url":"https://github.com/benchoi93/TrajGAIL/blob/HEAD/models/gail/algo/gailrnn_pytorch.py","link_basis":"first_harvest_node","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":"dd3cd8c6570cec9d"}},{"code_sha256_prefix":"4a87cdc2e38d0bbc","entry":"get_gae","repo":"benchoi93/TrajGAIL","repo_kind":"official","path":"models/utils/utils.py","file_url":"https://github.com/benchoi93/TrajGAIL/blob/HEAD/models/utils/utils.py","link_basis":"first_harvest_node","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":"4a87cdc2e38d0bbc"}},{"code_sha256_prefix":"86fb605417e1f52d","entry":"plot_barchart","repo":"benchoi93/TrajGAIL","repo_kind":"official","path":"models/utils/plotutils.py","file_url":"https://github.com/benchoi93/TrajGAIL/blob/HEAD/models/utils/plotutils.py","link_basis":"first_harvest_node","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":"86fb605417e1f52d"}},{"code_sha256_prefix":"ab4b341a80f95531","entry":"plot_linechart","repo":"benchoi93/TrajGAIL","repo_kind":"official","path":"models/utils/plotutils.py","file_url":"https://github.com/benchoi93/TrajGAIL/blob/HEAD/models/utils/plotutils.py","link_basis":"first_harvest_node","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":"ab4b341a80f95531"}},{"code_sha256_prefix":"356be03c1a22c14a","entry":"trajs_squeezedtensor","repo":"benchoi93/TrajGAIL","repo_kind":"official","path":"models/utils/utils.py","file_url":"https://github.com/benchoi93/TrajGAIL/blob/HEAD/models/utils/utils.py","link_basis":"first_harvest_node","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":"356be03c1a22c14a"}},{"code_sha256_prefix":"72e50023e8e3c30e","entry":"unsqueeze_trajs","repo":"benchoi93/TrajGAIL","repo_kind":"official","path":"models/utils/utils.py","file_url":"https://github.com/benchoi93/TrajGAIL/blob/HEAD/models/utils/utils.py","link_basis":"first_harvest_node","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":"72e50023e8e3c30e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}