Published on in Vol 8, No 4 (2021): April

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/24522, first published .
Using Machine Learning Imputed Outcomes to Assess Drug-Dependent Risk of Self-Harm in Patients with Bipolar Disorder: A Comparative Effectiveness Study

Using Machine Learning Imputed Outcomes to Assess Drug-Dependent Risk of Self-Harm in Patients with Bipolar Disorder: A Comparative Effectiveness Study

Using Machine Learning Imputed Outcomes to Assess Drug-Dependent Risk of Self-Harm in Patients with Bipolar Disorder: A Comparative Effectiveness Study

Original Paper

1Center for Global Health, Department of Internal Medicine, University of New Mexico Health Sciences Center, Albuquerque, NM, United States

2Department of Computer Science, The University of New Mexico, Albuquerque, NM, United States

3New Mexico Behavioral Health Institute, Las Vegas, NM, United States

4TwoFoldChange Consulting, Bozeman, MT, United States

5Iterative Consulting, Albuquerque, NM, United States

6Division of Epidemiology, Biostatistics, and Preventive Medicine, Department of Internal Medicine, The University of New Mexico Health Sciences Center, Albuquerque, NM, United States

7Biomedical Informatics Center, George Washington University, Washington, DC, DC, United States

8Department of Psychiatry & Behavioral Sciences, University of New Mexico Health Sciences Center, Albuquerque, NM, United States

9Semel Institute for Neuroscience and Human Behavior, David Geffen School of Medicine, University of California Los Angeles, Los Angeles, CA, United States

10Division of Translational Informatics, Department of Internal Medicine, University of New Mexico Health Sciences Center, Albuquerque, NM, United States

Corresponding Author:

Christophe Gerard Lambert, PhD

Center for Global Health

Department of Internal Medicine

University of New Mexico Health Sciences Center

915 Camino de Salud NE

Albuquerque, NM

United States

Phone: 1 5052729709

Email: cglambert@unm.edu


Background: Incomplete suicidality coding in administrative claims data is a known obstacle for observational studies. With most of the negative outcomes missing from the data, it is challenging to assess the evidence on treatment strategies for the prevention of self-harm in bipolar disorder (BD), including pharmacotherapy and psychotherapy. There are conflicting data from studies on the drug-dependent risk of self-harm, and there is major uncertainty regarding the preventive effect of monotherapy and drug combinations.

Objective: The aim of this study was to compare all commonly used BD pharmacotherapies, as well as psychotherapy for the risk of self-harm, in a large population of commercially insured individuals, using self-harm imputation to overcome the known limitations of this outcome being underrecorded within US electronic health care records.

Methods: The IBM MarketScan administrative claims database was used to compare self-harm risk in patients with BD following 65 drug regimens and drug-free periods. Probable but uncoded self-harm events were imputed via machine learning, with different probability thresholds examined in a sensitivity analysis. Comparators included lithium, mood-stabilizing anticonvulsants (MSAs), second-generation antipsychotics (SGAs), first-generation antipsychotics (FGAs), and five classes of antidepressants. Cox regression models with time-varying covariates were built for individual treatment regimens and for any pharmacotherapy with or without psychosocial interventions (“psychotherapy”).

Results: Among 529,359 patients, 1.66% (n=8813 events) had imputed and/or coded self-harm following the exposure of interest. A higher self-harm risk was observed during adolescence. After multiple testing adjustment (P≤.012), the following six regimens had higher risk of self-harm than lithium: tri/tetracyclic antidepressants + SGA, FGA + MSA, FGA, serotonin-norepinephrine reuptake inhibitor (SNRI) + SGA, lithium + MSA, and lithium + SGA (hazard ratios [HRs] 1.44-2.29), and the following nine had lower risk: lamotrigine, valproate, risperidone, aripiprazole, SNRI, selective serotonin reuptake inhibitor (SSRI), “no drug,” bupropion, and bupropion + SSRI (HRs 0.28-0.74). Psychotherapy alone (without medication) had a lower self-harm risk than no treatment (HR 0.56, 95% CI 0.52-0.60; P=8.76×10-58). The sensitivity analysis showed that the direction of drug-outcome associations did not change as a function of the self-harm probability threshold.

Conclusions: Our data support evidence on the effectiveness of antidepressants, MSAs, and psychotherapy for self-harm prevention in BD.

Trial Registration: ClinicalTrials.gov NCT02893371; https://clinicaltrials.gov/ct2/show/NCT02893371

JMIR Ment Health 2021;8(4):e24522

doi:10.2196/24522

Keywords



Self-harming behavior is a public and mental health concern of increasing prevalence, which contributes to US hospitalization rates, morbidity, and mortality due to completed suicides. There is a clear temporal and causal link between self-injury and suicide attempts, with both being part of a “suicidality” spectrum and the former being a robust prospective predictor of the latter [1]. In 2018, suicide was the 10th leading cause of death in the general US population, reaching a rate of 14.2 per 100,000 standard population [2]. A previous study reported that the risk ratio of suicide in mental disorders was as high as 7.5 (95% CI 6.6-8.6) and in mood disorders was even higher at 12.3 (95% CI 8.9-17.1) [3]. A recent systematic review showed that bipolar disorder (BD) may be associated with the highest suicide risk among all psychiatric disorders, with over 15%-20% of deaths attributed to suicide and the standardized suicide rate being 20 to 30-fold greater than in the general population (0.2-0.4 per 100 person-years) [4]. Another review found that up to 20% of individuals with BD end their life by suicide and 20%-60% attempt suicide at least once in their lifetime [5]. The reported proportion of suicide attempts and completed suicides among individuals with BD varies from 5:1 in males over 45 years to 85:1 in females under 30 years [6].

Since suicide is an extreme form of self-harming behavior, proper recognition and management of patients presenting with self-inflicted injury are of tremendous importance to prevent lethal outcomes, especially among patients with mood disorders. The factors affecting self-harm risk should be of particular importance for studying suicidality, especially given that the self-inflicted nature of physical trauma/poisoning is often hidden owing to poor patient rapport, provider screening, and data recording.

Incomplete suicidality coding in administrative claims data is a known obstacle for observational studies. It was shown that only 19% of suicide attempts mentioned in primary care clinical notes were coded in International Classification of Diseases-9-Clinical Modification (ICD-9-CM) [7]. Our data from a large-scale observational study on imputing self-harm phenotypes in individuals with major mental illness (MMI) showed that only 1 in 19 self-harm events were coded in the billing records [8]. In addition, a methodological challenge is that ICD-9-CM coding does not robustly distinguish between suicide attempts (implying a desire to die), self-inflicted injury without suicidal intention, and suicide. While ICD-10-CM can distinguish these, many suicide attempts will be classified only under intentional self-harm. Given that all these acts are within the spectrum of self-damaging behavior, we will refer to them collectively as “self-harm.” Thus, we use “self-harm”/“self-harming behavior” as the broadest term covering all forms of self-damaging acts (not thoughts alone), including not only suicide attempts, but also any intentional harm regardless of intent to die. In contrasting this self-harm study with the literature, we recognized that most of the latter was focused more narrowly on attempted and/or completed suicides.

With most of the negative outcomes missing from the data, it is challenging to assess the evidence on treatment strategies for the prevention of self-harm in BD, including pharmacotherapy and psychotherapy. There are conflicting data from studies on the drug-dependent risk of self-harm, and there is still major uncertainty regarding the preventive effect of monotherapy and drug combinations. The benefits of lowering suicidality risk were reported for lithium [9], mood-stabilizing anticonvulsants (MSAs) [10], antidepressants [11-13], and second-generation antipsychotics (SGAs) [14] in the mentally ill population. Several studies demonstrated the benefits of continuous MSA use (either alone or as an adjunct) for suicide risk reduction [15,16]. However, two recent meta-analyses showed no clear benefits of lithium [17] or valproate [18] use for preventing suicidality in patients with mood disorders. The STEP-BD study failed to find any relationship between lithium, MSA, or antipsychotic use and suicidality [19]. The US Food and Drug Administration (FDA) issued warnings for increased suicidality risk with antidepressants [20] and antiepileptic drugs [21].

Two recent meta-analyses showed that psychotherapy is associated with a reduced risk of attempting suicide, but more equivocal evidence on self-harm [22,23]; however, data on psychotherapy-dependent self-harm in adults and subjects with BD are lacking. This provokes further questions on its relative effectiveness when compared with BD medications.

The aim of this study was to provide a comprehensive comparison of all commonly used BD pharmacotherapies, as well as psychotherapy for the risk of self-harm in a large population of commercially insured individuals, using self-harm imputation to overcome the known limitations of this outcome being underrecorded within US electronic health care record systems.


A retrospective observational study was conducted using the IBM MarketScan commercial claims and encounters (CCAE) administrative claims data and MarketScan Medicare data on 1.3 million US inpatients and outpatients with BD for the years 2003 to 2016 [24]. The database contained records of provider visits, diagnoses, procedures, outpatient prescription fills, laboratory test orders (but not results), and patient age, sex, and state of residence. The data handling was similar to that in our previous studies on the drug-dependent risk of kidney disorders and diabetes mellitus in BD [25,26], with the additional step of combining data for patients who were covered in both the CCAE and Medicare databases through their patient identifier. The relevant PostgreSQL queries and source code for data transformations and machine learning (ML) are available online [27]. The study protocol was approved by the University of New Mexico Human Research Review Committee (Institutional Review Board number 16-243).

Given that the majority of suicide attempts and self-harm events are not coded at the point of care, we employed ML to build a classification model of self-harm being present or absent, based on billing codes during emergency room (ER) or inpatient provider visits. For that purpose, we constructed a “meta-visit” by merging consecutive outpatient/inpatient/ER visits, with no gaps between visits, which allowed us to capture the medical activity associated with a given event that could have involved multiple points of care. A self-harm phenotype was defined by the presence during a meta-visit of one or more of the ICD-10-CM codes or ICD-9-CM codes listed in Multimedia Appendix 1. These encompass all codes for intentional self-harm or suicide attempts by any means, including poisoning. If one or more of these codes was present during a meta-visit, the meta-visit was labeled as class 1; otherwise, it was labeled as class 0.

Our earlier imputation model on over 10 million patients aged ≤65 years with MMI (schizophrenia, schizoaffective disorder, BD, and major depressive disorder) from CCAE was validated with several approaches, including via a clinician-derived “gold standard,” and it identified 10.1 times more self-harm events with probability over 0.5 than were originally coded or 19 times more self-harm events based on summed probabilities [8]. In this study, we applied the previously developed ML modeling approach to an extended set of psychiatric patients of all ages, including those in the CCAE and Medicare databases. We first selected 11 million individuals with any MMI diagnosis (635,722,756 meta-visits) and performed ML on a subset of 26,392,236 meta-visits in which an inpatient or ER visit was present, using five-fold cross-validation. Covariates included age, sex, start year of the meta-visit, and the presence/absence of non–self-harm billing codes. ICD-9-CM and ICD-10-CM diagnosis codes were mapped to their Systematized Nomenclature of Medicine (SNOMED) equivalents (and all ancestors thereof) using the Observational Medical Outcomes Partnership (OMOP) vocabulary as of October 24, 2020 [28]. Procedure codes based on ICD-9-CM Volume 3 (ICD-9-CM V3), ICD-10-Procedure Coding System (ICD-10-PCS), and Current Procedural Technology, Fourth Edition (CPT-4) were mapped to ICD-10-PCS concepts (and all ancestors thereof). Overall, 190,919 covariates were added into the ML process described previously [8]. A threshold probability over 0.5 from the resulting cross-validated model estimates of self-harm was chosen to label self-harm as “present” for our main model, but sensitivity analyses were run for threshold probabilities greater than 0.20, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 0.95, and only coded self-harm (probability=1.0).

We then used the categorization of 26 million meta-visits to assign whether or not self-harm occurred following treatment exposure in a subset of 529,359 patients with two or more diagnoses of BD and no other MMI, who satisfied our data staging and inclusion/exclusion criteria (see below). Since there are approximately 28 attempts for every suicide death [29] and attempts are a subset of self-harm, selection of self-harm as the outcome allowed us to greatly increase the power of our subsequent comparative effectiveness study.

It should be noted that our ML approach was trained only on meta-visits with an inpatient/ER component since there was a negligible number of self-harm events coded during the purely outpatient meta-visits (about 1 in 100,000).

The patient inclusion criterion was two or more ICD-9-CM/ICD-10-CM diagnostic codes for BD (296.(0-1)*, 296.(4-8)*, F30*, or F31*) from 2003 to 2016. The exclusion criterion was the diagnosis of major depressive disorder, schizophrenia, or schizoaffective disorder at any time during the observation period. The onset of intellectual disability, autism spectrum disorder, mental illness of organic origin, or Parkinson disease, and use of antidementia drugs after the index exposure were considered as censoring events.

A patient was included in the analysis based on the following first observed sequence of events (Figure 1): (1) A minimum of 12 months of observation (used to compute pretreatment covariates); (2) Index visit (meta-visit with at least one BD diagnostic code); (3) Index exposure (the first day of exposure [drug regimen or “no drug”] observable on the last day of the index visit); (4) Time-varying drug exposure period (series of time intervals in which distinct regimens [including “no drug”] were prescribed); and (5) Outcomes of interest (the first meta-visit with newly observed coded and/or imputed self-harm and right censoring defined as any hospitalization/ER meta-visit without coded and/or imputed self-harm, or the end of patient observation).

Figure 1. Prespecified sequence of events. (1) One year before the index exposure; (2) Index visit (any meta-visit with a diagnosis of bipolar disorder); (3) Index exposure (the first day of exposure [drugs of interest or no drugs of interest] observable on the last day of the index visit); (4) Time-varying drug exposure period (series of time intervals in which distinct regimens [including “no drug”] were prescribed); (5) Outcome (the first meta-visit with coded and/or imputed self-harm or a censoring event).
View this figure

The observation period ended for patients upon self-harm–unrelated hospitalization/ER meta-visit, because data on pharmacotherapy were not available during these types of visits, making it challenging to quantify psychotropic treatment time intervals. Additionally, hospitalization itself can affect the risk of self-harm.

The start and stop times were recorded for each treatment exposure period. Two Cox regression models for self-harm were built. One model compared 64 pharmacotherapies (as well as “no drug”) to lithium, and the other model compared any drug (as a single category) with or without psychosocial interventions to “no treatment” (neither pharmacotherapy nor psychosocial interventions).

The idea to include “no drug” and “no treatment” in the list of comparators in our study came from patients with BD who participated in several focus groups and were engaged in designing this research [30,31]. Doing so allowed us to address patient questions regarding the safety and effectiveness of avoiding pharmacotherapy.

To ensure sufficient power to detect significant self-harm risk differences and assure convergence of Cox regression, each drug regimen was required to have 1000 or more treatment intervals and to have five or more defined cases of coded and/or imputed self-harm following exposure [32]. Because of this latter restriction, for the sensitivity analyses, the lower threshold sensitivity Cox models will have more drugs analyzed than the higher threshold ones.

The following 11 drug classes were included in the analysis: lithium, first-generation antipsychotics (FGAs), SGAs, third-generation antipsychotics (TGAs; partial agonists of dopamine receptors, aripiprazole, and brexpiprazole), MSAs, monoamine oxidase inhibitor antidepressants, noradrenergic and specific serotonergic antidepressants (NASSAs; represented by mirtazapine only), norepinephrine-dopamine reuptake inhibitors (NDRIs; represented by bupropion only), serotonin-norepinephrine reuptake inhibitors (SNRIs), selective serotonin reuptake inhibitors (SSRIs), and tri- and tetracyclic antidepressants (see Multimedia Appendix 2 for the full list of drugs).

MSAs, SGAs, and TGAs were studied as a class when used during a polypharmacy regimen exposure interval and as individual drugs when considering monotherapy time intervals. SGAs common enough for individual analysis were risperidone, olanzapine, quetiapine, ziprasidone, asenapine, paliperidone, and lurasidone. The individual MSAs studied were valproate, carbamazepine, oxcarbazepine, and lamotrigine. Of the two TGAs, only aripiprazole was common enough to be studied individually.

Combinations of two, three, or four of the 11 drug classes (represented usually by one drug from each class) with the requisite 1000 or more treatment intervals and five or more self-harm events were included in the regression model, and drug regimens without those requisites were grouped under the categories “polypharmacy 2,” “polypharmacy 3,” and “polypharmacy 4” (for uncommon combinations of two, three, and four or more classes, respectively). Enough instances of within-class polypharmacy were present among MSAs and SGAs to include “multi-MSA” and “multi-SGA” variables. Monotherapies without the requisite 1000 exposure intervals (clozapine, brexpiprazole, and iloperidone) were combined into the category “uncommon monotherapy.”

Treatment in the main time-varying Cox regression model was represented as one or more exposure intervals, with all drug categories mutually exclusive and collectively exhaustive, using lithium monotherapy as the reference. The rules to distinguish between polypharmacy and overlapping drug regimen switch are described in our previous study of a similar design [25].

Among the covariates included in the main Cox regression model (not to be confused with the ML covariates) were patient age, sex, BD episode index visit characteristics (severity, mood polarity, and psychotic features, if documented), comorbid mental and physical conditions, including “external injury” codes evidencing noniatrogenic trauma, medication prescriptions filled (other than drugs of interest) and mental health procedures performed 1 year before (but not including) the index exposure, hospital/ER admissions 1 year prior to the index exposure, and types of visits composing the index meta-visit (inpatient/ER/outpatient).

Patient age and the number of unique BD drugs previously tried by the patient were fitted in both Cox regression models using a smoothing spline to account for nonlinear risk of self-harm.

“Psychotherapy” included 227 procedure codes indicating psychosocial intervention (individual, group, or family psychotherapy, crisis intervention, substance abuse–focused treatment, hypnosis, biofeedback, etc) [27].

We developed two time-varying Cox regression models. In the first (main) model comparing 64 treatments and “no drug” to lithium, psychotherapy was coded as a binary time-varying covariate (indicating whether at least one of the 227 procedure codes was present during the current drug/“no drug” exposure period). In the second regression model, all drug regimens were united into a single category (“pharmacotherapy”), and psychotherapy was combined with pharmacotherapy in a time-varying covariate with the following four categories: “pharmacotherapy alone,” “psychotherapy alone,” “psychotherapy and pharmacotherapy,” and “no psychotherapy and no pharmacotherapy” (ie, “no treatment”), with “no psychotherapy and no pharmacotherapy” as the reference.

Given the multiple treatment comparators chosen and the time-varying nature of the treatment covariates in our design, propensity score matching was not feasible for bias correction. Instead, we used a resolution IV fractional factorial design of experiments [33] (whereby main effects are aliased with three-way interactions and two-way interactions are aliased with two-way interactions) to select an appropriate subset of the 78 pretreatment covariates to control for bias. Rather than assessing whether the pretreatment covariates were associated with the outcome, we assessed in a form of sensitivity analysis whether their inclusion or exclusion impacted the hazard ratio (HR) estimates for the treatments with respect to the outcome. If so, inclusion of the variable in the model would be needed for addressing bias. If not, the variable, while possibly associated with the outcome, would nevertheless be unimportant for accurate assessment of treatment risk, and could be excluded to reduce the degrees of freedom of the model and thereby increase power. The time-varying treatment variables were included in each model, but the pretreatment covariates were included or excluded according to the factorial design across 512 different runs (plus a reference run with no pretreatment covariates) to determine which covariates had the largest impact on the drug HR coefficients. The 513 runs generated a 513×66 matrix Y of coefficients for 66 drugs over the 513 runs. The design matrix X was a 513×78 matrix of +1/−1 values corresponding to whether the given pretreatment covariate was included/excluded in a given run. Then, for each of the 66 column vectors (Yi) of Y, a multiple linear regression was run with Yi as the dependent variable and the 78 column vectors of X as the independent variables. We counted how many times each of the 78 covariates was significant at P<.05/66 over those 66 models to rank candidate covariates for our model. We discarded 26 covariates that were not significant in any of the 66 models. We then built our main Cox regression model using this set of covariates plus the treatment covariates and performed a backward elimination procedure on the pretreatment covariates, iteratively dropping the covariates that were significant in the fewest models and stopping the elimination procedure when a highly significant covariate was found (neoplasm). One drug was subsequently removed from the analysis owing to lack of events when some coding errors were corrected. We also generated an L2-norm of each row of X with the reference run row to form a vector Y’ for regression with the design matrix X to assess how much the incorporation of pretreatment covariates changed all drug covariate estimates in order to understand the largest potential sources of bias. The final set of covariates selected for the first Cox model was used in the second Cox model.

The study used the following software: PostgreSQL version 10.4 (PostgreSQL Global Development Group) and R version 3.4.0 (R Foundation for Statistical Computing), including the Cox regression coxph() function from the survival (2.42-6) package and the FrF2 (1.7-2) package for fractional factorial design. All hypothesis tests were two-sided.


The following self-harm classification results were observed for our MMI ML model on meta-visits based on five-fold cross-validation (probability [p] cutoff of 0.5): self-harm coded and imputed (p>0.5; N=93,311); self-harm coded but not imputed (p≤0.5; N=3717); self-harm not coded but imputed (N=1,029,058); and self-harm neither coded nor imputed (N=25,266,150) (area under the curve [AUC]=0.99; Matthews correlation coefficient [MCC]=0.28; sensitivity=0.962; specificity=0.961). The following self-harm classification results were observed when the model was applied to meta-visits for only BD cases meeting our eligibility criteria: self-harm coded and imputed (p>0.5; N=488); self-harm coded but not imputed (p≤0.5; N=37); self-harm not coded but imputed (N=8288); and self-harm neither coded nor imputed (N=520,546) (AUC=0.994; MCC=0.225; sensitivity=0.930; specificity=0.984). Thus, an extra 8288 meta-visits with imputed self-harm were added to our analytical pipeline in addition to the 525 (488+37) meta-visits that had coded self-harm for a total of 8813 persons with self-harm.

The sample sizes at different stages of the study are shown in Multimedia Appendix 3. A total of 529,359 patients met the eligibility criteria and had the prespecified sequence of events. Of them, 98.3% were censored and 1.66% (n=8813 events) had imputed and/or coded self-harm.

During the observation period after the index visit, the annual incidence of self-harm (p>0.5) was 0.013 (0.016 for all drug exposure intervals with or without psychotherapy and 0.011 for “no drug” intervals with or without psychotherapy), based on 632,512 years of observation. By summing the probabilities, during the observation period after the index visit for all exposures, the annual incidence of self-harm was 0.027 over 632,512 years of patient observation.

The 515 observed treatment regimens were collapsed to 17 monotherapies, three monoclass therapies, “no drug,” and 45 drug combinations that fit the selection criteria.

The first Cox regression model comparing 65 treatment regimens to lithium showed that 11 treatments had a significantly higher risk of self-harm (P<.05, no multiple testing correction) (Table 1). The top “high-risk” treatments were “tri/tetracyclic antidepressants + SGA” (HR 2.33, 95% CI 1.28-4.26; P=5.73×10-3), “SSRI + FGA” (HR 2.26, 95% CI 1.16-4.38; P=1.61×10-2), “FGA + MSA” (HR 1.82, 95% CI 1.15-2.89; P=1.12×10-2), and FGA monoclass therapy (HR 1.69, 95% CI 1.19-2.39; P=3.20×10-3).

Nine regimens had significantly lower risk of self-harm over lithium alone (P<.05, no multiple testing correction), including monotherapies with MSAs valproate (HR 0.71, 95% CI 0.61-0.84; P=4.57×10-5) and lamotrigine (HR 0.74, 95% CI 0.65-0.85; P=1.13×10-5), SGAs risperidone (HR 0.68, 95% CI 0.56-0.83; P=1.82×10-4) and aripiprazole (HR 0.70, 95% CI 0.59-0.84; P=9.40×10-5), and antidepressant classes SNRI (HR 0.65, 95% CI 0.51-0.83; P=5.51×10-4), SSRI (HR 0.61, 95% CI 0.53-0.71; P=6.05×10-11), and NDRI (bupropion) (HR 0.50, 95% CI 0.39-0.65; P=1.18×10-7), as well as the combination of NDRI with SSRI (HR 0.28, 95% CI 0.13-0.60; P=1.0×10-3) and the “no drug” regimen.

Of the 11 polypharmacy regimens with risk significantly different from that of lithium, only bupropion + SSRI had lower risk (HR 0.28, 95% CI 0.13-0.60; P=1.00×10-3). Nine of the remaining 10 high-risk polypharmacy regimens contained an antipsychotic (either SGA or FGA, or both), with the exception being lithium + MSA (HR 1.35, 95% CI 1.09-1.67; P=5.32×10-3). The “no drug” exposure intervals were associated with a significantly lower risk of subsequent self-harm versus lithium monotherapy (HR 0.56, 95% CI 0.50-0.63; P=2.79×10-22).

To correct for multiple comparisons, we used the Benjamini-Yekutieli procedure to reduce the false discovery rate. This correction yielded 15 regimens with a statistically significant different risk of self-harm versus lithium at a 5% false-discovery rate (which corresponded to a P value cutoff ≤.012). Six of them were of higher risk (tri/tetracyclic antidepressants + SGA, FGA + MSA, FGA, SNRI + SGA, lithium + MSA, and lithium + SGA) and nine were of lower risk than lithium (lamotrigine, valproate, risperidone, aripiprazole, SNRI, SSRI, “no drug,” bupropion, and bupropion + SSRI).

Our sensitivity analysis revealed that overall most of the “high-risk” drug regimens maintained their HR values above 1 across a wide range of self-harm probability thresholds (40%-70%) (Figure 2). Only one regimen (tri/tetracyclic antidepressants + SGA) demonstrated significantly higher risk of self-harm versus lithium, across all 10 tested probability thresholds.

Table 1. Cox regression model comparing 64 pharmacotherapies and “no drug” to lithium for the risk of subsequent coded and/or imputed self-harm in patients with bipolar disorder of all ages.
CovariatesaHRb,cLower 95%Upper 95%P value Patients
(N=529,359)
Intervals (N=1,749,468)Events (N=8813)
Tri/tetracyclic antidepressants + SGAd,e2.331.284.265.73×10-3180104411
SSRIf + FGAg,e2.261.164.381.61×10-219510149
FGA + MSAh,e1.821.152.891.12×10-2481244819
SSRI + lithium + MSA + SGAe1.721.002.974.96×10-2192142414
FGA monoclass therapye1.691.192.393.20×10-31069585335
SNRIi + SGAe1.591.182.142.27×10-31466680350
SNRI + MSA + SGAe1.561.062.292.25×10-2805420029
Asenapine1.500.772.902.31×10-116014949
Lithium + MSA + SGAe1.421.071.901.52×10-21143774857
Lurasidone1.420.972.077.25×10-2459391929
NDRIj + SSRI + MSA + SGA1.400.662.963.84×10-117012517
SSRI + lithium + SGA1.390.942.059.85×10-2725389828
NDRI + lithium + MSA1.380.652.933.95×10-119314387
Aripiprazole + MSA + SGA1.380.862.221.87×10-1411264118
Lithium + MSAe1.351.091.675.32×10-3276318,728116
Lithium + SGAe1.341.111.622.86×10-3375718,980155
Polypharmacy 4k1.330.971.827.60×10-21274886747
SSRI + MSA + SGAe1.311.051.621.52×10-2315316,322118
NDRI + MSA + SGA1.250.861.812.47×10-1836555830
Aripiprazole + SGA1.220.791.883.72×10-1715398722
NASSAl + SGA1.200.622.335.86×10-132114579
NDRI + lithium1.160.741.805.18×10-1728455921
Tri/tetracyclic antidepressants1.150.711.885.66×10-1693413017
SSRI + lithium + MSA1.100.661.827.10×10-14993,51416
Uncommon monotherapy1.090.492.458.29×10-116912056
NDRI + SSRI + MSA1.080.681.727.44×10-1720475419
SSRI + lithium1.060.811.396.61×10-1245713,23564
MSA + SGA1.050.911.215.15×10-113,34867,185421
Lithium (reference)1.00 N/Am N/AN/A 13,75966,760351
Polypharmacy 3n1.000.791.259.66×10-1379423,23495
NDRI + aripiprazole + MSA0.990.511.919.67×10-125423169
Lithium + aripiprazole + MSA0.970.501.899.30×10-122717979
SNRI + lithium0.970.541.729.06×10-1529281412
SSRI + SGA0.960.801.156.36×10-1789633,503188
SSRI + MSA0.950.811.115.32×10-112,31558,789286
Quetiapine0.950.821.105.03×10-113,79560,422342
Aripiprazole + MSA0.940.761.175.90×10-1340121,368108
Ziprasidone0.940.711.246.63×10-1238111,77358
Multi-SGA0.930.561.577.94×10-1677347915
Lithium + aripiprazole0.920.601.427.19×10-1665426822
SNRI + MSA0.900.681.204.80×10-1293913,99558
FGA + lithium0.890.401.997.73×10-131514726
NDRI + SGA0.890.621.275.07×10-11408833633
Multi-MSA0.870.611.244.49×10-11451879234
SSRI + aripiprazole0.850.641.142.83×10-1228511,69552
Olanzapine0.840.661.071.57×10-1404016,75983
NASSA + MSA0.820.421.605.65×10-143823139
NDRI + MSA0.820.641.051.20×10-1346021,29474
Oxcarbazepine0.810.651.026.91×10-2443620,63397
Carbamazepine0.740.541.026.45×10-2228410,66242
Lamotriginee0.740.650.851.13×10-528,624131,786549
NDRI + aripiprazole0.730.411.302.91×10-1564403812
Valproatee0.710.610.844.57×10-514,71861,544253
SSRI + aripiprazole + MSA0.700.431.151.56×10-1784514817
Aripiprazolee0.700.590.849.40×10-5887247,373186
Polypharmacy 2o0.680.461.015.32×10-2201711,26928
Risperidonee0.680.560.831.82×10-4708428,302138
SNRIe0.650.510.835.51×10-4612027,92178
NASSA0.650.381.089.77×10-2950496415
Paliperidone0.610.291.302.03×10-129218587
SSRIe0.610.530.716.05×10-1130,138131,895381
NDRI + SSRI + SGA0.600.251.452.57×10-134520795
“No drug”e0.560.500.632.79×10-22299,295621,4673694
NDRI (bupropion)e0.500.390.651.18×10-7600535,43372
SNRI + aripiprazole0.450.191.097.85×10-245727655
NDRI (bupropion) +SSRIe0.280.130.601.00×10-3126374967
Prior self-harme3.322.684.113.17×10-28704165270
Alcohol/substance abuse or dependencee1.921.812.037.17×10-10657,392149,6791065
Deliriume1.691.362.101.92×10-61694408660
Prior hospitalizatione1.631.541.721.78×10-64131,613342,1221905
Mental procedure before index exposuree1.501.421.583.43×10-5081,943247,474841
Liver diseasee1.491.291.714.27×10-8906323,559121
Unknown polarity of index mood episodee1.331.241.431.67×10-15307,2431,000,3482447
Conduct disordere1.261.141.393.65×10-613,72839,657255
Seizure disordere1.181.111.252.07×10-790,276307,887667
External injurye1.121.061.192.31×10-5117,722338,6351350
Pulmonary disorder1.120.991.267.60×10-218,96048,974160
Depression during the index meta-visite1.101.021.181.52×10-272,386245,707487
Male sexe1.071.031.121.46×10-3227,507733,9631966
Exposure to sedative or antianxiety druge1.061.001.124.24×10-2130,186431,040929
Number of prior unique BDp drugs tried (linear component of spline fit)e1.021.011.044.17×10-3 N/A N/A N/A
Psychotic features present during the index meta-visit1.010.921.117.73×10-123,84678,579345
Age (linear component of spline fit)e0.980.970.986.99×10-201 N/A N/A N/A
Exposure to central nervous system stimulant0.950.881.019.62×10-255,140195,116396
BD type II during the index meta-visite0.930.870.992.49×10-290,741331,720497
Manic episode during the index meta-visite0.920.850.993.40×10-282,955250,285512
Exposure to glucocorticoidse0.830.770.891.04×10-780,626246,182472
Exposure to antibacterial agentse0.800.760.843.77×10-17144,933453,129951
Exposure to sex hormonese0.790.740.853.08×10-1067,550217,335372
Neoplasme0.770.700.851.70×10-742,628130,488220
Psychotic features unknown during the index meta-visite0.670.630.722.85×10-30401,7891,295,4082709
Psychotherapy (psychosocial interventions)e0.590.570.621.12×10-114249,328704,9371369
Outpatient visit present during the index meta-visite0.560.500.634.69×10-23522,2321,732,7153475
Age (nonlinear components of the spline model)eN/AN/AN/A4.58×10-32N/AN/AN/A
Number of prior unique BD drugs tried (nonlinear components of spline fit)eN/AN/AN/A1.21×10-9N/AN/AN/A

aCovariates labeled “prior” are related to the 1-year period before the index exposure.

bCovariates are sorted by their hazard ratio value.

cHR: hazard ratio.

dSGA: second-generation antipsychotic.

eCovariates with significant P values (<.05; no multiple testing correction).

fSSRI: selective serotonin reuptake inhibitor.

gFGA: first-generation antipsychotic.

hMSA: mood stabilizing anticonvulsant.

iSNRI: serotonin-norepinephrine reuptake inhibitor.

jNDRI: norepinephrine-dopamine reuptake inhibitor (represented by bupropion only).

kPolypharmacy 4: uncommon combination of four or more bipolar disorder drug classes.

lNASSA: noradrenergic and specific serotonergic antidepressant (represented by mirtazapine only).

mN/A: not applicable.

nPolypharmacy 3: uncommon combination of three bipolar disorder drug classes.

oPolypharmacy 2: uncommon combination of two bipolar disorder drug classes.

pBD: bipolar disorder.

Figure 2. Sensitivity analysis for the “low-risk” and “high-risk” covariates in the first regression model comparing individual exposure regimens for the risk of self-harm. The X-axis shows 13 covariates and the respective 20%-100% self-harm thresholds chosen to impute the outcome. The Y-axis shows the respective hazard ratios (colored dots) and 95% CIs (colored lines). Varied intensity magenta is used to represent the range of 20%-40% self-harm probability thresholds, black is used to represent the 50% threshold of the main model, and varied intensity green is used to represent the 60%-100% probability threshold used. Missing estimates are due to lack of sufficient outcomes for a regimen to be included (observed in the higher probability threshold models). MSA: mood-stabilizing anticonvulsant; NDRI: norepinephrine-dopamine reuptake inhibitor; nodrug: period free from any of the studied bipolar disorder drugs; SGA: second-generation antipsychotic; SNRI: serotonin-norepinephrine reuptake inhibitor; SSRI: selective serotonin reuptake inhibitor.
View this figure

For most of the “low-risk” drugs, the HR values were below 1 at any self-harm probability threshold, except for 90%-100% (very likely to be self-harm or actually coded). Bupropion alone or in combination with SSRI had a significant association with lower self-harm risk across all tested thresholds. As expected, the higher the probability of self-harm, the larger were the respective HR CIs owing to fewer events observed. The results of the sensitivity analysis for all exposure covariates in this model, as well as the nondrug covariates, can be found in Multimedia Appendix 4, Multimedia Appendix 5, Multimedia Appendix 6, and Multimedia Appendix 7.

When assessing the largest sources of bias, four variables were highly significantly associated with shifting the estimates of all the treatment coefficients, based on the regression of Y’ versus X, including the number of prior unique BD drugs tried, psychotherapy, alcohol/substance abuse or dependence, and outpatient visit present during the index meta-visit. These four were among the covariates with the top five most significant (P<.05/66) associations over the 66 Yi versus X regressions performed on individual treatment estimates in our variable selection procedure. A total of 29 pretreatment covariates were incorporated in the model to adjust for potential bias in treatment risk estimates.

In the main Cox model, documentation of prior coded self-harm had the highest HR value among all nondrug covariates (HR 3.32, 95% CI 2.68-4.11; P=3.17×10-28). A set of mental conditions, including delirium, substance/alcohol abuse and dependence, conduct disorder, and procedures related to mental health services were associated with a significantly higher risk of self-harm (HR 1.26-1.92, P<.05). Previous hospitalizations, liver disease, and seizures were also associated with elevated self-harm risk when present (HR 1.18-1.63, P<.05). Exposure to antianxiety and sedative drugs showed a modest risk of self-harm (HR 1.06, 95% CI 1.00-1.12; P=4.24×10-2). Additionally, index visit depression was modestly associated with self-harm risk (HR 1.10, 95% CI 1.02-1.18; P=1.52×10-2).

Multiple factors had significantly lower self-harm risk, including index manic mood episodes, BD type II, use of antibacterial agents and glucocorticoids, exposure to sex hormones, and neoplasm diagnosis (HR 0.77-0.93; P<.05). Psychotherapy during the exposure period was strongly associated with a lower risk of self-harm (HR 0.59, 95% CI 0.57-0.62; P=1.12×10-114). The lowest HR value for self-harm was associated with an outpatient visit being present during the index meta-visit (HR 0.56, 95% CI 0.50-0.63; P=4.69×10-23) (Table 1).

When self-harm risk was plotted as a function of the number of different unique drugs of interest tried in the past, we observed that HR values slightly decreased after intervals with one and two drugs used, but then started to rise with the number of agents used (Figure 3).

Figure 4 shows the risk of self-harm as a function of patient age. It demonstrates that HR values were much higher in adolescence, dropped after the 20s, and leveled off with older age.

Figure 3. The hazard ratio of coded and/or imputed self-harm as a function of the number of different unique drugs of interest used by the patient in the year prior to the index visit plus up to the prior treatment interval. The graph represents a smoothing spline, with the reference being zero prior drugs. The blue dotted lines represent 95% CIs.
View this figure
Figure 4. The hazard ratio of coded and/or imputed self-harm as a function of patient age. The graph represents a smoothing spline, with the reference being age 50 years. The blue dotted lines represent 95% CIs.
View this figure

In the second Cox regression model with all BD drugs grouped under the “pharmacotherapy” category, the risk of self-harm was the lowest following “psychotherapy alone” intervals, compared with “no treatment” (HR 0.56, 95% CI 0.52-0.60; P=8.76×10-58) (Table 2). The combination “psychotherapy + pharmacotherapy” had a somewhat lower risk of self-harm (HR 0.88, 95% CI 0.83-0.95; P=3.80×10-4), but pharmacotherapy alone was associated with a significantly higher risk compared with “no treatment” (HR 1.38, 95% CI 1.30-1.48; P=1.09×10-22).

Table 2. Cox regression model comparing “pharmacotherapy” (as a single category) and “psychotherapy” (psychosocial interventions) to “no treatment” (no drugs and no psychotherapy) for the risk of subsequent coded and/or imputed self-harm in patients with bipolar disorder of all ages.
CovariatesaHRb,cLower 95%Upper 95%P value Patients (N=529,359)Intervals (N=1,749,468)Events (N=8813)
Pharmacotherapy alone (any drug regimen)d1.381.301.481.09×10-22122,898651,1912819
Any drug and psychotherapyd0.880.830.953.80×10-4107,166476,8102300
Psychotherapy aloned0.560.520.608.76×10-58142,162228,1271183
No treatment (reference)1.00 N/AeN/AN/A157,133393,3402511
Prior self-harmd3.322.684.103.34×10-28704165270
Alcohol/substance abuse or dependenced1.911.802.032.48×10-10557,392149,6791065
Deliriumd1.681.352.082.74×10-61694408660
Previous hospitalizationd1.611.521.713.21×10-62131,613342,1221905
Prior mental health procedured1.491.411.572.90×10-4981,943247,474841
Liver diseased1.481.291.714.30×10-8906323,559121
Unknown polarity of index mood episoded1.351.251.452.33×10-16307,2431,000,3482447
Conduct disorderd1.251.131.389.03×10-613,72839,657255
Seizure disorderd1.171.101.254.56×10-790,276307,887667
Pulmonary disorder1.120.991.266.69×10-218,96048,974160
External injury1.121.061.184.79×10-5117,722338,6351350
Depression during the index visitd1.091.011.173.15×10-272,386245,707487
Male sexd1.081.041.133.96×10-4227,507733,9631966
Number of prior unique BDf drugs tried (linear component of spline fit)d1.071.061.092.99×10-24N/AN/AN/A
Exposure to sedative antianxiety1.050.991.111.10×10-1130,186431,040929
Psychotic features present1.030.931.136.01×10-123,84678,579345
Age (linear component of spline fit)d0.980.980.985.17×10-194N/AN/AN/A
Exposure to central nervous system stimulantd0.930.870.992.15×10-255,140195,116396
BD type II during the index meta-visitd0.920.860.986.72×10-390,741331,720497
Manic episode during the index meta-visitd0.910.840.981.45×10-282,955250,285512
Exposure to glucocorticoidsd0.820.770.882.18×10-880,626246,182472
Exposure to antibacterial agentsd0.780.740.832.65×10-19144,933453,129951
Exposure to sex hormonesd0.780.730.843.77×10-1167,550217,335372
Neoplasmd0.760.690.844.76×10-842,628130,488220
Psychotic features unknown during the index meta-visitd0.660.620.718.75×10-33401,7891,295,4082709
Outpatient visit present during the index meta-visitd0.560.500.623.19×10-24522,2321,732,7153475
Age (nonlinear components of spline model)dN/AN/AN/A3.00×10-33N/AN/AN/A
Number of prior unique BD drugs tried (nonlinear components of spline fit)dN/AN/AN/A 4.47×10-12N/AN/AN/A

aCovariates labeled “prior” are related to the 1-year period before the index exposure.

bCovariates are sorted by their hazard ratio value.

cHR: hazard ratio.

dCovariates with significant P values (<.05).

eN/A: not applicable.

fBD: bipolar disorder.

The sensitivity analysis showed that most of the “high-risk” variables maintained their HR values above 1 at a wide range of self-harm probability thresholds, except for very high thresholds (>80%-90%). Prior self-harm and pharmacotherapy alone (without psychosocial interventions) had significantly high HR values across all tested self-harm probability thresholds. The “low-risk” variables mostly maintained their HR values below 1 with different self-harm probability thresholds (except for 80%-100%). Five variables had significantly lower risk of self-harm across all tested thresholds compared with no treatment at all. They were psychotherapy alone, prior self-harm, outpatient visit present during the index meta-visit, exposure to sex hormones, and use of antibacterial agents. As in the first model, the higher was the probability of self-harm, the wider were the CIs owing to fewer events (Figure 5).

Figure 5. Sensitivity analysis for the “low-risk” and “high-risk” covariates in the second regression model comparing pharmacotherapy (as a single exposure category) and psychotherapy for the risk of self-harm. The X-axis shows 27 covariates and the respective 20%-100% self-harm probability thresholds chosen to impute the outcome. The Y-axis shows the respective hazard ratios (HRs) (colored dots) and CIs (colored lines). Varied intensity magenta is used to represent the range of 20%-40% self-harm probability thresholds, black is used to represent the 50% threshold of the main model, and varied intensity green is used to represent the 60%-100% probability threshold used. The covariate “prior coded self-harm” is separated out with a different HR scale in the far right, since the HR values were extremely high at the 100% (coded) probability threshold. BD: bipolar disorder; CNS: central nervous system; Drug: any of the bipolar disorder drugs of interest.
View this figure

Principal Findings

Given the use of imputed self-harm (in addition to formally coded) as the primary outcome in our study, it is worthwhile to compare the coded and imputed annual incidence of self-harm in our data with that of the literature. In a recent UK study [34], within 25,965 person-years of observation in a cohort of 6671 patients with pharmacologically treated BD, who were aged 16 years or above, the annual incidence of hospitalized self-harm was 3774 per 100,000 person-years at risk (PYAR). The coded self-harm in our BD cohort of all ages was only 83 per 100,000 PYAR. This would constitute 1:45-fold underrecording, if US rates of self-harm are comparable to UK rates. Our earlier estimate [8] that only 1 in 19 self-harm events was coded (within meta-visits having an inpatient and/or ER component) may not have been sufficiently pessimistic. In contrast to the strikingly low rates of coded self-harm in our study data, the estimates of coded + imputed self-harm used for our main model were more reassuring, with 1393 self-harm events per 100,000 PYAR. When summing the probabilities over all meta-visits, our estimate of the level of self-harm was 2839 per 100,000 PYAR, which is 75% of the UK estimate and is probably still low. Our sensitivity analysis revealed a range of 525 (formally coded only) to 20,226 (coded + imputed with >20% probability) self-harm events corresponding to a range of 83 to 3198/100,000 PYAR. It is important to note that because HRs are relative measures, they may be stably estimated across a broad range of imputation thresholds, with the advantage of more power for lower thresholds.

Our findings suggest that exposure to FGAs and some multidrug combinations were associated with 1.31 to 2.33 higher risks of self-harm compared with lithium; however, these associations were possibly observed owing to multiple-testing type I error. Drug-free intervals (“no drug”) had one of the lowest HR values in our first regression model compared with lithium (HR 0.56, 95% CI 0.50-0.63; P=2.79×10−22). According to a recent literature review, there is strong converging evidence indicating that long-term lithium treatment lowers deaths by suicide in patients with BD [4], which can be attributed to its possible serotonergic effect [35]. One explanation for the better performance of the “no drug” regimen in our study versus lithium could be indication bias, as drug-free periods can be associated with stable remission or asymptomatic states.

Self-harm risk reduction was significant with monotherapies involving the MSAs valproate and lamotrigine, the atypical antipsychotics risperidone and aripiprazole, the antidepressant bupropion, and monoclass treatment with SNRI and SSRI antidepressants. There are conflicting data in the literature on antidepressant-dependent suicidality in mood disorders, with reports on both the increased [36] and decreased risks of suicidal behavior [11,37]. In 2004, antidepressants received an FDA black box warning owing to increased suicidal thoughts and behaviors in adolescents on antidepressants versus placebo in FDA approval–seeking trials [20], and this warning was extended to include young adults in 2007 [38]. It is still not entirely clear whether a presumed increased suicidality risk in antidepressant users is due to drugs failing to prevent deterioration involving the natural illness course, due to their activating effect, or due to manic switch with subsequent mood phase inversion. In contrast, a 27-year prospective study on mood disorders showed that the risk of suicide attempts or suicides was reduced by 20% among participants taking antidepressants (HR 0.80, 95% CI 0.68-0.95; P=.011) [12]. Subsequent findings of the same authors showed that suicidality risk was reduced by 54% in individuals with BD type I and by 35% in those with BD type II while on antidepressants, compared with propensity-matched unexposed intervals [13]. While our study generated evidence on a more broadly defined set of “self-harm” acts, our data support the findings of the relative safety of SSRI and SNRI antidepressants compared with lithium and even with “no drug” in relation to suicidality in BD.

SGAs were previously shown to be associated with a reduced risk of suicide in patients with schizophrenia [14], although two recent international observational studies demonstrated the inferiority of quetiapine and olanzapine compared with lithium for self-harm prevention [34], and even an increased risk of completed suicide among BD patients taking antipsychotics [39]. Our data showed that the SGA risperidone is associated with a significantly lower self-harm risk in patients with BD. There is evidence suggesting that the beneficial effect of antipsychotics in BD may be explained by reduced impulsivity and risk taking [40].

Similar to studies on antidepressants, there are conflicting data on the MSA-dependent risk of self-harm in BD. While some studies reported an equally beneficial effect of MSAs (divalproex and carbamazepine) to lithium for BD suicidality prevention [10], others reported a significantly safer profile for lithium [41]. The majority of MSAs received an FDA warning of increased suicidal thoughts and behaviors in 2008 [42], based on a meta-analysis of 11 drugs [21]. Several studies failed to find any significant changes in suicidality risk according to antiepileptic drug intake [18,37]. However, a large pharmacoepidemiologic study found significantly lower rates of suicide attempts following MSA use, compared with the period before treatment, and showed that MSA monotherapy was significantly protective relative to no pharmacologic treatment (3 per 1000 vs 15 per 1000 person-years) [43]. Our findings support the evidence of a beneficial role of MSAs in self-harm prevention in BD management. Unlike the other data [34], our data showed that valproate is superior to lithium in terms of the association with reduced self-harm risk.

Given that 10 of the 11 “high-risk” exposures in our study were polypharmacy regimens, we made efforts to address the possible indication bias of multidrug regimens being given to patients who are treatment-resistant, by modeling the risk of self-harm as a function of the number of unique BD drugs filled in the year prior to the index visit plus those drugs tried from the index visit up to the current treatment interval. We fit this within the Cox regression model using a smoothing spline with no prior drugs set as the reference (Figure 3). The risk of self-harm was significantly lower in individuals treated with one to five different BD drugs in the year prior to the index visit, compared with individuals who had no prior drugs in the observed period of time. One explanation for this finding is that several “trial and error” attempts eventually result in better control over illness symptoms. However, self-harm risk was significantly higher in patients who received eight or more unique BD drugs, compared with drug-naive subjects, evidencing drug-resistant cases. At the same time, the rapidly expanding range of 95% CI corresponding to 8 to 20 drugs indicates limited sample sizes in this range. Overall, given that our self-harm risk estimates for the drugs account for prior treatment complexity and that the magnitude of this factor’s impact on risk was modest, it seems unlikely that a presumed polypharmacy-dependent increase in self-harm risk in patients with BD is fully explained by drug resistance or disease severity. However, we may not have fully corrected for indication biases. In particular, we did not model drug exposures prior to the year before the index visit.

Our sensitivity analysis showed that the direction of drug-outcome associations did not change as a function of the threshold of self-harm probability, while HR CIs were much more narrow when the outcome was imputed rather than coded. This provides evidence that using ML-imputed outcomes is a promising approach to increase power to perform comparative effectiveness studies, particularly when a phenotype is sparsely coded.

The presence of an outpatient encounter during the index meta-visit (with or without an adjacent hospitalization/ER visit) was associated with the lowest risk of self-harm. This can be explained by more accessible or comprehensive health care services provided, as evidenced by a patient visiting his/her outpatient provider during a crisis.

As was expected, our data suggested that psychosocial interventions may decrease the risk of self-harm in patients with BD. A recent meta-analysis showed that patients who received psychotherapy were less likely to subsequently attempt suicide [22]. However, a surprising finding from our second Cox regression model was that the HR of self-harm was lower following time intervals with psychotherapy alone, rather than when psychotherapy was combined with pharmacotherapy. This could be explained by indication bias, since drug-free patients could be asymptomatic or in stable remission. Another explanation is that pharmacotherapy was a very heterogeneous category combining “low-risk” and “high-risk” regimens together. There was insufficient power to perform a per-drug analysis of adjunctive psychotherapy.

The study limitations include nonrandomized assignment of patients to treatment groups; no patient data availability prior to the insurance enrollment date, as well as prior to 2003; unmeasured indication or other biases (eg, personality traits, coping strategies, environmental stressors, and support systems); and no correction for medication dosage, route of administration, or release mechanism.

Conclusions

The risk of self-harm varied more than eight-fold among different BD drug regimens. Exposure to antidepressant or MSA monotherapy was associated with a significantly lower risk of subsequent self-harm compared with lithium. Psychotherapy was strongly associated with a decreased risk of self-harm in patients with BD. ML imputation of self-harm can enhance the power for comparative effectiveness studies of BD treatments. The risk of self-harm was the highest during adolescence. Our data support the evidence that prior self-harm is one of the strongest predictors of future self-harm.

Acknowledgments

This work was supported by the Patient-Centered Outcomes Research Institute (PCORI) (award CER-1507-3160) and was part of the research project “Longitudinal comparative effectiveness of bipolar disorder therapies” (ClinicalTrials.gov identifier: NCT02893371). The study protocol was approved by the University of New Mexico Human Research Review Committee (Institutional Review Board number 16-243). PCORI funding was used for database access and salaries for all members of the research team who, in turn, contributed to study design, data collection, analysis and interpretation, writing of the article, and the decision to submit the article for publication. The views in this publication are solely the responsibility of the authors and do not necessarily represent the views of PCORI, its Board of Governors, or the Methodology Committee. We dedicate this article to our dear friend and coauthor, Dr Nathaniel G Hurwitz, who passed away during its preparation. He worked on this project as a labor of love, both for us and for all those affected by bipolar disorder.

Authors' Contributions

AN: study design, data analysis and interpretation, and manuscript writing; PK: study design, data analysis, and manuscript editing; NRL: study design and data analysis; NGH: study design and data interpretation; AJM: data extraction and analysis; DCC: data extraction and analysis; YZ: data analysis and interpretation, and manuscript editing; SJN: study design, data interpretation, and manuscript editing; ASC: study design and manuscript editing; BK: study design, data analysis and interpretation, and manuscript editing; MT: study design, data interpretation, and manuscript editing; DJP: study design, data interpretation, and manuscript editing; CGL: study coordination, study design, data analysis and interpretation, and manuscript writing and editing.

Conflicts of Interest

MT was a full-time employee at Lilly (1997 to 2008). He has received honoraria from or consulted for Abbott, Actavis, AstraZeneca, Bristol Myers Squibb, GlaxoSmithKline, Lilly, Johnson & Johnson, Otsuka, Merck, Sunovion, Forest, Gedeon Richter, Roche, Elan, Alkermes, Allergan, Lundbeck, Teva, Pamlab, Wyeth, and Wiley Publishing. His spouse was a full-time employee at Lilly (1998-2013). AN, AJM, NGH, BK, YZ, SJN, ASC, DJP, CGL, DCC, PK, and NRL report no relevant financial relationships with commercial interests.

Multimedia Appendix 1

List of self-harm billing codes.

DOCX File , 13 KB

Multimedia Appendix 2

Drugs of interest analyzed either individually or as part of a composite class.

DOCX File , 16 KB

Multimedia Appendix 3

Sample size based on data staging. BD: bipolar disorder; ER: emergency room; MMI: major mental illness.

PNG File , 100 KB

Multimedia Appendix 4

Sensitivity analysis for the first third of drug covariates (sorted by their hazard ratio from low to high) in the regression model comparing individual exposure regimens for the risk of self-harm. The X-axis shows drug covariates and the respective 20%-100% self-harm thresholds chosen to impute the outcome. The Y-axis shows the respective hazard ratios (colored dots) and CIs (colored lines). Varied intensity magenta is used to represent the range of 20%-40% self-harm probability thresholds, black is used to represent the 50% threshold of the main model, and varied intensity green is used to represent the 60%-100% probability threshold used. MSA: mood-stabilizing anticonvulsant; NDRI: norepinephrine-dopamine reuptake inhibitor; SGA: second-generation antipsychotic; SNRI: serotonin-norepinephrine reuptake inhibitor; SSRI: selective serotonin reuptake inhibitor.

PNG File , 121 KB

Multimedia Appendix 5

Sensitivity analysis for the second third of drug covariates (sorted by their hazard ratio from low to high) in the regression model comparing individual exposure regimens for the risk of self-harm. The X-axis shows drug covariates and the respective 20%-100% self-harm thresholds chosen to impute the outcome. The Y-axis shows the respective hazard ratios (colored dots) and CIs (colored lines). Varied intensity magenta is used to represent the range of 20%-40% self-harm probability thresholds, black is used to represent the 50% threshold of the main model, and varied intensity green is used to represent the 60%-100% probability threshold used. MSA: mood-stabilizing anticonvulsant; NDRI: norepinephrine-dopamine reuptake inhibitor; SGA: second-generation antipsychotic; SNRI: serotonin-norepinephrine reuptake inhibitor; SSRI: selective serotonin reuptake inhibitor.

PNG File , 133 KB

Multimedia Appendix 6

Sensitivity analysis for the last third of drug covariates (sorted by their hazard ratio from low to high) in the regression model comparing individual exposure regimens for the risk of self-harm. The X-axis shows drug covariates and the respective 20%-100% self-harm thresholds chosen to impute the outcome. The Y-axis shows the respective hazard ratios (colored dots) and CIs (colored lines). Varied intensity magenta is used to represent the range of 20%-40% self-harm probability thresholds, black is used to represent the 50% threshold of the main model, and varied intensity green is used to represent the 60%-100% probability threshold used. MSA: mood-stabilizing anticonvulsant; NDRI: norepinephrine-dopamine reuptake inhibitor; SGA: second-generation antipsychotic; SNRI: serotonin-norepinephrine reuptake inhibitor; SSRI: selective serotonin reuptake inhibitor.

PNG File , 160 KB

Multimedia Appendix 7

Sensitivity analysis for the nondrug covariates in the regression model comparing individual exposure regimens for the risk of self-harm. The X-axis shows nondrug covariates and the respective 20%-100% self-harm thresholds chosen to impute the outcome. The Y-axis shows the respective hazard ratios (HRs) (colored dots) and CIs (colored lines). Varied intensity magenta is used to represent the range of 20%-40% self-harm probability thresholds, black is used to represent the 50% threshold of the main model, and varied intensity green is used to represent the 60%-100% probability threshold used. The covariate “prior coded self-harm” is separated out with a different HR scale in the far right, since the HR values were extremely high at 100% (coded) probability threshold. MSA: mood-stabilizing anticonvulsant; NDRI: norepinephrine-dopamine reuptake inhibitor; SGA: second-generation antipsychotic; SNRI: serotonin-norepinephrine reuptake inhibitor; SSRI: selective serotonin reuptake inhibitor.

PNG File , 146 KB

  1. Cooper J, Kapur N, Webb R, Lawlor M, Guthrie E, Mackway-Jones K, et al. Suicide after deliberate self-harm: a 4-year cohort study. Am J Psychiatry 2005 Feb;162(2):297-303. [CrossRef] [Medline]
  2. Xu J, Murphy SL, Kochanek KD, Arias E. Mortality in the United States, 2018. Centers for Disease Control and Prevention. 2020 Jan.   URL: https://www.cdc.gov/nchs/data/databriefs/db355-h.pdf [accessed 2020-02-08]
  3. Too LS, Spittal MJ, Bugeja L, Reifels L, Butterworth P, Pirkis J. The association between mental disorders and suicide: A systematic review and meta-analysis of record linkage studies. J Affect Disord 2019 Dec 01;259:302-313 [FREE Full text] [CrossRef] [Medline]
  4. Plans L, Barrot C, Nieto E, Rios J, Schulze TG, Papiol S, et al. Association between completed suicide and bipolar disorder: A systematic review of the literature. J Affect Disord 2019 Jan 01;242:111-122. [CrossRef] [Medline]
  5. Dome P, Rihmer Z, Gonda X. Suicide Risk in Bipolar Disorder: A Brief Review. Medicina (Kaunas) 2019 Jul 24;55(8) [FREE Full text] [CrossRef] [Medline]
  6. Simon GE, Hunkeler E, Fireman B, Lee JY, Savarino J. Risk of suicide attempt and suicide death in patients treated for bipolar disorder. Bipolar Disord 2007 Aug;9(5):526-530. [CrossRef] [Medline]
  7. Anderson HD, Pace WD, Brandt E, Nielsen RD, Allen RR, Libby AM, et al. Monitoring suicidal patients in primary care using electronic health records. J Am Board Fam Med 2015;28(1):65-71 [FREE Full text] [CrossRef] [Medline]
  8. Kumar P, Nestsiarovich A, Nelson SJ, Kerner B, Perkins DJ, Lambert CG. Imputation and characterization of uncoded self-harm in major mental illness using machine learning. J Am Med Inform Assoc 2020 Jan 01;27(1):136-146 [FREE Full text] [CrossRef] [Medline]
  9. Baldessarini RJ, Tondo L, Davis P, Pompili M, Goodwin FK, Hennen J. Decreased risk of suicides and attempts during long-term lithium treatment: a meta-analytic review. Bipolar Disord 2006 Oct;8(5 Pt 2):625-639. [CrossRef] [Medline]
  10. Yerevanian BI, Koek RJ, Mintz J. Bipolar pharmacotherapy and suicidal behavior. Part I: Lithium, divalproex and carbamazepine. J Affect Disord 2007 Nov;103(1-3):5-11. [CrossRef] [Medline]
  11. Angst F, Stassen HH, Clayton PJ, Angst J. Mortality of patients with mood disorders: follow-up over 34–38 years. Journal of Affective Disorders 2002 Apr;68(2-3):167-181. [CrossRef] [Medline]
  12. Leon AC, Solomon DA, Li C, Fiedorowicz JG, Coryell WH, Endicott J, et al. Antidepressants and risks of suicide and suicide attempts: a 27-year observational study. J Clin Psychiatry 2011 May;72(5):580-586 [FREE Full text] [CrossRef] [Medline]
  13. Leon AC, Fiedorowicz JG, Solomon DA, Li C, Coryell WH, Endicott J, et al. Risk of suicidal behavior with antidepressants in bipolar and unipolar disorders. J Clin Psychiatry 2014 Jul;75(7):720-727 [FREE Full text] [CrossRef] [Medline]
  14. Reutfors J, Bahmanyar S, Jönsson EG, Brandt L, Bodén R, Ekbom A, et al. Medication and suicide risk in schizophrenia: a nested case-control study. Schizophr Res 2013 Nov;150(2-3):416-420. [CrossRef] [Medline]
  15. Søndergård L, Lopez AG, Andersen PK, Kessing LV. Mood-stabilizing pharmacological treatment in bipolar disorders and risk of suicide. Bipolar Disord 2008 Feb;10(1):87-94. [CrossRef] [Medline]
  16. Smith EG, Søndergård L, Lopez AG, Andersen PK, Kessing LV. Association between consistent purchase of anticonvulsants or lithium and suicide risk: a longitudinal cohort study from Denmark, 1995-2001. J Affect Disord 2009 Oct;117(3):162-167. [CrossRef] [Medline]
  17. Cipriani A, Hawton K, Stockton S, Geddes JR. Lithium in the prevention of suicide in mood disorders: updated systematic review and meta-analysis. BMJ 2013 Jun 27;346:f3646 [FREE Full text] [CrossRef] [Medline]
  18. Chen T, Kamali M, Chu C, Yeh C, Huang S, Mao W, et al. Divalproex and its effect on suicide risk in bipolar disorder: A systematic review and meta-analysis of multinational observational studies. J Affect Disord 2019 Feb 15;245:812-818. [CrossRef] [Medline]
  19. Marangell LB, Dennehy EB, Wisniewski SR, Bauer MS, Miyahara S, Allen MH, et al. Case-control analyses of the impact of pharmacotherapy on prospectively observed suicide attempts and completed suicides in bipolar disorder: findings from STEP-BD. J Clin Psychiatry 2008 Jun;69(6):916-922. [CrossRef] [Medline]
  20. Suicidality in Children and Adolescents Being Treated With Antidepressant Medications. US Food and Drug Administration. 2018.   URL: https:/​/www.​fda.gov/​drugs/​postmarket-drug-safety-information-patients-and-providers/​suicidality-children-and-adolescents-being-treated-antidepressant-medications [accessed 2020-06-05]
  21. Statistical review and evaluation: Antiepileptic drugs and suicidality. US Food and Drug Administration. 2008.   URL: https:/​/www.​fda.gov/​files/​drugs/​published/​Statistical-Review-and-Evaluation--Antiepileptic-Drugs-and-Suicidality.​pdf [accessed 2020-06-08]
  22. Calati R, Courtet P. Is psychotherapy effective for reducing suicide attempt and non-suicidal self-injury rates? Meta-analysis and meta-regression of literature data. J Psychiatr Res 2016 Aug;79:8-20. [CrossRef] [Medline]
  23. Briggs S, Netuveli G, Gould N, Gkaravella A, Gluckman NS, Kangogyere P, et al. The effectiveness of psychoanalytic/psychodynamic psychotherapy for reducing suicide attempts and self-harm: systematic review and meta-analysis. Br J Psychiatry 2019 Jun;214(6):320-328. [CrossRef] [Medline]
  24. Quint JB. Health research data for the real world: the MarketScan databases. Ann Arbor, MI: Truven Health Analytics; Jan 2015.
  25. Nestsiarovich A, Kerner B, Mazurie AJ, Cannon DC, Hurwitz NG, Zhu Y, et al. Comparison of 71 bipolar disorder pharmacotherapies for kidney disorder risk: The potential hazards of polypharmacy. J Affect Disord 2019 Jun 01;252:201-211 [FREE Full text] [CrossRef] [Medline]
  26. Nestsiarovich A, Kerner B, Mazurie AJ, Cannon DC, Hurwitz NG, Zhu Y, et al. Diabetes mellitus risk for 102 drugs and drug combinations used in patients with bipolar disorder. Psychoneuroendocrinology 2020 Feb;112:104511 [FREE Full text] [CrossRef] [Medline]
  27. Self Harm Pharmacotherapy Psychotherapy. GitLab.   URL: https://gitlab.com/PCORIUNMPUBLIC/self_harm_pharmacotherapy_psychotherapy [accessed 2021-04-09]
  28. Athena – OHDSI vocabularies repository. OHDSI – Observational Health Data Sciences and Informatics.   URL: https://athena.ohdsi.org/search-terms/start [accessed 2021-04-08]
  29. Suicide statistics. American Foundation for Suicide Prevention. 2019.   URL: https://afsp.org/suicide-statistics/ [accessed 2020-06-08]
  30. Nestsiarovich A, Hurwitz NG, Nelson SJ, Crisanti AS, Kerner B, Kuntz MJ, et al. Systemic challenges in bipolar disorder management: A patient-centered approach. Bipolar Disord 2017 Dec;19(8):676-688 [FREE Full text] [CrossRef] [Medline]
  31. Kerner B, Crisanti AS, DeShaw JL, Ho JG, Jordan K, Krall RL, et al. Preferences of Information Dissemination on Treatment for Bipolar Disorder: Patient-Centered Focus Group Study. JMIR Ment Health 2019 Jun 25;6(6):e12848 [FREE Full text] [CrossRef] [Medline]
  32. Vittinghoff E, McCulloch CE. Relaxing the rule of ten events per variable in logistic and Cox regression. Am J Epidemiol 2007 Mar 15;165(6):710-718. [CrossRef] [Medline]
  33. Margolin BH. Resolution Iv Fractional Factorial Designs. Journal of the Royal Statistical Society: Series B (Methodological) 2018 Dec 05;31(3):514-523. [CrossRef]
  34. Hayes JF, Pitman A, Marston L, Walters K, Geddes JR, King M, et al. Self-harm, Unintentional Injury, and Suicide in Bipolar Disorder During Maintenance Mood Stabilizer Treatment: A UK Population-Based Electronic Health Records Study. JAMA Psychiatry 2016 Jun 01;73(6):630-637. [CrossRef] [Medline]
  35. Kovacsics CE, Gottesman II, Gould TD. Lithium's antisuicidal efficacy: elucidation of neurobiological targets using endophenotype strategies. Annu Rev Pharmacol Toxicol 2009;49:175-198. [CrossRef] [Medline]
  36. Yerevanian BI, Koek RJ, Mintz J, Akiskal HS. Bipolar pharmacotherapy and suicidal behavior Part 2. The impact of antidepressants. J Affect Disord 2007 Nov;103(1-3):13-21. [CrossRef] [Medline]
  37. Leon AC, Demirtas H, Li C, Hedeker D. Two propensity score-based strategies for a three-decade observational study: investigating psychotropic medications and suicide risk. Stat Med 2012 Nov 30;31(27):3255-3260. [CrossRef] [Medline]
  38. Stone M, Laughren T, Jones ML, Levenson M, Holland PC, Hughes A, et al. Risk of suicidality in clinical trials of antidepressants in adults: analysis of proprietary data submitted to US Food and Drug Administration. BMJ 2009 Aug 11;339:b2880 [FREE Full text] [CrossRef] [Medline]
  39. Takeuchi T, Takenoshita S, Taka F, Nakao M, Nomura K. The Relationship between Psychotropic Drug Use and Suicidal Behavior in Japan: Japanese Adverse Drug Event Report. Pharmacopsychiatry 2017 Mar;50(2):69-73. [CrossRef] [Medline]
  40. Reddy LF, Lee J, Davis MC, Altshuler L, Glahn DC, Miklowitz DJ, et al. Impulsivity and risk taking in bipolar disorder and schizophrenia. Neuropsychopharmacology 2014 Jan;39(2):456-463 [FREE Full text] [CrossRef] [Medline]
  41. Goodwin FK, Fireman B, Simon GE, Hunkeler EM, Lee J, Revicki D. Suicide risk in bipolar disorder during treatment with lithium and divalproex. JAMA 2003 Sep 17;290(11):1467-1473. [CrossRef] [Medline]
  42. Mittal M, Harrison DL, Miller MJ, Farmer KC, Thompson DM, Ng Y. Have antiepileptic drug prescription claims changed following the FDA suicidality warning? An evaluation in a state Medicaid program. Epilepsy Behav 2014 May;34:109-115 [FREE Full text] [CrossRef] [Medline]
  43. Gibbons RD, Hur K, Brown CH, Mann JJ. Relationship between antiepileptic drugs and suicide attempts in patients with bipolar disorder. Arch Gen Psychiatry 2009 Dec;66(12):1354-1360 [FREE Full text] [CrossRef] [Medline]


AUC: area under curve
BD: bipolar disorder
CCAE: commercial claims and encounters
ER: emergency room
FDA: US Food and Drug Administration
FGA: first-generation antipsychotic
HR: hazard ratio
ICD: International Classification of Diseases
MCC: Matthews correlation coefficient
ML: machine learning
MMI: major mental illness
MSA: mood-stabilizing anticonvulsant
NASSA: noradrenergic and specific serotonergic antidepressant
NDRI: norepinephrine-dopamine reuptake inhibitor
PYAR: person-years at risk
SGA: second-generation antipsychotic
SNRI: serotonin-norepinephrine reuptake inhibitor
SSRI: selective serotonin reuptake inhibitor
TGA: third-generation antipsychotic


Edited by J Torous; submitted 23.09.20; peer-reviewed by G Simon, R Jacobucci; comments to author 14.12.20; revised version received 08.02.21; accepted 09.03.21; published 21.04.21

Copyright

©Anastasiya Nestsiarovich, Praveen Kumar, Nicolas Raymond Lauve, Nathaniel G Hurwitz, Aurélien J Mazurie, Daniel C Cannon, Yiliang Zhu, Stuart James Nelson, Annette S Crisanti, Berit Kerner, Mauricio Tohen, Douglas J Perkins, Christophe Gerard Lambert. Originally published in JMIR Mental Health (https://mental.jmir.org), 21.04.2021.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Mental Health, is properly cited. The complete bibliographic information, a link to the original publication on http://mental.jmir.org/, as well as this copyright and license information must be included.