Preprint · 2026 · Open access

A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients

Joakim Edin, Sedrah B. Balaganeshan, Annike Kjølby Kristensen, Lars Maaløe, Ioannis Evangelos Louloudis, Søren Brunak

arXiv · Published 27 February 2026 · DOI 10.48550/arxiv.2603.00221

Open PDFView at the publisherCite this paper

In brief

“A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients” is a 2026 preprint by Joakim Edin and 5 co-authors, published in arXiv. OpenAlex counts 2 citations as of 30 November 2026, which puts it in the top 5% of works published in 2026 by citations. It is open access under a CC BY-NC-ND licence: the full text is free to read at arXiv.

Citations
2
Most cited in
2026 (2)
References
27
Authors
6

Abstract

Medical coding translates clinical documentation into standardized codes for billing, research, and public health, but manual coding is time-consuming and error-prone. Existing automation efforts rely on small datasets that poorly represent real-world patient heterogeneity. We trained a language model on 5.8 million electronic health records from 1.8 million patients across nearly all specialties in Eastern Denmark (2006--2016) to predict ICD-10 codes from clinical notes, medications, and laboratory results. Evaluated on 270,000 held-out patients, the model achieved a micro F1 of 71.8% and a top-10 recall of 95.5%. Performance varied by specialty (F1: 53--91%), with higher scores in specialties with well-defined diagnostic criteria. Codes appearing predominantly as secondary diagnoses had markedly lower F1 scores. For three such codes (suicide-related behaviors, weight disorders, and hypertension), the model identified thousands of uncoded cases, of which 76-86% were confirmed valid upon manual review, suggesting systematic under-coding rather than model error. These findings suggest under-coding of secondary diagnoses in Eastern Denmark during this period, with potential implications for epidemiological research, public health surveillance, and understanding of multimorbidity. Similar time constraints and reimbursement structures in other healthcare systems suggest this may not be isolated to this dataset. The model can automate coding for approximately 50% of cases and provide accurate suggestions for most others, and may offer a practical solution to help capture missed secondary conditions.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

Edin, J., Balaganeshan, S. B., Kristensen, A. K., Maaløe, L., Louloudis, I. E., & Brunak, S. (2026). A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients. arXiv. https://doi.org/10.48550/arxiv.2603.00221

MLA 9

Edin, Joakim, et al. “A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients.” arXiv, 2026. https://doi.org/10.48550/arxiv.2603.00221.

Chicago

Edin, Joakim, Sedrah B. Balaganeshan, Annike Kjølby Kristensen, Lars Maaløe, Ioannis Evangelos Louloudis, and Søren Brunak. 2026. “A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients.” arXiv. https://doi.org/10.48550/arxiv.2603.00221.

Harvard

Edin, J. et al. (2026) ‘A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients’, arXiv. doi:10.48550/arxiv.2603.00221.

IEEE

J. Edin, S. B. Balaganeshan, A. K. Kristensen, L. Maaløe, I. E. Louloudis, and S. Brunak, “A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients,” arXiv, 2026, doi: 10.48550/arxiv.2603.00221.

BibTeX

@misc{edin2026medical,
  title     = {{A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients}},
  author    = {Edin, Joakim and Balaganeshan, Sedrah B. and Kristensen, Annike Kjølby and Maaløe, Lars and Louloudis, Ioannis Evangelos and Brunak, Søren},
  howpublished = {arXiv},
  year      = {2026},
  doi       = {10.48550/arxiv.2603.00221},
  url       = {https://doi.org/10.48550/arxiv.2603.00221}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare

  • medical coding
  • clinical notes
  • language models
  • electronic health records
  • secondary diagnoses
  • multimorbidity
  • suicide-related behaviors
  • weight disorders

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Edin, J., Balaganeshan, S. B., Kristensen, A. K., Maaløe, L., Louloudis, I. E., & Brunak, S. (2026). A medical coding language model trained on clinical narratives from a population-wide cohort of 1.8 million patients. arXiv. https://doi.org/10.48550/arxiv.2603.00221

How many times has this paper been cited?

2 times, according to OpenAlex on 30 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at arXiv: sign in and open the PDF from this page.

Who wrote this paper?

Joakim Edin, Sedrah B. Balaganeshan, Annike Kjølby Kristensen, Lars Maaløe, Ioannis Evangelos Louloudis, Søren Brunak.

What is the DOI of this paper?

10.48550/arxiv.2603.00221, permanently at https://doi.org/10.48550/arxiv.2603.00221. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 30 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.