Development and Evaluation of Embeddings for Representing Injuries in Patients With Traumatic Injuries: Retrospective Cohort Study.

IF 5 3区 医学 Q2 MEDICAL INFORMATICS
Kelvin Szolnoky, Jonatan Attergrim, Awais Ashfaq, Henrik Linusson, Martin Gerdin Wärnberg, Johanna Berg
{"title":"Development and Evaluation of Embeddings for Representing Injuries in Patients With Traumatic Injuries: Retrospective Cohort Study.","authors":"Kelvin Szolnoky, Jonatan Attergrim, Awais Ashfaq, Henrik Linusson, Martin Gerdin Wärnberg, Johanna Berg","doi":"10.2196/91298","DOIUrl":null,"url":null,"abstract":"<p><strong>Background: </strong>Patients with traumatic injuries present with heterogeneous injury patterns that are difficult to represent in statistical models. Common approaches either retain individual injury codes in high-dimensional sparse representations, such as one-hot encoding, or aggregate injuries into summary scores, reducing dimensionality at the cost of patient-specific detail.</p><p><strong>Objective: </strong>This study aimed to develop low-dimensional data-driven ICD-10 embeddings for traumatic injuries and compare their downstream discriminatory performance with one-hot encoding of the same injury codes.</p><p><strong>Methods: </strong>We conducted a retrospective study using National Trauma Data Bank (NTDB) records from 2018 and 2019. International Classification of Diseases, Tenth Revision, Clinical Modification diagnoses were mapped to World Health Organization ICD-10 codes, retaining traumatic-injury codes S00-S99 and T15-T34. A denoising autoencoder was developed on 2018 data and temporally evaluated on 2019 data. Representations with 2, 4, 8, 16, 32, and 64 dimensions were compared with one-hot encoding across 16 downstream tasks using logistic regression and LightGBM. Performance was measured by the area under the receiver operating characteristic curve (AUC) for binary tasks and macro one-vs-rest AUC for multiclass tasks. Models were trained and evaluated within individual hospitals and separately on the full NTDB. Hospitals were stratified into volume categories, from small (≤500) to major (2500 patients/year). CIs were obtained from 1000 nonparametric bootstrap samples.</p><p><strong>Results: </strong>The development cohort included 1,041,021 eligible patients from 2018, and the temporal evaluation cohort included 1,094,933 patients from 2019. At the hospital level, embeddings outperformed one-hot encoding. With LightGBM at 16 dimensions, the mean paired AUC difference across tasks was 0.054 (95% CI 0.048-0.060) in small hospitals (n=120) vs 0.023 (95% CI 0.020-0.025) in major hospitals (n=99). With logistic regression, differences were 0.056 (95% CI 0.050-0.063) and 0.041 (95% CI 0.039-0.043), respectively. In the full NTDB, 803-indicator one-hot encoding outperformed embeddings. Mean differences were -0.004 (95% CI -0.004 to -0.003) with LightGBM and -0.030 (95% CI -0.030 to -0.029) with logistic regression. At 64 dimensions, these differences narrowed to -0.001 and -0.016, respectively.</p><p><strong>Conclusions: </strong>Embeddings with as few as 8 dimensions achieved predictive performance comparable to or better than one-hot encoding, with up to a 100-fold reduction in dimensionality. Compared to one-hot encoding, embeddings improved performance in models trained at individual hospitals, particularly lower-volume hospitals. These gains may reflect reduced dimensionality, parameter sharing across codes, and representation of codes absent from hospital-specific training data, enabled by embeddings learned from the larger development cohort. In models trained on the full registry, one-hot encoding achieved higher mean AUC with both estimators, although the differences were minor (<0.005 AUC difference) for LightGBM with 16- to 64-dimensional embeddings. The embeddings and software are openly available.</p>","PeriodicalId":56334,"journal":{"name":"JMIR Medical Informatics","volume":"14 ","pages":"e91298"},"PeriodicalIF":5.0000,"publicationDate":"2026-11-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"JMIR Medical Informatics","FirstCategoryId":"3","ListUrlMain":"https://doi.org/10.2196/91298","RegionNum":3,"RegionCategory":"医学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"MEDICAL INFORMATICS","Score":null,"Total":0}
引用次数: 0

Abstract

Background: Patients with traumatic injuries present with heterogeneous injury patterns that are difficult to represent in statistical models. Common approaches either retain individual injury codes in high-dimensional sparse representations, such as one-hot encoding, or aggregate injuries into summary scores, reducing dimensionality at the cost of patient-specific detail.

Objective: This study aimed to develop low-dimensional data-driven ICD-10 embeddings for traumatic injuries and compare their downstream discriminatory performance with one-hot encoding of the same injury codes.

Methods: We conducted a retrospective study using National Trauma Data Bank (NTDB) records from 2018 and 2019. International Classification of Diseases, Tenth Revision, Clinical Modification diagnoses were mapped to World Health Organization ICD-10 codes, retaining traumatic-injury codes S00-S99 and T15-T34. A denoising autoencoder was developed on 2018 data and temporally evaluated on 2019 data. Representations with 2, 4, 8, 16, 32, and 64 dimensions were compared with one-hot encoding across 16 downstream tasks using logistic regression and LightGBM. Performance was measured by the area under the receiver operating characteristic curve (AUC) for binary tasks and macro one-vs-rest AUC for multiclass tasks. Models were trained and evaluated within individual hospitals and separately on the full NTDB. Hospitals were stratified into volume categories, from small (≤500) to major (2500 patients/year). CIs were obtained from 1000 nonparametric bootstrap samples.

Results: The development cohort included 1,041,021 eligible patients from 2018, and the temporal evaluation cohort included 1,094,933 patients from 2019. At the hospital level, embeddings outperformed one-hot encoding. With LightGBM at 16 dimensions, the mean paired AUC difference across tasks was 0.054 (95% CI 0.048-0.060) in small hospitals (n=120) vs 0.023 (95% CI 0.020-0.025) in major hospitals (n=99). With logistic regression, differences were 0.056 (95% CI 0.050-0.063) and 0.041 (95% CI 0.039-0.043), respectively. In the full NTDB, 803-indicator one-hot encoding outperformed embeddings. Mean differences were -0.004 (95% CI -0.004 to -0.003) with LightGBM and -0.030 (95% CI -0.030 to -0.029) with logistic regression. At 64 dimensions, these differences narrowed to -0.001 and -0.016, respectively.

Conclusions: Embeddings with as few as 8 dimensions achieved predictive performance comparable to or better than one-hot encoding, with up to a 100-fold reduction in dimensionality. Compared to one-hot encoding, embeddings improved performance in models trained at individual hospitals, particularly lower-volume hospitals. These gains may reflect reduced dimensionality, parameter sharing across codes, and representation of codes absent from hospital-specific training data, enabled by embeddings learned from the larger development cohort. In models trained on the full registry, one-hot encoding achieved higher mean AUC with both estimators, although the differences were minor (<0.005 AUC difference) for LightGBM with 16- to 64-dimensional embeddings. The embeddings and software are openly available.

外伤性损伤患者创伤表征嵌入的发展与评价:回顾性队列研究。
背景:外伤性损伤患者存在异质性损伤模式,难以在统计模型中表示。常见的方法要么保留高维稀疏表示的个体损伤代码,例如one-hot编码,要么将损伤汇总为总结分数,以牺牲患者特定细节为代价降低维数。目的:本研究旨在开发低维数据驱动的创伤性损伤ICD-10嵌入,并将其与同一损伤编码的单热编码的下游区分性能进行比较。方法:利用2018年至2019年国家创伤数据库(NTDB)的记录进行回顾性研究。国际疾病分类第十版临床修改诊断与世界卫生组织ICD-10代码相匹配,保留创伤代码S00-S99和T15-T34。基于2018年的数据开发了去噪自编码器,并对2019年的数据进行了临时评估。使用逻辑回归和LightGBM对具有2、4、8、16、32和64个维度的表征与跨16个下游任务的单热编码进行比较。在二元任务和多类任务中,分别用受试者工作特征曲线下面积(AUC)和宏观一对休息曲线下面积(AUC)来衡量受试者的表现。在各个医院和整个NTDB上分别对模型进行了培训和评估。医院按数量分类,从小型(≤500)到大型(2500名患者/年)。ci是从1000个非参数bootstrap样本中获得的。结果:发展队列包括2018年的1,041,021名符合条件的患者,时间评估队列包括2019年的1,094,933名患者。在医院层面,嵌入优于单热编码。在16个维度上使用LightGBM,小医院(n=120)任务间的平均配对AUC差异为0.054 (95% CI 0.048-0.060),大医院(n=99)任务间的平均配对AUC差异为0.023 (95% CI 0.020-0.025)。经logistic回归分析,差异分别为0.056 (95% CI 0.050-0.063)和0.041 (95% CI 0.039-0.043)。在完整的NTDB中,803指示器单热编码优于嵌入。LightGBM的平均差异为-0.004 (95% CI -0.004至-0.003),逻辑回归的平均差异为-0.030 (95% CI -0.030至-0.029)。在64个维度上,这些差异分别缩小到-0.001和-0.016。结论:少至8维的嵌入实现了与单热编码相当或更好的预测性能,维数降低了100倍。与单热编码相比,嵌入提高了在单个医院,特别是小容量医院训练的模型的性能。这些收益可能反映了维数的降低、代码之间的参数共享以及对医院特定训练数据中缺失的代码的表示,这些都是通过从更大的开发队列中学习的嵌入实现的。在全注册表上训练的模型中,单热编码在两个估计器上获得了更高的平均AUC,尽管差异很小(
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
JMIR Medical Informatics
JMIR Medical Informatics Medicine-Health Informatics
CiteScore
7.90
自引率
3.10%
发文量
173
审稿时长
12 weeks
期刊介绍: JMIR Medical Informatics (JMI, ISSN 2291-9694) is a top-rated, tier A journal which focuses on clinical informatics, big data in health and health care, decision support for health professionals, electronic health records, ehealth infrastructures and implementation. It has a focus on applied, translational research, with a broad readership including clinicians, CIOs, engineers, industry and health informatics professionals. Published by JMIR Publications, publisher of the Journal of Medical Internet Research (JMIR), the leading eHealth/mHealth journal (Impact Factor 2016: 5.175), JMIR Med Inform has a slightly different scope (emphasizing more on applications for clinicians and health professionals rather than consumers/citizens, which is the focus of JMIR), publishes even faster, and also allows papers which are more technical or more formative than what would be published in the Journal of Medical Internet Research.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书