Next Article in Journal
Adolescent Alcohol Exposure Produces Protracted Cognitive-Behavioral Impairments in Adult Male and Female Rats
Previous Article in Journal
Rare VPS35 A320V Variant in Taiwanese Parkinson’s Disease Indicates Disrupted CI-MPR Sorting and Impaired Mitochondrial Morphology
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Prediction of Suicide-Related Events by Analyzing Electronic Medical Records from PTSD Patients with Bipolar Disorder

1
Department of Pharmaceutical Sciences, Computational Chemical Genomics Screening Center, University of Pittsburgh School of Pharmacy, Pittsburgh, PA 15206, USA
2
Department of Statistics and Department of Economics, University of Pittsburgh School of Arts & Sciences, Pittsburgh, PA 15213, USA
3
Department of Pharmacy and Therapeutics, University of Pittsburgh School of Pharmacy, Pittsburgh, PA 15213, USA
4
Department of Psychiatry, University of Pittsburgh School of Medicine, Pittsburgh, PA 15213, USA
5
Department of Pharmaceutical Sciences, University of Pittsburgh School of Pharmacy, Pittsburgh, PA 15213, USA
6
Department of Biomedical Informatics, University of Pittsburgh School of Medicine, Pittsburgh, PA 15213, USA
*
Authors to whom correspondence should be addressed.
Brain Sci. 2020, 10(11), 784; https://doi.org/10.3390/brainsci10110784
Submission received: 30 August 2020 / Revised: 16 October 2020 / Accepted: 21 October 2020 / Published: 27 October 2020
(This article belongs to the Section Behavioral Neuroscience)

Abstract

:
Around 800,000 people worldwide die from suicide every year and it’s the 10th leading cause of death in the US. It is of great value to build a mathematic model that can accurately predict suicide especially in high-risk populations. Several different ML-based models were trained and evaluated using features obtained from electronic medical records (EMRs). The contribution of each feature was calculated to determine how it impacted the model predictions. The best-performing model was selected for analysis and decomposition. Random forest showed the best performance with true positive rates (TPR) and positive predictive values (PPV) of greater than 80%. The use of Sertraline, Fentanyl, Aripiprazole, Lamotrigine, and Tramadol were strong indicators for no SREs within one year. The use of Haloperidol, Trazodone and Citalopram, a diagnosis of autistic disorder, schizophrenic disorder, or substance use disorder at the time of a diagnosis of both PTSD and bipolar disorder, predicted the onset of SREs within one year. Additional features with potential protective or hazardous effects for SREs were identified by the model. We constructed an ML-based model that was successful in identifying patients in a subpopulation at high-risk for SREs within a year of diagnosis of both PTSD and bipolar disorder. The model also provides feature decompositions to guide mechanism studies. The validation of this model with additional EMR datasets will be of great value in resource allocation and clinical decision making.

1. Introduction

Approximately 800,000 people worldwide die from suicide every year [1]. Suicide is the 10th leading cause of death in the United States, with 48,000 deaths occurring in 2018 [2]. Because the rate of suicide among all deaths has continued to increase since 1999 [2,3,4,5,6,7,8], reversing the suicide rate has been prioritized by the World Health Organization [1].
Multiple studies have identified factors related to suicide. These factors include age, gender, and alcohol abuse [9,10]. However, it is hard to quantify the influence of these factors using traditional statistical methods [11,12,13]. With the rise of machine-learning (ML) algorithms, several successful studies have predicted suicide risk based on different ML-based methods with good accuracy [14,15,16,17].
However, few studies have focused on risk factors among high-risk populations that may require more intensive interventions to prevent suicides. Some research suggest that, among all mental disorders, bipolar disorder contributes most to the risk for suicide [18]. This risk can be higher when comorbidity exists with other psychiatric disorders [19]. Patients with bipolar disorder alternate between manic and depressive episodes [20], leading to considerable impairment of life quality [21,22]. Approximately 1% of the worldwide population suffer from bipolar disorder [23,24].
Although considered a controversial suicide risk factor, post-traumatic stress disorder (PTSD) is one of the most common comorbidities of bipolar disorder [25,26,27], with a lifetime comorbidity rate of 16%–39% [28]. PTSD is a trauma- and stressor-related disorder with the major post-trauma symptoms being fear-based re-experiencing, anhedonia, dysphoric mood stages, or dissociative symptoms [29]. The lifetime prevalence of PTSD is 7.8% [30]. Among patients with bipolar disorder, the time spent with illness as well as SREs (ideation, attempts, and deaths) are significantly higher in patients also diagnosed with PTSD [27,31,32].
Suicide prevention strategies have been proven to substantially decrease the suicide rate [33,34,35,36]. The importance of recognizing depression and suicidal tendencies has been emphasized in several reviews [33,35,37,38]. However, comprehensive suicide prevention programs consume time, labor, and resources that limit the application of care to all patients with bipolar disorder and PTSD. A time-, labor-, and resource-saving quantitative measurement for SREs in this high-risk population is needed to guide clinical decision-making and to help distribute resources to the patients who can most benefit from them.
An ML-based random forest model was constructed to identify and quantify risk factors that induce suicide among patients diagnosed with both bipolar disorder and PTSD. Using factors extracted from electronic medical records (EMRs) of patients with both diagnosis of bipolar disorder and PTSD, patients with a higher risk of an SRE within a year were identified. The model focused primarily on predictors like baseline disease conditions or pharmacy records which can be easily obtained and are less likely to be biased by subjective factors. Extra emphasis was placed on lithium usage, as previous studies have demonstrated that lithium was effective in preventing death by suicide in patients with mental disorders [34,39,40].

2. Materials and Methods

2.1. Data Sources

Data was collected from the EMRs of patients seen at UPMC (University of Pittsburgh Medical Center) facilities between 2004 and 2019. The cohort of patients with PTSD and bipolar disorders were identified based on the International Classification of Diseases (ICD) 9 and 10 codes for these disorders. Records for these patients, including demographics, medication usage, encounters and diagnosis of comorbid diseases, were extracted from the EMR systems as an IRB (Institutional Review Board)-approved HIPAA (Health Insurance Portability and Accountability Act) Limited Data Set. These data included the dates for each transaction, using the University of Pittsburgh’s research data warehouse. After data extraction, a sub-population that was diagnosed with both PTSD and bipolar disorder was created.
SREs for this sub-population were identified from the EMRs. The diagnosis codes included ICD9 and ICD10 for suicidal ideation, attempt, and death based on literature reports [3,41]. The diagnosis table was searched using the keywords ‘suicide’, ‘suicidal’ and ‘intentional self-harm’. Events of undetermined intent (Y10–Y34) were not considered. The lack of well-defined codes like X60–X70 in the list might indicate a bias of coding preference in the UPMC EMR system.
The dates of first PTSD and bipolar disorder diagnoses of patients were extracted, with the later date assigned to each patient as Both Diagnosed Time (BDT). SRE predictions were made at this time point. Patients’ ages when they were diagnosed with both disorders were determined. Patients were excluded that had SREs before BDT since the SREs may have not be casually linked to the diagnosis of both PTSD and bipolar disorder. The time interval between BDT and an SRE was calculated for high-risk patients. SREs within one year after BDT were marked as 1 (event identified). Patients with follow-up times beyond one year that did not have an SRE or had it more than a year after BDT, were marked as 0 (event not identified). Comorbid medical disorders were also documented and categorized into 12 disease categories that used only ICD9 codes [17]. These ICD9 codes were mapped to ICD10 codes using the service provided at http://www.icd10codesearch.com/. Patients having dipolar disorder and PSTD diagnosis codes within a year prior to BDT were considered as having these comorbid diseases.
Three major classes of medications taken into consideration as predictors were mood stabilizers, antipsychotics, and antidepressives, and were extracted from DrugBank [42] (https://www.drugbank.ca/). Patients were marked as taking these medications if they had been prescribed within one year prior to their BDT to find predictor information for SREs at the point of BDT. Included in this study were 75 extracted medications from the three classes that were matched with medications recorded in the EMR system. Medications included in this study are: Almotriptan, Amitriptyline, Amoxapine, Amphetamine, Aripiprazole, Asenapine, Brexpiprazole, Bupropion, Buspirone, Carbamazepine, Cariprazine, Chlorpheniramine, Chlorpromazine, Citalopram, Clomipramine, Clozapine, Desipramine, Desvenlafaxine, Dexmethylphenidate, Dextromethorphan, Dihydroergotamine, Doxepin, Duloxetine, Eletriptan, Escitalopram, Fentanyl, Flibanserin, Fluoxetine, Fluphenazine, Fluvoxamine, Frovatriptan, Haloperidol, Iloperidone, Imipramine, Lamotrigine, Levomilnacipran, Lithium, Loxapine, Lurasidone, Maprotiline, Meperidine, Methadone, Milnacipran, Mirtazapine, Naratriptan, Nefazodone, Nortriptyline, Olanzapine, Paliperidone, Paroxetine, Perphenazine, Phenelzine, Pimozide, Promethazine, Protriptyline, Quetiapine, Rasagiline, Risperidone, Rizatriptan, Ropinirole, Rotigotine, Selegiline, Sertraline, Sumatriptan, Tapentadol, Thiothixene, Tramadol, Tranylcypromine, Trazodone, Trifluoperazine, Venlafaxine, Vilazodone, Vortioxetine, Ziprasidone, and Zolmitriptan.

2.2. Software and Model Setup

The analysis algorithm was written in the Python programming language in a Jupyter notebook [43]. The ML-based models and calibration curves were developed by using scikit-learn 0.20.0 [44]. The key Python libraries used in this analysis were SciPy [45], NumPy [46] and Pandas [47].
Several different ML-based classifiers were tested, including logistic regression [48], random forest [49], decision tree [50], K-nearest neighbors [51], Naïve Bayes [52] and support vector machine [53]. All models were set at a random state of 42 to ensure reproducibility while the other hyper-parameters were left at default settings. The random state seeded the random number generator used in the models. For the final random forest model, we set estimators to 100 and the maximum number of features to the square root of the number of features.
ML-based models frequently encounter datasets that are heavily imbalanced—the number of samples in the different classes are distributed unevenly—which affects their learning phases and subsequent predictions. An over-sampling procedure based on the Synthetic Minority Oversampling Technique (SMOTE) [54] was performed prior to conducting the analysis. The over-sampling procedure creates new samples by connecting inliers and outliers from the original dataset [54]. The resampled dataset was split into training and test datasets randomly in a 4:1 ratio. Only the training set was oversampled with SMOTE so that the test set contained the original subjects in the dataset.
Many socioeconomic factors have been reported to play important roles in suicide prediction [55]. However, data from only the EMR were used as the predictors, variables, or features for modeling: (a) demographic data, including gender and age at BDT; (b) number of emergency department (ED) visits and diagnoses within one year prior to the BDT; (c) medication usage within one year prior to the BDT, including medication orders, dispenses, and fills. Medication usage data was coded by whether patients had taken these medications within one year prior to their BDT.
Predictor or variable importance was calculated to assess key factors in SRE prediction. In the random forest algorithm, predictor importance was quantified by evaluating the decrease in “node impurity” at each split across all decision trees in the forest [56]. In the simplest case, node impurity can be considered as the difference in measurement from controls at a node. The random forest module uses these measures to estimate variances in nodes across trees. The nodes with maximized response variances are those that have greater contributions to the differences in categories of cases and have a greater impact on the model’s ability to predict outcomes.
Since patients with SREs are a minor class in our dataset, model performance was based on true positive rate (TPR), positive predictive value (PPV), and negative predictive value (NPV) calculated as follows (Equation (1)):
TPR = True   Positives True   Positives + False   Negatives PPV = True   Positives True   Positives + False   Positives NPV = True   Negatives True   Negatives + False   Negatives
Random forest results were interpreted using the python package TreeInterpreter 0.2.2 (https://github.com/andosa/treeinterpreter), which allowed the (a) decomposition of each prediction into feature contribution components in the training set mean and (b) identification of those features that affect the difference and their contribution. In the model, all features will make contributions to the predication about an instance whether positive or negative. If the value of a feature’s contribution was positive (SRE), the prediction value was scored as 1. If the feature’s contribution was negative (no SRE), the prediction value was scored as 0.

3. Results

3.1. Model Construction and Performance

A total of 6042 patients with PTSD and bipolar disorder were identified from the EMR system by ICD9 and ICD10 codes (Appendix A). Of this population, 4138 of them had no records of SRE before BDT. Among these 4138 patients, 205 were identified as having SREs within one year after BDT, while 3933 of them did not have SREs in the same time period. Patients with follow up time less than one year and no reported SRE (970) were excluded from this study. The filtered 2963 subjects were oversampled into a balanced dataset by SMOTE as described above. After data resample and split, the training dataset contained 4726 subjects with 2363 subjects marked as 1 and 2363 subjects marked as 0. The inclusion process is described in Figure 1 and the baseline patient characteristics are shown in Table 1. Significant differences among patients with and without SREs because of gender, age, and ED visits may be contributing variables in this study.
ML-based models were trained and evaluated with the data generated by the resample procedures. Performances of all the models are shown as the means from a 5-fold stratified cross-validation process (Table 2). TPR and PPV were prioritized since the model should be able to identify the high-risk population within the precision constraints relevant to the data. Random forest was superior at retrieving positive cases with less false positives with an exceptional high PPV (Table 2). Random forest achieved an accuracy of 92.4%, an area under curve (AUC) of 95.6%, an F1 score of 0.879, and an area under receiver operating characteristic (ROC) curve of 0.820. The random forest model was chosen as the predictive model in the following analysis.

3.2. Model Decomposition and Feature Importance Analysis

A decomposition analysis on the decision trees generated by the random forest algorithm was conducted to better understand the contributions of each factor on SRE predictions. All features in the model were examined individually to determine if the feature provided positive contributions. Such an approach allowed a minimization of the data volume needed to make an accurate prediction and to reduce computation expenses.
Ninety-two features were used in the model including disease categories 1–12, the seventy-five medications mentioned above, age, gender and ED visits. Among them, only age and ED visits were continuous variables, and all other features were categorical. In order to find the features that are necessary for the model and to minimize the data requirement, feature importance was calculated using the method implemented in the package. Feature importance was calculated as the decrease in node impurity weighted by the probability of reaching that node. The node probability was calculated by the number of samples that reach the node, divided by the total number of samples. The higher the value the more important the feature [57]
Multiple random forest tests, which included the top most important features, were performed to retrain the model and test its performance. The performance of model improved as the number of features with high importance increased (Figure 2). The performance curves reached a plateau at approximately 30 features, then maintained a performance similar to the original model we trained using all 90 features. As a result, the 30 most important features (Table 3) were used to train a simplified random forest model.
A simplified random forest model was built using the top 30 features. The ROC and the Precision-Recall graphs of the new model were plotted (Figure 3). The random forest model outperforms the no skill (random) model in both graphs (Figure 3). The simplified model yielded an accuracy of 98.3%, an AUC of 95.9% (similar to the original model performance), an F1 score of 0.868, and an ROC of 0.811. The performance parameters for the retrained model achieved a high TPR and PPV with the 30 selected features, again similar to the original model performance (Table 2; Table 4). These results indicate that the random forest model is sensitive to patients who had SREs and can predict SREs correctly. Every feature that impacted the final prediction using random forest was processed through the decomposition algorithms from treeinterpreter.
The random forest model was used to predict how each feature could impact the possibility of having a SRE within one year after being BDT on all 3168 patients in the dataset. Of the 3168 patients, the model correctly predicted SREs from 3120 of them. Contribution values (negative and positive) of the features to correctly predicted presence of SREs within 1 year were calculated.
The distributions for two continuous datasets, age and ED visits were investigated (Figure 4). The age and ED distributions between positive and negative scores were significantly different (p < 0.001) (Figure 4). Younger ages and more ED visits are associated with a higher risk of having SREs.
The distribution of the 28 categorical features provided an insight into how the individual features impacted the SREs of individual cases (Figure 5). Generally speaking, value 1 tended to make a positive contribution compared to 0 across all features. Specifically, features such as Fentanyl, Aripiprazole, Disease category 11, Disease category 2 and Disease Category 6 showed obvious associations between contributing groups and feature values. The value distributions of features are different in positive and negative contributing groups (Figure 4) and these shifts can provide information about the impact a feature may have on SREs. The difference in value distributions of features were examined using a chi-square test (Table 5) and as a percentage in positive and negative contributing groups. If a feature has no or little association with the final prediction, the percentages of patients taken medication or have the comorbid disease in positive and negative contributing groups should be similar to the percentage of 1 in the whole population. If the percentage of patients taken medication or have the comorbid disease in positive or negative contributing group significantly differs from that of the whole population and each other, it suggests a possible mechanistic association between this feature and the potential risk for an SRE. For example, 11.6% of the participants have taken Sertraline. They account for 0% of the positive contributing groups and 45.9% of negative contributing groups. It can be concluded that taking Sertraline is predictive for no SREs within one year. High-importance features with an obvious separation pattern among the population groups have also been identified (Table 3). This indicates that the values of these features can greatly impact the final SRE predictions and may inform future mechanism studies.
All features except Olanzapine showed a significant difference between their distributions in positive and negative contributing groups. This is the result we are expecting because all the features in Figure 5 have been selected through the drop column feature importance test and were identified as important for the model to make the prediction. If the value of a certain feature does not provide significant differences in the percentages among the groups, it is likely that it has no benefit in for predicting SREs and will be dropped in the previous step. The results shown in Table 5 provided additional support to our feature selection process above.

4. Discussion and Conclusions

Prior studies have found that the ML-based methods perform better at identifying suicide risks in large populations of patients than traditional methods. The accuracies of these studies are reported to be between 0.76–0.79 with AUCs generally between 0.80–0.90 [15,17,58]. The objective of this study was to find an ML-based method that identifies patients at high-risk for SREs—patients diagnosed with both PTSD and bipolar disorder. This study demonstrated an accuracy of 0.92 and an AUC of 0.956 using the random forest method. The random forest model can accurately predict those patients at higher risk of SREs as evaluated with TPR and PPV tests. Sub-populations suffering from certain disorders and taking certain medications can be distinguished from a larger population as having a higher risk for SREs.
Different features have different contributions to the prediction of SREs. These features are mental disorders and drug administration history within one year. As discussed by Sanderson et al. [17], mental health diagnoses were separated into twelve disease categories based on their ICD9 codes (Appendix B). Patients suffering from comorbid diseases at BDT are more likely to have SRE within a year. These comorbid diseases include: Category 11, autistic disorder-current and disturbance of conduct; Category 3, mood disorders and adjustment disorders; Category 4, other psychotic disorders; and Category 5, acute stress reactions. Several studies have reported results that diseases in Category 11 are more likely to trigger SRE [59,60,61,62]. Numerous studies have provided evidence that mental disorders have the potential to increase the risk of SREs [63,64]. This evidence is supported by the results of the random forest model presented here.
For the unselected features, it does not mean that these features may not be useful predictors of SREs. The aim of the feature selection process to use a sufficient but minimal number of features for the model to achieve optimal prediction results. It was found that optimal results were found using 30 features and that the addition of additional features did not affect the results. The distribution of all categorical features is attached (Appendix C). The impurity-based feature importance can be misleading for high cardinality features and continuous variables (age and ED visits) [65]. For this reason, the distribution of these two variables were examined first to ensure that their association with SREs are not the result of biased algorithms.
With medication usage as the feature, some of them showed a much higher proportion in the negative contributing group compared to either the whole population or the positive contributing groups (Fentanyl, Levomilnacipran, Sertraline, Aripiprazole, Tramadol, Lamotrigine, Sertraline, and Fluoxetine). These medications are considered to reduce the risk of SREs within one year in our model. Other investigators have shown similar beneficial effects in clinical trials [66,67]. However, some studies have found that Tramadol, Aripiprazole, and Fentanyl have not been associated with risk reduction in SREs. Thus, our results may provide support for further investigations. The model identified several medications that increased the risk of SREs. Such medications have also been reported to increase the risk of SREs in other studies [68]. Caution must be taken in interpreting the effect of medications on the prediction of SREs in that the model’s results do not account for drugs that may be indicators of comorbidities, e.g., sleep problems that may alter the risk of SREs.
The results of our study made it possible for clinicians to identify patients who have a higher risk of SREs and have additional insight of how to reduce this risk by identified risk factors. Clinicians will be able to adjust the medications to replace some drugs which increase the risk of SREs with drugs with the same class with less risk or focus on relieving the symptoms which may contribute most to the suicide risk.
The ML-based random forest model provides a basis for clinicians to build similar models for different populations facing different disease risks. Our model is built with open source Python packages and trained based on EMR data. This means other researchers can test our model in other clinical samples. Also, our study can provide guidance for clinical institutions or other researchers to build their own models for other kinds of populations.
Unavoidably, there are limitations to this study. (a) the data was collected from hospitals affiliated with UPMC. External data for validation was not used and, if included, may have led to overfitting; (b) most clinicians prefer to treat diseases and disorders with particular combinations of drugs different from those used by other clinicians. This may cause bias in the results among institutions if such preferences are widely used in the hospital, despite alternative drug choices; (c) the high prediction performance of the model may due to the unique characteristics of the BDT patient subpopulation. The model may need further adjustment and optimization to apply it to other high-suicide risk populations or other disease states; (d) mis-diagnoses and biased prescriptions are two problems may cause errors in the predictions of SREs. PTSD and bipolar disorder may be mis-diagnosed as other diseases in their early stages, which may cause bias in our model, especially with younger patients. However, the ability to identify mis-diagnoses and biased prescriptions from the EMR is beyond the capability of our model; (e) though some medications, like lithium, may not be indicated for SREs, clinicians prescribe them for bipolar disorders to a greater extent due to its known anti-suicidal properties. This may be the situation in many clinical practices.
The ML-based random forest model makes it possible for clinicians to identify subpopulations of patients who have a higher risk of SREs and to have additional insights to reducing this risk by identifying individual risk factors. Medications that increase the risk of SREs can be substituted with drugs having a lower risk or that focus on relieving symptoms that may contribute most to SREs.
Using EMR information, a ML-based random forest model was constructed that predicts, with an accuracy of around 90%, if a patient will have an SRE within the following year of the diagnosis of both bipolar disorder and PSTD. The model extracts features that make contributions to the risk of SREs, which can be further utilized in mechanism studies. The model has great potential as a clinical tool that can aid clinicians in identifying high-risk individuals and to better guide patient clinical care.

Author Contributions

Conceptualization, P.F., D.S., L.K., J.C.S., and L.W.; Data curation, X.Q.; Formal analysis, P.F., X.G., and X.Q.; Investigation, M.M.; Methodology, R.P., D.S., and L.K.; Software, P.F., and X.G.; Supervision, J.C.S.; Validation, L.K.; Writing—original draft, P.F. All authors have read and agreed to the published version of the manuscript.

Funding

This study is supported by National Institutes of Health grant MH116046. The project described was also supported by the National Institutes of Health through Grant Number UL1 TR001857.

Acknowledgments

Authors would like to acknowledge the support from Robert Sweet for his precious suggestion in experiment design and proof reading. This research was supported in part by the University of Pittsburgh Center for Research Computing through the resources provided.

Conflicts of Interest

The authors declare no conflict of interest

Appendix A. ICD9 and ICD10 Codes for PTSD, Bipolar Disorder and Suicide Events

PTSD: 309.81, F43.10, F43.11, F43.12
Bipolar disorder: 296.8, 296.89, 296.7, F31.81, 296.5, F31.32, F31.89, 296.53, 296.54, F31.4, 296.6, 296.44, F31.75, 296, 296.52, F31.12, F31.30, F31.70, F31.2, F31.31, 296.4, F31.0, F31.62, F31.5, 296.64, 296.42, F31.76, F31.13, 296.62, F31.11, F31.60, 296.41, F31.61, 296.63, F31.77, F31.10, F31.71, 296.51, 296.46, 296.43, 296.55, F31.63, F31.73, F31.78, 296.45, 296.66, 296.61, F31.74, F31.64, 296.02, F31.72, 296.56, 296.01, 296.03, 296.65, 296.06, 296.6, 296.04, 296.8, 296.05
Table A1. Suicide-Related Events.
Table A1. Suicide-Related Events.
ICD CodeDiagnosis Name#Patients in 205 Patients
R45.851Suicidal ideations83
V62.84Suicidal ideation78
E950.4Suicide and self-inflicted poisoning by other specified drugs and medicinal substances9
E950.3Suicide and self-inflicted poisoning by tranquilizers and other psychotropic agents7
E956Suicide and self-inflicted injury by cutting and piercing instrument6
E958.8Suicide and self-inflicted injury by other specified means5
T43.222APoisoning by selective serotonin reuptake inhibitors, intentional self-harm, initial encounter2
X78.9XXAIntentional self-harm by unspecified sharp object, initial encounter2
E950.0Suicide and self-inflicted poisoning by analgesics, antipyretics, and antirheumatics1
E950.2Suicide and self-inflicted poisoning by other sedatives and hypnotics1
T14.91XASuicide attempt, initial encounter1
T39.1X2APoisoning by 4-Aminophenol derivatives, intentional self-harm, initial encounter1
T40.1X2APoisoning by heroin, intentional self-harm, initial encounter1
T42.1X2APoisoning by iminostilbenes, intentional self-harm, initial encounter1
T42.4X2APoisoning by benzodiazepines, intentional self-harm, initial encounter1
T42.4X2DPoisoning by benzodiazepines, intentional self-harm, subsequent encounter0
T42.6X2APoisoning by other antiepileptic and sedative-hypnotic drugs, intentional self-harm, initial encounter1
T43.212APoisoning by selective serotonin and norepinephrine reuptake inhibitors, intentional self-harm, initial encounter1
T46.5X2APoisoning by other antihypertensive drugs, intentional self-harm, initial encounter1
T50.902DPoisoning by unspecified drugs, medicaments and biological substances, intentional self-harm, subsequent encounter0
T65.92XDToxic effect of unspecified substance, intentional self-harm, subsequent encounter0
T71.162AAsphyxiation due to hanging, intentional self-harm, initial encounter1
X78.8XXAIntentional self-harm by other sharp object, initial encounter1
X78.9XXDIntentional self-harm by unspecified sharp object, subsequent encounter0
X83.8XXAIntentional self-harm by other specified means, initial encounter1
E950.1Suicide and self-inflicted poisoning by barbiturates0
E950.5Suicide and self-inflicted poisoning by unspecified drug or medicinal substance0
E950.6Suicide and self-inflicted poisoning by agricultural and horticultural chemical and pharmaceutical preparations other than plant foods and fertilizers0
E950.7Suicide and self-inflicted poisoning by corrosive and caustic substances0
E950.9Suicide and self-inflicted poisoning by other and unspecified solid and liquid substances0
E951.0Suicide and self-inflicted poisoning by gas distributed by pipeline0
E951.8Suicide and self-inflicted poisoning by other utility gas0
E952.0Suicide and self-inflicted poisoning by motor vehicle exhaust gas0
E952.1Suicide and self-inflicted poisoning by other carbon monoxide0
E952.8Suicide and self-inflicted poisoning by other specified gases and vapors0
E953.0Suicide and self-inflicted injury by hanging0
E953.1Suicide and self-inflicted injury by suffocation by plastic bag0
E953.8Suicide and self-inflicted injury by other specified means0
E953.9Suicide and self-inflicted injury by unspecified means0
E954Suicide and self-inflicted injury by submersion [drowning]0
E955.0Suicide and self-inflicted injury by handgun0
E955.1Suicide and self-inflicted injury by shotgun0
E955.2Suicide and self-inflicted injury by hunting rifle0
E955.4Suicide and self-inflicted injury by other and unspecified firearm0
E955.9Suicide and self-inflicted injury by firearms and explosives, unspecified0
E957.0Suicide and self-inflicted injuries by jumping from residential premises0
E957.1Suicide and self-inflicted injuries by jumping from other man-made structures0
E957.9Suicide and self-inflicted injuries by jumping from unspecified site0
E958.0Suicide and self-inflicted injury by jumping or lying before moving object0
E958.1Suicide and self-inflicted injury by burns, fire0
E958.2Suicide and self-inflicted injury by scald0
E958.3Suicide and self-inflicted injury by extremes of cold0
E958.5Suicide and self-inflicted injury by crashing of motor vehicle0
E958.6Suicide and self-inflicted injury by crashing of aircraft0
E958.7Suicide and self-inflicted injury by caustic substances, except poisoning0
E958.9Suicide and self-inflicted injury by unspecified means0
T14.91Suicide attempt0
T14.91XDSuicide attempt, subsequent encounter0
T14.91XSSuicide attempt, sequela0
T36.0X2APoisoning by penicillins, intentional self-harm, initial encounter0
T36.0X2DPoisoning by penicillins, intentional self-harm, subsequent encounter0
T36.1X2APoisoning by cephalosporins and other beta-lactam antibiotics, intentional self-harm, initial encounter0
T36.3X2APoisoning by macrolides, intentional self-harm, initial encounter0
T36.4X2APoisoning by tetracyclines, intentional self-harm, initial encounter0
T36.8X2APoisoning by other systemic antibiotics, intentional self-harm, initial encounter0
T37.5X2APoisoning by antiviral drugs, intentional self-harm, initial encounter0
T37.8X2APoisoning by other specified systemic anti-infectives and antiparasitics, intentional self-harm, initial encounter0
T38.1X2APoisoning by thyroid hormones and substitutes, intentional self-harm, initial encounter0
T38.2X2APoisoning by antithyroid drugs, intentional self-harm, initial encounter0
T38.3X2APoisoning by insulin and oral hypoglycemic [antidiabetic] drugs, intentional self-harm, initial encounter0
T38.3X2DPoisoning by insulin and oral hypoglycemic [antidiabetic] drugs, intentional self-harm, subsequent encounter0
T38.5X2APoisoning by other estrogens and progestogens, intentional self-harm, initial encounter0
T38.892APoisoning by other hormones and synthetic substitutes, intentional self-harm, initial encounter0
T39.012APoisoning by aspirin, intentional self-harm, initial encounter0
T39.012DPoisoning by aspirin, intentional self-harm, subsequent encounter0
T39.092APoisoning by salicylates, intentional self-harm, initial encounter0
T39.1X2DPoisoning by 4-Aminophenol derivatives, intentional self-harm, subsequent encounter0
T39.312APoisoning by propionic acid derivatives, intentional self-harm, initial encounter0
T39.312DPoisoning by propionic acid derivatives, intentional self-harm, subsequent encounter0
T39.392APoisoning by other nonsteroidal anti-inflammatory drugs [NSAID], intentional self-harm, initial encounter0
T39.4X2APoisoning by antirheumatics, not elsewhere classified, intentional self-harm, initial encounter0
T39.8X2APoisoning by other nonopioid analgesics and antipyretics, not elsewhere classified, intentional self-harm, initial encounter0
T39.92XAPoisoning by unspecified nonopioid analgesic, antipyretic and antirheumatic, intentional self-harm, initial encounter0
T40.1X2DPoisoning by heroin, intentional self-harm, subsequent encounter0
T40.2X2APoisoning by other opioids, intentional self-harm, initial encounter0
T40.2X2DPoisoning by other opioids, intentional self-harm, subsequent encounter0
T40.3X2APoisoning by methadone, intentional self-harm, initial encounter0
T40.4X2APoisoning by other synthetic narcotics, intentional self-harm, initial encounter0
T40.5X2APoisoning by cocaine, intentional self-harm, initial encounter0
T40.5X2DPoisoning by cocaine, intentional self-harm, subsequent encounter0
T40.602APoisoning by unspecified narcotics, intentional self-harm, initial encounter0
T40.602DPoisoning by unspecified narcotics, intentional self-harm, subsequent encounter0
T40.7X2APoisoning by cannabis (derivatives), intentional self-harm, initial encounter0
T40.8X2APoisoning by lysergide [LSD], intentional self-harm, initial encounter0
T40.8X2DPoisoning by lysergide [LSD], intentional self-harm, subsequent encounter0
T40.992APoisoning by other psychodysleptics [hallucinogens], intentional self-harm, initial encounter0
T41.292APoisoning by other general anesthetics, intentional self-harm, initial encounter0
T41.3X2APoisoning by local anesthetics, intentional self-harm, initial encounter0
T42.0X2APoisoning by hydantoin derivatives, intentional self-harm, initial encounter0
T42.3X2APoisoning by barbiturates, intentional self-harm, initial encounter0
T42.4X2SPoisoning by benzodiazepines, intentional self-harm, sequela0
T42.5X2APoisoning by mixed antiepileptics, intentional self-harm, initial encounter0
T42.6X2Poisoning by other antiepileptic and sedative-hypnotic drugs, intentional self-harm0
T42.6X2DPoisoning by other antiepileptic and sedative-hypnotic drugs, intentional self-harm, subsequent encounter0
T42.72XAPoisoning by unspecified antiepileptic and sedative-hypnotic drugs, intentional self-harm, initial encounter0
T42.8X2APoisoning by antiparkinsonism drugs and other central muscle-tone depressants, intentional self-harm, initial encounter0
T43.012APoisoning by tricyclic antidepressants, intentional self-harm, initial encounter0
T43.012DPoisoning by tricyclic antidepressants, intentional self-harm, subsequent encounter0
T43.022APoisoning by tetracyclic antidepressants, intentional self-harm, initial encounter0
T43.022DPoisoning by tetracyclic antidepressants, intentional self-harm, subsequent encounter0
T43.1X2APoisoning by monoamine-oxidase-inhibitor antidepressants, intentional self-harm, initial encounter0
T43.202APoisoning by unspecified antidepressants, intentional self-harm, initial encounter0
T43.212DPoisoning by selective serotonin and norepinephrine reuptake inhibitors, intentional self-harm, subsequent encounter0
T43.222DPoisoning by selective serotonin reuptake inhibitors, intentional self-harm, subsequent encounter0
T43.292APoisoning by other antidepressants, intentional self-harm, initial encounter0
T43.292DPoisoning by other antidepressants, intentional self-harm, subsequent encounter0
T43.3X2APoisoning by phenothiazine antipsychotics and neuroleptics, intentional self-harm, initial encounter0
T43.3X2DPoisoning by phenothiazine antipsychotics and neuroleptics, intentional self-harm, subsequent encounter0
T43.4X2APoisoning by butyrophenone and thiothixene neuroleptics, intentional self-harm, initial encounter0
T43.502APoisoning by unspecified antipsychotics and neuroleptics, intentional self-harm, initial encounter0
T43.592APoisoning by other antipsychotics and neuroleptics, intentional self-harm, initial encounter0
T43.592DPoisoning by other antipsychotics and neuroleptics, intentional self-harm, subsequent encounter0
T43.612APoisoning by caffeine, intentional self-harm, initial encounter0
T43.622APoisoning by amphetamines, intentional self-harm, initial encounter0
T43.622DPoisoning by amphetamines, intentional self-harm, subsequent encounter0
T43.632APoisoning by methylphenidate, intentional self-harm, initial encounter0
T43.692APoisoning by other psychostimulants, intentional self-harm, initial encounter0
T43.8X2APoisoning by other psychotropic drugs, intentional self-harm, initial encounter0
T43.92XAPoisoning by unspecified psychotropic drug, intentional self-harm, initial encounter0
T44.1X2APoisoning by other parasympathomimetics [cholinergics], intentional self-harm, initial encounter0
T44.3X2APoisoning by other parasympatholytics [anticholinergics and antimuscarinics] and spasmolytics, intentional self-harm, initial encounter0
T44.4X2APoisoning by predominantly alpha-adrenoreceptor agonists, intentional self-harm, initial encounter0
T44.6X2APoisoning by alpha-adrenoreceptor antagonists, intentional self-harm, initial encounter0
T44.7X2APoisoning by beta-adrenoreceptor antagonists, intentional self-harm, initial encounter0
T44.7X2DPoisoning by beta-adrenoreceptor antagonists, intentional self-harm, subsequent encounter0
T44.992APoisoning by other drug primarily affecting the autonomic nervous system, intentional self-harm, initial encounter0
T45.0X2APoisoning by antiallergic and antiemetic drugs, intentional self-harm, initial encounter0
T45.0X2DPoisoning by antiallergic and antiemetic drugs, intentional self-harm, subsequent encounter0
T45.2X2APoisoning by vitamins, intentional self-harm, initial encounter0
T45.2X2DPoisoning by vitamins, intentional self-harm, subsequent encounter0
T45.4X2APoisoning by iron and its compounds, intentional self-harm, initial encounter0
T45.512APoisoning by anticoagulants, intentional self-harm, initial encounter0
T46.0X2APoisoning by cardiac-stimulant glycosides and drugs of similar action, intentional self-harm, initial encounter0
T46.1X2APoisoning by calcium-channel blockers, intentional self-harm, initial encounter0
T46.2X2APoisoning by other antidysrhythmic drugs, intentional self-harm, initial encounter0
T46.3X2APoisoning by coronary vasodilators, intentional self-harm, initial encounter0
T46.4X2APoisoning by angiotensin-converting-enzyme inhibitors, intentional self-harm, initial encounter0
T46.4X2DPoisoning by angiotensin-converting-enzyme inhibitors, intentional self-harm, subsequent encounter0
T46.5X2DPoisoning by other antihypertensive drugs, intentional self-harm, subsequent encounter0
T46.6X2APoisoning by antihyperlipidemic and antiarteriosclerotic drugs, intentional self-harm, initial encounter0
T46.7X2APoisoning by peripheral vasodilators, intentional self-harm, initial encounter0
T46.8X2APoisoning by antivaricose drugs, including sclerosing agents, intentional self-harm, initial encounter0
T47.0X2APoisoning by histamine H2-receptor blockers, intentional self-harm, initial encounter0
T47.1X2APoisoning by other antacids and anti-gastric-secretion drugs, intentional self-harm, initial encounter0
T47.4X2APoisoning by other laxatives, intentional self-harm, initial encounter0
T47.6X2APoisoning by antidiarrheal drugs, intentional self-harm, initial encounter0
T48.1X2APoisoning by skeletal muscle relaxants [neuromuscular blocking agents], intentional self-harm, initial encounter0
T48.202APoisoning by unspecified drugs acting on muscles, intentional self-harm, initial encounter0
T48.3X2APoisoning by antitussives, intentional self-harm, initial encounter0
T48.3X2DPoisoning by antitussives, intentional self-harm, subsequent encounter0
T48.4X2APoisoning by expectorants, intentional self-harm, initial encounter0
T48.5X2APoisoning by other anti-common-cold drugs, intentional self-harm, initial encounter0
T48.6X2APoisoning by antiasthmatics, intentional self-harm, initial encounter0
T49.0X2APoisoning by local antifungal, anti-infective and anti-inflammatory drugs, intentional self-harm, initial encounter0
T49.6X2APoisoning by otorhinolaryngological drugs and preparations, intentional self-harm, initial encounter0
T49.6X2DPoisoning by otorhinolaryngological drugs and preparations, intentional self-harm, subsequent encounter0
T50.2X2APoisoning by carbonic-anhydrase inhibitors, benzothiadiazides and other diuretics, intentional self-harm, initial encounter0
T50.2X2DPoisoning by carbonic-anhydrase inhibitors, benzothiadiazides and other diuretics, intentional self-harm, subsequent encounter0
T50.3X2APoisoning by electrolytic, caloric and water-balance agents, intentional self-harm, initial encounter0
T50.5X2APoisoning by appetite depressants, intentional self-harm, initial encounter0
T50.6X2APoisoning by antidotes and chelating agents, intentional self-harm, initial encounter0
T50.7X2APoisoning by analeptics and opioid receptor antagonists, intentional self-harm, initial encounter0
T50.8X2APoisoning by diagnostic agents, intentional self-harm, initial encounter0
T50.902APoisoning by unspecified drugs, medicaments and biological substances, intentional self-harm, initial encounter0
T50.902SPoisoning by unspecified drugs, medicaments and biological substances, intentional self-harm, sequela0
T50.992APoisoning by other drugs, medicaments and biological substances, intentional self-harm, initial encounter0
T50.992DPoisoning by other drugs, medicaments and biological substances, intentional self-harm, subsequent encounter0
T51.0X2AToxic effect of ethanol, intentional self-harm, initial encounter0
T51.0X2DToxic effect of ethanol, intentional self-harm, subsequent encounter0
T51.1X2AToxic effect of methanol, intentional self-harm, initial encounter0
T51.2X2AToxic effect of 2-Propanol, intentional self-harm, initial encounter0
T51.2X2DToxic effect of 2-Propanol, intentional self-harm, subsequent encounter0
T51.2X2SToxic effect of 2-Propanol, intentional self-harm, sequela0
T51.8X2AToxic effect of other alcohols, intentional self-harm, initial encounter0
T51.92XAToxic effect of unspecified alcohol, intentional self-harm, initial encounter0
T51.92XDToxic effect of unspecified alcohol, intentional self-harm, subsequent encounter0
T52.0X2AToxic effect of petroleum products, intentional self-harm, initial encounter0
T52.4X2AToxic effect of ketones, intentional self-harm, initial encounter0
T52.8X2AToxic effect of other organic solvents, intentional self-harm, initial encounter0
T54.0X2AToxic effect of phenol and phenol homologues, intentional self-harm, initial encounter0
T54.1X2AToxic effect of other corrosive organic compounds, intentional self-harm, initial encounter0
T54.2X2AToxic effect of corrosive acids and acid-like substances, intentional self-harm, initial encounter0
T54.3X2AToxic effect of corrosive alkalis and alkali-like substances, intentional self-harm, initial encounter0
T54.3X2DToxic effect of corrosive alkalis and alkali-like substances, intentional self-harm, subsequent encounter0
T54.3X2SToxic effect of corrosive alkalis and alkali-like substances, intentional self-harm, sequela0
T54.92XAToxic effect of unspecified corrosive substance, intentional self-harm, initial encounter0
T54.92XSToxic effect of unspecified corrosive substance, intentional self-harm, sequela0
T55.0X2AToxic effect of soaps, intentional self-harm, initial encounter0
T55.1X2AToxic effect of detergents, intentional self-harm, initial encounter0
T56.892AToxic effect of other metals, intentional self-harm, initial encounter0
T56.892DToxic effect of other metals, intentional self-harm, subsequent encounter0
T58.02XAToxic effect of carbon monoxide from motor vehicle exhaust, intentional self-harm, initial encounter0
T58.92XAToxic effect of carbon monoxide from unspecified source, intentional self-harm, initial encounter0
T59.892AToxic effect of other specified gases, fumes and vapors, intentional self-harm, initial encounter0
T62.0X2AToxic effect of ingested mushrooms, intentional self-harm, initial encounter0
T65.222DToxic effect of tobacco cigarettes, intentional self-harm, subsequent encounter0
T65.222SToxic effect of tobacco cigarettes, intentional self-harm, sequela0
T65.892AToxic effect of other specified substances, intentional self-harm, initial encounter0
T65.892DToxic effect of other specified substances, intentional self-harm, subsequent encounter0
T65.92XAToxic effect of unspecified substance, intentional self-harm, initial encounter0
T65.92XSToxic effect of unspecified substance, intentional self-harm, sequela0
T71.162DAsphyxiation due to hanging, intentional self-harm, subsequent encounter0
T71.192AAsphyxiation due to mechanical threat to breathing due to other causes, intentional self-harm, initial encounter0
X71.0XXSIntentional self-harm by drowning and submersion while in bathtub, sequela0
X71.3XXAIntentional self-harm by drowning and submersion in natural water, initial encounter0
X71.8XXAOther intentional self-harm by drowning and submersion, initial encounter0
X71.9XXAIntentional self-harm by drowning and submersion, unspecified, initial encounter0
X72.XXXAIntentional self-harm by handgun discharge, initial encounter0
X72.XXXDIntentional self-harm by handgun discharge, subsequent encounter0
X72.XXXSIntentional self-harm by handgun discharge, sequela0
X73.0XXAIntentional self-harm by shotgun discharge, initial encounter0
X74.01XAIntentional self-harm by airgun, initial encounter0
X74.8XXSIntentional self-harm by other firearm discharge, sequela0
X74.9XXAIntentional self-harm by unspecified firearm discharge, initial encounter0
X74.9XXDIntentional self-harm by unspecified firearm discharge, subsequent encounter0
X74.9XXSIntentional self-harm by unspecified firearm discharge, sequela0
X76.XXXAIntentional self-harm by smoke, fire and flames, initial encounter0
X76.XXXDIntentional self-harm by smoke, fire and flames, subsequent encounter0
X77.8XXAIntentional self-harm by other hot objects, initial encounter0
X78.0XXAIntentional self-harm by sharp glass, initial encounter0
X78.0XXDIntentional self-harm by sharp glass, subsequent encounter0
X78.1XXAIntentional self-harm by knife, initial encounter0
X78.1XXDIntentional self-harm by knife, subsequent encounter0
X78.8XXDIntentional self-harm by other sharp object, subsequent encounter0
X78.9XXSIntentional self-harm by unspecified sharp object, sequela0
X79.XXXAIntentional self-harm by blunt object, initial encounter0
X79.XXXDIntentional self-harm by blunt object, subsequent encounter0
X80.XXXAIntentional self-harm by jumping from a high place, initial encounter0
X80.XXXDIntentional self-harm by jumping from a high place, subsequent encounter0
X81.0XXAIntentional self-harm by jumping or lying in front of motor vehicle, initial encounter0
X81.8XXAIntentional self-harm by jumping or lying in front of other moving object, initial encounter0
X82.8XXAOther intentional self-harm by crashing of motor vehicle, initial encounter0
X83.2XXAIntentional self-harm by exposure to extremes of cold, initial encounter0
X83.8XXDIntentional self-harm by other specified means, subsequent encounter0
X83.8XXSIntentional self-harm by other specified means, sequela0

Appendix B. Categories of Comorbid Diseases

Comorbid medical disorders were also documented and categorized into 12 disease categories that used only ICD9 codes [42].
Category 1 (ICD9: 291* or 292* or 303* or 304* or (305* and not 305.1))
Category 2 (ICD9: 295* or 301.2)
Category 3 (ICD9: 296* or 298.0 or 300.4 or 301.1 or 309* or 311*)
Category 4 (ICD9: 297* or (298* and not 298.0))
Category 5 (ICD9: 308* or (300* and not 300.4))
Category 6 (ICD9: 301* not 301.1 and not 301.2)
Category 7 (ICD9: 302*)
Category 8 (ICD9: 306* or 316*)
Category 9 (ICD9: 307*)
Category 10 (ICD9: 290* or 293* or 294* or 310*)
Category 11 (ICD9: 299* or 312* or 313* or 314* or 315*)
Category 12 (ICD9: 317* or 318* or 319*)
Table A2. Categories of Comorbid Diseases.
Table A2. Categories of Comorbid Diseases.
ICD9 CodeDisease NameCategoryICD9 CodeDisease NameCategory
291Alcohol-induced mental disorders1301 (not 301.1 or 301.2)Personality disorders (not Affective personality disorder or Schizoid personality disorder) 6
292Drug-induced mental disorders1302Sexual and gender identity disorders7
303Alcohol dependence syndrome1306Physiological malfunction arising from mental factors8
304Drug dependence1316Psychic factor w oth dis.8
305 (not 305.1)Nondependent abuse of drugs (not Tobacco use disorder)1307Special symptoms or syndromes not elsewhere classified9
295Schizophrenic disorders2290Dementias10
301.2Schizoid personality disorder2293Transient mental disorders due to conditions classified elsewhere10
296Episodic mood disorders3294Persistent mental disorders due to conditions classified elsewhere10
298Depressive type psychosis3310Specific nonpsychotic mental disorders due to brain damage10
300.4Dysthymic disorder3299Autistic disorder-current11
301.1Affective personality disorder3312Disturbance of conduct not elsewhere classified11
309Adjustment reaction3313Disturbance of emotions specific to childhood and adolescence11
311Depressive disorder NEC3314Hyperkinetic syndrome of childhood11
297Delusional disorders4315Specific delays in development11
298 (but not 2980)Other nonorganic psychoses ( not Depressive type psychosis) 4317Mild intellectual disabilities12
308Acute reaction to stress5318Other specified intellectual disabilities12
300 (but not 300.4)Anxiety, dissociative and somatoform disorders (not Dysthymic disorder)5319Unspecified intellectual disabilities12

Appendix C. Distribution of All Categorical Features

Table A3. Distribution of all categorical features.
Table A3. Distribution of all categorical features.
TPProportion of 1 in Whole PopulationProportion of 1 with Positive ContributionsProportion of 1 with Negative ContributionsFDR Adjusted Q ValueDirection of Effect
Almotriptan18.747<0.0010.01301<0.001No SREs
Sertraline1027.936<0.0010.11700.41<0.001No SREs
Selegiline250.75<0.0010.00110<0.001SREs
Rotigotine130.307<0.0010.00901<0.001No SREs
Rizatriptan136.995<0.0010.0130.0710.003<0.001SREs
Risperidone32.548<0.0010.0620.1310.053<0.001SREs
Rasagiline16.996<0.0010.01401<0.001No SREs
Sumatriptan355.971<0.0010.0510.0040.169<0.001No SREs
Quetiapine34.748<0.0010.1350.0680.155<0.001No SREs
Promethazine130.817<0.0010.0530.0080.1<0.001No SREs
Paroxetine78.278<0.0010.0320.0080.065<0.001No SREs
Olanzapine174.851<0.0010.0550.1840.032<0.001SREs
Disease Category 12 in last year150.338<0.0010.0110.0980.004<0.001SREs
Mirtazapine113.859<0.0010.0630.0130.106<0.001No SREs
Milnacipran1014.193<0.0010.00701<0.001No SREs
Protriptyline120.749<0.0010.00201<0.001No SREs
Tapentadol67.865<0.0010.01601<0.001No SREs
Thiothixene27.267<0.0010.0010.0290<0.001SREs
Tramadol855.263<0.0010.1310.0020.373<0.001No SREs
Disease Category 11 in last year1879.785<0.0010.0980.9570.036<0.001SREs
Disease Category 9 in last year95.725<0.0010.0430.0080.079<0.001No SREs
Disease Category 8 in last year44.042<0.0010.0050.0420.002<0.001SREs
Disease Category 7 in last year259.428<0.0010.01201<0.001No SREs
Disease Category 6 in last year2032.077<0.0010.0660.9790.022<0.001SREs
Disease Category 5 in last year152.933<0.0010.4590.9920.436<0.001SREs
Disease Category 4 in last year614.247<0.0010.0340.3640.014<0.001SREs
Disease Category 3 in last year13.537<0.0010.7490.9060.743<0.001SREs
Disease Category 2 in last year1610.239<0.0010.0640.9650.029<0.001SREs
Disease Category 1 in last year1640.843<0.0010.23410.11<0.001SREs
Ziprasidone947.034<0.0010.0370.510.014<0.001SREs
Vortioxetine903.45<0.0010.00801<0.001No SREs
Vilazodone15.103<0.0010.0060.0210.004<0.001SREs
Trifluoperazine549.894<0.0010.00701<0.001No SREs
Trazodone1068.226<0.0010.170.9190.105<0.001SREs
Methadone13.736<0.0010.0240.040.017<0.001SREs
Meperidine465.207<0.0010.0220.220.006<0.001SREs
GENDER1359.169<0.0010.2370.0330.624<0.001No SREs
Loxapine422.51<0.0010.00701<0.001No SREs
Amitriptyline666.435<0.0010.0470.0020.259<0.001No SREs
Aripiprazole1651.206<0.0010.08800.573<0.001No SREs
Asenapine162.998<0.0010.0050.0680<0.001SREs
Brexpiprazole1268.74<0.0010.00401<0.001No SREs
Bupropion148.547<0.0010.1090.0130.158<0.001No SREs
Buspirone169.298<0.0010.0790.0040.132<0.001No SREs
Cariprazine283.31<0.0010.00401<0.001No SREs
Chlorpheniramine251.938<0.0010.00801<0.001No SREs
Chlorpromazine72.256<0.0010.0110.0540.005<0.001SREs
Clozapine208.063<0.0010.01901<0.001No SREs
Desipramine92.504<0.0010.03301<0.001No SREs
Desvenlafaxine113.145<0.0010.00700.09<0.001No SREs
Dihydroergotamine1673.55<0.0010.00801<0.001No SREs
Doxepin15.421<0.0010.0290.0130.038<0.001No SREs
Dexmethylphenidate481.108<0.0010.00401<0.001No SREs
Fluvoxamine1049.281<0.0010.00601<0.001No SREs
Lithium97.967<0.0010.0750.010.109<0.001No SREs
Escitalopram14.179<0.0010.0490.0240.058<0.001No SREs
Fentanyl754.886<0.0010.18800.385<0.001No SREs
Levomilnacipran462.413<0.0010.00901<0.001No SREs
Lamotrigine341.173<0.0010.14500.239<0.001No SREs
Flibanserin21.497<0.0010.01101<0.001No SREs
Imipramine863.02<0.0010.00801<0.001No SREs
Fluoxetine39.147<0.0010.0910.0530.119<0.001No SREs
Fluphenazine128.321<0.0010.01601<0.001No SREs
Haloperidol450.954<0.0010.0470.320.023<0.001SREs
Naratriptan11.7370.0010.0040.0190.0020.001246SREs
Amphetamine9.9410.0020.0310.0180.0390.002455No SREs
Venlafaxine8.860.0030.0820.0480.0890.003627No SREs
Tranylcypromine8.2430.0040.029010.004765No SREs
Disease Category 10 in last year4.5950.0320.0270.0350.0220.037565SREs
Paliperidone4.3790.0360.0070.0130.0050.041657SREs
Lurasidone4.1960.0410.0320.0230.0370.046775No SREs
Zolmitriptan3.2920.070.0020.0060.0010.07875N/A
Ropinirole2.340.1260.0160.0220.0130.139808N/A
Duloxetine2.0790.1490.0690.0840.0660.162N/A
Dextromethorphan2.0730.150.0150.010.0170.162N/A
Citalopram2.0270.1550.1230.0940.1260.165197N/A
Clomipramine1.9450.1630.0040.010.0030.171468N/A
Nortriptyline1.710.1910.0120.0160.010.198346N/A
Perphenazine1.1270.2880.0170.0130.0190.295291N/A
Carbamazepine0.3010.5840.030.0280.0320.5913N/A
Eletriptan0.0610.8040.0010.0030.0010.804N/A

References

  1. World Health Organization. Suicide in the World: Global Health Estimates; World Health Organisation: Genva, Switzerland, 2019. [Google Scholar]
  2. Drapeau, C.W.; McIntosh, J.L. USA Suicide 2018: Official Final Data. 2020; American Association of Suicidology: Washington, DC, USA, 2018. [Google Scholar]
  3. Hedegaard, H.; Curtin, S.C.; Warner, M. Suicide Mortality in the United States, 1999–2017; National Center for Health Statistics: Hyattsville, MD, USA, 2018. [Google Scholar]
  4. Curtin, S.C.; Warner, M.; Hedegaard, H. Increase in Suicide in the United States, 1999–2014. Available online: https://stacks.cdc.gov/view/cdc/39008 (accessed on 24 August 2020).
  5. Drapeau, C.W.; McIntosh, J.L. USA Suicide 2017: Official Final Data. 2018; American Assocation of Suicidology: Washington, DC, USA, 2017. [Google Scholar]
  6. Drapeau, C.W.; McIntosh, J.L. USA Suicide 2016: Official Final Data. 2017; American Association of Suicidology: Washington, DC, USA, 2016. [Google Scholar]
  7. Drapeau, C.W.; McIntosh, J.L. USA Suicide 2015: Official Final Data. 2016; American Association of Suicidology: Washington, DC, USA, 2015. [Google Scholar]
  8. Drapeau, C.W.; McIntosh, J.L. USA Suicide 2014: Official Final Data; American Association of Suicidology: Washington, DC, USA, 2015. [Google Scholar]
  9. Brent, D.A.; Baugher, M.; Bridge, J.; Chen, T.; Chiappetta, L. Age- and Sex-Related Risk Factors for Adolescent Suicide. J. Am. Acad. Child Adolesc. Psychiatry 1999, 38, 1497–1505. [Google Scholar] [CrossRef]
  10. Case, A.; Deaton, A. Suicide, Age, and Wellbeing: An Empirical Investigation; National Bureau of Economic Research: Cambridge, MA, USA, 2015. [Google Scholar]
  11. Large, M.; Kaneson, M.; Myles, N.; Myles, H.; Gunaratne, P.; Ryan, C. Meta-Analysis of Longitudinal Cohort Studies of Suicide Risk Assessment among Psychiatric Patients: Heterogeneity in Results and Lack of Improvement over Time. PLoS ONE 2016, 11, e0156322. [Google Scholar] [CrossRef]
  12. Huang, X.; Ribeiro, J.D.; Musacchio, K.M.; Franklin, J.C. Demographics as predictors of suicidal thoughts and behaviors: A meta-analysis. PLoS ONE 2017, 12, e0180793. [Google Scholar] [CrossRef] [Green Version]
  13. Mulder, R.T.; Newton-Howes, G.; Coid, J.W. The futility of risk prediction in psychiatry. Br. J. Psychiatry 2016, 209, 271–272. [Google Scholar] [CrossRef] [Green Version]
  14. Passos, I.C.; Mwangi, B.; Cao, B.; Hamilton, J.E.; Wu, M.-J.; Zhang, X.Y.; Zunta-Soares, G.B.; Quevedo, J.; Kauer-Sant’Anna, M.; Kapczinski, F.; et al. Identifying a clinical signature of suicidality among patients with mood disorders: A pilot study using a machine learning approach. J. Affect. Disord. 2016, 193, 109–116. [Google Scholar] [CrossRef] [Green Version]
  15. Walsh, C.G.; Ribeiro, J.D.; Franklin, J.C. Predicting Risk of Suicide Attempts Over Time Through Machine Learning. Clin. Psychol. Sci. 2017, 5, 457–469. [Google Scholar] [CrossRef]
  16. Just, M.A.; Pan, L.; Cherkassky, V.L.; McMakin, D.L.; Cha, C.; Nock, M.K.; Brent, D. Machine learning of neural representations of suicide and emotion concepts identifies suicidal youth. Nat. Hum. Behav. 2017, 1, 911–919. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Sanderson, M.; Bulloch, A.G.; Wang, J.; Williams, K.G.; Williamson, T.; Patten, S.B. Predicting death by suicide following an emergency department visit for parasuicide with administrative health care system data and machine learning. EClinicalMedicine 2020, 20, 100281. [Google Scholar] [CrossRef] [PubMed]
  18. Costa, L.D.S.; Alencar, Á.P.; Neto, P.J.N.; Dos Santos, M.D.S.V.; Da Silva, C.G.L.; Pinheiro, S.D.F.L.; Silveira, R.T.; Bianco, B.; Junior, R.F.F.P.; De Lima, M.A.P.; et al. Risk factors for suicide in bipolar disorder: A systematic review. J. Affect. Disord. 2015, 170, 237–254. [Google Scholar] [CrossRef] [PubMed]
  19. Kheirabadi, G.R.; Hashemi, S.J.; Akbaripour, S.; Salehi, M.; Maracy, M.R. Risk factors of suicide reattempt in patients admitted to khorshid hospital, Isfahan, Iran., 2009. Iran. J. Epidemiol. 2012, 8, 39–46. [Google Scholar]
  20. Grunze, H. Bipolar disorder. Neurobiol. Brain Disord. 2015, 655–673. [Google Scholar] [CrossRef]
  21. Martínez-Arán, A.; Vieta, E.; Torrent, C.; Sánchez-Moreno, J.; Goikolea, J.; Salamero, M.; Malhi, G.; González-Pinto, A.; Daban, C.; Alvarez-Grandi, S.; et al. Functional outcome in bipolar disorder: The role of clinical and cognitive factors. Bipolar Disord. 2007, 9, 103–113. [Google Scholar] [CrossRef] [PubMed]
  22. Grande, I.; Goikolea, J.M.; De Dios, C.; González-Pinto, A.; Montes, J.M.; Saiz-Ruiz, J.; Prieto, E.; Vieta, E. Occupational disability in bipolar disorder: Analysis of predictors of being on severe disablement benefit (PREBIS study data). Acta Psychiatr. Scand. 2012, 127, 403–411. [Google Scholar] [CrossRef]
  23. Cardoso, G.; Xavier, M.; Vilagut, G.; Petukhova, M.; Alonso, J.; Kessler, R.C.; Caldas-De-Almeida, J.M. Days out of role due to common physical and mental conditions in Portugal: Results from the WHO World Mental Health Survey. BJPsych Open 2017, 3, 15–21. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  24. Merikangas, K.R.; Jin, R.; He, J.-P.; Kessler, R.C.; Lee, S.; Sampson, N.A.; Viana, M.C.; Andrade, L.H.; Hu, C.; Karam, E.G.; et al. Prevalence and Correlates of Bipolar Spectrum Disorder in the World Mental Health Survey Initiative. Arch. Gen. Psychiatry 2011, 68, 241–251. [Google Scholar] [CrossRef] [PubMed]
  25. Merikangas, K.R.; Akiskal, H.S.; Angst, J.; Greenberg, P.E.; Hirschfeld, R.M.A.; Petukhova, M.; Kessler, R.C. Lifetime and 12-Month Prevalence of Bipolar Spectrum Disorder in the National Comorbidity Survey Replication. Arch. Gen. Psychiatry 2007, 64, 543–552. [Google Scholar] [CrossRef]
  26. Otto, M.W.; Perlman, C.A.; Wernicke, R.; E Reese, H.; Bauer, M.S.; Pollack, M.H. Posttraumatic stress disorder in patients with bipolar disorder: A review of prevalence, correlates, and treatment strategies. Bipolar Disord. 2004, 6, 470–479. [Google Scholar] [CrossRef]
  27. Boylan, K.R.; Bieling, P.J.; Marriott, M.; Begin, H.; Young, L.T.; MacQueen, G.M. Impact of Comorbid Anxiety Disorders on Outcome in a Cohort of Patients With Bipolar Disorder. J. Clin. Psychiatry 2004, 65, 1106–1113. [Google Scholar] [CrossRef]
  28. Quarantini, L.C.; Miranda-Scippa, Â.; Nery-Fernandes, F.; Andrade-Nascimento, M.; Galvão-De-Almeida, A.; Guimarães, J.L.; Teles, C.A.; Netto, L.R.; Lira, S.B.; De Oliveira, I.R.; et al. The impact of comorbid posttraumatic stress disorder on bipolar disorder patients. J. Affect. Disord. 2010, 123, 71–76. [Google Scholar] [CrossRef]
  29. American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders (DSM-5®); American Psychiatric Pub.: Washington, DC, USA, 2013. [Google Scholar]
  30. Kessler, R.C.; Sonnega, A.; Bromet, E.; Hughes, M.; Nelson, C.B. Posttraumatic Stress Disorder in the National Comorbidity Survey. Arch. Gen. Psychiatry 1995, 52, 1048–1060. [Google Scholar] [CrossRef]
  31. Carter, J.M.; Arentsen, T.J.; Cordova, M.J.; Ruzek, J.; Reiser, R.; Suppes, T.; Ostacher, M.J. Increased Suicidal Ideation in Patients with Co-Occurring Bipolar Disorder and Post-Traumatic Stress Disorder. Arch. Suicide Res. 2016, 21, 621–632. [Google Scholar] [CrossRef] [PubMed]
  32. Dilsaver, S.C.; Benazzi, F.; Akiskal, H.S.; Akiskal, K.K. Post-traumatic stress disorder among adolescents with bipolar disorder and its relationship to suicidality. Bipolar Disord. 2007, 9, 649–655. [Google Scholar] [CrossRef] [PubMed]
  33. Mann, J.J.; Apter, A.; Bertolote, J.; Beautrais, A.; Currier, D.; Haas, A.; Hegerl, U.; Lonnqvist, J.; Malone, K.; Marusic, A.; et al. Suicide Prevention Strategies. JAMA 2005, 294, 2064–2074. [Google Scholar] [CrossRef] [PubMed]
  34. Zalsman, G.; Hawton, K.; Wasserman, D.; van Heeringen, K.; Arensman, E.; Sarchiapone, M.; Carli, V.; Höschl, C.; Barzilay, R.; Balazs, J.; et al. Suicide prevention strategies revisited: 10-year systematic review. Lancet Psychiatr. 2016, 3, 646–659. [Google Scholar] [CrossRef]
  35. Van Der Feltz-Cornelis, C.M.; Sarchiapone, M.; Postuvan, V.; Volker, D.; Roskar, S.; Grum, A.T.; Carli, V.; McDaid, D.; O’Connor, R.; Maxwell, M.; et al. Best Practice Elements of Multilevel Suicide Prevention Strategies. Crisis 2011, 32, 319–333. [Google Scholar] [CrossRef] [Green Version]
  36. Yip, P.S.; Caine, E.; Yousuf, S.; Chang, S.S.; Wu, K.C.C.; Chen, Y.Y. Means restriction for suicide prevention. Lancet 2012, 379, 2393–2399. [Google Scholar] [CrossRef]
  37. Rihmer, Z.; Belso, N.; Kiss, K. Strategies for suicide prevention. Curr. Opin. Psychiatry 2002, 15, 83–87. [Google Scholar] [CrossRef]
  38. Rihmer, Z. Strategies of suicide prevention: Focus on health care. J. Affect. Disord. 1996, 39, 83–91. [Google Scholar] [CrossRef]
  39. Cipriani, A.; Hawton, K.; Stockton, S.; Geddes, J.R. Lithium in the prevention of suicide in mood disorders: Updated systematic review and meta-analysis. BMJ 2013, 346, f3646. [Google Scholar] [CrossRef] [Green Version]
  40. Goodwin, F.K.; Fireman, B.; Simon, G.E.; Hunkeler, E.M.; Lee, J.; Revicki, D. Suicide Risk in Bipolar Disorder During Treatment With Lithium and Divalproex. JAMA 2003, 290, 1467–1473. [Google Scholar] [CrossRef] [Green Version]
  41. Simon, G.E.; Johnson, E.; Lawrence, J.M.; Rossom, R.C.; Ahmedani, B.; Lynch, F.L.; Beck, A.; Waitzfelder, B.E.; Ziebell, R.; Penfold, R.B.; et al. Predicting Suicide Attempts and Suicide Deaths Following Outpatient Visits Using Electronic Health Records. Am. J. Psychiatry 2018, 175, 951–960. [Google Scholar] [CrossRef]
  42. Wishart, D.S.; Feunang, Y.D.; Guo, A.C.; Lo, E.J.; Marcu, A.; Grant, J.R.; Sajed, T.; Johnson, D.; Li, C.; Sayeeda, Z.; et al. DrugBank 5.0: A major update to the DrugBank database for 2018. Nucleic Acids Res. 2018, 46, D1074–D1082. [Google Scholar] [CrossRef] [PubMed]
  43. Kluyver, T.; Ragan-Kelley, B.; Pérez, F.; Granger, B.E.; Bussonnier, M.; Frederic, J.; Kelley, K.; Hamrick, J.B.; Grout, J.; Corlay, S.; et al. Jupyter Notebooks-a publishing format for reproducible computational workflows. ELPUB 2016. [Google Scholar] [CrossRef]
  44. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-learn: Machine learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  45. Virtanen, P.; Gommers, R.; Oliphant, T.E.; Haberland, M.; Reddy, T.; Cournapeau, D.; Burovski, E.; Peterson, P.; Weckesser, W.; Bright, J.; et al. SciPy 1.0: Fundamental algorithms for scientific computing in Python. Nat. Methods 2020, 17, 261–272. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  46. Idris, I. NumPy Cookbook; Packt Publishing Ltd.: Birmingham, UK, 2012. [Google Scholar]
  47. McKinney, W. pandas: A foundational Python library for data analysis and statistics. Python High Perform. Sci. Comp. 2011, 14, 1–9. [Google Scholar]
  48. Kleinbaum, D.G.; Dietz, K.; Gail, M.; Klein, M.; Klein, M. Logistic Regression; Springer: New York, NY, USA, 2002. [Google Scholar]
  49. Liaw, A.; Wiener, M. Classification and regression by randomForest. R News 2002, 2, 18–22. [Google Scholar]
  50. Freund, Y.; Mason, L. The alternating decision tree learning algorithm. ICML 1999, 99, 124–133. [Google Scholar]
  51. Fukunaga, K.; Narendra, P. A Branch and Bound Algorithm for Computing k-Nearest Neighbors. IEEE Trans. Comput. 1975, 100, 750–753. [Google Scholar] [CrossRef]
  52. Kononenko, I. Semi-naive bayesian classifier. In Lecture Notes in Computer Science; Springer Science and Business Media LLC: Berlin/Heidelberg, Germany, 2005; pp. 206–219. [Google Scholar]
  53. Keerthi, S.; Shevade, S.; Bhattacharyya, C.; Murthy, K. A fast iterative nearest point algorithm for support vector machine classifier design. IEEE Trans. Neural Networks 2000, 11, 124–136. [Google Scholar] [CrossRef] [Green Version]
  54. Chawla, N.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef]
  55. Ibrahim, N.; Din, N.C.; Ahmad, M.; Amit, N.; Ghazali, S.E.; Wahab, S.; Kadir, N.B.A.; Halim, F.W.; Halim, M.R.T.A. The role of social support and spiritual wellbeing in predicting suicidal ideation among marginalized adolescents in Malaysia. BMC Public Health 2019, 19, 553. [Google Scholar] [CrossRef] [PubMed]
  56. Wright, M.N.; Ziegler, A. ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and R. J. Stat. Softw. 2017, 77, 1–17. [Google Scholar] [CrossRef] [Green Version]
  57. Ronaghan, S. The Mathematics of Decision Trees, Random Forest and Feature Importance in Scikit-Learn and Spark. 2018. Available online: https://towardsdatascience.com/the-mathematics-of-decision-trees-random-forest-and-feature-importance-in-scikit-learn-and-spark-f2861df67e3 (accessed on 15 October 2020).
  58. Walsh, C.G.; Ribeiro, J.D.; Franklin, J.C. Predicting suicide attempts in adolescents with longitudinal clinical data and machine learning. J. Child Psychol. Psychiatry 2018, 59, 1261–1270. [Google Scholar] [CrossRef] [PubMed]
  59. Szuster, R.R.; Schanbacher, B.L.; McCann, S.C. Characteristics of Psychiatric Emergency Room Patients With Alcohol- or Drug-Induced Disorders. Psychiatr. Serv. 1990, 41, 1342–1345. [Google Scholar] [CrossRef]
  60. Wang, L.-J.; Chiang, S.-C.; Su, L.-W.; Lin, S.-K.; Chen, C.-K. Factors Associated With Drug-Related Psychiatric Disorders and Suicide Attempts Among Illicit Drug Users in Taiwan. Subst. Use Misuse 2012, 47, 1185–1188. [Google Scholar] [CrossRef]
  61. Pompili, M.; Serafini, G.; Innamorati, M.; Dominici, G.; Ferracuti, S.; Kotzalidis, G.D.; Serra, G.; Girardi, P.; Janiri, L.; Tatarelli, R.; et al. Suicidal Behavior and Alcohol Abuse. Int. J. Environ. Res. Public Health 2010, 7, 1392–1431. [Google Scholar] [CrossRef] [Green Version]
  62. Brady, J. The association between alcohol misuse and suicidal behaviour. Alcohol Alcohol. 2006, 41, 473–478. [Google Scholar] [CrossRef] [Green Version]
  63. Hawton, K.; Sutton, L.; Haw, C.; Sinclair, J.; Deeks, J.J. Schizophrenia and suicide: Systematic review of risk factors. Br. J. Psychiatry 2005, 187, 9–20. [Google Scholar] [CrossRef]
  64. Palmer, B.A.; Pankratz, V.S.; Bostwick, J.M. The Lifetime Risk of Suicide in Schizophrenia. Arch. Gen. Psychiatry 2005, 62, 247–253. [Google Scholar] [CrossRef]
  65. Rokach, L.; Maimon, O. Data Mining with Decision Trees—Theory and Applications; World Scientific Pub Co Pte Ltd.: Singapore, 2007; Volume 69. [Google Scholar]
  66. Mago, R.; Forero, G.; Greenberg, W.M.; Gommoll, C.; Chen, C. Safety and Tolerability of Levomilnacipran ER in Major Depressive Disorder: Results from an Open-Label, 48-Week Extension Study. Clin. Drug Investig. 2013, 33, 761–771. [Google Scholar] [CrossRef] [Green Version]
  67. Hansen, R.; Cheng, N.; Rahman, M.; Alatawi, Y.; Qian, J.; Peissig, P.L.; Berg, R.L.; Page, C.D. Authors’ Reply to Courtney Suggs and Colleagues’ Comment on: “Mixed Approach Retrospective Analyses of Suicide and Suicidal Ideation for Brand Compared with Generic Central Nervous System Drugs”. Drug Saf. 2018, 41, 1423–1424. [Google Scholar] [CrossRef]
  68. Shamseddeen, W.; Clarke, G.; Keller, M.B.; Wagner, K.D.; Birmaher, B.; Emslie, G.J.; Ryan, N.; Asarnow, J.R.; Porta, G.; Brent, D. Adjunctive Sleep Medications and Depression Outcome in the Treatment of Serotonin-Selective Reuptake Inhibitor Resistant Depression in Adolescents Study. J. Child Adolesc. Psychopharmacol. 2012, 22, 29–36. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. Inclusion process of patients with PTSD and bipolar disorder.
Figure 1. Inclusion process of patients with PTSD and bipolar disorder.
Brainsci 10 00784 g001
Figure 2. Trends of model performances using different number of features. As shown in the figure, the performance of model improved as we included more features in the model and it reached a plateau at around 30 features. Therefore, we were able to achieve the similar model performance with much less features.
Figure 2. Trends of model performances using different number of features. As shown in the figure, the performance of model improved as we included more features in the model and it reached a plateau at around 30 features. Therefore, we were able to achieve the similar model performance with much less features.
Brainsci 10 00784 g002
Figure 3. ROC curve and Precision-Recall Curve for modified model. These two curves are the most common measures to demonstrate the performance of a prediction model. Our model showed a F1 score of 0.877 and the area under ROC is 0.809 indicating a good precision and recall performance. This means our model is very accurate and has a high sensitivity and specificity.
Figure 3. ROC curve and Precision-Recall Curve for modified model. These two curves are the most common measures to demonstrate the performance of a prediction model. Our model showed a F1 score of 0.877 and the area under ROC is 0.809 indicating a good precision and recall performance. This means our model is very accurate and has a high sensitivity and specificity.
Brainsci 10 00784 g003
Figure 4. Distribution of age and ED visits in correctly predicted cases. Age distributions and ED visits are significantly different in two groups. Younger patients and patients with more ED visits are associated with higher-risk of SREs.
Figure 4. Distribution of age and ED visits in correctly predicted cases. Age distributions and ED visits are significantly different in two groups. Younger patients and patients with more ED visits are associated with higher-risk of SREs.
Brainsci 10 00784 g004
Figure 5. Distribution of feature values with positive and negative contributions. Most 0 values are associated with a higher risk of suicide and 1 are considered having lower risks. 0 means that the patients did not have the disease or did not take the medication and 1 means they did. Some features showed obvious separation in contributions by values which means the values of these features are strongly associated with the final prediction( CatN_1Year: Disease Category N in last year (N = 1, 2, 3, 4, 5, 6 and 11)).
Figure 5. Distribution of feature values with positive and negative contributions. Most 0 values are associated with a higher risk of suicide and 1 are considered having lower risks. 0 means that the patients did not have the disease or did not take the medication and 1 means they did. Some features showed obvious separation in contributions by values which means the values of these features are strongly associated with the final prediction( CatN_1Year: Disease Category N in last year (N = 1, 2, 3, 4, 5, 6 and 11)).
Brainsci 10 00784 g005
Table 1. Baseline Patient Characteristics.
Table 1. Baseline Patient Characteristics.
CharacteristicSuicide (Percentage)Not Suicide (Percentage)p Value *
N = 205N = 2963
Gender
Male66 (32.2)688 (23.2)0.005
Female139 (67.8)2275 (76.8)
Lithium Use
Yes16 (7.8)221 (7.5)0.964
Not189 (92.2)2742 (92.5)
ED Visits
10 ≤ X15 (7.3)93 (3.1)0.003
5 ≤ X < 1028 (13.7)260 (8.8)0.026
49 (4.4)133 (4.5)0.999
319 (9.3)213 (7.2)0.334
220 (9.8)357 (12.0)0.385
143 (21.0)596 (20.1)0.836
071 (34.6)1311 (44.2)0.009
Age
Mean (SD)35.06 (12.92)38.45 (13.29)<0.001
* p Values were generated with chi-square test.
Table 2. Model performance of all models *.
Table 2. Model performance of all models *.
K-Nearest NeighborsNaïve BayesDecision TreeSupport Vector MachineLogistic RegressionRandom Forest
TP182200.6146114.2111.8171
FP8882732.6103.81238.81074.617
TN2075230.42859.21724.21888.42946
FN234.45990.893.234
TPR0.8880.9790.7120.5570.5450.834
PPV0.170.0680.5850.0840.0940.91
NPV0.9890.9810.980.950.9530.989
TP: True positive, TN: True negative, FP: False positive, FN: False negative, TPR: True positive rate or Sensitivity, PPV: Positive predictive value, NPV: Negative predictive value. * Values in the table are means from 5-fold stratified cross validation.
Table 3. Feature importance in random forest model.
Table 3. Feature importance in random forest model.
FeatureFeature Importance
Age at both diagnosed0.141
Disease category 5 in last year0.081
Disease category 3 in last year0.07
Disease category 1 in last year0.061
Trazodone0.055
Fentanyl0.047
Disease category 11 in last year0.039
Emergency department visits in last year0.038
Lamotrigine0.036
Sertraline0.031
Disease category 6 in last year0.031
Disease category 2 in last year0.023
Quetiapine0.023
Citalopram0.022
Bupropion0.021
Tramadol0.021
Fluoxetine0.018
Aripiprazole0.017
Haloperidol0.016
Venlafaxine0.016
Lithium0.015
Duloxetine0.014
Buspirone0.012
GENDER0.012
Risperidone0.011
Disease category 4 in last year0.011
Mirtazapine0.01
Ziprasidone0.009
Olanzapine0.009
Promethazine0.008
Escitalopram0.008
Amphetamine0.006
Sumatriptan0.006
Disease category 9 in last year0.006
Amitriptyline0.005
Chlorpromazine0.005
Carbamazepine0.005
Disease category 10 in last year0.004
Paroxetine0.004
Methadone0.004
Disease category 12 in last year0.003
Dextromethorphan0.003
Lurasidone0.003
Meperidine0.003
Rizatriptan0.003
Asenapine0.002
Doxepin0.002
Disease category 8 in last year0.002
Vilazodone0.001
Perphenazine0.001
Nortriptyline0.001
Thiothixene0.001
Clomipramine0.001
Ropinirole0.001
Paliperidone0.001
Eletriptan0.001
Naratriptan0
Zolmitriptan0
Desvenlafaxine0
Selegiline0
Levomilnacipran0
Milnacipran0
Vortioxetine0
Dihydroergotamine0
Imipramine0
Desipramine0
Tapentadol0
Clozapine0
Fluphenazine0
Disease category 7 in last year0
Trifluoperazine0
Almotriptan0
Rasagiline0
Brexpiprazole0
Chlorpheniramine0
Cariprazine0
Fluvoxamine0
Loxapine0
Rotigotine0
Dexmethylphenidate0
Protriptyline0
Tranylcypromine0
Flibanserin0
Amoxapine0
Frovatriptan0
Iloperidone0
Maprotiline0
Phenelzine0
Pimozide0
Nefazodone0
Table 4. Performance of model retrained on selected features.
Table 4. Performance of model retrained on selected features.
TPFPTNFNTPRPPVNPV
Retrained model171142949340.8340.9240.988
TP: True positive, TN: True negative, FP: False positive, FN: False negative, TPR: True positive rate or Sensitivity, PPV: Positive predictive value, NPV: Negative predictive value.
Table 5. Feature value distribution significance in positive and negative contributing groups.
Table 5. Feature value distribution significance in positive and negative contributing groups.
FeaturesTPPercentage of 1 in Whole PopulationPercentage of 1 with Positive ContributionPercentage of 1 with Negative ContributionFDR Adjusted q ValueDirection of Effect
Disease category 2 in last year2065.444<0.0010.0640.9190.017<0.001SREs
Disease category 11 in last year2239.822<0.0010.0980.9960.027<0.001SREs
Disease category 6 in last year1750.073<0.0010.0660.8460.021<0.001SREs
Disease category 1 in last year2193.804<0.0010.23210.068<0.001SREs
Trazodone1248.659<0.0010.170.9960.101<0.001SREs
Sertraline1205.388<0.0010.11600.459<0.001No SREs
GENDER681.776<0.0010.2370.0620.463<0.001No SREs
Haloperidol489.011<0.0010.0460.320.021<0.001SREs
Fentanyl486.882<0.0010.1880.0020.317<0.001No SREs
Aripiprazole428.686<0.0010.0890.0030.219<0.001No SREs
Lamotrigine424.696<0.0010.1460.0010.264<0.001No SREs
Disease category 4 in last year422.183<0.0010.0340.2610.014<0.001SREs
Ziprasidone348.145<0.0010.0370.2020.013<0.001SREs
Risperidone326.949<0.0010.0630.3780.043<0.001SREs
Mirtazapine166.917<0.0010.0630.1860.037<0.001SREs
Quetiapine127.63<0.0010.1350.320.109<0.001SREs
Venlafaxine119.404<0.0010.0820.2140.06<0.001SREs
Buspirone111.025<0.0010.0790.0240.126<0.001No SREs
Disease category 5 in last year108.425<0.0010.460.9890.443<0.001SREs
Duloxetine104.213<0.0010.0690.1750.048<0.001SREs
Tramadol76.116<0.0010.1310.0380.162<0.001No SREs
Citalopram63.62<0.0010.1240.2330.103<0.001SREs
Bupropion18.005<0.0010.1090.0660.122<0.001No SREs
Fluoxetine14.305<0.0010.0920.0650.107<0.001No SREs
Disease category 3 in last year14.02<0.0010.7490.9070.744<0.001SREs
Promethazine7.7570.0050.0520.0380.0610.006No SREs
Lithium5.1650.0230.0760.0580.0830.024No SREs
Olanzapine1.0260.3110.0540.0480.0570.311N/A
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Fan, P.; Guo, X.; Qi, X.; Matharu, M.; Patel, R.; Sakolsky, D.; Kirisci, L.; Silverstein, J.C.; Wang, L. Prediction of Suicide-Related Events by Analyzing Electronic Medical Records from PTSD Patients with Bipolar Disorder. Brain Sci. 2020, 10, 784. https://doi.org/10.3390/brainsci10110784

AMA Style

Fan P, Guo X, Qi X, Matharu M, Patel R, Sakolsky D, Kirisci L, Silverstein JC, Wang L. Prediction of Suicide-Related Events by Analyzing Electronic Medical Records from PTSD Patients with Bipolar Disorder. Brain Sciences. 2020; 10(11):784. https://doi.org/10.3390/brainsci10110784

Chicago/Turabian Style

Fan, Peihao, Xiaojiang Guo, Xiguang Qi, Mallika Matharu, Ravi Patel, Dara Sakolsky, Levent Kirisci, Jonathan C. Silverstein, and Lirong Wang. 2020. "Prediction of Suicide-Related Events by Analyzing Electronic Medical Records from PTSD Patients with Bipolar Disorder" Brain Sciences 10, no. 11: 784. https://doi.org/10.3390/brainsci10110784

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop