{"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/unsupervised-motion-representation-learning","title":"Unsupervised Motion Representation Learning with Capsule Autoencoders","arxiv_id":"2110.00529","date":"2021-10-01","proceeding":"NeurIPS 2021 12","authors":["Ziwei Xu","Xudong Shen","Yongkang Wong","Mohan S Kankanhalli"],"abstract":"We propose the Motion Capsule Autoencoder (MCAE), which addresses a key challenge in the unsupervised learning of motion representations: transformation invariance. MCAE models motion in a two-level hierarchy. In the lower level, a spatio-temporal motion signal is divided into short, local, and semantic-agnostic snippets. In the higher level, the snippets are aggregated to form full-length semantic-aware segments. For both levels, we represent motion with a set of learned transformation invariant templates and the corresponding geometric transformations by using capsule autoencoders of a novel design. This leads to a robust and efficient encoding of viewpoint changes. MCAE is evaluated on a novel Trajectory20 motion dataset and various real-world skeleton-based human action datasets. Notably, it achieves better results than baselines on Trajectory20 with considerably fewer parameters and state-of-the-art performance on the unsupervised skeleton-based action recognition task.","url_abs":"https://arxiv.org/abs/2110.00529v1","url_pdf":"https://arxiv.org/pdf/2110.00529v1.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":"unsupervised-motion-representation-learning","repo_url":"https://github.com/ZiweiXU/CapsuleMotion","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"action-recognition-in-videos","task_name":"Action Recognition"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"self-supervised-human-action-recognition","task_name":"Self-Supervised Human Action Recognition"},{"task_slug":"skeleton-based-action-recognition","task_name":"Skeleton Based Action Recognition"},{"task_slug":"unsupervised-skeleton-based-action","task_name":"Unsupervised Skeleton Based Action Recognition"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/self-supervised-human-action-recognition-on","task":"Self-Supervised Human Action Recognition","dataset":"NTU RGB+D 120","model":"MCAE","rank_in_archive_order":4,"of":8,"metrics":{"Classifier":"FC","Encoder":"MCAE","xset (%)":"54.7","xsub (%)":"52.8"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2110.00529","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.00529"}},"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/ZiweiXU/CapsuleMotion","reach":null}],"summary":{"ran":5,"ran_violates":2,"ran_fixture":3,"ran_draft_wrong":4,"ran_honours":1,"unverified":5},"by_repo_kind":{"official":{"samples":20,"ran":15,"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":"791124774ac72001","entry":"BatchLinear","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.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":"791124774ac72001"}},{"code_sha256_prefix":"67a918cc07243e1d","entry":"SegmentDecoder","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.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":"67a918cc07243e1d"}},{"code_sha256_prefix":"4e176ccdd110ccc3","entry":"SegmentEncoder","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.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":"4e176ccdd110ccc3"}},{"code_sha256_prefix":"9d5043f4be759579","entry":"SnippetEncoder","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.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":"9d5043f4be759579"}},{"code_sha256_prefix":"6d4d34062e1c5530","entry":"compact_pose","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6d4d34062e1c5530"}},{"code_sha256_prefix":"2e5f0a62fa71eea9","entry":"compact_pose_3d","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2e5f0a62fa71eea9"}},{"code_sha256_prefix":"626bb1811a1b7445","entry":"constrain_pose","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"626bb1811a1b7445"}},{"code_sha256_prefix":"e1661d691e4a901a","entry":"constrain_pose_3d","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e1661d691e4a901a"}},{"code_sha256_prefix":"9efa4b606d03159d","entry":"expand_pose","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9efa4b606d03159d"}},{"code_sha256_prefix":"bf75b48517195b2b","entry":"fixed_template_initializer","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bf75b48517195b2b"}},{"code_sha256_prefix":"6b422476f7a75d45","entry":"full_pose","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6b422476f7a75d45"}},{"code_sha256_prefix":"dbac1fbe39d62402","entry":"full_pose_3d","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dbac1fbe39d62402"}},{"code_sha256_prefix":"164fc00eb042e928","entry":"init_truncated_normal","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"164fc00eb042e928"}},{"code_sha256_prefix":"3aa0d94122193b9e","entry":"loss_fn","repo":"ziweixu/capsulemotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ziweixu/capsulemotion/blob/HEAD/lib/mcae/model.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3aa0d94122193b9e"}},{"code_sha256_prefix":"a5e44072bb9d9d5d","entry":"myself","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/model.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":"a5e44072bb9d9d5d"}},{"code_sha256_prefix":"efbad1cbdacbe091","entry":"MCAE","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/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":"efbad1cbdacbe091"}},{"code_sha256_prefix":"335cc3b992ddaf73","entry":"Module","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/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":"335cc3b992ddaf73"}},{"code_sha256_prefix":"07fdb5a4536b7a31","entry":"SnippetDecoder","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/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":"07fdb5a4536b7a31"}},{"code_sha256_prefix":"f7fcffe777530157","entry":"_truncated_normal","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/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":"f7fcffe777530157"}},{"code_sha256_prefix":"a393a223aba0b7cb","entry":"fixed_template_initializer_3d","repo":"ZiweiXU/CapsuleMotion","repo_kind":"official","path":"lib/mcae/model.py","file_url":"https://github.com/ZiweiXU/CapsuleMotion/blob/HEAD/lib/mcae/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":"a393a223aba0b7cb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}