{"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/st-moe-bert-a-spatial-temporal-mixture-of","title":"ST-MoE-BERT: A Spatial-Temporal Mixture-of-Experts Framework for Long-Term Cross-City Mobility Prediction","arxiv_id":"2410.14099","date":"2024-10-18","proceeding":null,"authors":["Haoyu He","Haozheng Luo","Qi R. Wang"],"abstract":"Predicting human mobility across multiple cities presents significant challenges due to the complex and diverse spatial-temporal dynamics inherent in different urban environments. In this study, we propose a robust approach to predict human mobility patterns called ST-MoE-BERT. Compared to existing methods, our approach frames the prediction task as a spatial-temporal classification problem. Our methodology integrates the Mixture-of-Experts architecture with BERT model to capture complex mobility dynamics and perform the downstream human mobility prediction task. Additionally, transfer learning is integrated to solve the challenge of data scarcity in cross-city prediction. We demonstrate the effectiveness of the proposed model on GEO-BLEU and DTW, comparing it to several state-of-the-art methods. Notably, ST-MoE-BERT achieves an average improvement of 8.29%.","url_abs":"https://arxiv.org/abs/2410.14099v1","url_pdf":"https://arxiv.org/pdf/2410.14099v1.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":"st-moe-bert-a-spatial-temporal-mixture-of","repo_url":"https://github.com/he-h/HuMob","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"human-dynamics","task_name":"Human Dynamics"},{"task_slug":"mixture-of-experts","task_name":"Mixture-of-Experts"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"trajectory-prediction","task_name":"Trajectory Prediction"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bert","method_name":"BERT"},{"method_slug":"dtw","method_name":"DTW"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-linear-decay","method_name":"Linear Warmup With Linear Decay"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"weight-decay","method_name":"Weight Decay"},{"method_slug":"wordpiece","method_name":"WordPiece"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/trajectory-prediction-on-yjmob100k-b","task":"Trajectory Prediction","dataset":"YJMob100K@B","model":"ST-MoE-BERT","rank_in_archive_order":1,"of":1,"metrics":{"Accuracy":"28.7","BLEU":"29.7","DTW R@1":"29.3"},"uses_additional_data":false},{"leaderboard":"/sota/trajectory-prediction-on-yjmob100k-c","task":"Trajectory Prediction","dataset":"YJMob100K@C","model":"ST-MoE-BERT","rank_in_archive_order":1,"of":1,"metrics":{"Accuracy":"28.9","BLEU":"29.7","DTW R@1":"19.7"},"uses_additional_data":false},{"leaderboard":"/sota/trajectory-prediction-on-yjmob100k-d","task":"Trajectory Prediction","dataset":"YJMob100K@D","model":"ST-MoE-BERT","rank_in_archive_order":1,"of":1,"metrics":{"Accuracy":"26.5","BLEU":"30","DTW R@1":"48.1"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.14099","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.14099"}},"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/he-h/HuMob","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":7,"ran":4,"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":"f7e9b353b7645b15","entry":"convert_label_back","repo":"he-h/HuMob","repo_kind":"official","path":"utils.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f7e9b353b7645b15"}},{"code_sha256_prefix":"699f7c1e3d4279ce","entry":"generate_sequence","repo":"he-h/HuMob","repo_kind":"official","path":"predict.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/predict.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"699f7c1e3d4279ce"}},{"code_sha256_prefix":"e0bbb169af336b28","entry":"iterative_mobility_prediction","repo":"he-h/HuMob","repo_kind":"official","path":"predict.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/predict.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0bbb169af336b28"}},{"code_sha256_prefix":"88edd60acaba580a","entry":"load_data","repo":"he-h/HuMob","repo_kind":"official","path":"utils.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"88edd60acaba580a"}},{"code_sha256_prefix":"d1dcd40a1ed54ce8","entry":"hf_predict_location","repo":"he-h/HuMob","repo_kind":"official","path":"model.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/model.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":"d1dcd40a1ed54ce8"}},{"code_sha256_prefix":"a9f057d90d5791b1","entry":"mobility_generation_evaluation","repo":"he-h/HuMob","repo_kind":"official","path":"predict.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/predict.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":"a9f057d90d5791b1"}},{"code_sha256_prefix":"5cd2932636119481","entry":"split_df_by_uid","repo":"he-h/HuMob","repo_kind":"official","path":"data_loader.py","file_url":"https://github.com/he-h/HuMob/blob/HEAD/data_loader.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":"5cd2932636119481"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}