IDEAS home Printed from https://ideas.repec.org/a/plo/pdig00/0001623.html

Data distribution impacts the performance and generalisability of contrastive learning-based foundation models of electrocardiograms

Author

Listed:
  • Gul Rukh Khattak
  • Konstantinos Patlatzoglou
  • Joseph Barker
  • Libor Pastika
  • Boroumand Zeidaabadi
  • Aidan R Birdi
  • Jiayu Huo
  • Ahmed El-Medany
  • Hesham Aggour
  • Yixiu Liang
  • Antonio H Ribeiro
  • Jeffrey Annis
  • Antonio Luiz Pinho Ribeiro
  • Junbo Ge
  • Daniel B Kramer
  • Jonathan W Waks
  • Evan Brittain
  • Nicholas Peters
  • Fu Siong Ng
  • Arunashis Sau

Abstract

Contrastive learning is a widely adopted self-supervised pretraining strategy, yet its dependence on cohort composition remains underexplored. We present Contrasting by Augmented Patient Electrocardiograms (CAPE) foundation model and pretrain on four cohorts (n = 5,203,269), from diverse populations across three continents (North America, South America, Asia). We systematically assess how cohort demographics, health status, and population diversity influence the downstream performance for prediction tasks also including two additional cohorts from another continent (Europe). We find that downstream performance depends on the distributional properties of the pretraining cohort, including demographics and health status. Moreover, while pretraining with a multi-centre, demographically diverse cohort improves in-distribution accuracy, it reduces out-of-distribution (OOD) generalisation of our contrastive approach by encoding cohort-specific artifacts. To address this, we propose the In-Distribution Batch (IDB) strategy, which preserves intra-cohort consistency during pretraining, discourages learning of spurious cohort-specific features, and instead promotes clinically meaningful variability within cohorts. This leads to improved out-of-distribution robustness, with gains of 9–40% in downstream label prediction performance. This work provides insights into pretraining strategies for more clinically deployable and generalisable foundation models.Author summary: Artificial intelligence (AI) can learn from large collections of electrocardiograms (ECGs) and support the development of new diagnostic tools without relying on extensive manual annotation. However, it remains unclear how the data used to pretrain these models influences their ability to generalise across different patient populations.

Suggested Citation

  • Gul Rukh Khattak & Konstantinos Patlatzoglou & Joseph Barker & Libor Pastika & Boroumand Zeidaabadi & Aidan R Birdi & Jiayu Huo & Ahmed El-Medany & Hesham Aggour & Yixiu Liang & Antonio H Ribeiro & Je, 2026. "Data distribution impacts the performance and generalisability of contrastive learning-based foundation models of electrocardiograms," PLOS Digital Health, Public Library of Science, vol. 5(9), pages 1-21, September.
  • Handle: RePEc:plo:pdig00:0001623
    DOI: 10.1371/journal.pdig.0001623
    as

    Download full text from publisher

    File URL: https://journals.plos.org/digitalhealth/article?id=10.1371/journal.pdig.0001623
    Download Restriction: no

    File URL: https://journals.plos.org/digitalhealth/article/file?id=10.1371/journal.pdig.0001623&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pdig.0001623?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pdig00:0001623. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: digitalhealth (email available below). General contact details of provider: https://journals.plos.org/digitalhealth .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.