Cross-Continental Generalizability of EHR Foundation Model: Predicting Length of Stay in an Italian Hospital �Using US-Trained Embeddings
Giovanna Nicora1, Francesca Negri1, Valentina Tibollo2, Alberto Malovini2, Arianna Dagliati1,
Lucia Sacchi1, Federico Sottotetti2, Paola Baiardi2, Riccardi Bellazzi1,2
1Department of Electrical, Computer and Biomedical Engineering, University of Pavia, Pavia, Italy
2IRCCS ICS Maugeri Hospital, Pavia, Italy
October 7th, 2026
Paper published (soon) in Frontiers in Digital Health
Foundation Models and Electronic Health Records
Patient’s
medical history
Task-specific Learning
| | | | | |
Embedding
EHR
Pretrained
Clinical FM
Wornow, M., Xu, Y., Thapa, R. et al. The shaky foundations of large language models and foundation models for electronic health records. npj Digit. Med. 6, 135 (2023). https://doi.org/10.1038/s41746-023-00879-8
Foundation Models and Electronic Health Records
RQ: Do FMs trained on a specific patient population generalize effectively to fundamentally different healthcare systems?
Promises
Potential issues
Case study: length of stay at Maugeri Hospital (Pavia)
Cohort | Admissions | Patients | Median LoS |
Total | 81,371 | 52,585 | 11 days |
Surgery | 9,232 | 8,413 | 6 days |
Oncology | 7,740 | 4,264 | 7 days |
Rehabilitation | 32,947 | 24,077 | 22 days |
Generic | 31,452 | 21,704 | 2 days |
Clinical FM: CLMBR-T-Base
Input: MEDS* schema
CLMBR-T-Base
768-dim embedding
*MEDS: Medical Event Data Standard, github.com/Medical-Event-Data-Standard/meds
{
"subject_id": 3,
"events": [
{ "time":
"2010-02-03",
"code": "LOINC/…",
"value": 7.2 },
…
]
}
US-pretrained embedding vs count-based feature for LoS prediction
Task:
Length of Stay (LoS) Prediction
EHR - Hospitalizations
OMOP Db
Clinical procedures
Count-based matrix
CLMBR-T-Base
Embedding
Gradient
Boosting
MLP
Gradient
Boosting
MLP
MEDS-schema mapping
Feature engineering
OMOP to MEDS schema and Vocabulary Mapping
Maugeri OMOP database
concept_code
In CLMBR‑T‑Base
vocabulary?
yes
Keep code
no
Find alternative in OMOP
concept_relationship
up to 3
attempts
Relationships tried
Vocabulary coverage by OMOP table
Latent space analysis
| ● Cluster 0 | ● Cluster 1 | ● Cluster 2 |
Median LoS | 7 days | 12 days | 21 days |
Intra-cluster cosine similarity | 0.76 | 0.83 | 0.76 |
Embedding clusters separate hospitalisations by length of stay
HDBSCAN finds these clusters without LoS labels, yet median LoS triples from cluster 0 to cluster 2
Length of stay – Predictive Performance
Robustness analysis
Pandemic shift
Train on admissions before 2020, test on 2020 onwards
Number of admissions
R² by patient admission history
Model | Single | Multiple | Change |
Embedding MLP | 0.797 | 0.618 | −0.179 |
Embedding GB | 0.765 | 0.546 | −0.219 |
Count-based MLP | 0.726 | 0.556 | −0.170 |
Count-based GB | 0.693 | 0.679 | −0.014 |
Embeddings hold up better after 2020 but lose their lead on repeat admissions
Best embedding model
0.65
R² on 2020+ test
ΔR² −0.05
after the shift
Best count-based model
0.608
R² on 2020+ test
ΔR² −0.08
after the shift
Discussion and conclusions
A US-pretrained FM matches count-based models on Italian data, with less feature engineering
What we found
Limitation
Next steps
Biomedical Informatics Labs
giovanna.nicora@unipv.it