Abstract
Objective
Older adults face disproportionate risk of diagnostic errors in primary care, yet effective diagnostic decision support systems (DDSSs) remain lacking. Existing artificial intelligence (AI)-based DDSSs rely on gold-standard labels infeasible to obtain, have narrow diagnostic scope, and fail to reflect real-world uncertainty. We developed and validated a deep learning DDSS using imitation learning and collective clinician intelligence to generate diagnostic and order recommendations.
Materials and Methods
We trained a multi-label neural network on structured and unstructured electronic health record data from primary care encounters of adults ≥65 years old to imitate clinician decisions. Models were evaluated using discrimination, calibration, threshold-based, and composite metrics on a temporally held-out test set. Clinical validity was assessed using a randomized, blinded equivalence study comparing model-generated recommendations with observed clinician decisions.
Results
The study included 707 598 primary care encounters, generating recommendations across 669 diagnoses and 1000 orders. The general model demonstrated excellent performance (micro c-statistic 0.995 [95% CI 0.995-0.996], macro c-statistic 0.896 [0.888-0.897], micro F1-score 0.904 [0.903-0.905], macro F1-score 0.384 [0.381-0.385], integrated calibration index (ICI) 0.0025 [0.0024-0.0026]). Order prediction was lower (micro c-statistic 0.812 [0.811-0.814], macro c-statistic 0.786 [0.777-0.786], micro F1-score 0.305 [0.303-0.307], macro F1-score 0.0286 [0.0277-0.0294], ICI 0.0145 [0.0141-0.0150]). In clinician-validation, diagnostic disagreements were statistically equivalent between model recommendations and observed practice while order disagreements were not.
Conclusion
Imitation learning and collective clinician intelligence provide a feasible framework for generating diagnostic and ordering recommendations that reflect real-world practice without expert-adjudicated training labels. Randomized, blinded clinician evaluation pragmatically establishes preliminary clinical validity beyond traditional retrospective metrics.
Keywords: clinical decision support system, collective intelligence, imitation learning, diagnostic machine learning
Graphical Abstract
Graphical Abstract.

Background and significance
Older adults commonly experience diagnostic errors that may lead to direct patient harm and increased healthcare costs.1 An estimated 5% of US adults experience an outpatient diagnostic error each year and about half of these errors could result in serious harm.2 Although diagnostic errors affect all populations,2–6 older adults are particularly vulnerable because of higher comorbidity burden, greater medical complexity, underrepresentation in clinical datasets,7 and cognitive impairment that may interfere with history-taking. Despite diagnostic excellence being a major patient safety priority, there is a lack of generalizable evidence on effective interventions in this population.3,8,9 Although artificial intelligence (AI)-based clinical decision support systems (CDSSs)10–12 have the potential to address this gap, translating them into clinically meaningful bedside applications requires overcoming challenges in clinical medicine, user-centered design, and statistical learning. In addition, diagnostic errors and clinical decision-making are shaped by health inequities, with disparities across racial, socioeconomic, and insurance groups that may be reflected in electronic health record data and propagated by AI-based models if unaddressed.13
First, most existing diagnostic CDSSs rely on a gold-standard training label. However, obtaining definitive labels for supervised learning is often prohibitively expensive or infeasible because of diagnostic uncertainty. This is especially true in primary care14 where many clinical decisions are made without a definitive diagnosis. Second, disease-specific AI tools8,15–17 fail to capture the broad diagnostic scope of primary care,18 which can span hundreds or even thousands of distinct disease and diagnostic categories.19,20 Third, most diagnostic errors arise not from rare conditions but from overlooked common diseases,21 and the diagnostic landscape for older adults does not fully overlap with that of younger populations, necessitating tools tailored to age-specific populations.22 Finally, most diagnostic CDSSs do not reflect the iterative patient-clinician communication that shapes diagnostic reasoning, particularly among older adults who often rely on caregivers for history-taking.23–26
Rather than predicting a singularly correct diagnosis, we introduce an imitation learning framework that leverages collective intelligence to model real-world clinical decision-making.27 Drawing on descriptive norms28,29 from behavioral economics, the model predicts which diagnoses and orders peer clinicians would make, conditional on patient characteristics, rather than an objective ground truth. This approach builds upon research demonstrating that the collective intelligence of a group of clinicians often outperforms the individuals of that same group.30–32 Moreover, we align the model inputs and outputs to reflect the diagnostic process in which patients and clinicians iteratively discuss symptoms and consider an evolving list of possible diagnoses.33 Therefore, we trained and temporally validated an AI-based diagnostic CDSS using imitation learning34,35 to emulate collective physician intelligence27,31,35 and promote diagnostic excellence in older adults.
Objectives
This study had three objectives. First, we sought to train and validate a deep learning CDSS using an imitation learning and collective intelligence strategy based on structured and unstructured electronic health record (EHR) data that could generate recommended diagnoses and orders. Second, we sought to identify a cohort of “peer-recommended” primary care diagnosticians using social network analysis of a peer nomination survey and fine-tune the general model using data from encounters with these expert clinicians.36 Third, we sought to assess the clinical validity of the resultant models’ recommendations using a novel Phase 1b study design using a randomized, blinded, equivalence study, inspired by the original Turing Test,37 comparing them to the practices of real clinicians prior to future clinical deployment.
Methods
Data collection and preprocessing
Data for this study were extracted from electronic health records (EHR) from Penn Medicine, a single academic health system in the United States, encompassing primary care visits between July 1, 2015, and June 30, 2023. Encounters were included if they were classified as office visits, involved patients aged 65 years or older at the time of the visit, and occurred in primary care departments, including internal medicine, geriatric medicine, and family medicine. The dataset was partitioned by year, with training data covering July 1st, 2015 through June 30th, 2021, validation data covering July 1st, 2021 through June 30th, 2022, and testing data covering July 1st, 2022 through June 30th, 2023. We used a temporal split rather than a random patient-level split to mimic real-world deployment, where a model trained on historical encounters is applied to future clinical encounters. The dataset used for model development included both structured and unstructured EHR data, capturing variables from an index primary care visit, and aggregating patient information over a 12-month retrospective window. Structured data included patient demographics, healthcare utilization, laboratory results, vital signs, diagnoses, and medications. Unstructured data included clinical notes from encounters within the lookback window, including the note associated with the index encounter. Only symptoms extracted from the index encounter note, rather than the full note were used to reflect the intended deployment setting. Two processing methods were used to extract features from the unstructured text. The first method used PyMetaMap software library,38 a Python wrapper for the Unified Medical Language System (UMLS) MetaMap tool (National Library of Medicine, UMLS Version 2021), to extract clinical concepts related to signs and symptoms. The second method used the BioClinicalBERT39 document embedding model to convert the text into vector embeddings.
All structured and unstructured feature vectors were concatenated into a single 2738-dimensional input representation for each encounter, with all numerical variables z-normalized prior to model input. The target variables, comprising diagnoses and clinical orders recorded during the index primary care encounter, were each encoded as binary vectors indicating the presence or absence of every category, making this a multi-label classification task in which a single encounter could be assigned multiple simultaneous diagnosis and order labels. All preprocessing steps were applied uniformly across all patient subgroups without modification. A full description of feature extraction and transformation can be found in the Supplementary Material 1.1.
Predicted outcomes
The predicted variables included diagnoses and clinical orders recorded during the index primary care encounter. Diagnosis labels were derived from ICD codes documented during the visit and mapped to the 669 predefined diagnostic categories (Supplementary Materials). Order labels were identified from laboratory, consultation, and imaging orders associated with the index encounter. The 1000 most frequent orders across the training dataset were used as a reference to construct an array of binary variables indicating the presence or absence of the order during the index visit. Both diagnoses and orders were encoded as binary variables indicating their presence or absence during the visit.
Model training
We trained a deep neural network model using PyTorch (v2.4.1+cu121) in Python (v3.12.3). Because all structured and unstructured features were transformed into a common numerical representation and concatenated into a single feature vector, a fully connected feed-forward architecture was selected to model nonlinear interactions among features. The model employed a multi-task, multi-label neural network architecture designed to simultaneously predict both diagnoses and orders. We trained two models referred to as “general” and “peer-recommended.” Both models have the same architecture and training procedure but differed in their training datasets. The general model was trained on the full dataset of clinician-labeled data, while the peer-recommended model was fine-tuned on a subset of encounters from diagnosticians identified through social network analysis. A complete description of model parameters and training methodology can be found in the Supplementary Material 1.2.
Model evaluation
Model performance was evaluated using discrimination, calibration, threshold-based, and composite performance metrics. Discrimination was assessed using the c-statistic; threshold-based performance using positive predictive value (PPV) and F1-score at probability thresholds of 0.25 and 0.50; calibration using the integrated calibration index (ICI) and logistic regression-derived slope and intercept; and composite performance using the scaled Brier score (sBrier), R-squared, and log loss.40 Metrics were summarized using both macro-averaging, which weighs each prediction class equally, and micro-averaging, which weighs classes according to their prevalence and reflects overall system performance. Ninety-five percent confidence intervals for all aggregated metrics were estimated using 1000 bootstrap resamples of the test dataset.
For aggregated analyses, class-specific c-statistics that were undefined were assigned a value of 0.5 (chance discrimination). All other undefined class-specific metrics (PPV, F1-score, ICI, calibration slope and intercept, scaled Brier score, R-squared, and log loss) were assigned a value of 0.0 prior to aggregation. Secondary analyses evaluated the ten most prevalent diagnoses and orders, performance as a function of label prevalence, subgroup performance across age, sex, race, financial class, and train/test overlap status, comparison of the general model with an XGBoost benchmark, and feature ablation to assess the incremental contribution of structured and unstructured EHR inputs. The general model was evaluated on the full test dataset, whereas the peer-recommended model was evaluated on both the full test dataset and a restricted subset comprising encounters from peer-recommended diagnosticians.
Peer-recommended clinician identification
To identify peer-recommended diagnosticians in primary care, we conducted a nomination-based social network analysis using an electronic survey administered to clinicians in internal medicine and family medicine within the Penn Medicine health system (December 2021-January 2022). Participants reported demographic and practice characteristics and nominated up to ten peers they considered highly skilled at diagnosing patients with undifferentiated presentations. Each participant who completed the electronic survey was entered into a lottery to win one of twenty $150 gift cards.
Responses were aggregated into a directed network in which clinicians were represented as nodes and nominations as edges. We computed multiple centrality measures to quantify peer-recognized diagnostic influence, including PageRank41 to capture recursive influence, betweenness centrality to identify network connectors, and authority and hub scores derived from HITS (Hyperlink-Induced Topic Search) algorithms42 to assess nomination prominence and nomination behavior. Correlation between centrality measures was evaluated to ensure robustness of rankings. Clinicians ranking in the top decile across multiple centrality measures were classified as peer-recommended diagnosticians. This approach provided a peer-driven method for identifying clinicians recognized for diagnostic expertise and informed subsequent model refinement.43
Randomized, blinded clinician review
Predictive performance metrics do not directly capture the clinical impact of model-generated recommendations. However, prospective deployment studies are resource-intensive and difficult to justify without preliminary evidence of clinical validity. To address this gap, we conducted a Phase 1b randomized, blinded clinician assessment to evaluate the clinical validity of model-generated recommendations.
Inspired by the Turing Test,37 we compared three sources of diagnostic and order suggestions: a general model, an peer-recommended model, and observed clinical decisions. Ten practicing primary care clinicians, including advanced practice providers and physicians, each received a $1000 honorarium to conduct a detailed chart review. Each clinician reviewed 80 randomly assigned clinical encounters from the test dataset. For each encounter, clinicians were presented with a list of diagnoses and orders from one of the three sources in a 1:1:1 allocation and were blinded to the source. They were asked to indicate disagreement with each item and identify any missing diagnoses or orders. The primary endpoint was the composite count of disagreed and missing outputs for each encounter. We hypothesized that the disagreement count would be equivalent among study arms, defined as an equivalence margin of 1 disagreement per encounter. Secondarily, we assessed disagreements as a proportion at the encounter level.
Sample size was determined to ensure adequate power to detect equivalence under prespecified margins. Statistical comparisons between study arms were performed using both parametric and nonparametric approaches using the TOSTER package (version 0.8.4).44,45 Prespecified secondary analyses evaluated clinician-rated disagreement across demographic subgroups (age, sex, race, and financial class) and post hoc analyses stratified by common geriatric conditions (COPD, dementia, Parkinson’s disease, stroke/TIA, and heart failure) to assess the consistency of model performance and provide supportive evidence for construct validity. Additional details regarding power calculations, randomization, and statistical analysis are provided in the Supplement Material 1.3. This study was reported in accordance with the TRIPOD-AI reporting guideline, and the completed TRIPOD-AI checklist is included in the Supplementary Materials.
Results
Study population
The study cohort included 63 176 older adults (≥65 years) contributing 707 598 primary care encounters between July 1, 2015, and June 30, 2023 at Penn Medicine. The median age was 74.2 years (IQR 69.4-80.5); 63.2% were female and 29.2% were Black. Most encounters occurred in internal medicine and family medicine settings (Table 1). The prediction task included 669 diagnoses and 1000 orders. The most common diagnoses were hypertension (50.9% of encounters), dyslipidemia (36.2%), and diabetes (35.3%), while the most common orders included comprehensive metabolic panel (30.9%), lipid screening (27.8%), and hemoglobin A1c (27.4%). Label prevalence was highly right-skewed, with only a minority of labels occurring in ≥5% of encounters (Figure 1). Not all labels were represented in the test data; 649 diagnoses and 870 orders were observed in the full test set, compared to 522 diagnoses and 572 orders in the peer-recommended subset. The distributions of key demographic and clinical variables were similar across the training, validation, and test datasets, supporting the validity of the temporal split for model evaluation.
Table 1.
Demographic, clinical, and visit characteristics of primary care encounters across training, validation, and test datasets.
| Train (N = 508 524) | Validation (N = 94 275) | Test (N = 104 799) | Overall (N = 707 598) | |
|---|---|---|---|---|
| Age | ||||
| Mean (SD) | 75.5 (7.46) | 75.6 (7.38) | 75.8 (7.44) | 75.5 (7.45) |
| Median [Q1, Q3] | 74.1 [69.3, 80.4] | 74.4 [69.6, 80.4] | 74.7 [69.7, 80.6] | 74.2 [69.4, 80.5] |
| Race | ||||
| White | 330 986 (65.1%) | 62 822 (66.6%) | 71 292 (68.0%) | 465 100 (65.7%) |
| Black or African American | 152 624 (30.0%) | 26 227 (27.8%) | 27 519 (26.3%) | 206 370 (29.2%) |
| Asian | 8886 (1.7%) | 1870 (2.0%) | 2092 (2.0%) | 12 848 (1.8%) |
| American Indian or Alaskan Native | 807 (0.2%) | 151 (0.2%) | 203 (0.2%) | 1161 (0.2%) |
| Other/Unknown | 15 221 (3.0%) | 3205 (3.4%) | 3703(3.5%) | 22 129 (3.1%) |
| Ethnicity | ||||
| Not Hispanic or Latino | 498 977 (98.1%) | 92 274 (97.9%) | 102 700 (98.0%) | 693 951 (98.1%) |
| Hispanic Latino | 6780 (1.3%) | 1418 (1.5%) | 1501 (1.4%) | 9699 (1.4%) |
| Patient Declined | 1508 (0.3%) | 350 (0.4%) | 415 (0.4%) | 2273 (0.3%) |
| Sex | ||||
| Female | 320 842 (63.1%) | 59 638 (63.3%) | 66 612 (63.6%) | 447 092 (63.2%) |
| Male | 187 682 (36.9%) | 34 637 (36.7%) | 38 187 (36.4%) | 260 506 (36.8%) |
| Financial class | ||||
| Medicare | 268 109 (52.7%) | 48 613 (51.6%) | 53 830 (51.4%) | 370 552 (52.4%) |
| Managed Medicare | 200 828 (39.5%) | 36 410 (38.6%) | 39 712 (37.9%) | 276 950 (39.1%) |
| Managed Care | 18 929 (3.7%) | 5581 (5.9%) | 7213 (6.9%) | 31 723 (4.5%) |
| Blue Shield | 5911 (1.2%) | 1303 (1.4%) | 1538 (1.5%) | 8752 (1.2%) |
| Managed Medicaid | 3966 (0.8%) | 775 (0.8%) | 844 (0.8%) | 5585 (0.8%) |
| Blue Cross | 2399 (0.5%) | 610 (0.6%) | 810 (0.8%) | 3819 (0.5%) |
| Self-Pay | 4940 (1.0%) | 449 (0.5%) | 360 (0.3%) | 5749 (0.8%) |
| Commercial | 1242 (0.2%) | 195 (0.2%) | 177 (0.2%) | 1614 (0.2%) |
| Specialty | ||||
| Internal Medicine | 365 382 (71.9%) | 68 094 (72.2%) | 74 185 (70.8%) | 507 661 (71.7%) |
| Family Practice | 123 923 (24.4%) | 23 848 (25.3%) | 28 076 (26.8%) | 175 847 (24.9%) |
| Gerontology | 19 219 (3.8%) | 2333 (2.5%) | 2538 (2.4%) | 24 090 (3.4%) |
| Visit Length (minutes) | ||||
| Mean (SD%) | 24.9 (9.42%) | 27.6 (9.47%) | 27.9 (9.53%) | 25.7 (9.53%) |
| Median [Q1, Q3] | 20.0 [15.0, 30.0] | 30.0 [20.0, 30.0] | 30.0 [20.0, 30.0] | 30.0 [20.0, 30.0] |
| Same day appointment | ||||
| No | 431 323 (84.8%) | 86 388 (91.6%) | 95 275 (90.9%) | 612 986 (86.6%) |
| Yes | 77 201 (15.2%) | 7887 (8.4%) | 9524 (9.1%) | 94 612 (13.4%) |
Values are reported as count (percent of column total) unless otherwise specified. Continuous variables are summarized using mean (SD) and median [Q1, Q3]. The cohort includes 707 598 visits among adults aged ≥65 years and is used for model development and evaluation.
Figure 1.

Class prevalence for diagnoses and orders. Distribution of class prevalence for diagnoses (A) and orders (B) in the held-out test dataset. Most classes occurred infrequently, with only four diagnostic classes exceeding 10 000 samples (>10% prevalence) and seven order classes exceeding this threshold. The majority of classes appeared fewer than 25 times across the entire test dataset. These distributions highlight both the diversity of predicted diagnoses and orders and the extreme class imbalance present at the level of individual patient encounters.
Network-based identification of peer-recommended diagnosticians
Of 437 clinicians surveyed, 93 responded (23% response rate), nominating a median of 6 peers (IQR 4-10). The resulting nomination network was well connected, with most clinicians linked through peer nominations (Figure 2). Based on multiple centrality measures, 25 clinicians were classified as peer-recommended diagnosticians and used for subsequent analyses.
Figure 2.

Peer-recommended clinician social network analysis. Social network analysis demonstrating (A) the nomination graph, (B) the correlation table between different centrality scores and (C) the rank score for each physician and specified cutoff threshold.
Predictive performance
Model performance was evaluated using micro and macro-averaged metrics to characterize overall system performance and performance across individual prediction classes (Table 2; Table S14).
Table 2.
Performance of the general model, peer-recommended model, and peer-recommended model evaluated on the peer-recommended clinician subset for diagnosis and order prediction.
| Metric | Averaging | General | Peer-recommended | Peer-recommended (subgroup) |
|---|---|---|---|---|
| Diagnoses | ||||
| Discrimination metrics | ||||
| c-stat | Micro | 0.995 (0.995-0.996) | 0.991 (0.991-0.991) | 0.989 (0.988-0.990) |
| Macro | 0.896 (0.888-0.897) | 0.823 (0.817-0.827) | 0.798 (0.787-0.797) | |
| PPV @25% | Micro | 0.925 (0.924-0.926) | 0.937 (0.934-0.937) | 0.913 (0.908-0.916) |
| Macro | 0.472 (0.463-0.474) | 0.422 (0.410-0.422) | 0.369 (0.356-0.369) | |
| F1-score @25% | Micro | 0.904 (0.903-0.905) | 0.875 (0.874-0.877) | 0.871 (0.866-0.874) |
| Macro | 0.384 (0.381-0.385) | 0.276 (0.274-0.277) | 0.289 (0.283-0.291) | |
| XGBoost Benchmark | ||||
| c-stat | Micro | 0.998 (0.997-0.998) | – | – |
| Macro | 0.873 (0.865-0.875) | – | – | |
| Calibration metrics | ||||
| ICI | Micro | 0.00247 (0.00240-0.00256) | 0.00714 (0.00702-0.00726) | 0.00546 (0.00520-0.00591) |
| Macro | 0.00057 (0.00057-0.00059) | 0.00126 (0.00126-0.00128) | 0.00117 (0.00119-0.00125) | |
| Calibration slope | Micro | 1.296 (1.286-1.306) | 1.906 (1.887-1.925) | 1.842 (1.826-1.954) |
| Macro | 1.359 (1.227-1.323) | 1.349 (1.093-1.254) | 1.100 (1.007-1.204) | |
| Calibration intercept | Micro | 0.658 (0.611-0.677) | 1.826 (1.778-1.843) | 1.443 (1.392-1.573) |
| Macro | 0.865 (0.088-0.628) | −0.577 (-1.985 to 0.964) | −0.373 (-0.915 to 0.042) | |
| Subgroup analysis: seen during training | ||||
| c-stat | Micro | 0.996 (0.995-0.996) | 0.991 (0.991-0.992) | 0.989 (0.988-0.990) |
| Macro | 0.897 (0.888-0.897) | 0.821 (0.815-0.825) | 0.797 (0.785-0.795) | |
| Subgroup analysis: not seen during training | ||||
| c-stat | Micro | 0.995 (0.995-0.995) | 0.990 (0.990-0.991) | 0.986 (0.983-0.989) |
| Macro | 0.868 (0.854-0.866) | 0.812 (0.802-0.814) | 0.726 (0.699-0.713) | |
| Orders | ||||
| Discrimination metrics | ||||
| c-stat | Micro | 0.812 (0.811-0.814) | 0.772 (0.771-0.773) | 0.771 (0.767-0.775) |
| Macro | 0.786 (0.777-0.786) | 0.662 (0.657-0.666) | 0.622 (0.609-0.619) | |
| PPV @25% | Micro | 0.349 (0.343-0.353) | 0.307 (0.302-0.311) | 0.311 (0.302-0.319) |
| Macro | 0.0634 (0.0575-0.0650) | 0.0334 (0.0313-0.0357) | 0.0303 (0.0268-0.0315) | |
| F1-score @25% | Micro | 0.305 (0.303-0.307) | 0.264 (0.262-0.266) | 0.277 (0.271-0.282) |
| Macro | 0.0286 (0.0277-0.0294) | 0.0152 (0.0148-0.0155) | 0.0174 (0.0164-0.0182) | |
| XGBoost Benchmark | ||||
| c-stat | Micro | 0.818 (0.817-0.819) | – | – |
| Macro | 0.742 (0.734-0.744) | – | – | |
| Calibration metrics | ||||
| ICI | Micro | 0.0145 (0.0141-0.0150) | 0.0303 (0.0299-0.0308) | 0.0213 (0.0209-0.0236) |
| Macro | 0.00109 (0.00110-0.00113) | 0.00210 (0.00209-0.00212) | 0.00170 (0.00170-0.00181) | |
| Calibration slope | Micro | 0.918 (0.910-0.968) | 0.937 (0.920-0.940) | 0.877 (0.847-0.887) |
| Macro | 1.113 (0.996-1.102) | 0.514 (0.206-0.366) | 0.142 (-0.010-0.125) | |
| Calibration intercept | Micro | 0.139 (-0.020-0.346) | −0.088 (-0.167 to 0.076) | −0.286 (-0.429 to 0.269) |
| Macro | 0.548 (-0.292 to 0.264) | −3.904 (-5.840 to 4.791) | −3.518 (-4.092 to 3.143) | |
| Subgroup analysis: seen during training | ||||
| c-stat | Micro | 0.818 (0.816-0.819) | 0.777 (0.776-0.778) | 0.772 (0.768-0.776) |
| Macro | 0.784 (0.775-0.784) | 0.662 (0.655-0.665) | 0.619 (0.605-0.616) | |
| Subgroup analysis: not seen during training | ||||
| c-stat | Micro | 0.793 (0.791-0.796) | 0.755 (0.752-0.757) | 0.754 (0.744-0.763) |
| Macro | 0.755 (0.734-0.747) | 0.653 (0.641-0.653) | 0.586 (0.568-0.579) | |
Discrimination metrics include the c-statistic, positive predictive value (PPV), and F1-score. Calibration was assessed using the integrated calibration index (ICI), calibration slope, and calibration intercept. The XGBoost benchmark reports c-statistic for the general model only. Subgroup analyses report c-statistic stratified by whether patients were observed during model training. Macro-averaged metrics summarize performance across prediction classes equally, whereas micro-averaged metrics weight classes according to their prevalence. All estimates are reported with 95% confidence intervals obtained by bootstrap resampling.
Abbreviations: PPV, positive predictive value; ICI, integrated calibration index.
Discrimination and threshold-based performance
For diagnoses, the general model demonstrated excellent discrimination, achieving a micro-averaged c-statistic of 0.995 (95% CI 0.995-0.996) and a macro-averaged c-statistic of 0.896 (0.888-0.897; Table 2). Performance declined in the peer-recommended model, particularly for macro-averaged discrimination, indicating reduced performance for lower-prevalence diagnoses. Threshold-based performance remained high for the general model (micro-averaged PPV@25% 0.925 [0.924-0.926]; F1-score@25% 0.904 [0.903-0.905]). Performance for order prediction was substantially lower than for diagnoses but followed similar trends, with the general model achieving a micro-averaged c-statistic of 0.812 (0.811-0.814) and a macro-averaged c-statistic of 0.786 (0.777-0.786).
Calibration
Calibration was strongest for the general model, which demonstrated a low integrated calibration index for both diagnoses (ICI 0.00247 [0.00240-0.00256]) and orders (0.0145 [0.0141-0.0150]). The peer-recommended model exhibited higher ICI values and calibration slopes farther from unity, consistent with greater overconfidence than the general model.
Benchmark comparison
Compared with the XGBoost benchmark, the general neural network model demonstrated similar micro-averaged discrimination for both diagnoses (0.995 vs 0.998) and orders (0.812 vs 0.818), while achieving higher macro-averaged discrimination for diagnoses (0.896 vs 0.873) and orders (0.786 vs 0.742), indicating improved performance across lower-prevalence prediction classes.
Sensitivity analysis
Feature ablation demonstrated that prior diagnoses contributed most substantially to predictive performance. Removal of historical diagnosis features resulted in the largest decline in discrimination for both diagnoses (macro c-statistic 0.896-0.651) and orders (0.786-0.658), whereas ablation of other structured and unstructured EHR features produced only modest changes in model performance (Supplementary Material Table S13).
Most prevalent orders and diagnoses evaluation
Performance was strongly associated with label prevalence (Figure 3). For diagnoses, discrimination increased from 0.83 (IQR 0.75-0.91) in low-prevalence classes to 1.00 (1.00-1.00) in high-prevalence classes for the general model, with a similar but attenuated pattern for the peer-recommended model (0.66 [0.54-0.76] to 1.00 [1.00-1.00]). For orders, discrimination was more stable across prevalence buckets (approximately 0.83-0.84 across buckets), although precision remained strongly dependent on prevalence. Detailed results are provided in Supplementary Material Table S5. All models achieved near-perfect discrimination for the most prevalent diagnoses (Table 3). In contrast, performance for common orders was more variable, with moderate discrimination and lower precision across models. Calibration patterns also differed, with greater variability and instability observed for orders compared to diagnoses (Figure 4).
Figure 3.

Discriminatory performance for each model stratified by class prevalence. Discrimination metrics including the c-statistic, area under the precision-recall curve (AUPRC), and positive predictive value at a 25% threshold (PPV@25) are shown stratified by class prevalence for diagnoses (A) and orders (B). Across metrics and models, discrimination improves with increasing class prevalence. Performance is more variable among lower-prevalence classes, whereas for the most prevalent classes, discrimination is similar across models.
Table 3.
Discrimination performance for the general, peer-recommended, and peer-recommended models evaluated on the peer-recommended clinician subset for the ten most prevalent diagnoses and orders.
| Diagnoses | N (%) | Gen |
Peer-recommended |
N (%) | Peer-recommended (peer-recommended subset only) |
|||
|---|---|---|---|---|---|---|---|---|
| PPV@25 | c-statistic | PPV@25 | c-statistic | PPV@25 | c-statistic | |||
| Hypertension | 53 325 (50.88%) | 0.986 [0.985, 0.987] | 1.000 [1.000, 1.000] | 0.988 [0.987, 0.989] | 1.000 [1.000, 1.000] | 4966 (51.32%) | 0.984 [0.980, 0.987] | 0.999 [0.999, 1.000] |
| Dyslipidemia | 37 904 (36.17%) | 0.986 [0.985, 0.987] | 1.000 [0.999, 1.000] | 0.994 [0.993, 0.994] | 0.999 [0.999, 1.000] | 2097 (21.67%) | 0.982 [0.975, 0.987] | 1.000 [1.000, 1.000] |
| Diabetes | 37 018 (35.32%) | 0.996 [0.996, 0.997] | 0.999 [0.999, 1.000] | 0.991 [0.990, 0.992] | 1.000 [0.999, 1.000] | 3538 (36.56%) | 0.991 [0.988, 0.994] | 0.999 [0.997, 0.999] |
| Hypothyroidism | 10 567 (10.08%) | 0.921 [0.916, 0.926] | 1.000 [0.999, 1.000] | 0.978 [0.975, 0.980] | 0.999 [0.999, 1.000] | 605 (6.25%) | 0.972 [0.958, 0.984] | 0.998 [0.996, 1.000] |
| Chronic Kidney Disease | 8919 (8.51%) | 0.973 [0.970, 0.976] | 0.999 [0.999, 1.000] | 0.972 [0.968, 0.975] | 0.999 [0.999, 0.999] | 857 (8.86%) | 0.976 [0.966, 0.986] | 1.000 [0.999, 1.000] |
| GERD | 7952 (7.59%) | 0.972 [0.968, 0.975] | 0.998 [0.997, 0.998] | 0.979 [0.976, 0.982] | 0.999 [0.998, 0.999] | 593 (6.13%) | 0.971 [0.958, 0.984] | 0.999 [0.999, 1.000] |
| Osteoporosis | 7457 (7.12%) | 0.950 [0.945, 0.954] | 0.999 [0.999, 1.000] | 0.984 [0.981, 0.987] | 0.999 [0.998, 0.999] | 694 (7.17%) | 0.970 [0.957, 0.983] | 0.999 [0.997, 1.000] |
| Atrial Fibrillation | 7075 (6.75%) | 0.967 [0.963, 0.971] | 0.999 [0.998, 0.999] | 0.971 [0.967, 0.975] | 0.998 [0.997, 0.999] | 561 (5.80%) | 0.922 [0.899, 0.942] | 0.993 [0.987, 0.997] |
| Coronary Artery Disease | 6931 (6.61%) | 0.959 [0.954, 0.964] | 0.999 [0.998, 0.999] | 0.979 [0.975, 0.982] | 0.999 [0.998, 0.999] | 467 (4.83%) | 0.972 [0.956, 0.987] | 0.997 [0.995, 0.999] |
| Anxiety | 6783 (6.47%) | 0.978 [0.974, 0.982] | 0.999 [0.998, 0.999] | 0.991 [0.989, 0.994] | 0.998 [0.997, 0.999] | 407 (4.21%) | 0.987 [0.975, 0.997] | 0.997 [0.995, 0.999] |
| Orders | N (%) | Gen |
Peer-recommended
|
N (%) | Peer-recommended (peer-recommended subset only) |
|||
|---|---|---|---|---|---|---|---|---|
| PPV@25 | c-statistic | PPV@25 | c-statistic | PPV@25 | c-statistic | |||
| Comprehensive Metabolic Panel | 32 414 (30.93%) | 0.511 [0.507, 0.515] | 0.801 [0.798, 0.803] | 0.573 [0.568, 0.578] | 0.777 [0.774, 0.780] | 1853 (19.15%) | 0.400 [0.379, 0.420] | 0.743 [0.731, 0.755] |
| Lipid Screen | 29 185 (27.85%) | 0.515 [0.511, 0.520] | 0.828 [0.825, 0.830] | 0.497 [0.493, 0.501] | 0.819 [0.816, 0.821] | 2500 (25.84%) | 0.456 [0.443, 0.472] | 0.790 [0.780, 0.799] |
| Hemoglobin A1C | 28 683 (27.37%) | 0.562 [0.558, 0.567] | 0.855 [0.853, 0.858] | 0.541 [0.537, 0.546] | 0.848 [0.846, 0.851] | 3000 (31.00%) | 0.578 [0.563, 0.593] | 0.837 [0.829, 0.846] |
| Heme Profile + Elect Diff | 18 674 (17.82%) | 0.418 [0.411, 0.425] | 0.747 [0.743, 0.751] | 0.407 [0.400, 0.415] | 0.738 [0.735, 0.742] | 1633 (16.88%) | 0.398 [0.376, 0.422] | 0.746 [0.734, 0.758] |
| Thyroid Stimulating Hormone | 11 675 (11.14%) | 0.419 [0.411, 0.427] | 0.828 [0.824, 0.832] | 0.418 [0.408, 0.428] | 0.807 [0.803, 0.811] | 662 (6.84%) | 0.328 [0.285, 0.370] | 0.785 [0.766, 0.805] |
| Heme Profile CBC | 10 313 (9.84%) | 0.386 [0.373, 0.399] | 0.754 [0.749, 0.759] | 0.349 [0.322, 0.378] | 0.694 [0.689, 0.700] | 632 (6.53%) | 0.287 [0.218, 0.357] | 0.714 [0.692, 0.736] |
| Basic Metabolic Panel | 10 273 (9.80%) | 0.333 [0.323, 0.343] | 0.752 [0.748, 0.757] | 0.182 [0.177, 0.187] | 0.690 [0.685, 0.696] | 2014 (20.81%) | 0.364 [0.347, 0.382] | 0.720 [0.709, 0.732] |
| Glomerular Filtration Rate-Estimated | 9998 (9.54%) | 0.256 [0.248, 0.263] | 0.749 [0.744, 0.753] | 0.235 [0.229, 0.242] | 0.726 [0.721, 0.731] | 1964 (20.30%) | 0.506 [0.473, 0.539] | 0.743 [0.732, 0.755] |
| Flu Vaccine, Increased Antigen, Presv Free | 9517 (9.08%) | 0.203 [0.145, 0.261] | 0.567 [0.561, 0.573] | 0.098 [0.022, 0.190] | 0.575 [0.569, 0.581] | 934 (9.65%) | 0.000 [0.000, 0.000] | 0.554 [0.536, 0.572] |
| TSH with Reflex Free T4 | 8941 (8.53%) | 0.325 [0.314, 0.336] | 0.788 [0.783, 0.793] | 0.285 [0.274, 0.296] | 0.768 [0.763, 0.773] | 715 (7.39%) | 0.294 [0.258, 0.331] | 0.794 [0.777, 0.811] |
Metrics include class prevalence (N, %), positive predictive value (PPV) at a 25% threshold, and c-statistic with 95% confidence intervals estimated via bootstrap resampling. Diagnostic prediction demonstrates consistently high discrimination and PPV across models, whereas order prediction shows greater variability, particularly for less frequently ordered tests.
Abbreviation: PPV, Positive Predictive Value.
Figure 4.

Calibration plots for the models for the most prevalent classes. Calibration curves comparing predicted probabilities with observed outcome prevalence for diagnoses (A) and orders (B) across the general model, peer-recommended model, and peer-recommended model evaluated on the peer-recommended subset (left to right). An ideal classifier follows the identity line, where a predicted probability (eg, 0.60) corresponds to an observed prevalence of 60%. For diagnoses, the general model closely follows the identity line but demonstrates mild overestimation for select classes such as hypothyroidism and dyslipidemia. The peer-recommended models exhibit a sigmoid-shaped calibration curve, indicating good calibration at lower predicted probabilities with increasing underestimation at higher predicted probabilities (>0.40). For orders, the general model demonstrates good calibration among the most prevalent classes but overestimates select orders (eg, hemoglobin profile with differential and thyroid-stimulating hormone) at higher predicted probabilities. The peer-recommended models show greater variability in calibration, particularly at higher predicted probabilities. Abbreviation: TSH, thyroid stimulating hormone.
Subgroup analysis
Model performance remained consistent across patient subgroups, including age, sex, race, financial class, and prior inclusion in the training set (Supplementary Material Tables S6 and S7). Discrimination for diagnoses was uniformly high across subgroups. For orders, performance was more variable, with modest differences observed across financial class and race. Performance patterns were similar between the general and peer-recommended models, with slightly lower performance observed in the peer-recommended model across most subgroups.
Randomized, blinded clinician review
Ten primary care clinicians reviewed 799 encounters from the held-out test dataset (Figure 5). For diagnoses, the median number of composite disagreements per encounter was similar across arms (general: 1 [IQR 0-3], peer-recommended: 1 [1, 2] observed: 1 [0-2]; Figure 6). For orders, disagreement was higher for both models (general: 1 [0-3], peer-recommended: 2 [1-3]) compared to observed care (0 [0-1]). Diagnostic disagreement fell within the prespecified equivalence margin for both the general (mean difference -0.31, 90% CI -0.53 to -0.09) and peer-recommended models (-0.33, -0.53 to -0.12) relative to observed decisions (Table 4). In contrast, order disagreements exceeded the equivalence margin for both models (general: -1.3, -1.6 to -1.0; peer-recommended: -1.4, -1.7 to -1.2). Secondary analyses of disagreement proportions showed similar results, with equivalence for diagnoses but not orders. No significant differences were observed between the general and peer-recommended models. These results were consistent in a sensitivity analysis using non-parametric tests.
Figure 5.

Flow of encounters that were reviewed by clinicians. A total of 800 encounters were initially sampled from the test dataset. One encounter was excluded due to a data extraction error. The remaining encounters were randomized to the general model, peer-recommended model or observed practice arms for clinician review.
Figure 6.

Clinical validation study results. Distributions of the total number and proportion of disagreements between model-generated suggestions and observed clinical practice for diagnoses (A) and orders (B). For diagnoses, the median number of disagreements per encounter was 1 IQR = [0, 3] for the general model, 1 IQR = [1, 2] for the peer-recommended model, and 1 IQR=[0, 2] for observed practice. For orders, the median number of disagreements was 1 IQR = [0, 3], 2 IQR = [1, 3] and 0 IQR = [0, 1], respectively. Diagnostic disagreement rates were statistically equivalent between model suggestions and observed practice, whereas equivalence was not achieved for orders.
Table 4.
Results of the clinician validation study comparing model-generated suggestions with observed clinical practice.
| Outcome | General (N = 266) | Peer-recommended (N = 267) | Observed (N = 266) | Significance (general vs observed) | Significance (peer-recommended vs observed) |
|---|---|---|---|---|---|
| Total presented diagnosis | 4.00 [2.00, 5.00] | 4.00 [2.00, 5.00] | 4.00 [2.25, 5.00] | – | – |
| Total presented orders | 6.00 [4.00, 10.0] | 8.00 [4.00, 10.0] | 4.00 [2.00, 7.00] | – | – |
| Disagreed diagnosis | 0 [0, 1.00] | 0 [0, 1.00] | 0 [0, 1.00] | – | – |
| Proportion of disagreed diagnosis | 0 [0, 0.250] | 0 [0, 0.222] | 0 [0, 0.200] | – | – |
| Disagreed orders | 1.00 [0, 3.00] | 2.00 [0, 3.00] | 0 [0, 1.00] | – | – |
| Proportion of disagreed orders | 0.167 [0, 0.400] | 0.222 [0, 0.429] | 0 [0, 0.200] | – | – |
| Annotator suggested diagnosis | 1.00 [0, 1.00] | 1.00 [0, 1.00] | 1.00 [0, 1.00] | – | – |
| Annotator suggested orders | 0 [0, 0] | 0 [0, 0] | 0 [0, 0] | – | – |
| Composite diagnostic disagreement (count) | 1.00 [0, 3.00] | 1.00 [1.00, 2.00] | 1.00 [0, 2.00] | P < .001 | P < .001 |
| Composite diagnostic disagreement (proportion) | 0.279 [0, 0.500] | 0.267 [0.101, 0.500] | 0.250 [0, 0.440] | P = .014 | P = .021 |
| Composite order disagreement (count) | 1.00 [0, 3.00] | 2.00 [1.00, 3.00] | 0 [0, 1.00] | P = .97 | P = .997 |
| Composite order disagreement (proportion) | 0.250 [0, 0.500] | 0.250 [0.0909, 0.500] | 0 [0, 0.333] | P = .63 | P = .77 |
Outcomes are reported as median [IQR]. Statistical comparisons were performed between composite disagreement measures for each model arm and observed practice. Bold indicates values meeting the prespecified significance threshold.
In a post hoc analysis stratified by common geriatric conditions (COPD, dementia, Parkinson’s disease, stroke/TIA, and heart failure), clinician-rated diagnostic disagreement was similar between observed clinician diagnoses and general model predictions across all conditions when evaluated as the proportion of disagreements, with no significant differences observed (Supplementary Material Table S18). Heart failure was the only condition demonstrating significantly fewer absolute disagreement counts for observed clinician diagnoses compared with the general model. Encounter characteristics were well balanced across study arms within each demographic and clinical subgroup (Supplementary Material Table S15). Composite diagnostic and order disagreement demonstrated similar patterns across age, sex, race, and insurance subgroups, with no evidence of marked subgroup-specific differences between model predictions and observed clinician practice (Supplementary Material Tables S16 and S17).
Discussion
We developed and validated deep neural network models trained using collective intelligence and imitation learning to recommend diagnoses and orders for older adults in a primary care setting. Rather than learning expert-adjudicated labels, the models were trained to reproduce observed clinician behavior, reflecting the uncertainty inherent in diagnostic decision-making. The models generated recommendations that support the feasibility of this approach for AI-based clinical decision support. These findings yield several lessons for AI-based CDSSs in primary care and other settings with broad diagnostic scope and high diagnostic uncertainty.
First, imitation learning is a feasible way to leverage readily available EHR data for CDSS development. Model performance was strongest for common conditions, where most diagnostic errors occur. Performance was similar among patients included and not included in the training set, supporting the use of a temporal split that reflects real-world deployment in health systems where the same patients are often seen longitudinally. The randomized, blinded clinician evaluation provides evidence of ecological validity by demonstrating that model-generated diagnostic recommendations were judged similarly to observed clinician decisions. This training approach may therefore support clinically plausible recommendations without requiring costly, expert-adjudicated labels at scale.
Second, the optimal terminology or ontology for diagnostic and order-based decision support remains uncertain. Diagnosis prediction consistently exceeded order prediction, likely reflecting stronger historical diagnosis features, greater heterogeneity in ordering behavior, and the lack of a custom order terminology.46,47 Variation in practice, such as selecting among equivalent laboratory tests, may produce apparent disagreement even when multiple orders are clinically appropriate. Further work is needed to identify terminologies that can serve as both pragmatic training labels and useful clinical guidance at the bedside.
Third, the benefits of imitation learning may depend on the characteristics of the clinicians being imitated. Fine-tuning on peer-recommended diagnosticians did not improve overall discrimination, suggesting that the general model captured much of the diagnostic structure present in the full cohort. However, the peer-recommended model demonstrated higher precision for very low-prevalence classes but poorer calibration. These findings may reflect referral patterns, documentation practices, or differences in diagnostic thresholds among highly nominated clinicians, including a more complex case mix, and do not distinguish clinician expertise from selection bias. Future work should evaluate alternative approaches to identifying expert clinicians and determine whether they improve model performance, construct validity, or clinical utility.
Fourth, imitation learning and collective intelligence show promise for diagnostic decision support because they offer recommendations as descriptive norms rather than assertions of definitive truth.48 However, not all descriptive norms are equally appropriate for imitation. Practice patterns that reflect shared clinical knowledge, broad professional consensus, or efficient clinical workflows may represent valuable collective intelligence that can be learned and reproduced. In contrast, patterns arising from systematic disparities, diagnostic under-recognition, or inconsistent access to care should be regarded as targets for correction rather than behaviors to emulate. When the collective encodes such biases across race, sex, insurance status, language, or disability, imitation learning risks reproducing them at scale. This concern is not hypothetical: Obermeyer et al.13 demonstrated that a widely deployed algorithm trained on observed healthcare utilization encoded significant racial bias, systematically underestimating the care needs of Black patients despite strong predictive performance. Conditions such as dementia, osteoporosis, and depression illustrate domains where historical practice patterns may perpetuate disparities. The absence of explicit fairness constraints during model training is therefore a consequential methodological choice rather than a neutral default. Although our post hoc subgroup analyses found no marked subgroup-specific differences in clinician-rated disagreement, this should not be interpreted as evidence that underlying clinical practice is equitable. Under this framework, imitation learning should remain subject to external validation, fairness assessment, and expert review. Future work should combine expert-adjudicated reference standards, algorithmic fairness methods, and condition-specific safeguards to distinguish beneficial collective intelligence from clinical practices that should be corrected.
Finally, our findings should be interpreted through the complementary lenses of ecological and construct validity. Because the models were trained using imitation learning, they were optimized to reproduce clinician behavior rather than recover an objective diagnostic truth and may therefore inherit systematic biases present in clinical practice, including under-recognition of conditions commonly missed in older adults such as delirium, heart failure, and depression. We therefore do not interpret high predictive performance as evidence of absolute diagnostic correctness. The randomized, blinded clinician evaluation provides evidence of ecological validity by demonstrating that model recommendations were judged similarly to observed clinician decisions. Supportive evidence for construct validity comes from the consistency of clinician-rated diagnostic disagreement across common geriatric conditions, including COPD, dementia, Parkinson’s disease, stroke/TIA, and heart failure, although these analyses were not powered to establish formal equivalence. Future work should evaluate these systems using larger expert-adjudicated datasets and longitudinal clinical outcomes to determine whether imitation learning can improve, rather than merely reproduce, diagnostic performance.
This study has several limitations. First, mapping >1600 ICD-10 codes into 669 diagnostic categories reduced granularity for rare and highly specific conditions, and the optimal tradeoff between grouped and more granular labels remains unknown. Second, the models predicted diagnoses and orders at single encounters and did not incorporate longitudinal patient trajectories, potentially missing diagnoses made after the index encounter. Third, reliance on EHR data may introduce bias from variable documentation practices. Fourth, some patients appeared in both training and test datasets because of the temporal split, raising potential for information leakage. However, subgroup analysis demonstrated similar performance among previously unseen patients. Fifth, the skewed distribution of label prevalence left some classes absent from the test dataset, creating uncertainty about performance for rare diagnoses and orders. Sixth, the blinded clinician review involved only ten reviewers and assessed agreement with clinician judgment rather than absolute diagnostic accuracy. Although clinicians may underreport errors in themselves and their peers, this limitation would be expected to affect all study arms equally because reviewers were randomized and blinded to recommendation source. Nevertheless, replication in larger and more diverse clinician panels remains an important next step. Finally, evolving clinical practices and new diagnostic tests may limit temporal generalizability, necessitating periodic reevaluation.
Conclusion
We trained and validated deep neural network models that use structured and unstructured EHR data to recommend diagnoses and orders for older adults in primary care. Rather than attempting to identify a singularly correct diagnosis, this approach generates recommendations that reflect the diagnostic and ordering behaviors most consistent with collective clinician practice, acknowledging the iterative and uncertain nature of primary care decision-making. In clinical deployment, the model would use historical and real-time EHR and symptom data, handle missing inputs using the same preprocessing and imputation strategies as in development, and function as a clinician-facing decision support tool without requiring specialized technical expertise. Future work should evaluate this approach using expert-adjudicated reference standards, prospective clinical deployment, and fairness-aware methods.
Supplementary Material
Contributor Information
Christopher D Streiffer, Palliative and Advanced Illness Research (PAIR) Center, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States; Department of Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Matthew J Press, Department of Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States; Leonard Davis Institute of Health Economics, University of Pennsylvania, Philadelphia, PA 19104, United States.
Nicholas S Bishop, Palliative and Advanced Illness Research (PAIR) Center, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Benjamin E Schmid, Palliative and Advanced Illness Research (PAIR) Center, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Alyssa Sliwa, Palliative and Advanced Illness Research (PAIR) Center, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Anuradha L Vyas, Palliative and Advanced Illness Research (PAIR) Center, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Lyle H Ungar, Department of Computer and Information Science, University of Pennsylvania, Philadelphia, PA 19104, United States.
MaryAnne Peifer, Leonard Davis Institute of Health Economics, University of Pennsylvania, Philadelphia, PA 19104, United States; Department of Family Medicine and Community Health, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Gary E Weissman, Palliative and Advanced Illness Research (PAIR) Center, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States; Department of Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States; Leonard Davis Institute of Health Economics, University of Pennsylvania, Philadelphia, PA 19104, United States; Department of Biostatistics, Epidemiology, and Informatics, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA 19104, United States.
Author contributions
Christopher Douglas Streiffer (Formal analysis, Methodology, Software, Writing—original draft), Matthew J. Press (Conceptualization, Methodology, Supervision, Writing—review & editing), Nicholas S. Bishop (Conceptualization, Data curation, Investigation, Methodology, Project administration, Writing—original draft, Writing—review & editing), Benjamin E. Schmid (Data curation, Validation, Writing—review & editing), Alyssa Sliwa (Methodology, Project administration, Validation, Writing—review & editing), Anuradha L. Vyas (Data curation, Formal analysis, Validation, Writing—review & editing), Lyle Ungar (Conceptualization, Data curation, Formal analysis, Methodology, Supervision, Validation, Writing—review & editing), MaryAnne Peifer (Conceptualization, Methodology, Supervision, Writing—review & editing), and Gary E Weissman (Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Supervision, Validation, Writing—original draft, Writing—review & editing)
Supplementary material
Supplementary material is available at Journal of the American Medical Informatics Association online.
Funding
This work was supported by the National Academy of Medicine (SCON-10001137), with additional support from the Gordon and Betty Moore Foundation and the John A. Hartford Foundation, and by a Penn AITech Pilot Award (NIH/NIA P30AG073105).
Conflicts of interest
The authors declare that they have no competing interests or conflicts of interest relevant to this work.
Ethics approval
This study was approved by the University of Pennsylvania Institutional Review Board (IRB Protocol #852952). The research was conducted in accordance with the Declaration of Helsinki and applicable institutional guidelines. The study was determined to pose minimal risk and relied on retrospectively collected electronic health record data. A waiver of informed consent and HIPAA authorization was granted by the Institutional Review Board for the collection and use of patient data for model training and validation. No clinicians were recruited as research participants, and therefore clinician consent was not required.49
Data availability
A formal study protocol was not registered or published prior to study initiation. The data that support the findings of this study are not publicly available due to institutional policies and the presence of protected health information but may be made available from the corresponding author upon reasonable request and with appropriate institutional approvals. The code used for model development and analysis has been made available on GitHub: https://github.com/weissman-lab/interlace_model. Patients and the public were not involved in the design, conduct, reporting, or dissemination of this research.
References
- 1. Skinner TR, Scott IA, Martin JH. Diagnostic errors in older patients: a systematic review of incidence and potential causes in seven prevalent diseases. Int J Gen Med. 2016;9:137-146. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2. Singh H, Meyer AN, Thomas EJ. The frequency of diagnostic errors in outpatient care: estimations from three large observational studies involving US adult populations. BMJ Qual Saf. 2014;23:727-731. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3. Ball JR, Miller BT, Balogh EP. Improving Diagnosis in Health Care. National Academies Press; 2015. [PubMed] [Google Scholar]
- 4. Singh H, Schiff GD, Graber ML, Onakpoya I, Thompson MJ. The global burden of diagnostic errors in primary care. BMJ Qual Saf. 2017;26:484-494. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Tehrani ASS. 25-Year Summary of US Malpractice Claims for Diagnostic Errors 1986-2010. BMJ Quality & Safety; 2013. [DOI] [PubMed] [Google Scholar]
- 6. Giardina TD. Learning from patients’ experiences related to diagnostic errors is essential for progress in patient safety. Health Aff. 2018;37:1821-1827. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7. Lipman HI, Kalra A, Kirkpatrick JN. Foundations of medical decision-making for older adults with cardiovascular disease. J Geriatr Cardiol. 2015;12:335. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. Hall KK, Fitall E, Aaron ZH. Updates in the role of health IT in patient safety. PSNet Internet. 2020. [Google Scholar]
- 9. Yang D, Fineberg HV, Cosby K. Diagnostic excellence. JAMA. 2021;326:1905-1906. [DOI] [PubMed] [Google Scholar]
- 10. Richens JG, Lee CM, Johri S. Improving the accuracy of medical diagnosis with causal machine learning. Nat Commun. 2020;11:4754. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Liu X, Faes L, Kale AU, et al. A comparison of deep learning performance against health-care professionals in detecting diseases from medical imaging. Lancet Digit Health. 2019;1:e271-e297. [DOI] [PubMed] [Google Scholar]
- 12. Zwaan L, El-Kareh R, Meyer AND, Hooftman J, Singh H. Advancing diagnostic safety research. J Gen Intern Med. 2021;36:2943-2951. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13. Obermeyer Z, Powers B, Vogeli C, Mullainathan S. Dissecting racial bias in an algorithm used to manage the health of populations. Science. 2019;366:447-453. [DOI] [PubMed] [Google Scholar]
- 14. Alam R, Cheraghi-Sohi S, Panagioti M, Esmail A, Campbell S, Panagopoulou E. Managing diagnostic uncertainty in primary care. BMC Fam Pract. 2017;18:79. R [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Harada T, Miyagami T, Kunitomo K, Shimizu T. Clinical decision support systems for diagnosis in primary care: a scoping review. Int J Environ Res Public Health. 2021;18:8435. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Chou W, Tien P, Lin F, Chiu P. Application of visually based, computerised diagnostic decision support system in dermatological medical education. Postgrad Med J. 2017;93:256-259. [DOI] [PubMed] [Google Scholar]
- 17. Abràmoff MD, Lavin PT, Birch M, Shah N, Folk JC. Pivotal trial of an autonomous AI-based diagnostic system for detection of diabetic retinopathy. NPJ Digit Med. 2018;1:39. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Weissman GE, Zwaan L, Bell SK. Diagnostic scope: the AI can’t see what the mind doesn’t know. Diagnosis. 2025;12:189-196. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19. Wändell P. Most common diseases diagnosed in primary care in Stockholm, Sweden. Fam Pract. 2013;30:506-513. [DOI] [PubMed] [Google Scholar]
- 20. Bindman AB, Forrest CB, Britt H, Crampton P, Majeed A. Diagnostic scope of and exposure to primary care physicians. BMJ. 2007;334:1261. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21. Singh H, Giardina TD, Meyer AND, Forjuoh SN, Reis MD, Thomas EJ. Types and origins of diagnostic errors in primary care settings. JAMA Intern Med. 2013;173:418-425. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Shiwani T, Relton S, Evans R, Ageing Data Research Collaborative (Geridata) AI Group, et al. New horizons in artificial intelligence in the healthcare of older people. Age Ageing. 2023;52:afad219. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23. Queen TL, Butner J, Berg CA, Smith J. Activity engagement among older adult spousal caregivers. J Gerontol Ser B. 2019;74:1278-1282. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Wolff JL, Spillman BC, Freedman VA, Kasper JD. A national profile of family and unpaid caregivers. JAMA Intern Med. 2016;176:372-379. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. O’Conor R. Caregiver involvement in managing medications among older adults. J Am Geriatr Soc. 2021;69:2916-2922. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26. Soysal P. The role of caregivers in the care of older people. 2022.
- 27. Weissman GE, Ungar LH, Halpern SD. Chess lessons: harnessing collective human intelligence and imitation learning. 2023. [DOI] [PubMed]
- 28. Mbaba M, AuBuchon KE, Dodge T. The influence of descriptive and injunctive norms on US adolescent marijuana use. J Stud Alcohol Drugs. 2022;83:312-322. [PubMed] [Google Scholar]
- 29. Moehring A, Collis A, Garimella K, Rahimian MA, Aral S, Eckles D. Providing normative information increases intentions to accept a COVID-19 vaccine. Nat Commun. 2023;14:126. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30. Stehouwer NR, Torrey KW, Dell MS. Collective intelligence improves probabilistic diagnostic assessments. Diagnosis (Berl). 2023;10:158-163. [DOI] [PubMed] [Google Scholar]
- 31. Barnett ML, Boddupalli D, Nundy S, Bates DW. Comparative accuracy of diagnosis by collective intelligence. JAMA Netw Open. 2019;2:e190096. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Wolf M, Krause J, Carney PA, Bogart A, Kurvers RH. Collective intelligence meets medical decision-making. PLoS One. 2015;10:e0134269. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Adler-Milstein J, Chen JH, Dhaliwal G. Next-generation artificial intelligence for diagnosis. JAMA. 2021;326:2467-2468. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34. McIlroy-Young R, Sen S, Kleinberg J, Anderson A. Aligning superhuman AI with human behavior. 2020.
- 35.McIlroy-Young R, Wang R, Sen S, Kleinberg J, Anderson A. Learning models of individual behavior in chess. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining. 2022 Aug 14:1253-1263.
- 36.Identifying Peer-recommended Primary Care Diagnosticians through Peer Nomination in a Social Network 2022. Annual Research Meeting: Academy Health; 2022.
- 37. Turing AM. Computing machinery and intelligence. 2007.
- 38. Rios A. PyMetaMap. 2019. Accessed October 5, 2025. https://github.com/AnthonyMRios/pymetamap
- 39.Alsentzer E, Murphy J, Boag W, Weng WH, Jindi D, Naumann T, McDermott M. Publicly available clinical BERT embeddings. In Proceedings of the 2nd clinical natural language processing workshop; 2019 Jun;72-78.
- 40. Steyerberg EW, Vickers AJ, Cook NR, et al. Assessing the performance of prediction models. Epidemiology. 2010;21:128-138. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41. Page L. The PageRank citation ranking: Bringing order to the web. 1999.
- 42. Kleinberg JM. Authoritative sources in a hyperlinked environment. J ACM. 1999;46:604-632. [Google Scholar]
- 43. Chen L, McWilliams JM. Performance on patient experience measures. JAMA Intern Med. 2023;183:350-359. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44. Caldwell AR. Exploring equivalence testing with the updated TOSTER R package. 2022.
- 45. Lakens D, Scheel AM, Isager PM. Equivalence testing for psychological research. Adv Methods Pract Psychol Sci. 2018;1:259-269. [Google Scholar]
- 46. Ip W, Prahalad P, Palma J, Chen JH. A data-driven algorithm to recommend initial clinical workup for outpatient specialty referral: algorithm development and validation using electronic health record data and expert surveys. JMIR Med Inform. 2022;10:e30104. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Automated development of order sets and corollary orders by data mining in an ambulatory computerized physician order entry system. AMIA Annual Symposium Proceedings; 2006. [PMC free article] [PubMed]
- 48. Cialdini RB, Reno RR, Kallgren CA. A focus theory of normative conduct. J Pers Soc Psychol. 1990;24:201-234. [Google Scholar]
- 49. Norgeot B. Protected health information filter (Philter). NPJ Digit Med. 2020;3:57. [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
A formal study protocol was not registered or published prior to study initiation. The data that support the findings of this study are not publicly available due to institutional policies and the presence of protected health information but may be made available from the corresponding author upon reasonable request and with appropriate institutional approvals. The code used for model development and analysis has been made available on GitHub: https://github.com/weissman-lab/interlace_model. Patients and the public were not involved in the design, conduct, reporting, or dissemination of this research.
