Abstract
The process of manually searching for relevant instances in, and extracting information from, clinical databases underpin a multitude of clinical tasks. Such tasks include disease diagnosis, clinical trial recruitment, and continuing medical education. This manual search-and-extract process, however, has been hampered by the growth of large-scale clinical databases and the increased prevalence of unlabelled instances. To address this challenge, we propose a supervised contrastive learning framework, CROCS, where representations of cardiac signals associated with a set of patient-specific attributes (e.g., disease class, sex, age) are attracted to learnable embeddings entitled clinical prototypes. We exploit such prototypes for both the clustering and retrieval of unlabelled cardiac signals based on multiple patient attributes. We show that CROCS outperforms the state-of-the-art method, DTC, when clustering and also retrieves relevant cardiac signals from a large database. We also show that clinical prototypes adopt a semantically meaningful arrangement based on patient attributes and thus confer a high degree of interpretability.
Introduction: The Challenge of Unlabelled Clinical Data
Clinical databases are expanding rapidly, yet a significant portion of the data remains unlabelled. This lack of annotation creates bottlenecks for essential tasks such as disease diagnosis, clinical trial recruitment, and medical education. While existing machine learning methods address either clustering (grouping similar patients) or retrieval (searching for specific types), few effectively handle both for medical time-series data like ECGs. Furthermore, traditional unsupervised clustering often ignores critical patient attributes such as age and sex, which are vital for clinical context.
Methodology: CROCS and Clinical Prototypes
To address these challenges, researchers from the University of Oxford developed CROCS (Clustering and Retrieval of Cardiac Signals). The framework introduces Attribute-specific Clinical Prototypes—learnable embeddings that represent unique combinations of patient attributes such as disease class, sex, and age.
The model employs a supervised contrastive learning approach characterized by:
- Soft and Modulated Assignment: Instead of a rigid one-to-one mapping, signals are attracted to a subset of prototypes within the same disease class. The strength of this attraction is modulated by how well other attributes match, preserving fine-grained clinical differences.
- Semantic Regularization ($L_{reg}$): This ensures that prototypes with similar attributes remain close in the embedding space, reflecting real-world clinical relationships.
Key Insights and Experimental Results
Evaluation on large-scale ECG datasets (Chapman and PTB-XL) revealed that CROCS significantly outperforms state-of-the-art methods like Deep Transfer Clustering (DTC). On the Chapman dataset, CROCS achieved a disease classification accuracy of 90.3%, far exceeding the 53.4% achieved by DTC.
Beyond performance metrics, the framework offers high interpretability. The learned prototypes are not merely arbitrary points; they organize themselves into a semantically meaningful structure.
Key takeaways from the research include:
- Dual-Purpose Latent Space: CROCS treats prototypes as both cluster centroids and search queries, enabling both automated labeling and precise retrieval within a single unified space.
- Robustness to Sparse Labels: The system maintains high effectiveness even when trained on only 10% of labeled data, making it practical for real-world settings where expert labeling is costly.
- Multi-Attribute Retrieval: CROCS excels at complex searches requiring matches across multiple attributes simultaneously (e.g., "males under 25 with a specific arrhythmia"), achieving 95.6% precision at $K=1$.
Discussion and Future Directions
While CROCS represents a significant step forward, some limitations remain. Currently, continuous variables like age must be discretized into "buckets," and the number of prototype combinations can grow exponentially as more attributes are added. Future research will explore continuous prototypes and methods to handle the combinatorial explosion of patient metadata. Despite these challenges, CROCS provides a powerful, interpretable tool for navigating the vast landscape of unlabelled physiological signals.
Summary updated