BONSAI: A framework for processing and analysing Electronic Health Records (EHR) data using transformer-based models
Authors/Creators
- 1. University of Copenhagen, Denmark
Files
EHR-2.0.1.zip
Files
(39.6 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:e6667075965d2514ba344b265fb9d6b2
|
38.6 MB | Preview Download |
|
md5:49ae31e43b6979cebe59a700edf5303d
|
962.6 kB | Preview Download |
Additional details
Identifiers
Related works
- Describes
- 10.5281/zenodo.17277882 (DOI)
- Is reviewed by
- https://github.com/openjournals/joss-reviews/issues/8869 (URL)
Dates
- Issued
-
October 20, 2025
References
- Elkjær Montgomery, M., Klein, K., Odgaard, M., Lorenzen, S. S., & Sobhaninia, Z. (2025). BONSAI: A framework for processing and analysing Electronic Health Records (EHR) data using transformer-based models [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.17277882
- Odgaard, M., Klein, K. V., Thysen, S. M., Jimenez-Solem, E., Sillesen, M., & Nielsen, M. (2024). CORE-BEHRT: A Carefully Optimized and Rigorously Evaluated BEHRT (Version 4) [Article]. arXiv. https://doi.org/10.48550/arxiv.2404.15201
- Kolo, A., Pang, C., Choi, E., Steinberg, E., Jeong, H., Gallifant, J., Fries, J. A., Chiang, J. N., Oh, J., Xu, J., & others. (2024). MEDS decentralized, extensible validation (MEDS-DEV) benchmark: Establishing reproducibility and comparability in ML for health. https://openreview.net/pdf?id=DExp3tRRel
- Li, Y., Rao, S., Solares, J. R. A., Hassaine, A., Ramakrishnan, R., Canoy, D., Zhu, Y., Rahimi, K., & Salimi-Khorshidi, G. (2020). BEHRT: Transformer for Electronic Health Records. Scientific Reports, 10(1), Article 7155. https://doi.org/10.1038/s41598-020-62922-y
- Warner, B., Chaffin, A., Clavié, B., Weller, O., Hallström, O., Taghadouini, S., Gallagher, A., Biswas, R., Ladhak, F., Aarsen, T., Cooper, N., Adams, G., Howard, J., & Poli, I. (2024). Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference (Version 2) [Article]. arXiv. https://doi.org/10.48550/arxiv.2412.13663
- Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., Rodriguez, A., Joulin, A., Grave, E., & Lample, G. (2023). LLaMA: Open and Efficient Foundation Language Models (Version 1) [Article]. arXiv. https://doi.org/10.48550/arxiv.2302.13971
- Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., Agarwal, S., Herbert-Voss, A., Krueger, G., Henighan, T., Child, R., Ramesh, A., Ziegler, D. M., Wu, J., Winter, C., … Amodei, D. (2020). Language Models are Few-Shot Learners (Version 4) [Article]. arXiv. https://doi.org/10.48550/arxiv.2005.14165
- Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding (Version 2) [Article]. arXiv. https://doi.org/10.48550/arxiv.1810.04805
- Pang, C., Jiang, X., Pavinkurve, N. P., Kalluri, K. S., Minto, E. L., Patterson, J., Zhang, L., Hripcsak, G., Gürsoy, G., Elhadad, N., & Natarajan, K. (2024). CEHR-GPT: Generating Electronic Health Records with Chronological Patient Timelines (Version 2) [Article]. arXiv. https://doi.org/10.48550/arxiv.2402.04400
- Pang, C., Jiang, X., Kalluri, K. S., Spotnitz, M., Chen, R., Perotte, A., & Natarajan, K. (2021). CEHR-BERT: Incorporating temporal information from structured EHR data to improve prediction tasks [Article]. https://doi.org/10.48550/arxiv.2111.08585
- Gu, A., & Dao, T. (2023). Mamba: Linear-Time Sequence Modeling with Selective State Spaces (Version 2) [Article]. arXiv. https://doi.org/10.48550/arxiv.2312.00752
- Rasmy, L., Xiang, Y., Xie, Z., Tao, C., & Zhi, D. (2021). Med-BERT: pretrained contextualized embeddings on large-scale structured electronic health records for disease prediction. Npj Digital Medicine, 4(1), Article 86. https://doi.org/10.1038/s41746-021-00455-y
- Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., Desmaison, A., Köpf, A., Yang, E., DeVito, Z., Raison, M., Tejani, A., Chilamkurthy, S., Steiner, B., Fang, L., … Chintala, S. (2019). PyTorch: An Imperative Style, High-Performance Deep Learning Library (Version 1) [Article]. arXiv. https://doi.org/10.48550/arxiv.1912.01703
- Hugging Face. (2025). Transformers. https://huggingface.co/docs/transformers/en/index
- MLflow. (2025). Mlflow.azureml. https://mlflow.org/docs/1.22.0/python_api/mlflow.azureml.html
Citations
- McDermott, M. B. A., Steinberg, E., Fries, J. A., van de Water, R. P., Pang, C., Rockenschaub, P., Renc, P., Oh, J., Stankevičiūtė, K., Xu, J., Pollard, T. J., Oufattole, N., Wornow, M., Bergamaschi, T. S., Jeong, H., Lee, S. A., Jeanselme, V., Klein, K. V., Odgaard, M., … Shah, N. H. (2026). MEDS — An Emerging Data Standard and Ecosystem for Health AI Research. NEJM AI, 3(6). https://doi.org/10.1056/aira2501253