| Literature DB >> 35943774 |
Amir Rastpour1, Carolyn McGregor1,2.
Abstract
BACKGROUND: Wait times impact patient satisfaction, treatment effectiveness, and the efficiency of care that the patients receive. Wait time prediction in mental health is a complex task and is affected by the difficulty in predicting the required number of treatment sessions for outpatients, high no-show rates, and the possibility of using group treatment sessions. The task of wait time analysis becomes even more challenging if the input data has low utility, which happens when the data is highly deidentified by removing both direct and quasi identifiers.Entities:
Keywords: machine learning; mental health care; outpatient clinics; random forest; system’s knowledge; wait time prediction
Year: 2022 PMID: 35943774 PMCID: PMC9399879 DOI: 10.2196/38428
Source DB: PubMed Journal: JMIR Ment Health ISSN: 2368-7959
Summary statistics of patients’ wait time across different clinics (N=4187).
| Clinic | Patients (n) | Mean (SD) days | Median days |
| Anxiety and Mood Disorders Clinic | 298 | 98.08 (105.71) | 64 |
| Traumatic Stress Clinic | 203 | 173.85 (113.58) | 165 |
| Borderline Personality Self-Regulation Clinic | 181 | 107.42 (60.33) | 112 |
| Women’s Clinic | 155 | 80.19 (47.08) | 75 |
| Prompt Care Clinic | 2338 | 29.05 (23.90) | 21 |
| Prompt Anxiety and Mood Disorders Consultation | 436 | 186.42 (138.16) | 205.5 |
| Prompt Transitional Aged Youth Consultation | 402 | 54.5 (45.77) | 37 |
| Prompt Adolescent Consultation | 174 | 97.14 (57.17) | 90.5 |
Figure 1A schematic view of an outpatient receiving mental health care.
Summary statistics of all the appointments and no-show appointments per patient across clinics.
| Clinic | All appointments (N=30,342) | No-show appointments (n=4862) | ||||
|
| Patients (n) | Mean (SD) | Median | Patients, n (%) | Mean (SD) | Median |
| Anxiety and Mood Disorders Clinic | 6830 | 21.68 (23.03) | 17 | 1431 (20.9) | 4.54 (6.84) | 2 |
| Traumatic Stress Clinic | 5617 | 27.27 (16.08) | 26 | 1148 (20.4) | 5.57 (5.30) | 4 |
| Borderline Personality Self-Regulation Clinic | 10,506 | 57.73 (50.18) | 42.5 | 1453 (13.8) | 7.98 (7.71) | 5 |
| Women’s Clinic | 2804 | 17.97 (14.53) | 17.5 | 623 (22.2) | 3.99 (5.16) | 2 |
| Prompt Care Clinic | 3167 | 1.34 (0.8) | 1 | 158 (4.9) | 0.07 (0.32) | 0 |
| Prompt Anxiety and Mood Disorders Consultation | 584 | 1.08 (0.28) | 1 | 17 (2.9) | 0.03 (0.19) | 0 |
| Prompt Transitional Aged Youth Consultation | 527 | 1.05 (0.22) | 1 | 14 (2.6) | 0.03 (0.18) | 0 |
| Prompt Adolescent Consultation | 307 | 1.74 (2.3) | 1 | 18 (5.8) | 0.10 (0.37) | 0 |
Figure 2The mean wait time with 95% confidence interval by priority level and clinic. AMD: Anxiety and Mood Disorders; BP: Borderline Personality; Consult.: Consultation; TAY: Transitional Aged Youth.
Comparison of the root mean square error of different machine learning methodsa.
| Clinic | Linear regression | Random forest | K-nearest neighbors | Support vector machine | Neural network | Decision tree |
| Anxiety and Mood Disorders Clinic | 66.88 |
| 70.37 | 52.64 | 83.44 | 50.65 |
| Traumatic Stress Clinic | 94.02 | 93.54 | 98.95 |
| 108.36 | 102.71 |
| Borderline Personality Self-Regulation Clinic | 50 |
| 51.94 | 50.61 | 61.98 | 56.16 |
| Women’s Clinic |
| 36.16 | 42 | 39.63 | 46.93 | 56.73 |
| Prompt Care Clinic | 19.04 |
| 16.83 | 17.13 | 16.87 | 17.13 |
| Prompt Anxiety and Mood Disorders Consultation | 121.25 | 119.6 | 125.64 |
| 142.53 | 131.28 |
| Prompt Transitional Aged Youth Consultation | 29.82 | 26.19 | 26.3 |
| 28.92 | 28.34 |
| Prompt Adolescent Consultation | 20.4 |
| 31.8 | 19.13 | 26.6 | 20.84 |
aFor each clinic (ie, each row), the best performing method is italicized.
Hyperparameters used for tuning the machine learning methods and their selected values for the Anxiety and Mood Disorders Clinic.
| Machine learning method, parameter | Range | Selected value | Explanation | |
| Linear regression | N/Aa | N/A | N/A | |
|
| ||||
|
| mtry | 1 to 20 | 16 | Number of predictors at each split |
|
| min_n | 2 to 40 | 14 | Minimum node size |
|
| ||||
|
| neighbors | 1 to 15 | 13 | Number of neighbors to consider |
|
| dist_power | 0.1 to 2 | 0.21 | Minkowski distance parameter |
|
| weight_func | —b | Rectangular | Kernel function for weighting sample distribution |
|
| ||||
|
| cost | 2–10 to 25 | 22.31 | The cost of wrong predictions |
|
| rbf_sigma | 10–10 to 100 | 10–1.76 | Radial basis function parameter |
|
| margin | 0 to 0.2 | 0.11 | Epsilon for support vector machine insensitive loss function |
|
| ||||
|
| hidden_units | 1 to 10 | 9 | Number of units in the hidden model |
|
| penalty | 10–10 to 100 | 10–0.39 | Amount of weight decay |
|
| epochs | 101 to 103 | 993 | Number of training iterations |
|
| ||||
|
| cost_complexity | 10–10 to 10–1 | 10–8.02 | Cost/complexity parameters |
|
| tree_depth | 1 to 15 | 3 | Maximum depth of the tree |
|
| min_n | 2 to 40 | 17 | Minimum node size |
aN/A: not applicable.
btriweight, triangular, rectangular, rank, optimal, inv, gaussian, epanechnikov, cos, biweight.
Hyperparameters of the random forest method across different clinics.
| Clinic | Count of splitting variables | Count of trees | Minimal node size |
| Anxiety and Mood Disorders Clinic | 16 | 1000 | 14 |
| Traumatic Stress Clinic | 17 | 1000 | 29 |
| Borderline Personality Self-Regulation Clinic | 2 | 1000 | 31 |
| Women’s Clinic | 17 | 1000 | 39 |
| Prompt Care Clinic | 17 | 1000 | 39 |
| Prompt Anxiety and Mood Disorders Consultation | 19 | 1000 | 30 |
| Prompt Transitional Aged Youth Consultation | 11 | 1000 | 10 |
| Prompt Adolescent Consultation | 11 | 1000 | 10 |
Figure 3Importance of the predictor variables, measured by impurity (variance of the responses), at the Anxiety and Mood Disorders Clinic.
Figure 4Correlation between no-show appointments and wait times. AMD: Anxiety and Mood Disorders; BP: Borderline Personality; Consult.: Consultation; MH: Mental Health; TAY: Transitional Aged Youth.