| Literature DB >> 33156863 |
Qi Chen1, Yanli Zhang-James2, Eric J Barnett3,4, Paul Lichtenstein1, Jussi Jokinen5,6, Brian M D'Onofrio1,7, Stephen V Faraone2,3, Henrik Larsson1,8, Seena Fazel9.
Abstract
BACKGROUND: Suicide is a major public health concern globally. Accurately predicting suicidal behavior remains challenging. This study aimed to use machine learning approaches to examine the potential of the Swedish national registry data for prediction of suicidal behavior. METHODS ANDEntities:
Year: 2020 PMID: 33156863 PMCID: PMC7647056 DOI: 10.1371/journal.pmed.1003416
Source DB: PubMed Journal: PLoS Med ISSN: 1549-1277 Impact factor: 11.069
Baseline characteristics of 541,300 eligible visits by 126,205 patients to psychiatric specialty care during 2011 and 2012.
| Characteristic | Training set | Test set |
|---|---|---|
| Visits | 433,024 | 108,276 |
| Inpatient | 49,077 (11.3) | 12,293 (11.4) |
| Outpatient | 383,947 (88.7) | 95,983 (88.6) |
| Unplanned | 94,988 (21.9) | 23,343 (21.6) |
| Planned | 335,494 (77.5) | 84,398 (77.9) |
| Unknown if planned or not | 2,544 (0.6) | 535 (0.5) |
| Unique patients | 100,964 | 25,241 |
| Female | 242,944 (56.1) | 62,355 (57.6) |
| Mean (standard deviation) age at the visit, years | 27.3 (6.1) | 27.2 (6.1) |
| Primary diagnosis | ||
| Substance use disorders | 59,178 (13.7) | 14,427 (13.3) |
| Schizophrenia spectrum disorders | 27,467 (6.3) | 6,073 (5.6) |
| Bipolar disorder | 33,005 (7.6) | 8,412 (7.8) |
| Major depressive disorder | 72,876 (16.8) | 18,676 (17.2) |
| Anxiety disorders | 86,246 (19.9) | 21,933 (20.3) |
| Borderline personality disorder | 17,248 (4.0) | 4,626 (4.3) |
| Attention-deficit/hyperactivity disorder | 53,048 (12.3) | 12,991 (12.0) |
| Autism | 20,831 (4.8) | 5,170 (4.8) |
| Others | 63,125 (14.6) | 15,968 (14.7) |
| Visits followed by | ||
| Suicide attempt/death within 90 days | 14,675 (3.4) | 4,007 (3.7) |
| Intentional self-harm | 13,308 (3.1) | 3,696 (3.4) |
| Self-harm with undetermined intent | 1,277 (0.3) | 353 (0.3) |
| Death from intentional self-harm | 379 (0.1) | 56 (0.1) |
| Death from self-harm of undetermined intent | 164 (0.04) | 39 (0.04) |
| Suicide attempt/death within 30 days | 7,188 (1.7) | 1,911 (1.8) |
| Intentional self-harm | 6,596 (1.5) | 1,775 (1.6) |
| Self-harm with undetermined intent | 505 (0.1) | 142 (0.1) |
| Death from intentional self-harm | 144 (0.03) | 19 (0.02) |
| Death from self-harm of undetermined intent | 55 (0.01) | 14 (0.01) |
aPrimary diagnosis with an ICD-10 codes ranging from F00 to F99.
bDifferent types of events may occur during the same outcome window.
ICD-10, International Classification of Diagnosis, 10th edition.
Fig 1ROC curves illustrating model discrimination accuracy in the test set for predicting suicide attempt/death within 90 (A) and 30 days (B) following a visit to psychiatric specialty care during 2011 and 2012. The figure was based on the discrimination accuracy of the ensemble models. The solid line in brown represents the ROC curves achieved by the models. The dotted line in black represents the ROC curves when AUC equals 50%. AUC, area under the receiver operating characteristic curves; ROC, receiver operating characteristic.
Model performance metrics at various risk thresholds for predicting suicide attempt/death within 90 and 30 days following a visit to psychiatric specialty care during 2011 and 2012.
| Risk threshold | Sensitivity (%) | Specificity (%) | PPV (%) | NPV (%) |
|---|---|---|---|---|
| 99.5th | 10.0 | 99.9 | 74.2 | 96.7 |
| 99th | 17.5 | 99.6 | 64.6 | 96.9 |
| 98th | 27.7 | 99.0 | 51.2 | 97.3 |
| 97th | 36.5 | 98.3 | 45.0 | 97.6 |
| 96th | 42.0 | 97.5 | 38.9 | 97.8 |
| 95th | 47.2 | 96.6 | 34.9 | 97.9 |
| 90th | 62.1 | 92.0 | 23.0 | 98.4 |
| 85th | 71.5 | 87.2 | 17.6 | 98.8 |
| 80th | 77.4 | 82.2 | 14.3 | 99.0 |
| 70th | 85.5 | 72.1 | 10.6 | 99.2 |
| 60th | 90.5 | 61.9 | 8.4 | 99.4 |
| 50th | 94.0 | 51.7 | 7.0 | 99.6 |
| 99.5th | 12.8 | 99.7 | 44.9 | 98.5 |
| 99th | 21.1 | 99.4 | 37.3 | 98.6 |
| 98th | 33.6 | 98.6 | 29.7 | 98.8 |
| 97th | 42.6 | 97.7 | 25.1 | 99.0 |
| 96th | 48.1 | 96.8 | 21.2 | 99.0 |
| 95th | 52.9 | 95.9 | 18.7 | 99.1 |
| 90th | 67.7 | 91.0 | 12.0 | 99.4 |
| 85th | 75.4 | 86.1 | 8.9 | 99.5 |
| 80th | 80.7 | 81.1 | 7.1 | 99.6 |
| 70th | 87.9 | 71.0 | 5.2 | 99.7 |
| 60th | 92.6 | 60.9 | 4.1 | 99.8 |
| 50th | 95.2 | 50.8 | 3.4 | 99.8 |
NPV, negative predictive value; PPV, positive predictive value.
Model performance metrics were based on ensemble models.
Fig 2Calibration plots comparing observed proportion of positives and mean predicted risk suicide attempt/death within 90 (A) and 30 days (B) following a visit to psychiatric specialty care during 2011 and 2012. The figure was based on the calibration of the ensemble models. Each solid dot in blue represents the observed proportion of index visits followed by a suicidal event in a bin of sample (observed proportion of positives [suicidal events]) against the mean predicted risk in the same bin. More details can be found in S9 Table. The rug plot in pink represents the distribution of the study sample across different predicted risk levels.
Fig 3Learning curves illustrating bias and variance trade-off in the training set for predicting suicide attempt/death within 90 (A) and 30 days (B) following a visit to psychiatric specialty care during 2011 and 2012. The figure was based on the calibration of the ensemble models. AUC, area under the receiver operating characteristic curve.
Predictors ranked top 30 by the best models of elastic net penalized logistic regression, random forest, and gradient boosting.
| Predictor | EN90 | RF90 | GB90 | EN30 | RF30 | GB30 |
|---|---|---|---|---|---|---|
| Intentional self-harm 3–6 months before the visit | 1st | 2nd | 1st | 1st | 1st | 1st |
| Intentional self-harm within 1 month before the visit | 2nd | 7th | 6th | 2nd | 5th | 2nd |
| Intentional self-harm 1–3 months before the visit | 3rd | 5th | 3rd | 3rd | 2nd | 3rd |
| Unplanned visit | 4th | 17th | 14th | 8th | 14th | 12th |
| Family history of intentional self-harm | 5th | 1st | 2nd | 6th | 3rd | 5th |
| Intentional self-harm 6–12 months before the visit | 6th | 3rd | 5th | 7th | 4th | 7th |
| Prior intentional self-harm by sharp object | 7th | 8th | 7th | 4th | 9th | 6th |
| Prior intentional self-harm by poisoning | 8th | 4th | 4th | 5th | 6th | 4th |
| Unplanned visit 1–3 months before the visit | 9th | 9th | 10th | 12th | 12th | 11th |
| Unplanned visit within 1 month before the visit | 11th | 6th | 12th | 9th | 7th | 9th |
| Hospitalization within 1 month before the visit | 12th | 12th | 11th | 11th | 8th | 10th |
| Family history of substance use disorder | 13th | 23rd | 17th | 17th | 23rd | 25th |
| Family history of borderline personality disorder | 14th | 16th | 13th | 14th | 15th | 8th |
| Intentional self-harm 1–3 years before the visit | 15th | 10th | 8th | 16th | 10th | 16th |
| Family history of self-harm of undetermined intent | 16th | 24th | 21st | 15th | 24th | 23rd |
| Hospitalization 1–3 months before the visit | 19th | 11th | 9th | 19th | 13th | 14th |
| In-/outpatient visit | 27th | 15th | 16th | 27th | 16th | 20th |
| Family history of anxiety disorders | 26th | 30th | 20th | 22nd | 30th | |
| Planned visit | 18th | 18th | 10th | 17th | 13th | |
| Age at the visit | 10th | 26th | 13th | |||
| Diagnosis of major depressive disorder within 1 month before the visit | 17th | 24th | 24th | |||
| Sex | 21st | 30th | 23rd | |||
| Family history of major depressive disorder | 24th | 27th | 25th | |||
| Diagnosis of anxiety within 1 month before the visit | 18th | 20th | ||||
| Intentional self-harm at the visit | 20th | 18th | ||||
| Diagnosis of ADHD at the visit | 22nd | 26th | ||||
| Presence of study income | 23rd | 29th | ||||
| Dispensed benzodiazepines 6–12 months before the visit | 25th | |||||
| Diagnosis of other personality disorders than ASPD and BLPD 6–12 months before the visit | 28th | |||||
| Diagnosis of substance use disorder within 1 month before the visit | 29th | |||||
| Dispensed benzodiazepines within 1 month before the visit | 30th | |||||
| Diagnosis of borderline personality disorder within 1 month before the visit | 13th | 19th | 11th | 15th | ||
| Diagnosis of borderline personality disorder 6–12 months before the visit | 14th | 23rd | 18th | |||
| Diagnosis of borderline personality disorder 1–3 months before the visit | 20th | 15th | 22nd | 26th | ||
| Diagnosis of borderline personality disorder 3–6 months before the visit | 21st | 22nd | 19th | 19th | ||
| Diagnosis of borderline personality disorder at the visit | 22nd | 29th | 21st | |||
| Diagnosis of borderline personality disorder 1–3 years before the visit | 25th | 25th | 27th | |||
| Intentional self-harm 3–5 years before the visit | 19th | 20th | ||||
| Prior self-harm by poisoning of undetermined intent | 26th | 26th | 27th | |||
| Diagnosis of other borderline personality disorders than ASPD and BLPD at the visit | 27th | |||||
| Diagnosis of substance use disorder 3–6 months before the visit | 28th | 30th | ||||
| Diagnosis of borderline personality disorder 3–5 years before the visit | 29th | 29th | ||||
| Dispensed antidepressants 3–6 months before the visit | 28th | |||||
| Dispensed anxiolytics 6–12 months before the visit | 21st | |||||
| Dispensed antipsychotics 1–3 years before the visit | 28th | |||||
| Diagnosis of epilepsy 3–6 months before the visit | 29th | |||||
| Father’s education £ 9 years | 30th | |||||
| Family history of other borderline personality disorders than ASPD and BLPD | 25th | |||||
| Intentional self-harm by unspecified means | 28th | |||||
| Diagnosis of substance use disorder 6–12 months before the visit | 17th | |||||
| Diagnosis of other personality disorders than ASPD and BLPD 1–3 months before the visit | 18th | |||||
| Diagnosis of type 2 diabetes mellitus 1–3 months before the visit | 21st | |||||
| Diagnosis of asthma 3–5 years before the visit | 22nd | |||||
| Diagnosis of substance use disorder at the visit | 24th | |||||
| Diagnosis of epilepsy within 1 month before the visit | 28th |
EN: The best elastic net penalized logistic regression model.
RF: The best random forest model.
GB: The best gradient boosting model.
Subscript 90: Model for predicting suicide attempt/death within 90 days following a visit to psychiatric specialty care.
Subscript 30: Model for predicting suicide attempt/death within 30 days following a visit to psychiatric specialty care.
ADHD, attention-deficit/hyperactivity disorder; ASPD, antisocial personality disorder; BLPD, borderline personality disorder.