{"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/self-supervised-time-to-event-modeling-with","title":"MOTOR: A Time-To-Event Foundation Model For Structured Medical Records","arxiv_id":"2301.03150","date":"2023-01-09","proceeding":null,"authors":["Ethan Steinberg","Jason Fries","Yizhe Xu","Nigam Shah"],"abstract":"We present a self-supervised, time-to-event (TTE) foundation model called MOTOR (Many Outcome Time Oriented Representations) which is pretrained on timestamped sequences of events in electronic health records (EHR) and health insurance claims. TTE models are used for estimating the probability distribution of the time until a specific event occurs, which is an important task in medical settings. TTE models provide many advantages over classification using fixed time horizons, including naturally handling censored observations, but are challenging to train with limited labeled data. MOTOR addresses this challenge by pretraining on up to 55M patient records (9B clinical events). We evaluate MOTOR's transfer learning performance on 19 tasks, across 3 patient databases (a private EHR system, MIMIC-IV, and Merative claims data). Task-specific models adapted from MOTOR improve time-dependent C statistics by 4.6% over state-of-the-art, improve label efficiency by up to 95% ,and are more robust to temporal distributional shifts. We further evaluate cross-site portability by adapting our MOTOR foundation model for six prediction tasks on the MIMIC-IV dataset, where it outperforms all baselines. MOTOR is the first foundation model for medical TTE predictions and we release a 143M parameter pretrained model for research use at [redacted URL].","url_abs":"https://arxiv.org/abs/2301.03150v4","url_pdf":"https://arxiv.org/pdf/2301.03150v4.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":"self-supervised-time-to-event-modeling-with","repo_url":"https://github.com/reAIM-Lab/ehr_foundation_model_benchmark","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok"}},{"paper_slug":"self-supervised-time-to-event-modeling-with","repo_url":"https://github.com/som-shahlab/femr","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2301.03150","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2301.03150"}},"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/reAIM-Lab/ehr_foundation_model_benchmark","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/som-shahlab/femr","reach":{"status":"ok","spdx":"Apache-2.0"}}],"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":"b90e19e17f365432","entry":"compute_random_num","repo":"som-shahlab/femr","repo_kind":"listed","path":"src/femr/labelers/core.py","file_url":"https://github.com/som-shahlab/femr/blob/HEAD/src/femr/labelers/core.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b90e19e17f365432"}},{"code_sha256_prefix":"ca4e735e2b486476","entry":"generate_hash_split","repo":"som-shahlab/femr","repo_kind":"listed","path":"src/femr/splits.py","file_url":"https://github.com/som-shahlab/femr/blob/HEAD/src/femr/splits.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ca4e735e2b486476"}},{"code_sha256_prefix":"ece7d664c54e244b","entry":"identity","repo":"som-shahlab/femr","repo_kind":"listed","path":"src/femr/labelers/omop.py","file_url":"https://github.com/som-shahlab/femr/blob/HEAD/src/femr/labelers/omop.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ece7d664c54e244b"}},{"code_sha256_prefix":"285c9b342cab7323","entry":"join_labels","repo":"som-shahlab/femr","repo_kind":"listed","path":"src/femr/featurizers/core.py","file_url":"https://github.com/som-shahlab/femr/blob/HEAD/src/femr/featurizers/core.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"285c9b342cab7323"}},{"code_sha256_prefix":"5b71dab7458e5a60","entry":"move_datetime_to_end_of_day","repo":"som-shahlab/femr","repo_kind":"listed","path":"src/femr/labelers/omop.py","file_url":"https://github.com/som-shahlab/femr/blob/HEAD/src/femr/labelers/omop.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5b71dab7458e5a60"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}