Literature DB >> 36180026

A Framework for Automating Psychiatric Distress Screening in Ophthalmology Clinics Using an EHR-Derived AI Algorithm.

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.
Methods: Subjects came from the Duke Ophthalmic Registry, a retrospective EHR database for the Duke Eye Center. Inclusion criteria included at least two encounters and a minimum of 1 year of follow-up. Presence of distress was defined at the encounter level using a computable phenotype. Risk factors included available EHR history. At each encounter, risk factors were used to discriminate psychiatric status. Model performance was evaluated using area under the receiver operating characteristic (ROC) curve and area under the precision-recall curve (PR AUC). Variable importance was presented using odds ratios (ORs).
Results: Our cohort included 358,135 encounters from 40,326 patients with an average of nine encounters per patient over 4 years. The ROC and PR AUC were 0.91 and 0.55, respectively. Of the top 25 predictors, the majority were related to existing distress, but some indicated stressful conditions, including chemotherapy (OR = 1.36), esophageal disorders (OR = 1.31), central pain syndrome (OR = 1.25), and headaches (OR = 1.24). Conclusions: Psychiatric distress in ophthalmology patients can be monitored passively using an AI algorithm trained on existing EHR data. Translational Relevance: When paired with an effective referral and treatment program, such algorithms may improve health outcomes in ophthalmology.

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


Introduction

In patients with ophthalmic disorders, psychosocial risk factors play an important role in morbidity and mortality. The prevalence of psychiatric distress (i.e., anxiety and depression) in ophthalmic diseases is high; in studies of cataracts, glaucoma, diabetic retinopathy, and age-related macular degeneration (the leading causes of blindness and vision loss in the United States) the prevalence of psychiatric distress ranged from 5% to 57%.– Similar prevalence was noted for other common ophthalmic disorders such as dry eyes. The presence of psychiatric distress in ophthalmic disorders is associated with worse medication and follow-up adherence, disease comprehension, and vision-related quality of life, as well as increased morbidity and health care costs. Proper and early screening of psychiatric distress can result in prompt intervention and can mitigate negative outcomes. However, traditional approaches to psychiatric screening present burdens related to cost and time requirements. There are examples of practices and clinics that have implemented strategies that limit burdens, including routinely using brief self-report questionnaires. For example, oncology and cardiology clinics have tested a two-stage approach. This approach begins with large-scale prescreening of patients using a brief self-report questionnaire in oncology using the National Comprehensive Cancer Network (NCCN) distress thermometer and in cardiology using the two-item patient health questionnaire. Then, only patients who test positive on the prescreening instrument are screened further using a more formal assessment. This approach limits time and cost burdens, as only a subset of high-risk patients receive formal assessment. Nonetheless, the two-stage approach is not widely used, due to patient reluctance, time consumption, and a lack of personnel to administer the questionnaires. In recent years, there has been an increasing focus on automating screening for distress with the assistance of emerging technologies, including artificial intelligence (AI)-driven emotion recognition, to alleviate challenges associated with routine screening. These methods, however, require prospective data collection, which is not conducive to screening in clinics where resources are limited. To overcome this limitation, we propose developing an automated prescreening measure of psychiatric distress that is based on available and existing electronic health records (EHR) data. EHR data have been used extensively to develop computable phenotypes of, and predictions for, incident medical disorders., Identifying existing and incident cases of psychiatric distress is critical, as interventions can be tailored to improve patient distress attributed to vision-related diseases. In this study, we developed an automated AI algorithm to predict psychiatric distress among a large cohort of patients attending the Duke Eye Center, a tertiary referral center. We hypothesized that the AI algorithm would have high accuracy to identify distress, indicating that prescreening could be performed automatically at scale, with formal assessment reserved for a predetermined subset of high-risk patients.

Methods

This was a retrospective cohort study using patients from the Duke Ophthalmic Registry, which consisted of adults at least 18 years of age who were evaluated at the Duke Eye Center or its satellite clinics from 2012 to 2021. The Duke University Institutional Review Board approved this study with a waiver of informed consent due to the retrospective nature of this work. All methods adhered to the tenets of the Declaration of Helsinki for research involving human subjects and were conducted in accordance with regulations of the Health Insurance Portability and Accountability Act. Patients were included in the cohort if they had at least two encounters and at least 1 year of follow-up to the Duke Eye Center main site. Eligible encounters included any in which the patient was at least 18 years of age and that occurred between June 2013 and October 2021.

Psychiatric Distress Outcome

Psychiatric distress (often shortened to distress throughout the manuscript) was defined as a binary indicator at the encounter level using an existing EHR phenotype from the Phenotype KnowledgeBase (PheKB) that defined depression and anxiety. Psychiatric distress is one factor of the multifactorial psychosocial distress and was chosen as an outcome in this study because it can be reliably measured from EHR data. Versions of this algorithm have been shown to be associated with the nine-item patient health questionnaire, with area under the receiver operating characteristic (ROC) curve of 0.70 to 0.80., Distress was defined at the encounter level, because anxiety and depression are not permanent conditions and can be recurrent., Distress was defined using International Classification of Diseases (ICD) diagnostic codes, medical history, and Current Procedural Terminology (CPT) procedure codes. The detailed definitions using these codes and medications are found in the pseudo-code for the phenotype available at PheKB. ICD codes for depression and anxiety can be found in Supplementary Tables S1 and S2, respectively. Medications used to identify depression and anxiety can be found in Supplementary Tables S3 and S4, which contain a list of generic and brand names of antidepressant and antianxiety medications. CPT codes are included in Supplementary Table S5 and included procedure codes for delivering psychotherapy. For each encounter, distress was defined if an eligible diagnostic or procedure code or medication occurred within a window of 180 days around the encounter date. For a diagnostic code to indicate distress it had to occur on at least two distinct calendar days that are at least 30 days apart and not more than 180 days apart. This is intended to avoid interpreting as an event “rule-out” codes that only appear in a patient's record once for a brief period (i.e., <30 days). The 180-day feature is intended to acknowledge that “rule-out” coding may appear more than once in a patient's medical record. This rule is stricter than the more common approach that only requires the presence of a single code. However, accounting for the nature of the EHR data is likely to lead to a higher positive predictive value. For a medication to indicate distress, it had to occur within 30 days of a corresponding ICD diagnostic code. For example, an anti-anxiety medication had to occur within 30 days of an ICD code indicating anxiety. There were no additional criteria for a CPT code to indicate distress, only that it occurred within 180 days of the encounter date. A visualization of the modeling framework can be found in Figure 1, and the flow chart in Figure 2 shows how patient distress was defined.
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.

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. Flow chart demonstrating how patient distress was defined at the encounter level. Diagnosis and procedure codes come from the ICD.

Risk Factors

For each encounter, risk factors of distress were defined based on the available EHR history for that patient (i.e., any data available by the encounter). The risk factors were broken up into three groups: utilization, demographics, and problem list. The algorithm had 1840 variables as input.

Utilization

Utilization contained predictors that quantify a patient's use of healthcare services and included diagnostic and procedure codes, medications, and clinical encounters. Diagnostic (ICD) and procedure (CPT) codes were grouped based on the Clinical Classifications Software (CCS) developed by the Agency for Healthcare Research and Quality. All ICD codes were categorized using Version 9 ICD codes; thus, all Version 10 ICD codes were first mapped to Version 9 using the general equivalence mappings (Centers for Medicare and Medicaid Services). There were 253 and 239 categories of diagnostic and procedure non-zero codes, respectively. Medications were grouped using the second level of the Anatomical Therapeutic Chemical (ATC) classification. This yielded 81 different drug subgroups. There were 35 distinct clinical encounter types. For each encounter, utilization variables were coded as binary indicators of the variable occurring in a time window prior to the encounter (e.g., encounter to an oncology clinic). Three windows were used: within the past 3 months, 1 year, and 5 years. This yielded three binary variables for each utilization variable. For example, consider a patient at an ophthalmology encounter who had an oncology encounter 2 years prior. This patient would have three variables representing their prior utilization of oncology clinics. The variables representing within the past 3 months and 1 year would be zero, indicating no utilization, and the variable representing the past 5 years would be one, representing utilization. Because the definition of the outcome included a 180-day window around the encounter, variables that were identified in the 180-day window prior to the encounter and were used to define the outcome were not included when defining the predictors. This was done because the presence of these codes indicates a deterministic relationship with the outcome. In this setting, our algorithm is not needed, and the patient can be assumed to be distressed. Codes that were removed include CCS diagnostic groups (adjustment disorders, alcohol-related disorders, anxiety disorders, disorders usually diagnosed in infancy, childhood, or adolescence, mood disorders, and substance-related disorders), CCS procedure group (psychological and psychiatric evaluation and therapy), and ATC subgroups (N06A, N05A, N05B). As an example, if an ICD code for anxiety showed up 90 days prior to the encounter, the CCS group anxiety disorders would be zeroed out for all three follow-up windows. This zeroing out applied to the presence of a single code, as opposed to the stricter rule defined in the outcome above. This was done to avoid allowing the AI algorithm to learn a near deterministic map. However, if there was an additional ICD code for anxiety at 181 days prior to the encounter, the anxiety variable would be one for both 1 and 5 years. We did not remove these variables that preceded the 180-day window, because previous distress is a predictor of future distress.

Demographics

The demographic risk factors included age at the encounter (years), sex (male, female), race (Caucasian/white, African American/black, Asian, multiracial, other), ethnicity (non-Hispanic Latino, Hispanic Latino), marital status (married, single), income level, education, and binary behavior indicators of prior use of alcohol, smoking, and illicit drugs. The first level of the categorical variables was used as the reference category. Income level and education were obtained from U.S. Census Bureau's American Community Survey for 2006 to 2011. Income level was measured by per capita income in the past 12 months and was race specific. Education was measured by the percentage of residents who achieved a high-school education and was sex specific. Census data were assigned to patients based on the Zip Code in which they lived. In the models, age and education were scaled by 10, and income was scaled by 10,000. All three continuous predictors were mean centered. Of the demographic variables, race, ethnicity, marriage, income, and education had missing values at a rate less than 10%. These missing values were imputed using single mean imputation, and all patients were included in the final analysis.

Problem List

Problem list items included any mention of depression (key words: depressed, depression, major depression) or anxiety (anxiety, obsessive compulsive disorder, panic attacks, panic disorders, post-traumatic stress disorder). Problem list items were again coded temporally, using 3 months, 1 year, and 5 years. For both anxiety and depression, an indicator was created to signal if at least one measure was present in each of the temporal ranges. Because problem list items were not used to define the PheKB outcome, we did not remove any problem list items within 180 days of the encounter.

Training the Model

To predict psychiatric distress using the EHR history upon encounter at the Duke Eye Center, we used three machine learning classification models: elastic-net, Random Forest, and CatBoost. Elastic-net is a regularized linear model that penalizes overfitting by shrinking the regression coefficients toward zero. The log-likelihood function to be minimized is where x is a p-dimensional vector of the EHR history; y is an indicator of distress for encounter i = 1, …, n; β is a vector of regression coefficients; and β0 is an intercept. The penalty term λ represents the degree of penalization, and the elastic-net term α bridges the gap between a least absolute shrinkage and selection operator (LASSO; α = 1) and Ridge regression (α = 0). It is known that Ridge regression shrinks coefficients of correlated predictors toward each other, whereas LASSO tends to pick one and zero-out the others. The potential weakness of a linear model is that variables may interact with one another in ways we do not know beforehand. Decision trees are often a successful method in such situations, but they can have overfitting problems; the risk of overfitting is reduced by ensemble methods such as random forests or gradient boosting, both of which we also employ. The Random Forest algorithm uses an ensemble of decision trees to make robust predictions, where the output of the Random Forest algorithm is given by the class selected by the most trees. CatBoost is a gradient boosting algorithm for binary classification trees that uses ordered boosting to overcome overfitting and allows for categorical features to be handled natively. Although ridge regression can be accomplished by traditional gradient descent, the other (absolute value) penalty term in the elastic-net algorithm means we instead must use a different method; the most efficient currently is cyclical coordinate descent, which we performed in glmnet. To both tune the pair (λ, α) and estimate model accuracy in an unbiased manner, we used nested cross-validation, with the inner loop tuning (λ, α) via a grid search to minimize internal cross-validation error minus one standard error, and with the outer loop estimating model performance including area under the curve (AUC) for both ROC and precision–recall (PR) curves. The Random Forest algorithm was run with 500 trees and one random split for each candidate splitting variable. CatBoost was run with default parameters using the cross-entropy loss. All three models were implemented using 10-fold cross-validation. An additional test dataset was not used. To prevent data leakage, sampling was performed at the patient level, and the percent of distress was balanced across folds.

Statistical Analysis

The overall performance of the models was evaluated using the ROC and PR AUC, estimated by cross-validation as in the preceding paragraph. All performance metrics are presented as a mean and standard deviation (SD) across the 10 cross-validation folds. PR curves plot precision (i.e., positive predictive value) against recall (i.e., sensitivity) and are useful when there is imbalance in the cases and controls. A PR curve depends only on predictions of the minority class, as precision and recall do not depend on true negatives. These summaries are presented overall and for subgroups, including within each subspecialty at the Duke Eye Center, diseases including primary open-angle glaucoma (POAG), diabetic retinopathy, age-related macular degeneration (AMD), and cataracts, and demographics. Disease diagnoses were based on ICD diagnostic code definitions from previous studies– and had to occur within 30 days of a corresponding clinic encounter (POAG from the glaucoma clinic, AMD and diabetic retinopathy from the vitreous retinal clinic, cataracts from any clinic). Finally, to determine the importance of the time interval for prediction (i.e., 3 months, 1 year, 5 years), we examined overall performance for models that included only data from each time interval. Additionally, sensitivity is presented across varying levels of specificity. Sensitivity is presented for all cases of distress and a subset of cases determined to be incident or new. A new case was required to be the first case present for a patient and to have no prior encounters to a psychiatry clinic. Furthermore, the patient could have no problem list, medication, or procedure items prior to the encounter that suggested any psychiatric diagnoses. We highlight sensitivity at a specificity of 70%. This value comes from published data from a two-stage screening approach, where we used the proportion of patients referred from the prescreening questionnaire who ended up not having distress in a more formal evaluation (i.e., specificity)., Finally, for the elastic-net model, the largest 25 coefficients in absolute value were presented, along with their odds ratios (ORs). The ORs were averaged across the 10 cross-validation folds. The non-zero demographic predictors were also presented. OR P values were not presented, as they cannot be computed reliably for the elastic-net model. The summaries for the cohort are presented with continuous variables presented as mean and standard deviation and categorical variables as counts and percentages. Hypothesis tests are presented across distress group; categorical variables were tested using a χ2 test, and continuous variables were tested using a Wilcoxon rank-sum test. Patient data were anonymized, and all statistical analyses were conducted using R 4.0.5 (R Foundation for Statistical Computing, Vienna, Austria) within the Protected Analytics Computing Environment (PACE). PACE is a secure virtual network space developed by Duke University for the analysis of identifiable protected health information. The R packages glmnet, ranger, and catboost were used to carry out the models.,,

Results

The study cohort consisted of 358,135 encounters from 40,326 patients with an average ± SD of 9 ± 10 encounters per patient over 4 ± 2 years of follow-up. The average age of the patients was 60 ± 17 years, with a breakdown of 23,762 (59%) females, 27,323 (68%) Caucasian/white, 10,573 (26%) African American/black, and the rest Asian, multiracial, and other races. There were 6069 (15%) patients with at least one encounter with corresponding distress. Full summary details at the patient level can be found in Table 1. Encounter level summaries can be found in Table 2, with the top seven predictors by base rate presented for each utilization category, along with problem list items.
Table 1.

Summary of Demographics Presented Across Patient Distress Indicators

VariableAllDistressOther P
Sample size, n (%)40,326 (100)6069 (15)34,257 (85)
Number of encounters<0.001
 Mean ± SD8.88 ± 9.859.90 ± 11.158.70 ± 9.59
 Median (min, max)6 (2, 134)6 (2, 133)6 (2, 134)
Follow-up (y), mean ± SD3.83 ± 2.094.15 ± 2.083.77 ± 2.08<0.001
Age at first encounter (y), mean ± SD60.17 ± 16.6960.3 ± 15.7960.15 ± 16.840.489
Gender (female), n (%)23,762 (59)4326 (71)19,436 (57)<0.001
Race, n (%)<0.001
 Caucasian/white27,323 (68)4238 (70)23,085 (67)
 African American/black10,573 (26)1575 (26)8998 (26)
 Asian1346 (3)103 (2)1243 (4)
 Multiracial410 (1)45 (1)365 (1)
 Other674 (2)108 (2)566 (2)
Ethnicity (Hispanic/Latino), n (%)1160 (3)169 (3)991 (3)0.672
Marital status (single), n (%)16,775 (42)3117 (51)13,658 (40)<0.001
Alcohol use, n (%)19,813 (49)3376 (56)16,437 (48)<0.001
Smoking use, n (%)16,528 (41)3011 (50)13,517 (39)<0.001
Illicit drug use, n (%)1276 (3)420 (7)856 (2)<0.001
Annual income ($1000), mean ± SD32.98 ± 17.9532.66 ± 17.1733.04 ± 18.090.747
Education (%), mean ± SD0.87 ± 0.130.87 ± 0.130.87 ± 0.130.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.

Table 2.

Summary of Utilization and Problem Lists Calculated Using the Entire EHR History Presented Across Encounter Distress Indicators

VariableAll, n (%)Distress, n (%)Other, n (%)
Sample size358,135 (100)23,940 (7)334,195 (93)
CCS diagnostic groups
 Other eye disorders246,823 (69)17,744 (74)229,079 (69)
 Other aftercare245,736 (69)21,974 (92)223,762 (67)
 Retinal detachments, defects, vascular occlusion, and retinopathy181,054 (51)11,925 (50)169,129 (51)
 Cataract177,833 (50)12,613 (53)165,220 (49)
 Residual codes, unclassified169,926 (47)19,795 (83)150,131 (45)
 Glaucoma146,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 treatment334,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 procedures285,630 (80)23,221 (97)262,409 (79)
 Laboratory—chemistry and hematology249,917 (70)23,081 (96)226,836 (68)
 Other laboratory201,153 (56)21,777 (91)179,376 (54)
 Microscopic examination (bacterial smear, culture, toxicology)173,743 (49)20,418 (85)153,325 (46)
 Anesthesia157,886 (44)13,652 (57)144,234 (43)
ATC drug groups
 Ophthalmologicals210,847 (59)17,299 (72)193,548 (58)
 Nasal preparations176,427 (49)15,274 (64)161,153 (48)
 Antibacterials for systemic use165,231 (46)15,970 (67)149,261 (45)
 Analgesics128,451 (36)14,443 (60)114,008 (34)
 Otologicals122,304 (34)12,784 (53)109,520 (33)
 Stomatological preparations117,248 (33)13,919 (58)103,329 (31)
 Corticosteroids, dermatological preparations109,898 (31)13,046 (54)96,852 (29)
Encounters
 Ophthalmology282,412 (79)19,270 (80)263,142 (79)
 General surgery149,017 (42)13,361 (56)135,656 (41)
 General medicine130,842 (37)16,804 (70)114,038 (34)
 Radiology126,622 (35)15,244 (64)111,378 (33)
 Lab90,576 (25)11,741 (49)78,835 (24)
 Orthopedics83,819 (23)11,510 (48)72,309 (22)
 Emergency medicine81,827 (23)11,822 (49)70,005 (21)
Problem list
 Anxiety14,412 (4)5145 (21)9267 (3)
 Depression14,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.

Summary of Demographics Presented Across Patient Distress Indicators 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 The top seven variables are presented for each utilization type and are ranked by their proportion in the entire sample size. The optimal tuning parameters in the elastic-net model were found to be α = 0.08 ± 0.03 and λ = 0.04 ± 0.01, indicating a preference for Ridge regression. The original number of predictors included was 1840, and after regularization only 292 remained that were non-zero in at least one cross-validation fold. The ROC and PR curves for the three machine learning algorithms are presented in Figure 3. The intervals correspond to 95% cross-validation confidence intervals. The mean ± SD ROC AUCs for elastic-net, CatBoost, and Random Forest were 0.912 ± 0.007, 0.918 ± 0.007, and 0.913 ± 0.007, respectively, with PR AUCs of 0.547 ± 0.032, 0.575 ± 0.031, and 0.552 ± 0.033. For a PR curve, a non-informative classifier would yield an AUC equal to the prevalence of distress in the population, 7% at the encounter level. The improvements from CatBoost and Random Forest were minimal compared to elastic-net and within the range of cross-validation error. Because the elastic-net model was comparable in terms of performance with the more complex algorithms and yields interpretable feature importance values as OR, the remaining results are presented using the elastic-net model.
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%).

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%). Table 3 includes the ROC and PR AUCs across subspecialty, diseases, and demographics, along with the base rate and prevalence of distress within each subgroup. AUC performances ranged from 0.87 to 0.94 for ROC curves and 0.52 to 0.63 for PR curves. The ROC and PR AUCs for neuro-ophthalmology, the subspecialty with the highest level of distress at 12.2%, were 0.89 and 0.60, respectively. For POAG and AMD (the diseases with the highest rates of distress at 7.4% and 7.3%, respectively), the ROC and PR AUCs were 0.91 and 0.90 and 0.57 and 0.56, respectively. Finally, Supplementary Figure S1 and Table S6 present results of the elastic-net model with only predictors from 3 months, 1 year, and 5 years prior to the encounter.
Table 3.

Performance Metrics Presented Across Subgroups

MetricEncounters, n (%)Distress, n (%)ROC Curve, Mean ± SEPR Curve, Mean ± SE
All358,135 (100)23,940 (6.7)0.91 ± 0.010.55 ± 0.03
Subspecialty at Duke Eye Center
 Comprehensive/general50,935 (14.2)4408 (8.7)0.90 ± 0.010.56 ± 0.03
 Cornea37,911 (10.6)2213 (5.8)0.92 ± 0.030.55 ± 0.10
 Glaucoma80,782 (22.6)4532 (5.6)0.91 ± 0.020.52 ± 0.05
 Low vision5315 (1.5)416 (7.8)0.93 ± 0.030.59 ± 0.11
 Neurology9587 (2.7)1168 (12.2)0.89 ± 0.030.60 ± 0.06
 Ocular immunology4811 (1.3)338 (7.0)0.94 ± 0.040.60 ± 0.20
 Oculoplastics oncology5461 (1.5)386 (7.1)0.91 ± 0.030.53 ± 0.13
 Ophthalmology equipment1619 (0.5)137 (8.5)0.87 ± 0.080.56 ± 0.19
 Pediatrics6710 (1.9)371 (5.5)0.94 ± 0.020.56 ± 0.14
 Surgical comprehensive13,404 (3.7)1241 (9.3)0.89 ± 0.020.55 ± 0.06
 Vision correction535 (0.1)43 (8.0)0.89 ± 0.110.63 ± 0.31
 Vision rehab performance5115 (1.4)374 (7.3)0.90 ± 0.040.54 ± 0.07
 Vitreous retinal135,950 (38.0)8313 (6.1)0.91 ± 0.010.54 ± 0.05
Disease
 POAG43,233 (12.1)3718 (7.4)0.91 ± 0.020.57 ± 0.06
 Diabetic retinopathy8032 (2.2)552 (5.8)0.90 ± 0.050.46 ± 0.13
 AMD18,270 (5.1)1426 (7.3)0.90 ± 0.030.56 ± 0.15
 Cataracts30,831 (8.6)2378 (6.4)0.90 ± 0.030.48 ± 0.10
Demographics
 Male
  Caucasian/white103,604 (28.9)6960 (6.8)0.91 ± 0.020.56 ± 0.05
  African American/black36,840 (10.3)2498 (6.9)0.91 ± 0.020.51 ± 0.06
  Other8020 (2.2)572 (7.2)0.92 ± 0.030.57 ± 0.14
 Female
  Caucasian/white141,416 (39.5)9389 (6.7)0.91 ± 0.010.54 ± 0.05
  African American/black59,058 (16.5)3952 (6.3)0.92 ± 0.010.56 ± 0.04
  Other9197 (2.6)569 (6.3)0.91 ± 0.030.52 ± 0.17
Age (y)
 <4035,033 (9.8)2090 (6.3)0.91 ± 0.020.53 ± 0.09
 40–5029,693 (8.3)2029 (7.0)0.91 ± 0.020.53 ± 0.10
 50–6054,771 (15.3)3429 (6.8)0.91 ± 0.020.53 ± 0.10
 60–7092,222 (25.8)6400 (6.7)0.92 ± 0.010.55 ± 0.05
 70–8090,435 (25.3)5930 (6.6)0.90 ± 0.010.53 ± 0.07
 >8055,981 (15.6)4062 (6.7)0.92 ± 0.020.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.

Performance Metrics Presented Across Subgroups 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 presents the sensitivity values for existing and new distress across a continuum of specificity values. At a specificity level of 0.70, the sensitivity values were 0.92 ± 0.01 and 0.71 ± 0.06, respectively, for existing and new distress. Table 4 presents the top 25 predictors of distress from the elastic-net model. The full list of non-zero predictors is given in Supplementary Table S7. Finally, in Table 5, we present the non-zero coefficients for the demographic and risky-behavior predictors. In Table 5 and Supplementary Table S7, ORs that rounded to 1.00 have an additional column indicating the direction of the association.
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.

Table 4.

ORs for the Top 25 Predictors of Distress Using All Predictor Types With Variables Ordered by the Absolute Value of Their Coefficient

VariableDistress, n (%)Other, n (%)OR
Intercept0.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.

Table 5.

Demographic Predictors With Non-Zero Coefficients

VariableImportanceDistressOtherORDirection of Associationa
Race (African American/Black), n (%)495713 (23.86)90,185 (26.99)0.90
Illicit drug use (yes), n (%)901530 (6.39)8488 (2.54)1.04
Gender (female), n (%)9116,975 (70.91)192,696 (57.66)1.04
Marriage (single), n (%)18412,452 (52.01)137,734 (41.21)1.01
Alcohol use (yes), n (%)18512,782 (53.39)154,320 (46.18)1.01
Smoking use (yes), n (%)22512,166 (50.82)144,757 (43.32)1.00+
Age (per 10 y), mean ± SD22963.99 ± 15.8664.68 ± 16.221.00
Race (Asian), n (%)251303 (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.

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 Enc, encounter type; Dx, diagnosis group; Proc, procedure group; Meds, medication group. Demographic Predictors With Non-Zero Coefficients 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.

Discussion

In this study, we introduced an AI algorithm that automates prescreening of psychiatric distress using existing EHR data. Our findings suggest that prescreening of distress can be accomplished at scale, eliminating previous hurdles to scalability in the two-stage approach including patient reluctance, time consumption, and a lack of personnel to administer the questionnaires. This finding is particularly important in an ophthalmology setting, where patients have high levels of distress, yet there is no existing infrastructure for distress screening. In our study, 15% of patients had at least one encounter with distress. This value is consistent with previously reported prevalence of anxiety and depression in patients with ophthalmic disorders, which ranged from 5% to 57%.– Our prevalence is likely on the lower end, as our inclusion criteria did not include a disease diagnosis. At the encounter level, the prevalence of distress was 7%, with neuro-ophthalmology having the highest rate of distress at 12.2%. This finding is consistent with literature that indicates the overlap of neuro-ophthalmology and psychiatric conditions. Of the diseases we included in our study, distress was highest among patients with POAG (7.4%) and AMD (7.3%). This is consistent with previous findings, as patients with POAG and AMD are at higher risk for anxiety and depression., Our algorithm had high classification accuracy, with ROC and PR AUCs of 0.912 ± 0.007 and 0.547 ± 0.032, respectively. The performance was consistent across varying subspecialties, diseases, and demographics. Of note, for the high-distress subgroups (i.e., neuro-ophthalmology, POAG, and AMD), the PR AUCs are on the upper end of performance with values of 0.60 ± 0.06, 0.57 ± 0.06, and 0.56 ± 0.15, respectively. We also presented sensitivity values at a fixed specificity of 0.70, which has meaning based in literature comparing brief pre-screening surveys to a gold-standard psychiatric assessment of distress. For example, Cull et al. reported a sensitivity and specificity of 0.85 and 0.71, respectively, when comparing the Hospital Anxiety and Depression Scale to a gold-standard psychiatric interview in oncology patients. Another study, using a meta-analysis, found a sensitivity of 0.81 (0.79–0.82) at a specificity of 0.72 when comparing the NCCN Distress Thermometer to the Hospital Anxiety and Depression Scale. Neither study distinguished between existing and new distress. In our study, at a specificity level of 0.70 the sensitivity values were 0.92 ± 0.01 and 0.71 ± 0.06, respectively, for existing and new distress. These results are promising and indicate that our modeling framework may be able to replicate the operating characteristics of existing pre-screening surveys for both existing and new distress. In ophthalmology clinics, identifying both patients who have already been treated for distress and those with new distress is an important task. For patients with existing distress who have already been treated, the algorithm can be viewed as a computable phenotype that collects existing EHR data and returns a summary statistic that represents level of distress. If the PheKB phenotype is a valid measure of distress, this viewpoint should hold. This is important in the context of ophthalmic disorders, as there is evidence that interventions can be tailored to specific eye disorders to improve well-being. For example, a recent study in visually impaired glaucoma patients demonstrated that a social work intervention decreased distress. This intervention provided support for these patients that was tailored to eye-related distress, including procuring closed-circuit televisions. Thus, the algorithm removes any barriers to identifying distressed patients during routine care and sets up a system where distressed patients can be referred to an intervention that is tailored to patients with eye disorders. This is particularly impactful in an ophthalmology context, where resources and priorities do not permit screening for distress, even if it is already present in the EHR. Our algorithm performs well in this setting, with a sensitivity of 0.92 at a specificity of 0.70. For patients not currently being treated for distress, the algorithm can be viewed as a prediction model that identifies incident distress. At a specificity level of 0.70, our model has a sensitivity of 0.83 for new cases, indicating that the performance is still adequate in patients without psychiatric indicators in their EHR history. This is a particularly impactful finding because our modeling framework uses EHR data for both the predictors and outcome. Therefore, based on the design of our model, it follows that we can identify existing distress at a high rate. The fact that we can identify incident distress with no EHR history indicates that the model can be used more generally to predict distress. This is further illuminated in the non-zero variables in the elastic-net model. Of the top 25 predictors in Table 4, we see that the majority are related to existing distress, including the first variable, an encounter to a psychiatry clinic within the past 3 months. This reinforces that our model performs well for existing cases of distress. Also present, however, are variables that are associated with distress but are not direct indicators of healthcare utilization related to distress, including suffocation and strangulation (OR = 1.88); self-inflicted injuries, including attempt of suicide (1.58); chemotherapy (1.36); esophageal disorders, including esophagitis (1.31); other nervous system disorders, including central pain syndrome (1.25); and headaches and migraines (1.24). The presence of these variables is more evidence that our model is not simply identifying existing characteristic healthcare utilization for distress. Although our model performs adequately for incident distress, we could likely improve the performance by including diagnostic tests, including clinical measures of disease severity. We did not do this initially, because we restricted ourselves to data input by clinicians and billing codes from Duke University's EHR system Epic. In the future, we will expand our algorithm to include these diagnostic test data, including imaging data. These measures are not readily available and must be extracted from individual instruments. The current model can be applied in a more general EHR system without additional data collection and curation. Furthermore, our patients may have been receiving psychiatric care outside the Duke University Health System that we did not have access to when defining our distress outcome. We tried to minimize this by limiting our patient population to those attending the Duke Eye Center main site, which is in Durham, NC, where the Duke University main hospital and majority of outpatient clinics are located. To fully overcome this limitation, a formal external validation of our AI algorithm should be performed using a gold-standard assessment of distress. Finally, prior to this algorithm being employed outside of Duke, it should be trained with data from multiple health centers to permit generalizability. In our study, we looked at the performance of three machine learning models, including two nonlinear ones (CatBoost and Random Forest), with the linear model elastic-net winning due to interpretability. In the future, it would be beneficial to also include a state-of-the-art deep neural network model, although there is a tradeoff in interpretability and performance. This will become more important for natural language processing approaches that can be used to incorporate clinical progress notes as predictors in the EHR history. Furthermore, there are improvements that can be considered for the actual model structure; for example, the models would likely be improved if they accounted for dependencies introduced by encounters belonging to the same patient. Finally, because our model has demonstrated that it can identify patients with distress, an important question then becomes what to do with these patients? There is substantial evidence that screening alone is not enough and that an efficient referral system and evidence-based treatment are necessary. Thus, developing a system for identifying and treating patients with distress in ophthalmology clinics will require buy-in from the patient, provider, payer, and healthcare system. Future studies will have to focus on the development of referral systems that are acceptable to patients and providers, as well as interventions, including vision and behavioral interventions, that could improve patients’ quality of life and are focused on improving distress related to specific vision-related disorders. A special focus will have to be on guaranteeing that patients will have access to appropriate care, regardless of demographics and distress severity. In conclusion, our study demonstrated that prescreening for distress in ophthalmology patients can be automated using an AI algorithm trained on existing EHR data. The algorithm identified distress in patients already being treated, and in those with incident distress. These findings suggest that screening for distress in ophthalmology clinics is feasible and may reduce negative health outcomes in patients.
  36 in total

1.  Screening alone is not enough: the importance of appropriate triage, referral, and evidence-based treatment of distress and common problems.

Authors:  Linda E Carlson
Journal:  J Clin Oncol       Date:  2013-09-03       Impact factor: 44.544

2.  Validation of electronic medical record-based phenotyping algorithms: results and lessons learned from the eMERGE network.

Authors:  Katherine M Newton; Peggy L Peissig; Abel Ngo Kho; Suzette J Bielinski; Richard L Berg; Vidhu Choudhary; Melissa Basford; Christopher G Chute; Iftikhar J Kullo; Rongling Li; Jennifer A Pacheco; Luke V Rasmussen; Leslie Spangler; Joshua C Denny
Journal:  J Am Med Inform Assoc       Date:  2013-03-26       Impact factor: 4.497

3.  The psychosocial impact of macular degeneration.

Authors:  R A Williams; B L Brody; R G Thomas; R M Kaplan; S I Brown
Journal:  Arch Ophthalmol       Date:  1998-04

4.  Strategies for handling missing clinical data for automated surgical site infection detection from the electronic health record.

Authors:  Zhen Hu; Genevieve B Melton; Elliot G Arsoniadis; Yan Wang; Mary R Kwaan; Gyorgy J Simon
Journal:  J Biomed Inform       Date:  2017-03-16       Impact factor: 6.317

5.  Depression and medication adherence in the treatment of chronic diseases in the United States: a meta-analysis.

Authors:  Jerry L Grenard; Brett A Munjas; John L Adams; Marika Suttorp; Margaret Maglione; Elizabeth A McGlynn; Walid F Gellad
Journal:  J Gen Intern Med       Date:  2011-05-01       Impact factor: 5.128

6.  Strong rules for discarding predictors in lasso-type problems.

Authors:  Robert Tibshirani; Jacob Bien; Jerome Friedman; Trevor Hastie; Noah Simon; Jonathan Taylor; Ryan J Tibshirani
Journal:  J R Stat Soc Series B Stat Methodol       Date:  2012-03       Impact factor: 4.488

7.  Acceptability of common screening methods used to detect distress and related mood disorders-preferences of cancer specialists and non-specialists.

Authors:  Alex J Mitchell; Stephen Kaar; Chris Coggan; Joanne Herdman
Journal:  Psychooncology       Date:  2008-03       Impact factor: 3.894

8.  Psychosocial distress associated with disfiguring eye conditions.

Authors:  A Clarke; N Rumsey; J R O Collin; M Wyn-Williams
Journal:  Eye (Lond)       Date:  2003-01       Impact factor: 3.775

9.  Causes and prevalence of visual impairment among adults in the United States.

Authors:  Nathan Congdon; Benita O'Colmain; Caroline C W Klaver; Ronald Klein; Beatriz Muñoz; David S Friedman; John Kempen; Hugh R Taylor; Paul Mitchell
Journal:  Arch Ophthalmol       Date:  2004-04

10.  PLS-Based and Regularization-Based Methods for the Selection of Relevant Variables in Non-targeted Metabolomics Data.

Authors:  Renata Bujak; Emilia Daghir-Wojtkowiak; Roman Kaliszan; Michał J Markuszewski
Journal:  Front Mol Biosci       Date:  2016-07-26
View more

北京卡尤迪生物科技股份有限公司 © 2022-2023.