{"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/temporal-label-smoothing-for-early-prediction","title":"Temporal Label Smoothing for Early Event Prediction","arxiv_id":"2208.13764","date":"2022-08-29","proceeding":null,"authors":["Hugo Yèche","Alizée Pace","Gunnar Rätsch","Rita Kuznetsova"],"abstract":"Models that can predict the occurrence of events ahead of time with low false-alarm rates are critical to the acceptance of decision support systems in the medical community. This challenging task is typically treated as a simple binary classification, ignoring temporal dependencies between samples, whereas we propose to exploit this structure. We first introduce a common theoretical framework unifying dynamic survival analysis and early event prediction. Following an analysis of objectives from both fields, we propose Temporal Label Smoothing (TLS), a simpler, yet best-performing method that preserves prediction monotonicity over time. By focusing the objective on areas with a stronger predictive signal, TLS improves performance over all baselines on two large-scale benchmark tasks. Gains are particularly notable along clinically relevant measures, such as event recall at low false-alarm rates. TLS reduces the number of missed events by up to a factor of two over previously used approaches in early event prediction.","url_abs":"https://arxiv.org/abs/2208.13764v2","url_pdf":"https://arxiv.org/pdf/2208.13764v2.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":"temporal-label-smoothing-for-early-prediction","repo_url":"https://github.com/ratschlab/tls","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"binary-classification","task_name":"Binary Classification"},{"task_slug":"circulatory-failure","task_name":"Circulatory Failure"},{"task_slug":null,"task_name":"Decompensation"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":"respiratory-failure","task_name":"Respiratory Failure"},{"task_slug":"survival-analysis","task_name":"Survival Analysis"}],"methods":[{"method_slug":"label-smoothing","method_name":"Label Smoothing"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/circulatory-failure-on-hirid","task":"Circulatory Failure","dataset":"HiRID","model":"Temporal Label Smoothing","rank_in_archive_order":1,"of":8,"metrics":{"AUPRC":"0.406±0.003","Recall@50":"32.3"},"uses_additional_data":false},{"leaderboard":"/sota/respiratory-failure-on-hirid","task":"Respiratory Failure","dataset":"HiRID","model":"Temporal Label Smoothing","rank_in_archive_order":1,"of":8,"metrics":{"AUPRC":"0.604±0.002","Recall@50":"77.0"},"uses_additional_data":false}],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2208.13764","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2208.13764"}},"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/ratschlab/tls","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":2,"unverified":7},"by_repo_kind":{"official":{"samples":9,"ran":2,"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":"98ad0404a78f5d45","entry":"convert_to_days","repo":"ratschlab/tls","repo_kind":"official","path":"tls/common/reference_data.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/common/reference_data.py","link_basis":"harvester_set","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":"98ad0404a78f5d45"}},{"code_sha256_prefix":"1ecd73f1856cbb81","entry":"read_var_ref_table","repo":"ratschlab/tls","repo_kind":"official","path":"tls/common/lookups.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/common/lookups.py","link_basis":"harvester_set","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":"1ecd73f1856cbb81"}},{"code_sha256_prefix":"1c03c99fc1eb6fbc","entry":"empty_nan","repo":"ratschlab/tls","repo_kind":"official","path":"tls/imputation/forward_filling.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/imputation/forward_filling.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":"1c03c99fc1eb6fbc"}},{"code_sha256_prefix":"6d87c1d63e7ac8cc","entry":"focal_binary_loss","repo":"ratschlab/tls","repo_kind":"official","path":"tls/models/wrappers.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/models/wrappers.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":"6d87c1d63e7ac8cc"}},{"code_sha256_prefix":"c65973cef1e29a52","entry":"get_bindings_and_params","repo":"ratschlab/tls","repo_kind":"official","path":"tls/models/utils.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/models/utils.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":"c65973cef1e29a52"}},{"code_sha256_prefix":"7fc26bec29f4f1f1","entry":"impute_forward_fill_simple","repo":"ratschlab/tls","repo_kind":"official","path":"tls/imputation/forward_filling.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/imputation/forward_filling.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":"7fc26bec29f4f1f1"}},{"code_sha256_prefix":"7f114cf718fb901b","entry":"l1_reg","repo":"ratschlab/tls","repo_kind":"official","path":"tls/models/wrappers.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/models/wrappers.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":"7f114cf718fb901b"}},{"code_sha256_prefix":"b37afd4624d8fae8","entry":"read_reference_table","repo":"ratschlab/tls","repo_kind":"official","path":"tls/common/lookups.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/common/lookups.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":"b37afd4624d8fae8"}},{"code_sha256_prefix":"c01e90a52c34ee1a","entry":"value_empty","repo":"ratschlab/tls","repo_kind":"official","path":"tls/imputation/forward_filling.py","file_url":"https://github.com/ratschlab/tls/blob/HEAD/tls/imputation/forward_filling.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":"c01e90a52c34ee1a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}