| Literature DB >> 36180026 |
Samuel I Berchuck1, Alessandro A Jammal2, David Page3, Tamara J Somers4, Felipe A Medeiros2,3.
Abstract
Purpose: In patients with ophthalmic disorders, psychosocial risk factors play an important role in morbidity and mortality. Proper and early psychiatric screening can result in prompt intervention and mitigate its impact. Because screening is resource intensive, we developed a framework for automating screening using an electronic health record (EHR)-derived artificial intelligence (AI) algorithm.Entities:
Mesh:
Year: 2022 PMID: 36180026 PMCID: PMC9547354 DOI: 10.1167/tvst.11.10.6
Source DB: PubMed Journal: Transl Vis Sci Technol ISSN: 2164-2591 Impact factor: 3.048
Figure 1.Visualizing the modeling framework. Both the predictors and outcome are defined based on the encounter date as an anchor. The outcome is defined using data collected in a 180-day window around the encounter (pink area). The predictor is defined using all EHR data collected prior to the encounter (blue area) and is broken into three phases of 3 months, 1 year, and 5 years. Red EHR items correspond to ones that qualify for the distress outcome phenotype (e.g., antidepressant medication). In this example, the patient has a diagnostic code and medication (both red) in the outcome period indicating that the patient had distress at the time of the encounter. Importantly, these occurred within 30 days of each other. The EHR history is converted into a vectorized form and fed into a machine learning algorithm (here, the elastic-net model). The algorithm then outputs a probability of distress for each encounter.
Figure 2.Flow chart demonstrating how patient distress was defined at the encounter level. Diagnosis and procedure codes come from the ICD.
Summary of Demographics Presented Across Patient Distress Indicators
| Variable | All | Distress | Other |
|
|---|---|---|---|---|
| Sample size, | 40,326 (100) | 6069 (15) | 34,257 (85) | — |
| Number of encounters | <0.001 | |||
| Mean ± SD | 8.88 ± 9.85 | 9.90 ± 11.15 | 8.70 ± 9.59 | |
| Median (min, max) | 6 (2, 134) | 6 (2, 133) | 6 (2, 134) | |
| Follow-up (y), mean ± SD | 3.83 ± 2.09 | 4.15 ± 2.08 | 3.77 ± 2.08 | <0.001 |
| Age at first encounter (y), mean ± SD | 60.17 ± 16.69 | 60.3 ± 15.79 | 60.15 ± 16.84 | 0.489 |
| Gender (female), | 23,762 (59) | 4326 (71) | 19,436 (57) | <0.001 |
| Race, | <0.001 | |||
| Caucasian/white | 27,323 (68) | 4238 (70) | 23,085 (67) | |
| African American/black | 10,573 (26) | 1575 (26) | 8998 (26) | |
| Asian | 1346 (3) | 103 (2) | 1243 (4) | |
| Multiracial | 410 (1) | 45 (1) | 365 (1) | |
| Other | 674 (2) | 108 (2) | 566 (2) | |
| Ethnicity (Hispanic/Latino), | 1160 (3) | 169 (3) | 991 (3) | 0.672 |
| Marital status (single), | 16,775 (42) | 3117 (51) | 13,658 (40) | <0.001 |
| Alcohol use, | 19,813 (49) | 3376 (56) | 16,437 (48) | <0.001 |
| Smoking use, | 16,528 (41) | 3011 (50) | 13,517 (39) | <0.001 |
| Illicit drug use, | 1276 (3) | 420 (7) | 856 (2) | <0.001 |
| Annual income ($1000), mean ± SD | 32.98 ± 17.95 | 32.66 ± 17.17 | 33.04 ± 18.09 | 0.747 |
| Education (%), mean ± SD | 0.87 ± 0.13 | 0.87 ± 0.13 | 0.87 ± 0.13 | 0.287 |
A patient was defined as having psychosocial distress if they had at least one distress encounter. The only temporally varying variables are alcohol, smoking, and illicit drug use, which are taken to be any use across the entire EHR history and follow-up. P values represent hypothesis tests across distress group, with categorical variables tested using a χ2 test and continuous variables tested using a Wilcoxon rank-sum test.
Summary of Utilization and Problem Lists Calculated Using the Entire EHR History Presented Across Encounter Distress Indicators
| Variable | All, | Distress, | Other, |
|---|---|---|---|
| Sample size | 358,135 (100) | 23,940 (7) | 334,195 (93) |
| CCS diagnostic groups | |||
| Other eye disorders | 246,823 (69) | 17,744 (74) | 229,079 (69) |
| Other aftercare | 245,736 (69) | 21,974 (92) | 223,762 (67) |
| Retinal detachments, defects, vascular occlusion, and retinopathy | 181,054 (51) | 11,925 (50) | 169,129 (51) |
| Cataract | 177,833 (50) | 12,613 (53) | 165,220 (49) |
| Residual codes, unclassified | 169,926 (47) | 19,795 (83) | 150,131 (45) |
| Glaucoma | 146,924 (41) | 8,781 (37) | 138,143 (41) |
| Other screening for suspected conditions (not mental disorders or infectious disease) | 130,440 (36) | 15,714 (66) | 114,726 (34) |
| CCS procedure groups | |||
| Ophthalmologic and otologic diagnosis and treatment | 334,998 (94) | 22,536 (94) | 312,462 (93) |
| Other diagnostic procedures (interview, evaluation, consultation) | 325,570 (91) | 23,710 (99) | 301,860 (90) |
| Other therapeutic procedures | 285,630 (80) | 23,221 (97) | 262,409 (79) |
| Laboratory—chemistry and hematology | 249,917 (70) | 23,081 (96) | 226,836 (68) |
| Other laboratory | 201,153 (56) | 21,777 (91) | 179,376 (54) |
| Microscopic examination (bacterial smear, culture, toxicology) | 173,743 (49) | 20,418 (85) | 153,325 (46) |
| Anesthesia | 157,886 (44) | 13,652 (57) | 144,234 (43) |
| ATC drug groups | |||
| Ophthalmologicals | 210,847 (59) | 17,299 (72) | 193,548 (58) |
| Nasal preparations | 176,427 (49) | 15,274 (64) | 161,153 (48) |
| Antibacterials for systemic use | 165,231 (46) | 15,970 (67) | 149,261 (45) |
| Analgesics | 128,451 (36) | 14,443 (60) | 114,008 (34) |
| Otologicals | 122,304 (34) | 12,784 (53) | 109,520 (33) |
| Stomatological preparations | 117,248 (33) | 13,919 (58) | 103,329 (31) |
| Corticosteroids, dermatological preparations | 109,898 (31) | 13,046 (54) | 96,852 (29) |
| Encounters | |||
| Ophthalmology | 282,412 (79) | 19,270 (80) | 263,142 (79) |
| General surgery | 149,017 (42) | 13,361 (56) | 135,656 (41) |
| General medicine | 130,842 (37) | 16,804 (70) | 114,038 (34) |
| Radiology | 126,622 (35) | 15,244 (64) | 111,378 (33) |
| Lab | 90,576 (25) | 11,741 (49) | 78,835 (24) |
| Orthopedics | 83,819 (23) | 11,510 (48) | 72,309 (22) |
| Emergency medicine | 81,827 (23) | 11,822 (49) | 70,005 (21) |
| Problem list | |||
| Anxiety | 14,412 (4) | 5145 (21) | 9267 (3) |
| Depression | 14,230 (4) | 5062 (21) | 9168 (3) |
The top seven variables are presented for each utilization type and are ranked by their proportion in the entire sample size.
Figure 3.ROC and PR curves for the elastic-net, CatBoost, and Random Forest algorithms. In parentheses are mean ± SD for ROC and PR AUCs across cross-validation folds. Intervals represent 95% cross-validation confidence intervals. The horizontal line on the PR curve represents the prevalence of distress across encounters (7%).
Performance Metrics Presented Across Subgroups
| Metric | Encounters, | Distress, | ROC Curve, Mean ± SE | PR Curve, Mean ± SE |
|---|---|---|---|---|
| All | 358,135 (100) | 23,940 (6.7) | 0.91 ± 0.01 | 0.55 ± 0.03 |
| Subspecialty at Duke Eye Center | ||||
| Comprehensive/general | 50,935 (14.2) | 4408 (8.7) | 0.90 ± 0.01 | 0.56 ± 0.03 |
| Cornea | 37,911 (10.6) | 2213 (5.8) | 0.92 ± 0.03 | 0.55 ± 0.10 |
| Glaucoma | 80,782 (22.6) | 4532 (5.6) | 0.91 ± 0.02 | 0.52 ± 0.05 |
| Low vision | 5315 (1.5) | 416 (7.8) | 0.93 ± 0.03 | 0.59 ± 0.11 |
| Neurology | 9587 (2.7) | 1168 (12.2) | 0.89 ± 0.03 | 0.60 ± 0.06 |
| Ocular immunology | 4811 (1.3) | 338 (7.0) | 0.94 ± 0.04 | 0.60 ± 0.20 |
| Oculoplastics oncology | 5461 (1.5) | 386 (7.1) | 0.91 ± 0.03 | 0.53 ± 0.13 |
| Ophthalmology equipment | 1619 (0.5) | 137 (8.5) | 0.87 ± 0.08 | 0.56 ± 0.19 |
| Pediatrics | 6710 (1.9) | 371 (5.5) | 0.94 ± 0.02 | 0.56 ± 0.14 |
| Surgical comprehensive | 13,404 (3.7) | 1241 (9.3) | 0.89 ± 0.02 | 0.55 ± 0.06 |
| Vision correction | 535 (0.1) | 43 (8.0) | 0.89 ± 0.11 | 0.63 ± 0.31 |
| Vision rehab performance | 5115 (1.4) | 374 (7.3) | 0.90 ± 0.04 | 0.54 ± 0.07 |
| Vitreous retinal | 135,950 (38.0) | 8313 (6.1) | 0.91 ± 0.01 | 0.54 ± 0.05 |
| Disease | ||||
| POAG | 43,233 (12.1) | 3718 (7.4) | 0.91 ± 0.02 | 0.57 ± 0.06 |
| Diabetic retinopathy | 8032 (2.2) | 552 (5.8) | 0.90 ± 0.05 | 0.46 ± 0.13 |
| AMD | 18,270 (5.1) | 1426 (7.3) | 0.90 ± 0.03 | 0.56 ± 0.15 |
| Cataracts | 30,831 (8.6) | 2378 (6.4) | 0.90 ± 0.03 | 0.48 ± 0.10 |
| Demographics | ||||
| Male | ||||
| Caucasian/white | 103,604 (28.9) | 6960 (6.8) | 0.91 ± 0.02 | 0.56 ± 0.05 |
| African American/black | 36,840 (10.3) | 2498 (6.9) | 0.91 ± 0.02 | 0.51 ± 0.06 |
| Other | 8020 (2.2) | 572 (7.2) | 0.92 ± 0.03 | 0.57 ± 0.14 |
| Female | ||||
| Caucasian/white | 141,416 (39.5) | 9389 (6.7) | 0.91 ± 0.01 | 0.54 ± 0.05 |
| African American/black | 59,058 (16.5) | 3952 (6.3) | 0.92 ± 0.01 | 0.56 ± 0.04 |
| Other | 9197 (2.6) | 569 (6.3) | 0.91 ± 0.03 | 0.52 ± 0.17 |
| Age (y) | ||||
| <40 | 35,033 (9.8) | 2090 (6.3) | 0.91 ± 0.02 | 0.53 ± 0.09 |
| 40–50 | 29,693 (8.3) | 2029 (7.0) | 0.91 ± 0.02 | 0.53 ± 0.10 |
| 50–60 | 54,771 (15.3) | 3429 (6.8) | 0.91 ± 0.02 | 0.53 ± 0.10 |
| 60–70 | 92,222 (25.8) | 6400 (6.7) | 0.92 ± 0.01 | 0.55 ± 0.05 |
| 70–80 | 90,435 (25.3) | 5930 (6.6) | 0.90 ± 0.01 | 0.53 ± 0.07 |
| >80 | 55,981 (15.6) | 4062 (6.7) | 0.92 ± 0.02 | 0.57 ± 0.07 |
Performance metrics include AUCs for ROC and PR. The mean across cross-validation folds is presented, along with standard errors. The prevalence of distress is also presented within each subgroup.
Figure 4.Sensitivity values for existing and new distress across a continuum of specificity values. New distress is defined as any distress encounter that was the first distress encounter for each patient and was not preceded by an encounter to a psychiatry clinic. The vertical line represents 70% specificity, which we used to compare our results to previous studies.
ORs for the Top 25 Predictors of Distress Using All Predictor Types With Variables Ordered by the Absolute Value of Their Coefficient
| Variable | Distress, | Other, | OR |
|---|---|---|---|
| Intercept | — | — | 0.01 |
| Enc: Psychiatry (3 mo) | 2730 (11.40) | 473 (0.14) | 3.71 |
| Dx: Adjustment disorders (1 y) | 722 (3.02) | 484 (0.14) | 2.06 |
| Problem list: Anxiety (3 mo) | 453 (1.89) | 355 (0.11) | 2.00 |
| Dx: Anxiety disorders (1 y) | 7184 (30.01) | 9073 (2.71) | 1.94 |
| Problem list: Depression (1 y) | 1576 (6.58) | 1680 (0.50) | 1.91 |
| Dx: E Codes: Suffocation (1 y) | 13 (0.05) | 14 (0.00) | 1.88 |
| Problem list: Depression (3 mo) | 453 (1.89) | 330 (0.10) | 1.81 |
| Dx: Mood disorders (1 y) | 6926 (28.93) | 7477 (2.24) | 1.79 |
| Problem list: Anxiety (1 y) | 1586 (6.62) | 1674 (0.50) | 1.77 |
| Problem list: Depression (5 y) | 5145 (21.49) | 9267 (2.77) | 1.69 |
| Enc: Psychiatry (1 y) | 3874 (16.18) | 1664 (0.50) | 1.67 |
| Proc: Psychological and psychiatric evaluation and therapy (5 y) | 7465 (31.18) | 12,436 (3.72) | 1.63 |
| Dx: Attention-deficit, conduct, and disruptive behavior disorders (3 mo) | 314 (1.31) | 340 (0.10) | 1.59 |
| Dx: Suicide and intentional self-inflicted injury (3 mo) | 155 (0.65) | 39 (0.01) | 1.58 |
| Dx: Anxiety disorders (5 y) | 12,597 (52.62) | 33,728 (10.09) | 1.57 |
| Problem list: Anxiety (5 y) | 5062 (21.14) | 9168 (2.74) | 1.50 |
| Dx: Mood disorders (5 y) | 10,431 (43.57) | 21,587 (6.46) | 1.47 |
| Meds: Psychoanaleptics (5 y) | 12,278 (51.29) | 39,555 (11.84) | 1.45 |
| Dx: Miscellaneous mental health disorders (3 mo) | 823 (3.44) | 1060 (0.32) | 1.43 |
| Meds: Psychoanaleptics (1 y) | 4283 (17.89) | 7928 (2.37) | 1.40 |
| Dx: Maintenance chemotherapy, radiotherapy (3 mo) | 579 (2.42) | 1417 (0.42) | 1.36 |
| Dx: Esophageal disorders (3 mo) | 4390 (18.34) | 13,267 (3.97) | 1.31 |
| Dx: Other nervous system disorders (3 mo) | 6107 (25.51) | 18,381 (5.50) | 1.25 |
| Dx: Residual codes, unclassified (3 mo) | 8841 (36.93) | 33,193 (9.93) | 1.25 |
| Dx: Headache, including migraine (3 mo) | 1264 (5.28) | 2674 (0.80) | 1.24 |
Enc, encounter type; Dx, diagnosis group; Proc, procedure group; Meds, medication group.
Demographic Predictors With Non-Zero Coefficients
| Variable | Importance | Distress | Other | OR | Direction of Association |
|---|---|---|---|---|---|
| Race (African American/Black), | 49 | 5713 (23.86) | 90,185 (26.99) | 0.90 | |
| Illicit drug use (yes), | 90 | 1530 (6.39) | 8488 (2.54) | 1.04 | |
| Gender (female), | 91 | 16,975 (70.91) | 192,696 (57.66) | 1.04 | |
| Marriage (single), | 184 | 12,452 (52.01) | 137,734 (41.21) | 1.01 | |
| Alcohol use (yes), | 185 | 12,782 (53.39) | 154,320 (46.18) | 1.01 | |
| Smoking use (yes), | 225 | 12,166 (50.82) | 144,757 (43.32) | 1.00 | + |
| Age (per 10 y), mean ± SD | 229 | 63.99 ± 15.86 | 64.68 ± 16.22 | 1.00 | – |
| Race (Asian), | 251 | 303 (1.27) | 9238 (2.76) | 1.00 | – |
Presented are ORs, importance rankings, and summaries across encounter type (distress vs. other).
The direction of the association for ORs that rounded to 1.00.