<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.4 20241031//EN" "JATS-journalpublishing1-4.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article" dtd-version="1.4" xml:lang="en">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">Oalib</journal-id>
      <journal-title-group>
        <journal-title>Open Access Library Journal</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2333-9721</issn>
      <issn pub-type="ppub">2333-9705</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/oalib.1115673</article-id>
      <article-id pub-id-type="publisher-id">Oalib-153420</article-id>
      <article-categories>
        <subj-group>
          <subject>Article</subject>
        </subj-group>
        <subj-group>
          <subject>Biomedical</subject>
          <subject>Life Sciences</subject>
          <subject>Business</subject>
          <subject>Economics</subject>
          <subject>Chemistry</subject>
          <subject>Materials Science</subject>
          <subject>Computer Science</subject>
          <subject>Communications</subject>
          <subject>Earth</subject>
          <subject>Environmental Sciences</subject>
          <subject>Engineering</subject>
          <subject>Medicine</subject>
          <subject>Healthcare</subject>
          <subject>Physics</subject>
          <subject>Mathematics</subject>
          <subject>Social Sciences</subject>
          <subject>Humanities</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>Simulation-Based Bayesian Modelling of Antidepressant Discontinuation Risk in Bipolar Disorder: Integrating Side-Effect Profiles, Therapeutic Alliance Scores, and Synthetic Prescription Records</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <contrib-id contrib-id-type="orcid">0000-0001-9101-072X</contrib-id>
          <name name-style="western">
            <surname>Filippis</surname>
            <given-names>Rocco de</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <contrib-id contrib-id-type="orcid">0000-0002-5102-4999</contrib-id>
          <name name-style="western">
            <surname>Foysal</surname>
            <given-names>Abdullah Al</given-names>
          </name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
      </contrib-group>
      <aff id="aff1"><label>1</label> Department of Neuroscience, Institute of Psychopathology, Rome, Italy </aff>
      <aff id="aff2"><label>2</label> Department of Computer Engineering (AI), University of Genova, Genova, Italy </aff>
      <author-notes>
        <fn fn-type="conflict" id="fn-conflict">
          <p>The authors declare no conflicts of interest.</p>
        </fn>
      </author-notes>
      <pub-date pub-type="epub">
        <day>03</day>
        <month>08</month>
        <year>2026</year>
      </pub-date>
      <pub-date pub-type="collection">
        <month>08</month>
        <year>2026</year>
      </pub-date>
      <volume>13</volume>
      <issue>08</issue>
      <fpage>1</fpage>
      <lpage>16</lpage>
      <history>
        <date date-type="received">
          <day>22</day>
          <month>06</month>
          <year>2026</year>
        </date>
        <date date-type="accepted">
          <day>23</day>
          <month>08</month>
          <year>2026</year>
        </date>
        <date date-type="published">
          <day>26</day>
          <month>08</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>© 2026 by the authors and Scientific Research Publishing Inc.</copyright-statement>
        <copyright-year>2026</copyright-year>
        <license license-type="open-access">
          <license-p> This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license ( <ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link> ). </license-p>
        </license>
      </permissions>
      <self-uri content-type="doi" xlink:href="https://doi.org/10.4236/oalib.1115673">https://doi.org/10.4236/oalib.1115673</self-uri>
      <abstract>
        <p>Antidepressant discontinuation in bipolar disorder is a clinically important contributor to treatment failure. Side-effect burden, therapeutic alliance, and prescription-adherence behaviour may jointly influence unplanned cessation. This proof-of-concept study evaluates whether those domains can support discontinuation-risk modelling in a fully synthetic cohort; it does not analyse real patient records or provide clinical validation. We generated a synthetic cohort of N = 900 antidepressant-exposed patients with bipolar disorder and a simulated 90-day discontinuation prevalence of 35.0%. Five feature domains represented side effects, therapeutic alliance, synthetic prescription records, patient-reported outcomes, and clinical variables. Random Forest, XGBoost, and LightGBM were combined through five-fold out-of-fold stacking with a logistic-regression meta-learner. A MAP-regularised Bayesian logistic regression served as the principal probabilistic reference. SHAP analyses and domain-specific visualisations were used for interpretation. BIC, WAIC, and Bayes-factor calculations for non-likelihood models were retained only as exploratory approximations. Bayesian logistic regression achieved the highest AUC (0.939) and lowest Brier score (0.095). The stacked ensemble achieved AUC = 0.913 (95% CI: 0.860 - 0.956), F1 = 0.816 (CI: 0.722 - 0.891), sensitivity = 0.817, specificity = 0.896, and Brier score = 0.109. Therefore, the ensemble was not superior in discrimination or calibration; its value lies in modelling non-linear interactions and supporting complementary interpretation. Within the simulator, prior gap count, refill adherence, patient-clinician concordance, medication-harm beliefs, and prior discontinuation history were the dominant SHAP predictors. These results demonstrate methodological feasibility in synthetic data only. The feature rankings and apparent clinical patterns may partly reflect the data-generation rules and require external validation using real dispensing, clinical, and therapeutic alliance data before any decision-support use.</p>
      </abstract>
      <kwd-group kwd-group-type="author-generated" xml:lang="en">
        <kwd>Antidepressant Discontinuation</kwd>
        <kwd>Bipolar Disorder</kwd>
        <kwd>Therapeutic Alliance</kwd>
        <kwd>Side-Effect Profile</kwd>
        <kwd>Prescription Adherence</kwd>
        <kwd>Bayesian Model</kwd>
        <kwd>SHAP</kwd>
        <kwd>Working Alliance Inventory</kwd>
        <kwd>Real-World Data</kwd>
        <kwd>Clinical Decision Support</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec1">
      <title>1. Introduction</title>
      <p>The pharmacological treatment of bipolar disorder is undermined by a paradox: the medications prescribed to stabilise mood are frequently discontinued by the very patients they are intended to help, not through clinical recommendation but through unilateral patient decision, the “quiet quitters” who stop taking their antidepressant without informing their prescribing clinician [<xref ref-type="bibr" rid="B1">1</xref>]. This phenomenon is both ubiquitous and systematically undercounted. Real-world pharmacy dispensing data consistently show antidepressant medication possession ratios well below those reported in clinical trial populations, with 30% - 40% of BD patients discontinuing within three months and 60% - 70% within twelve months [<xref ref-type="bibr" rid="B2">2</xref>]. The clinical consequences are substantial: discontinuation is a leading cause of depressive relapse, pharmacological escalation, and the accumulating treatment burden that characterises chronic bipolar depression.</p>
      <p>Three distinct but interacting driver domains have been identified in qualitative research: side-effect intolerance (the most cited reason in patient surveys), poor therapeutic alliance (the quality of the working relationship between patient and clinician), and structural prescription barriers (copay burden, pharmacy access, regimen complexity) [<xref ref-type="bibr" rid="B3">3</xref>][<xref ref-type="bibr" rid="B4">4</xref>]. These domains have been studied separately in observational research but never integrated in a unified multivariate predictive framework calibrated against Bayesian model selection criteria. The Working Alliance Inventory (WAI), a validated 36-item measure of therapeutic alliance with three subscales (task, bond, goal), has been associated with medication adherence outcomes in psychiatry but has not been incorporated into any ML-based discontinuation prediction model [<xref ref-type="bibr" rid="B5">5</xref>].</p>
      <p>Real-world prescription data offer a complementary and objective perspective on discontinuation risk. Pharmacy dispensing records capture prescription fill frequency, inter-fill gaps, days’ supply, refill adherence ratio, and pharmacy switching, all without relying on patient self-report, which is subject to social desirability bias [<xref ref-type="bibr" rid="B6">6</xref>]. The integration of these electronic pharmacy records with WAI scores and structured side-effect profiles creates a comprehensive three-domain feature set that is, in principle, obtainable at routine clinical review for every antidepressant-treated BD patient.</p>
      <p>We present five simulation-based contributions: i) a proof-of-concept framework integrating side-effect profiles, therapeutic alliance, and synthetic prescription-adherence features; ii) comparison of a Bayesian logistic model with tree ensembles and stacking; iii) SHAP-based assessment of feature-domain contributions; iv) four explanatory visualisations; and v) subgroup analyses. None of these analyses constitutes real-world clinical validation.</p>
    </sec>
    <sec id="sec2">
      <title>2. Background and Related Work</title>
      <sec id="sec2dot1">
        <title>2.1. Antidepressant Discontinuation in BD: Prevalence and Consequences</title>
        <p>Published discontinuation rates for antidepressants in BD range from 28% - 42% at 3 months and 55% - 68% at 12 months in real-world prescription database studies. Discontinuation is systematically more common in BD than in unipolar depression, partly due to the higher prevalence of mood-destabilizing side effects in BD patients (particularly BD-I on mood stabilizers) and partly due to the lower concordance between patient and clinician on the necessity of antidepressant treatment in a condition where antidepressant efficacy is more contested [<xref ref-type="bibr" rid="B7">7</xref>]. Discontinuation-related depressive relapse occurs in approximately 40% - 55% of cases within 8 weeks of stopping, creating a direct pathway from unplanned cessation to clinical deterioration.</p>
      </sec>
      <sec id="sec2dot2">
        <title>2.2. Therapeutic Alliance and Medication Adherence</title>
        <p>The Working Alliance Inventory, developed by Horvath and Greenberg, measures three dimensions of the therapeutic relationship: agreement on the goals of treatment (goal subscale), agreement on the tasks of treatment (task subscale), and the quality of the relational bond between patient and therapist (bond subscale). Meta-analyses in psychiatric settings have found WAI total scores to be moderately predictive of treatment adherence (r ≈ 0.32), with the bond subscale showing the strongest adherence association in pharmacotherapy contexts [<xref ref-type="bibr" rid="B8">8</xref>]. No study has incorporated WAI scores as predictive features in a multivariate ML model for medication discontinuation in BD.</p>
      </sec>
      <sec id="sec2dot3">
        <title>2.3. Real-World Prescription Data for Adherence Modelling</title>
        <p>Pharmacy claims data offer unique advantages for adherence modelling: objective measurement, high coverage, and temporal granularity not available in self-report or clinical record data. The Medication Possession Ratio (MPR) and Proportion of Days Covered (PDC) are the standard adherence metrics derived from prescription fill data; an MPR &lt; 0.80 is conventionally used to classify non-adherence. More granular features, prescription gap counts, days to first refill, pharmacy switching, and copay burden have shown independent predictive value for discontinuation in oncology and cardiology adherence ML models, but have not been applied to BD pharmacotherapy adherence [<xref ref-type="bibr" rid="B9">9</xref>].</p>
      </sec>
      <sec id="sec2dot4">
        <title>2.4. Side-Effect Profiling and Patient-Reported Outcomes</title>
        <p>Sexual dysfunction, weight gain, and cognitive impairment are consistently ranked as the most distressing antidepressant side effects in BD patient preference surveys, carrying the highest rates of unilateral discontinuation initiation [<xref ref-type="bibr" rid="B10">10</xref>]. Structured side-effect profiling instruments (UKU Side Effect Rating Scale, Glasgow Side Effect Scale) provide domain-specific severity scores that differ substantially in their discontinuation implications: sexual dysfunction and cognitive effects, both invisible to clinical observation, are underweighted in clinical assessments relative to their patient-reported impact.</p>
      </sec>
    </sec>
    <sec id="sec3">
      <title>3. Methods</title>
      <sec id="sec3dot1">
        <title>3.1. Cohort Design</title>
        <p>The study used a fully synthetic cohort of N = 900 antidepressant-exposed bipolar-disorder profiles (BD-I: 56%, BD-II: 44%), with a simulated 90-day discontinuation prevalence of 35.0%. No real clinical, pharmacy, or identifiable patient data were used. Each synthetic patient contributed one record covering baseline clinical characteristics, week-2 and week-4 side-effect assessments, a week-4 therapeutic alliance assessment, and a 90-day simulated prescription coverage history.</p>
      </sec>
      <sec id="sec3dot2">
        <title>3.2. Synthetic Cohort Generation</title>
        <p>Feature ranges and directional associations were informed by the adherence, therapeutic alliance, antidepressant safety, and prescription persistence literature cited in Sections 1 and 2. Continuous variables were generated from bounded normal, beta, or ordinal distributions; binary variables from Bernoulli distributions; and antidepressant class from a categorical distribution. Correlated blocks were imposed so that lower WAI scores co-occurred with lower concordance and satisfaction; greater side-effect burden co-occurred with stronger medication-harm beliefs; and lower refill adherence co-occurred with more prescription gaps, longer time to first refill, and greater pharmacy switching. Patient-level noise was added to all domains. Approximately 5% of non-outcome feature values were set missing at random, with continuous variables median-imputed and categorical variables mode-imputed using statistics estimated from the training partition only.</p>
      </sec>
      <sec id="sec3dot3">
        <title>3.3. Primary Outcome Definition</title>
        <p>The primary outcome was simulated unplanned antidepressant discontinuation within 90 days of the index prescription. A patient was labeled discontinued when either: i) prescription coverage ended, and no refill occurred for at least 30 consecutive days before day 90; or ii) the simulated patient/clinician record documented stopping the antidepressant because of intolerance, perceived inefficacy, or disagreement with treatment. A “quiet quitter” was a discontinued patient identified through the refill-gap rule without a contemporaneous simulated patient report or clinician discontinuation entry. The label-generation probability used refill behaviour, prior discontinuation, therapeutic alliance/concordance, side-effect intolerability, medication-harm beliefs, and access/cost variables, plus stochastic noise. Because several predictors were also used to generate the label, reported performance may partly reflect recovery of the simulation rule.</p>
      </sec>
      <sec id="sec3dot4">
        <title>3.4. Feature Architecture</title>
        <p>Side-effect profile (12 features) comprised ten individual symptom severities (sexual dysfunction, weight gain, GI symptoms, sedation, cognitive effects, tremor/akathisia, sleep disruption, dry mouth, headache, agitation), a composite total burden score (normalised weighted sum), and a binary intolerability flag (activated when any symptom exceeds severity threshold or weight gain &gt; 7 kg). Therapeutic alliance (8 features) encoded WAI task, bond, and goal subscales (1 - 7 Likert), empathy score, shared decision-making score, treatment satisfaction VAS (1 - 10), and a binary patient-clinician concordance flag (agreement on the necessity of antidepressant treatment). Prescription data (9 features) included days’ supply per prescription, prescription fills per 90 days, refill adherence ratio, prior prescription gap count, days to first refill, pharmacy switching flag, copay burden (normalised cost proxy), mail-order use (associated with better adherence), and regimen complexity. Patient-reported outcomes (5 features) captured perceived antidepressant efficacy, illness insight score, medication harm beliefs, social support, and stigma score. Clinical variables (18 features) encoded demographics, BD subtype, illness duration, comorbidities, episode frequency, polypharmacy count, prior discontinuation history, and antidepressant class and duration.</p>
      </sec>
      <sec id="sec3dot5">
        <title>3.5. Bayesian Modelling Framework</title>
        <p>The MAP-regularised Bayesian logistic regression used a Gaussian coefficient prior (variance = 1.0) and provides the only model in this study with a directly specified likelihood and prior. For this model, BIC was calculated from the Bernoulli test log-likelihood and coefficient count. Random Forest, XGBoost, LightGBM, and the stacked ensemble do not have directly comparable conventional likelihoods or parameter counts. Their reported log-likelihoods were obtained by treating predicted probabilities as Bernoulli probabilities, while “k” was an analyst-defined effective-complexity proxy (tree/boosting values based on selected complexity settings and ensemble k = 4 for the meta-learner only). WAIC was approximated from bootstrap predictive log-likelihood rather than posterior draws. Consequently, BIC, WAIC, and Bayes factors across these model classes are exploratory and cannot establish formal Bayesian superiority [<xref ref-type="bibr" rid="B11">11</xref>]. Predictive performance and calibration are treated as the primary comparison criteria.</p>
      </sec>
      <sec id="sec3dot6">
        <title>3.6. Ensemble Architecture and Visualisation Framework</title>
        <p>Patients were split once at the patient level into training (70%, n = 630), validation (15%, n = 135), and held-out test (15%, n = 135) partitions using outcome stratification. Imputation, scaling, TF-independent feature transformations, SMOTE, and model fitting were restricted to training data. SMOTE was applied only inside each training fold of the five-fold OOF stacking procedure. Hyperparameters and the classification threshold (0.42) were selected using validation data and locked before test evaluation. The ensemble combined Random Forest, XGBoost, and LightGBM OOF predictions through a logistic-regression meta-learner. Four visualisations were retained: side-effect bubble chart, WAI split violin, domain SHAP grouped bar, and 90-day prescription timeline heatmap [<xref ref-type="bibr" rid="B12">12</xref>].</p>
      </sec>
    </sec>
    <sec id="sec4">
      <title>4. Results</title>
      <sec id="sec4dot1">
        <title>4.1. Calibration and Clinical Utility</title>
        <p><xref ref-type="fig" rid="fig1">Figure 1</xref><xref ref-type="fig" rid="fig1">Figure 1</xref> presents calibration curves for all six models. Bayesian logistic regression achieved the lowest Brier score (0.095), followed by XGBoost (0.106) and the ensemble (0.109). Thus, the ensemble was not the best-calibrated model. <xref ref-type="fig" rid="fig2">Figure 2</xref><xref ref-type="fig" rid="fig2">Figure 2</xref> shows decision-curve estimates from the synthetic test set; these are exploratory and should not be interpreted as demonstrated clinical utility.</p>
        <fig id="fig1">
          <label>Figure 1</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId18.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 1.</bold> Calibration curves for all six models. Brier scores: Bayesian Logistic Regression 0.095 (lowest), XGBoost 0.106, Proposed Ensemble 0.109, LightGBM 0.120, Naive Bayes 0.139, Random Forest 0.147. Perfect calibration = dashed diagonal.</p>
        <fig id="fig2">
          <label>Figure 2</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId19.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 2.</bold> Exploratory decision curve analysis on the synthetic test set. The curves describe simulated net benefit only and do not establish real-world clinical utility.</p>
      </sec>
      <sec id="sec4dot2">
        <title>4.2. Discriminative Performance</title>
        <p><bold>Table 1</bold> presents comparative performance on the held-out synthetic test set (n = 135). Bayesian logistic regression achieved the highest AUC (0.939), highest F1 (0.837), and lowest Brier score (0.095). The ensemble achieved AUC = 0.913 (95% CI: 0.860 - 0.956), F1 = 0.816, sensitivity = 0.817, specificity = 0.896, and Brier score = 0.109. Accordingly, the ensemble cannot be described as superior in discrimination or calibration. It remains a complementary non-linear model, whereas Bayesian logistic regression is the preferred model under the reported AUC and calibration criteria.</p>
        <p><bold>Table 1.</bold> Comparative model performance—test set (n = 135).</p>
        <table-wrap id="tbl1">
          <label>Table 1</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Model</bold>
                </td>
                <td>
                  <bold>AUC</bold>
                </td>
                <td>
                  <bold>F1</bold>
                </td>
                <td>
                  <bold>Sensitivity</bold>
                </td>
                <td>
                  <bold>Specificity</bold>
                </td>
                <td>
                  <bold>Brier</bold>
                </td>
              </tr>
              <tr>
                <td>Bayesian Logistic Reg.</td>
                <td>0.939</td>
                <td>0.837</td>
                <td>0.899</td>
                <td>0.859</td>
                <td>0.095</td>
              </tr>
              <tr>
                <td>Naive Bayes</td>
                <td>0.898</td>
                <td>0.609</td>
                <td>0.469</td>
                <td>0.965</td>
                <td>0.139</td>
              </tr>
              <tr>
                <td>Random Forest</td>
                <td>0.899</td>
                <td>0.751</td>
                <td>0.713</td>
                <td>0.896</td>
                <td>0.147</td>
              </tr>
              <tr>
                <td>XGBoost</td>
                <td>0.910</td>
                <td>0.799</td>
                <td>0.776</td>
                <td>0.908</td>
                <td>0.106</td>
              </tr>
              <tr>
                <td>LightGBM</td>
                <td>0.885</td>
                <td>0.787</td>
                <td>0.756</td>
                <td>0.908</td>
                <td>0.120</td>
              </tr>
              <tr>
                <td>
                  <bold>Proposed Ensemble (</bold>
                  <bold>Proposed</bold>
                  <bold>)</bold>
                </td>
                <td>
                  <bold>0.913</bold>
                </td>
                <td>
                  <bold>0.816</bold>
                </td>
                <td>
                  <bold>0.817</bold>
                </td>
                <td>
                  <bold>0.896</bold>
                </td>
                <td>
                  <bold>0.109</bold>
                </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Note: 95% bootstrap CI (1,000 resamples) for the ensemble: AUC [0.860 - 0.956], F1 [0.722 - 0.891], sensitivity [0.696 - 0.915], specificity [0.826 - 0.962]. Threshold = 0.42, selected on validation data and fixed before test evaluation. Bayesian logistic regression uses a MAP Gaussian prior (variance = 1.0).</p>
      </sec>
      <sec id="sec4dot3">
        <title>4.3. Side-Effect Bubble Chart</title>
        <p><xref ref-type="fig" rid="fig3">Figure 3</xref><xref ref-type="fig" rid="fig3">Figure 3</xref> presents the side-effect bubble chart, a novel three-dimensional visualisation plotting each side effect’s prevalence (x-axis) against its mean SHAP contribution to discontinuation prediction (y-axis), with bubble size encoding mean symptom severity. Two clear patterns emerge. First, sexual dysfunction occupies the high-SHAP, moderate-prevalence quadrant: despite not being the most prevalent side effect (approximately 28% of patients report it above threshold), it carries the highest SHAP contribution to discontinuation predictions consistent with patient survey data showing sexual dysfunction as the leading driver of unilateral AD cessation. Second, cognitive effects show a similar pattern: moderate prevalence but disproportionate SHAP importance, consistent with cognitive impairment’s status as a “hidden” side effect that patients rarely spontaneously report but that substantially impairs functioning and motivates cessation. In contrast, headache and dry mouth occupy the high-prevalence, low-SHAP quadrant, frequently present but low discontinuation impact, consistent with their better tolerability in clinical experience.</p>
        <fig id="fig3">
          <label>Figure 3</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId20.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 3.</bold>Side-effect profile bubble chart. x-axis: prevalence (proportion reporting symptom). y-axis: mean |SHAP| contribution to discontinuation prediction. Bubble size: mean symptom severity score. Red: above-median SHAP; Blue: below-median. Sexual dysfunction and cognitive effects show disproportionately high SHAP relative to prevalence, confirming their role as the primary discontinuation-driving side effects in BD.</p>
      </sec>
      <sec id="sec4dot4">
        <title>4.4. ROC Curves</title>
        <p><xref ref-type="fig" rid="fig4">Figure 4</xref><xref ref-type="fig" rid="fig4">Figure 4</xref> presents ROC curves with 95% bootstrap CI bands. Bayesian logistic regression has the highest point-estimate AUC (0.939); the ensemble reaches 0.913. Overlapping bands indicate uncertainty in pairwise ranking, but the reported values do not support a claim of ensemble discrimination superiority.</p>
        <fig id="fig4">
          <label>Figure 4</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId21.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 4.</bold>ROC curves with 95% bootstrap CI bands (400 resamples). Bayesian Logistic Regression has the highest point-estimate AUC (0.939); Proposed Ensemble AUC = 0.913 [0.860 - 0.956].</p>
      </sec>
      <sec id="sec4dot5">
        <title>4.5. Therapeutic Alliance Split Violin</title>
        <p><xref ref-type="fig" rid="fig5">Figure 5</xref><xref ref-type="fig" rid="fig5">Figure 5</xref> presents WAI subscale distributions stratified by discontinuation outcome and BD subtype, a novel split violin visualisation. Across all three WAI subscales, discontinued patients show systematically lower scores than continued patients, with statistically meaningful distributional separation. The bond subscale shows the largest median separation (discontinued median approximately 4.1 vs. continued median approximately 5.4), confirming that the quality of the relational therapeutic relationship, not merely task agreement or goal alignment, is the WAI dimension most strongly associated with adherence. Within each discontinuation group, BD-I patients (blue/green) tend toward slightly lower bond scores than BD-II patients (orange/teal), suggesting that BD-I’s more severe and treatment-disruptive illness course may erode the therapeutic bond disproportionately. The BD-I discontinued group (red violin, leftmost in each panel) shows the lowest WAI scores across all three subscales and the widest distribution, indicating greater therapeutic alliance heterogeneity in this group.</p>
        <fig id="fig5">
          <label>Figure 5</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId22.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 5.</bold> Therapeutic alliance split violin plot. WAI task (left), bond (centre), and goal (right) subscale distributions by discontinuation × BD-subtype combination. Discontinued patients (red/orange) show consistently lower WAI scores than continued patients (green/teal). Bond subscale shows the largest separation. Horizontal lines within violins: medians.</p>
      </sec>
      <sec id="sec4dot6">
        <title>4.6. Feature Domain SHAP Analysis</title>
        <fig id="fig6">
          <label>Figure 6</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId23.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 6.</bold> Feature domain SHAP grouped bar chart. Mean |SHAP| per domain for discontinued (solid) vs continued (hatched) patients. Prescription data domain carries the highest SHAP for discontinued patients, followed by therapeutic alliance and patient-reported outcomes. Side-effect domain ranks third, confirming prescription and alliance features as primary discontinuation drivers.</p>
        <p><xref ref-type="fig" rid="fig6">Figure 6</xref><xref ref-type="fig" rid="fig6">Figure 6</xref> presents the domain SHAP grouped bar chart mean |SHAP| per feature domain separately for discontinued and continued test patients. The prescription data domain shows the largest mean |SHAP| for discontinued patients (refill adherence, gap count, and prior gap history collectively driving the prediction), followed by therapeutic alliance and patient-reported outcomes. The side-effect domain contributes meaningfully but ranks third, confirming that the objective prescription-derived and alliance-based features collectively provide more SHAP information than the subjectively reported side-effect burden. For continued patients, the domain SHAP profile is flatter and lower overall, reflecting the absence of the distinctive signature features that the model learns to associate with discontinuation.</p>
      </sec>
      <sec id="sec4dot7">
        <title>4.7. Bayesian Model Comparison</title>
        <p><bold>Table 2.</bold>Bayesian model comparison: BIC, WAIC, and Bayes factors.</p>
        <table-wrap id="tbl2">
          <label>Table 2</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Model</bold>
                </td>
                <td>
                  <bold>Log-Lik.</bold>
                </td>
                <td>
                  <bold>k</bold>
                </td>
                <td>
                  <bold>BIC</bold>
                </td>
                <td>
                  <bold>WAIC</bold>
                </td>
                <td>
                  <bold>L</bold>
                  <bold>og</bold>
                  <bold>
                    <sub>10</sub>
                  </bold>
                  <bold>(BF)</bold>
                </td>
                <td>
                  <bold>Evidence</bold>
                </td>
              </tr>
              <tr>
                <td>Bayesian Logistic Reg.</td>
                <td>−50.3</td>
                <td>58</td>
                <td>365.4</td>
                <td>102.6</td>
                <td>53.2</td>
                <td>Decisive</td>
              </tr>
              <tr>
                <td>Naive Bayes</td>
                <td>−180.1</td>
                <td>114</td>
                <td>480.2</td>
                <td>215.3</td>
                <td>78.1</td>
                <td>Decisive</td>
              </tr>
              <tr>
                <td>Random Forest</td>
                <td>−63.3</td>
                <td>40</td>
                <td>322.7</td>
                <td>126.7</td>
                <td>43.9</td>
                <td>Decisive</td>
              </tr>
              <tr>
                <td>XGBoost</td>
                <td>−53.1</td>
                <td>60</td>
                <td>400.5</td>
                <td>107.9</td>
                <td>60.8</td>
                <td>Decisive</td>
              </tr>
              <tr>
                <td>LightGBM</td>
                <td>−54.9</td>
                <td>60</td>
                <td>404.1</td>
                <td>110.8</td>
                <td>61.6</td>
                <td>Decisive</td>
              </tr>
              <tr>
                <td>
                  <bold>Proposed Ensemble (</bold>
                  <bold>Proposed</bold>
                  <bold>)</bold>
                </td>
                <td>
                  <bold>−</bold>
                  <bold>50.4</bold>
                </td>
                <td>
                  <bold>4</bold>
                </td>
                <td>
                  <bold>120.4</bold>
                </td>
                <td>
                  <bold>102.3</bold>
                </td>
                <td>
                  <bold>0.0 (ref.)</bold>
                </td>
                <td>
                  <bold>Reference</bold>
                </td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Note: Log<sub>10</sub>(BF) values are based on approximate BIC calculations using non-equivalent effective-complexity definitions. They are reported for transparency and should not be interpreted as formal evidence across model classes.</p>
        <fig id="fig7">
          <label>Figure 7</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId24.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 7.</bold> Exploratory approximate BIC and Bayes-factor comparison. The apparent ensemble advantage is sensitive to the effective-parameter convention and is not used as the primary model-ranking evidence.</p>
        <p><bold>Table 2</bold> and <xref ref-type="fig" rid="fig7">Figure 7</xref><xref ref-type="fig" rid="fig7">Figure 7</xref> reproduce the original approximate model-comparison calculations. The very low ensemble BIC is driven largely by counting only four meta-learner coefficients while excluding the complexity of the three fitted base learners. In contrast, larger effective counts were assigned to the comparator models. Because the models are not evaluated under a common likelihood and parameter-count definition, the resulting Bayes factors are not formally comparable and do not demonstrate decisive ensemble superiority. These values should be treated as exploratory sensitivity analyses; Bayesian logistic regression remains the best model by the directly reported AUC and Brier score.</p>
      </sec>
      <sec id="sec4dot8">
        <title>4.8. Subgroup Analysis</title>
        <p><bold>Table</bold><bold> </bold><bold>3</bold> presents subgroup performance. High copay burden patients achieved the highest subgroup AUC (0.960), confirming that cost-driven discontinuation, often invisible in clinical settings, leaves a distinctive prescription pattern signature (shorter days’ supply, longer days to first refill, pharmacy switching) that the model detects reliably. Low refill adherence patients achieved AUC = 0.940 with sensitivity = 0.917, confirming that already-poor refill behaviour is a reliable and detectable precursor to full discontinuation. The patient-clinician discordance subgroup achieved AUC = 0.879, reflecting the complex and partially non-linear interaction between concordance, side-effect burden, and alliance in the discontinuation pathway.</p>
        <p><bold>Table 3.</bold> Subgroup analysis—proposed ensemble.</p>
        <table-wrap id="tbl3">
          <label>Table 3</label>
          <table>
            <tbody>
              <tr>
                <td>
                  <bold>Subgroup</bold>
                </td>
                <td>
                  <bold>N</bold>
                </td>
                <td>
                  <bold>AUC</bold>
                </td>
                <td>
                  <bold>F1</bold>
                </td>
                <td>
                  <bold>Sensitivity</bold>
                </td>
              </tr>
              <tr>
                <td>Low therapeutic alliance (WAI &lt; median)</td>
                <td>67</td>
                <td>0.905</td>
                <td>0.833</td>
                <td>0.833</td>
              </tr>
              <tr>
                <td>Low refill adherence (&lt;60%)</td>
                <td>42</td>
                <td>0.940</td>
                <td>0.936</td>
                <td>0.917</td>
              </tr>
              <tr>
                <td>Patient-clinician discordance</td>
                <td>49</td>
                <td>0.879</td>
                <td>0.868</td>
                <td>0.852</td>
              </tr>
              <tr>
                <td>Prior discontinuation history (≥2)</td>
                <td>85</td>
                <td>0.902</td>
                <td>0.840</td>
                <td>0.829</td>
              </tr>
              <tr>
                <td>High copay burden</td>
                <td>20</td>
                <td>0.960</td>
                <td>0.889</td>
                <td>0.889</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>Note: All subgroups n ≥ 15. Low WAI: below test-set median WAI total. Low refill adherence: ratio &lt; 0.60. High copay: normalised copay burden &gt; 0.60.</p>
      </sec>
      <sec id="sec4dot9">
        <title>4.9. Prescription Gap Timeline Heatmap</title>
        <p><xref ref-type="fig" rid="fig8">Figure 8</xref><xref ref-type="fig" rid="fig8">Figure 8</xref> presents the 90-day prescription fill timeline for four archetypal patient profiles. The high alliance, continued archetype (top row, green), shows near-daily fill coverage across all three 30-day periods with minimal gaps, the model’s ideal adherence signature. The low alliance, discontinued archetype (second row, red), shows initial fills followed by progressive gap accumulation, with complete cessation by day 60, a pattern the model detects from the refill ratio and gap count features before clinical discontinuation is documented. The intolerable SE, discontinued archetype (third row, purple), shows a characteristic pattern of adequate fills until approximately day 45, followed by abrupt cessation, consistent with the clinical trajectory of patients who tolerate their antidepressant initially but discontinue when sexual dysfunction or cognitive impairment accumulates. The low SE, continued archetype (bottom row, blue) shows consistent fills throughout, with the model correctly classifying these patients as low risk based on their fill regularity.</p>
        <fig id="fig8">
          <label>Figure 8</label>
          <graphic xlink:href="https://html.scirp.org/file/1115673-rId25.jpeg?20260826014644" />
        </fig>
        <p><bold>Figure 8.</bold> 90-day prescription gap timeline heatmap. Each row: one archetypal patient profile. Each cell: one day (green/blue/purple = filled; red = gap; grey = post-discontinuation). Columns span 30-day months. The low-alliance discontinued archetype shows progressive gap accumulation; the intolerable SE archetype shows abrupt cessation at day ~45. Orange dashed line: first gap detection marker.</p>
      </sec>
    </sec>
    <sec id="sec5">
      <title>5. Discussion</title>
      <p>Within the synthetic generator, prescription-derived adherence features carried the largest SHAP contributions, followed by therapeutic alliance and patient-reported variables. This pattern is consistent with the rules used to generate both prescription trajectories and discontinuation labels and should be interpreted as a simulator finding, not evidence that these variables are the dominant causes of discontinuation in real patients.</p>
      <p>The simulated WAI bond subscale showed the largest alliance separation between outcome groups. This result supports the plausibility of studying alliance-related variables, but it does not establish that bond-repair interventions prevent discontinuation; that hypothesis requires prospective real-world testing [<xref ref-type="bibr" rid="B13">13</xref>]-[<xref ref-type="bibr" rid="B17">17</xref>].</p>
      <p>The simulated side-effect analysis assigned relatively high importance to sexual dysfunction and cognitive effects. These patterns are clinically plausible and motivate structured assessment, but their magnitude depends on the synthetic distributions and label-generation weights [<xref ref-type="bibr" rid="B18">18</xref>][<xref ref-type="bibr" rid="B19">19</xref>].</p>
    </sec>
    <sec id="sec6">
      <title>6. Limitations</title>
      <p>The cohort, prescription histories, alliance scores, side effects, subgroup assignments, and outcome labels are entirely synthetic. Performance and SHAP rankings may therefore reflect the generator’s assumptions and the direct use of several predictors in the label rule. The study does not model full real-world missingness, clinician documentation variability, pharmacy-data linkage error, or cross-cultural variation. The BIC/WAIC/Bayes-factor comparison is not formally valid across all model classes because likelihoods and effective parameter counts were approximated differently. External validation on real longitudinal data is required before any clinical interpretation or decision-support deployment [<xref ref-type="bibr" rid="B20">20</xref>][<xref ref-type="bibr" rid="B21">21</xref>].</p>
    </sec>
    <sec id="sec7">
      <title>7. Conclusion</title>
      <p>This proof-of-concept simulation evaluated antidepressant-discontinuation prediction from synthetic side-effect, therapeutic alliance, prescription, patient-reported, and clinical variables. Bayesian logistic regression achieved the strongest reported discrimination and calibration (AUC = 0.939; Brier = 0.095), while the stacked ensemble provided a complementary non-linear analysis (AUC = 0.913; Brier = 0.109). SHAP and visual analyses illustrate hypotheses that can be tested in real data, but do not establish clinical drivers or utility. Next steps are transparent release of the simulation code and random seeds, repeated simulation studies, and external validation using real dispensing and clinical records with prospectively defined discontinuation outcomes.</p>
    </sec>
    <sec id="sec8">
      <title>Author Contributions</title>
      <p>Conceptualization: RDF and AAF; Methodology: AAF and RDF; Software: AAF; Validation: RDF and AAF; Formal analysis: AAF; Investigation: RDF and AAF; Resources: RDF; Data curation: AAF; Writing original draft preparation: AAF; Writing review and editing: RDF and AAF; Visualization: AAF; Supervision: RDF; Project administration: RDF. All authors have read and agreed to the published version of the manuscript.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <title>References</title>
      <ref id="B1">
        <label>1.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Velligan, D.I., Weiden, P.J., Sajatovic, M., Scott, J., Carpenter, D., Ross, R. and Docherty, J.P. (2009) The Expert Consensus Guideline Series: Adherence Problems in Patients with Serious and Persistent Mental Illness. <italic>Journal of Clinical Psychiatry</italic>, 70, 1-48.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Velligan, D.I.</string-name>
              <string-name>Weiden, P.J.</string-name>
              <string-name>Sajatovic, M.</string-name>
              <string-name>Scott, J.</string-name>
              <string-name>Carpenter, D.</string-name>
              <string-name>Ross, R.</string-name>
              <string-name>Docherty, J.P.</string-name>
            </person-group>
            <year>2009</year>
            <article-title>The Expert Consensus Guideline Series: Adherence Problems in Patients with Serious and Persistent Mental Illness</article-title>
            <source>Journal of Clinical Psychiatry</source>
            <volume>70</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B2">
        <label>2.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Ursano, R.J., Bell, C., Eth, S., Friedman, M., Norwood, A., Pfefferbaum, B., <italic>et al</italic>. (2004) Practice Guideline for the Treatment of Patients with Acute Stress Disorder and Posttraumatic Stress Disorder. <italic>The American Journal of Psychiatry</italic>, 161, 3-31.</mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Ursano, R.J.</string-name>
              <string-name>Bell, C.</string-name>
              <string-name>Eth, S.</string-name>
              <string-name>Friedman, M.</string-name>
              <string-name>Norwood, A.</string-name>
              <string-name>Pfefferbaum, B.</string-name>
            </person-group>
            <year>2004</year>
            <article-title>Practice Guideline for the Treatment of Patients with Acute Stress Disorder and Posttraumatic Stress Disorder</article-title>
            <source>The American Journal of Psychiatry</source>
            <volume>161</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B3">
        <label>3.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Velligan, D.I., Sajatovic, M., Hatch, A., Kramata, P. and Docherty, J.P. (2017) Why Do Psychiatric Patients Stop Antipsychotic Medication? A Systematic Review of Reasons for Nonadherence to Medication in Patients with Serious Mental Illness. <italic>Patient Preference and Adherence</italic>, 11, 449-468. https://doi.org/10.2147/PPA.S124658 <pub-id pub-id-type="doi">10.2147/PPA.S124658</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2147/PPA.S124658">https://doi.org/10.2147/PPA.S124658</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Velligan, D.I.</string-name>
              <string-name>Sajatovic, M.</string-name>
              <string-name>Hatch, A.</string-name>
              <string-name>Kramata, P.</string-name>
              <string-name>Docherty, J.P.</string-name>
            </person-group>
            <year>2017</year>
            <article-title>Why Do Psychiatric Patients Stop Antipsychotic Medication? A Systematic Review of Reasons for Nonadherence to Medication in Patients with Serious Mental Illness</article-title>
            <source>Patient Preference and Adherence</source>
            <volume>11</volume>
            <pub-id pub-id-type="doi">10.2147/PPA.S124658</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B4">
        <label>4.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Lingam, R. and Scott, J. (2002) Treatment Non-Adherence in Affective Disorders. <italic>Ac</italic><italic>ta Psychiatrica Scandinavica</italic>, 105, 164-172. https://doi.org/10.1034/j.1600-0447.2002.1r084.x <pub-id pub-id-type="doi">10.1034/j.1600-0447.2002.1r084.x</pub-id><pub-id pub-id-type="pmid">11939969</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1034/j.1600-0447.2002.1r084.x">https://doi.org/10.1034/j.1600-0447.2002.1r084.x</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Lingam, R.</string-name>
              <string-name>Scott, J.</string-name>
            </person-group>
            <year>2002</year>
            <article-title>Treatment Non-Adherence in Affective Disorders</article-title>
            <source>Acta Psychiatrica Scandinavica</source>
            <volume>105</volume>
            <pub-id pub-id-type="doi">10.1034/j.1600-0447.2002.1r084.x</pub-id>
            <pub-id pub-id-type="pmid">11939969</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B5">
        <label>5.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Horvath, A.O. and Greenberg, L.S. (1989) Development and Validation of the Working Alliance Inventory. <italic>Journal of Counseling Psychology</italic>, 36, 223-233. https://doi.org/10.1037/0022-0167.36.2.223 <pub-id pub-id-type="doi">10.1037/0022-0167.36.2.223</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1037/0022-0167.36.2.223">https://doi.org/10.1037/0022-0167.36.2.223</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Horvath, A.O.</string-name>
              <string-name>Greenberg, L.S.</string-name>
            </person-group>
            <year>1989</year>
            <article-title>Development and Validation of the Working Alliance Inventory</article-title>
            <source>Journal of Counseling Psychology</source>
            <volume>36</volume>
            <pub-id pub-id-type="doi">10.1037/0022-0167.36.2.223</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B6">
        <label>6.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Raebel, M.A., Schmittdiel, J., Karter, A.J., Konieczny, J.L. and Steiner, J.F. (2013) Standardizing Terminology and Definitions of Medication Adherence and Persistence in Research Employing Electronic Databases. <italic>Medical Care</italic>, 51, S11-S21. https://doi.org/10.1097/mlr.0b013e31829b1d2a <pub-id pub-id-type="doi">10.1097/mlr.0b013e31829b1d2a</pub-id><pub-id pub-id-type="pmid">23774515</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1097/mlr.0b013e31829b1d2a">https://doi.org/10.1097/mlr.0b013e31829b1d2a</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Raebel, M.A.</string-name>
              <string-name>Schmittdiel, J.</string-name>
              <string-name>Karter, A.J.</string-name>
              <string-name>Konieczny, J.L.</string-name>
              <string-name>Steiner, J.F.</string-name>
            </person-group>
            <year>2013</year>
            <article-title>Standardizing Terminology and Definitions of Medication Adherence and Persistence in Research Employing Electronic Databases</article-title>
            <source>Medical Care</source>
            <volume>51</volume>
            <pub-id pub-id-type="doi">10.1097/mlr.0b013e31829b1d2a</pub-id>
            <pub-id pub-id-type="pmid">23774515</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B7">
        <label>7.</label>
        <citation-alternatives>
          <mixed-citation publication-type="report">Pacchiarotti, I., Bond, D.J., Baldessarini, R.J., Nolen, W.A., Grunze, H., Licht, R.W., <italic>et al</italic>. (2013) The International Society for Bipolar Disorders (ISBD) Task Force Report on Antidepressant Use in Bipolar Disorders. <italic>American Journal of Psychiatry</italic>, 170, 1249-1262. https://doi.org/10.1176/appi.ajp.2013.13020185 <pub-id pub-id-type="doi">10.1176/appi.ajp.2013.13020185</pub-id><pub-id pub-id-type="pmid">24030475</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1176/appi.ajp.2013.13020185">https://doi.org/10.1176/appi.ajp.2013.13020185</ext-link></mixed-citation>
          <element-citation publication-type="report">
            <person-group person-group-type="author">
              <string-name>Pacchiarotti, I.</string-name>
              <string-name>Bond, D.J.</string-name>
              <string-name>Baldessarini, R.J.</string-name>
              <string-name>Nolen, W.A.</string-name>
              <string-name>Grunze, H.</string-name>
              <string-name>Licht, R.W.</string-name>
            </person-group>
            <year>2013</year>
            <article-title>The International Society for Bipolar Disorders (ISBD) Task Force Report on Antidepressant Use in Bipolar Disorders</article-title>
            <source>American Journal of Psychiatry</source>
            <volume>170</volume>
            <pub-id pub-id-type="doi">10.1176/appi.ajp.2013.13020185</pub-id>
            <pub-id pub-id-type="pmid">24030475</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B8">
        <label>8.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Taheri, L., Shamsaei, F., Sadeghian, E. and Tapak, L. (2021) Treatment Adherence in Patients with Mental Illnesses: The Effect of Stigma and Spirituality. <italic>Archives of Psychiatry and Psychotherapy</italic>, 23, 32-45. https://doi.org/10.12740/APP/138429 <pub-id pub-id-type="doi">10.12740/APP/138429</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.12740/APP/138429">https://doi.org/10.12740/APP/138429</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Taheri, L.</string-name>
              <string-name>Shamsaei, F.</string-name>
              <string-name>Sadeghian, E.</string-name>
              <string-name>Tapak, L.</string-name>
            </person-group>
            <year>2021</year>
            <article-title>Treatment Adherence in Patients with Mental Illnesses: The Effect of Stigma and Spirituality</article-title>
            <source>Archives of Psychiatry and Psychotherapy</source>
            <volume>23</volume>
            <pub-id pub-id-type="doi">10.12740/APP/138429</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B9">
        <label>9.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Roebuck, M.C., Liberman, J.N., Gemmill-Toyama, M. and Brennan, T.A. (2011) Medication Adherence Leads to Lower Health Care Use and Costs Despite Increased Drug Spending. <italic>Health Affairs</italic>, 30, 91-99. https://doi.org/10.1377/hlthaff.2009.1087 <pub-id pub-id-type="doi">10.1377/hlthaff.2009.1087</pub-id><pub-id pub-id-type="pmid">21209444</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1377/hlthaff.2009.1087">https://doi.org/10.1377/hlthaff.2009.1087</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Roebuck, M.C.</string-name>
              <string-name>Liberman, J.N.</string-name>
              <string-name>Gemmill-Toyama, M.</string-name>
              <string-name>Brennan, T.A.</string-name>
            </person-group>
            <year>2011</year>
            <article-title>Medication Adherence Leads to Lower Health Care Use and Costs Despite Increased Drug Spending</article-title>
            <source>Health Affairs</source>
            <volume>30</volume>
            <pub-id pub-id-type="doi">10.1377/hlthaff.2009.1087</pub-id>
            <pub-id pub-id-type="pmid">21209444</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B10">
        <label>10.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Australian, R. and New Zealand College of Psychiatrists Clinical Practice Guidelines Team for Bipolar Disorder (2004) Australian and New Zealand Clinical Practice Guidelines for the Treatment of Bipolar Disorder. <italic>Australian &amp; New Zealand Journal of Psyc</italic><italic>hiatry</italic>, 38, 280-305. https://doi.org/10.1111/j.1440-1614.2004.01356.x <pub-id pub-id-type="doi">10.1111/j.1440-1614.2004.01356.x</pub-id><pub-id pub-id-type="pmid">15144505</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/j.1440-1614.2004.01356.x">https://doi.org/10.1111/j.1440-1614.2004.01356.x</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Australian, R.</string-name>
            </person-group>
            <year>2004</year>
            <article-title>Australian and New Zealand Clinical Practice Guidelines for the Treatment of Bipolar Disorder</article-title>
            <source>Australian &amp; New Zealand Journal of Psychiatry</source>
            <volume>38</volume>
            <pub-id pub-id-type="doi">10.1111/j.1440-1614.2004.01356.x</pub-id>
            <pub-id pub-id-type="pmid">15144505</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B11">
        <label>11.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Kass, R.E. and Raftery, A.E. (1995) Bayes Factors. <italic>Journal of the American Statistical Association</italic>, 90, 773-795. https://doi.org/10.1080/01621459.1995.10476572 <pub-id pub-id-type="doi">10.1080/01621459.1995.10476572</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1080/01621459.1995.10476572">https://doi.org/10.1080/01621459.1995.10476572</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Kass, R.E.</string-name>
              <string-name>Raftery, A.E.</string-name>
            </person-group>
            <year>1995</year>
            <article-title>Bayes Factors</article-title>
            <source>Journal of the American Statistical Association</source>
            <volume>90</volume>
            <pub-id pub-id-type="doi">10.1080/01621459.1995.10476572</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B12">
        <label>12.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Misdrahi, D., Petit, M., Blanc, O., Bayle, F. and Llorca, P. (2011) The Influence of Therapeutic Alliance and Insight on Medication Adherence in Schizophrenia. <italic>Nordic Jo</italic><italic>urnal of Psychiatry</italic>, 66, 49-54. https://doi.org/10.3109/08039488.2011.598556 <pub-id pub-id-type="doi">10.3109/08039488.2011.598556</pub-id><pub-id pub-id-type="pmid">21830849</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3109/08039488.2011.598556">https://doi.org/10.3109/08039488.2011.598556</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Misdrahi, D.</string-name>
              <string-name>Petit, M.</string-name>
              <string-name>Blanc, O.</string-name>
              <string-name>Bayle, F.</string-name>
              <string-name>Llorca, P.</string-name>
            </person-group>
            <year>2011</year>
            <article-title>The Influence of Therapeutic Alliance and Insight on Medication Adherence in Schizophrenia</article-title>
            <source>Nordic Journal of Psychiatry</source>
            <volume>66</volume>
            <pub-id pub-id-type="doi">10.3109/08039488.2011.598556</pub-id>
            <pub-id pub-id-type="pmid">21830849</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B13">
        <label>13.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Chen, T. and Guestrin, C. (2016) XGBoost: A Scalable Tree Boosting System. <italic>Proceedings of the</italic>22 <italic>nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</italic>, San Francisco, 13-17 August 2016, 785-794. https://doi.org/10.1145/2939672.2939785 <pub-id pub-id-type="doi">10.1145/2939672.2939785</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1145/2939672.2939785">https://doi.org/10.1145/2939672.2939785</ext-link></mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Chen, T.</string-name>
              <string-name>Guestrin, C.</string-name>
              <string-name>Mining, S</string-name>
            </person-group>
            <year>2016</year>
            <article-title>XGBoost: A Scalable Tree Boosting System</article-title>
            <source>Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
            <volume>13</volume>
            <pub-id pub-id-type="doi">10.1145/2939672.2939785</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B14">
        <label>14.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Ke, G., Meng, Q., Finley, T., Wang, T., Chen, W., Ma, W., Ye, Q. and Liu, T.-Y. (2017) LightGBM: A Highly Efficient Gradient Boosting Decision Tree. <italic>Neural Information</italic><italic>Processing Systems</italic> 30: <italic>Annual Conference on Neural Information Processing System</italic><italic>s</italic> 2017, Long Beach, 4-9 December 2017, 3146-3154.</mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Ke, G.</string-name>
              <string-name>Meng, Q.</string-name>
              <string-name>Finley, T.</string-name>
              <string-name>Wang, T.</string-name>
              <string-name>Chen, W.</string-name>
              <string-name>Ma, W.</string-name>
              <string-name>Ye, Q.</string-name>
              <string-name>Liu, T.</string-name>
            </person-group>
            <year>2017</year>
            <article-title>LightGBM: A Highly Efficient Gradient Boosting Decision Tree</article-title>
            <source>Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017</source>
            <volume>4</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B15">
        <label>15.</label>
        <citation-alternatives>
          <mixed-citation publication-type="confproc">Lundberg, S.M. and Lee, S.-I. (2017) A Unified Approach to Interpreting Model Predictions. <italic>Neural Information Processing Systems</italic> 30: <italic>Annual Conference on Neural Information Processing Systems</italic> 2017, Long Beach, 4-9 December 2017, 4765-4774.</mixed-citation>
          <element-citation publication-type="confproc">
            <person-group person-group-type="author">
              <string-name>Lundberg, S.M.</string-name>
              <string-name>Lee, S.</string-name>
            </person-group>
            <year>2017</year>
            <article-title>A Unified Approach to Interpreting Model Predictions</article-title>
            <source>Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017</source>
            <volume>4</volume>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B16">
        <label>16.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Vickers, A.J. and Elkin, E.B. (2006) Decision Curve Analysis: A Novel Method for Evaluating Prediction Models. <italic>Medical Decision Making</italic>, 26, 565-574. https://doi.org/10.1177/0272989x06295361 <pub-id pub-id-type="doi">10.1177/0272989x06295361</pub-id><pub-id pub-id-type="pmid">17099194</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1177/0272989x06295361">https://doi.org/10.1177/0272989x06295361</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Vickers, A.J.</string-name>
              <string-name>Elkin, E.B.</string-name>
            </person-group>
            <year>2006</year>
            <article-title>Decision Curve Analysis: A Novel Method for Evaluating Prediction Models</article-title>
            <source>Medical Decision Making</source>
            <volume>26</volume>
            <pub-id pub-id-type="doi">10.1177/0272989x06295361</pub-id>
            <pub-id pub-id-type="pmid">17099194</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B17">
        <label>17.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Chawla, N.V., Bowyer, K.W., Hall, L.O. and Kegelmeyer, W.P. (2002) SMOTE: Synthetic Minority Over-Sampling Technique. <italic>Journal of Artificial Intelligence Research</italic>, 16, 321-357. https://doi.org/10.1613/jair.953 <pub-id pub-id-type="doi">10.1613/jair.953</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1613/jair.953">https://doi.org/10.1613/jair.953</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Chawla, N.V.</string-name>
              <string-name>Bowyer, K.W.</string-name>
              <string-name>Hall, L.O.</string-name>
              <string-name>Kegelmeyer, W.P.</string-name>
            </person-group>
            <year>2002</year>
            <article-title>SMOTE: Synthetic Minority Over-Sampling Technique</article-title>
            <source>Journal of Artificial Intelligence Research</source>
            <volume>16</volume>
            <pub-id pub-id-type="doi">10.1613/jair.953</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B18">
        <label>18.</label>
        <citation-alternatives>
          <mixed-citation publication-type="journal">Breiman, L. (2001) Random Forests. <italic>Machine Learning</italic>, 45, 5-32. https://doi.org/10.1023/a:1010933404324 <pub-id pub-id-type="doi">10.1023/a:1010933404324</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1023/a:1010933404324">https://doi.org/10.1023/a:1010933404324</ext-link></mixed-citation>
          <element-citation publication-type="journal">
            <person-group person-group-type="author">
              <string-name>Breiman, L.</string-name>
            </person-group>
            <year>2001</year>
            <article-title>Random Forests</article-title>
            <source>Machine Learning</source>
            <volume>45</volume>
            <fpage>101093</fpage>
            <pub-id pub-id-type="doi">10.1023/a:1010933404324</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B19">
        <label>19.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">DeLong, E.R., DeLong, D.M. and Clarke-Pearson, D.L. (1988) Comparing the Areas under Two or More Correlated Receiver Operating Characteristic Curves: A Nonparametric Approach. <italic>Biometrics</italic>, 44, 837-844. https://doi.org/10.2307/2531595 <pub-id pub-id-type="doi">10.2307/2531595</pub-id><pub-id pub-id-type="pmid">3203132</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/2531595">https://doi.org/10.2307/2531595</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>DeLong, E.R.</string-name>
              <string-name>DeLong, D.M.</string-name>
              <string-name>Clarke-Pearson, D.L.</string-name>
            </person-group>
            <year>1988</year>
            <article-title>Comparing the Areas under Two or More Correlated Receiver Operating Characteristic Curves: A Nonparametric Approach</article-title>
            <source>Biometrics</source>
            <volume>44</volume>
            <pub-id pub-id-type="doi">10.2307/2531595</pub-id>
            <pub-id pub-id-type="pmid">3203132</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B20">
        <label>20.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Steyerberg, E.W., Vickers, A.J., Cook, N.R., Gerds, T., Gonen, M., Obuchowski, N., <italic>et al</italic>. (2010) Assessing the Performance of Prediction Models. <italic>Epidemiology</italic>, 21, 128-138. https://doi.org/10.1097/ede.0b013e3181c30fb2 <pub-id pub-id-type="doi">10.1097/ede.0b013e3181c30fb2</pub-id><pub-id pub-id-type="pmid">20010215</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1097/ede.0b013e3181c30fb2">https://doi.org/10.1097/ede.0b013e3181c30fb2</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Steyerberg, E.W.</string-name>
              <string-name>Vickers, A.J.</string-name>
              <string-name>Cook, N.R.</string-name>
              <string-name>Gerds, T.</string-name>
              <string-name>Gonen, M.</string-name>
              <string-name>Obuchowski, N.</string-name>
            </person-group>
            <year>2010</year>
            <article-title>Assessing the Performance of Prediction Models</article-title>
            <source>Epidemiology</source>
            <volume>21</volume>
            <pub-id pub-id-type="doi">10.1097/ede.0b013e3181c30fb2</pub-id>
            <pub-id pub-id-type="pmid">20010215</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
      <ref id="B21">
        <label>21.</label>
        <citation-alternatives>
          <mixed-citation publication-type="other">Yatham, L.N., Kennedy, S.H., Parikh, S.V., Schaffer, A., Bond, D.J., Frey, B.N., <italic>et al</italic>. (2018) Canadian Network for Mood and Anxiety Treatments (CANMAT) and International Society for Bipolar Disorders (ISBD) 2018 Guidelines for the Management of Patients with Bipolar Disorder. <italic>Bipolar Disorders</italic>, 20, 97-170. https://doi.org/10.1111/bdi.12609 <pub-id pub-id-type="doi">10.1111/bdi.12609</pub-id><pub-id pub-id-type="pmid">29536616</pub-id><ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/bdi.12609">https://doi.org/10.1111/bdi.12609</ext-link></mixed-citation>
          <element-citation publication-type="other">
            <person-group person-group-type="author">
              <string-name>Yatham, L.N.</string-name>
              <string-name>Kennedy, S.H.</string-name>
              <string-name>Parikh, S.V.</string-name>
              <string-name>Schaffer, A.</string-name>
              <string-name>Bond, D.J.</string-name>
              <string-name>Frey, B.N.</string-name>
            </person-group>
            <year>2018</year>
            <article-title>Canadian Network for Mood and Anxiety Treatments (CANMAT) and International Society for Bipolar Disorders (ISBD) 2018 Guidelines for the Management of Patients with Bipolar Disorder</article-title>
            <source>Bipolar Disorders</source>
            <volume>20</volume>
            <pub-id pub-id-type="doi">10.1111/bdi.12609</pub-id>
            <pub-id pub-id-type="pmid">29536616</pub-id>
          </element-citation>
        </citation-alternatives>
      </ref>
    </ref-list>
  </back>
</article>