Abstract
Objective: Accurate electronic phenotyping is essential to support collaborative observational research. Supervised machine learning methods can be used to train phenotype classifiers in a high-throughput manner using imperfectly labeled data. We developed ten phenotype classifiers using this approach and evaluated performance across multiple sites within the Observational Health Sciences and Informatics (OHDSI) network. Materials and Methods: We constructed classifiers using the Automated PHenotype Routine for Observational Definition, Identification, Training and Evaluation (APHRODITE) R-package, an open-source framework for learning phenotype classifiers using datasets in the OMOP CDM. We labeled training data based on the presence of multiple mentions of disease-specific codes. Performance was evaluated on cohorts derived using rule-based definitions and real-world disease prevalence. Classifiers were developed and evaluated across three medical centers, including one international site. Results: Compared to the multiple mentions labeling heuristic, classifiers showed a mean recall boost of 0.43 with a mean precision loss of 0.17. Performance decreased slightly when classifiers were shared across medical centers, with mean recall and precision decreasing by 0.08 and 0.01, respectively, at a site within the USA, and by 0.18 and 0.10, respectively, at an international site. Discussion and Conclusion: We demonstrate a high-throughput pipeline for constructing and sharing phenotype classifiers across multiple sites within the OHDSI network using APHRODITE. Classifiers exhibit good portability between sites within the USA, however limited portability internationally, indicating that classifier generalizability may have geographic limitations, and consequently, sharing the classifier-building recipe, rather than the pre-trained classifiers, may be more useful for facilitating collaborative observational research.
Introduction
Electronic phenotyping—the process of identifying patients with specific clinical conditions within electronic health records (EHRs)—is a critical component of modern observational research. Traditionally, researchers rely on "rule-based" definitions, which are complex sets of expert-vetted logic. While accurate, these methods are labor-intensive, slow to develop, and often struggle with the inherent "messiness" of real-world clinical data, such as varying coding practices between institutions.
Supervised machine learning offers a faster, high-throughput alternative. However, these models typically require "gold standard" labels—thousands of patient charts manually reviewed by clinicians—which is prohibitively expensive. This study investigates the use of the APHRODITE framework to train effective classifiers using "noisy" automated labels and evaluates how well these models perform when transferred between different hospital systems.
Materials and Methods
The study utilized the APHRODITE R-package, an open-source framework designed to work with the OMOP Common Data Model (CDM). The OMOP CDM standardizes EHR data formats, allowing the same analysis code to run across diverse hospital systems.
As illustrated in Figure 1, the development pipeline involved several key steps:
- Silver Standard Labeling: Instead of manual review, the researchers used a heuristic: patients with at least four mentions of a specific SNOMED disease code were labeled as "cases" for training.
- Feature Engineering: Patients were represented using frequency counts of various data points, including hospital visits, laboratory results, procedures, and drug exposures.
- Classification: Random Forest classifiers were trained for ten different phenotypes (e.g., appendicitis, cataracts, glaucoma).
- Multi-site Validation: The study involved three major medical centers totaling over 8.6 million patient records: Stanford University (USA), Columbia University (USA), and Seoul National University Bundang Hospital (SNUBH, South Korea). Performance was evaluated against cohorts derived from established rule-based definitions (e.g., PheKB) adjusted for real-world disease prevalence.
Results
The APHRODITE classifiers demonstrated that machine learning models trained on imperfect "silver standard" labels can significantly outperform the simple heuristics used to create them. By analyzing a wide range of clinical features, the models learned the underlying patterns of the diseases beyond simple diagnosis codes.
Key performance metrics included:
- Recall Boost: Classifiers provided a mean recall boost of 0.43 compared to simple code-counting heuristics, identifying many true cases that rules missed.
- Precision Trade-off: This gain in recall came at a modest cost, with a mean precision loss of only 0.17.
- Portability: Models transferred seamlessly between the two US-based sites (Stanford and Columbia), showing a negligible precision drop of 0.01. However, international portability was more challenging; moving models to or from the South Korean site (SNUBH) resulted in a precision drop of 0.10 and a recall drop of 0.18.
Discussion and Conclusion
The study reveals a "portability wall" for phenotype classifiers. While models are highly generalizable within the same country, geographic differences in medical practice and data coding significantly impact international performance.
The authors conclude that for collaborative research, sharing the "recipe"—the specific labeling heuristics and training pipeline—is more effective than sharing the pre-trained model itself. This approach allows each site to build a locally optimized version of the classifier. Future work incorporating more advanced feature engineering, such as EHR embeddings or temporal trends, may further improve performance and enhance international portability. Ultimately, the APHRODITE framework demonstrates a scalable path forward for high-throughput phenotyping across global research networks.
Summary updated