It is currently difficult to successfully choose the correct type of antidepressant for individual patients. To discover patterns in patient characteristics, treatment choices and outcomes, we performed retrospective Bayesian network analysis combined with natural language processing (NLP). This study was conducted at two mental healthcare facilities in the Netherlands. Adult patients admitted and treated with antidepressants between 2014 and 2020 were included. Outcome measures were antidepressant continuation, prescription duration and four treatment outcome topics: core complaints, social functioning, general well-being and patient experience, extracted through NLP of clinical notes. Combined with patient and treatment characteristics, Bayesian networks were constructed at both facilities and compared. Antidepressant choices were continued in 66% and 89% of antidepressant trajectories. Score-based network analysis revealed 28 dependencies between treatment choices, patient characteristics and outcomes. Treatment outcomes and prescription duration were tightly intertwined and interacted with antipsychotics and benzodiazepine co-medication. Tricyclic antidepressant prescription and depressive disorder were important predictors for antidepressant continuation. We show a feasible way of pattern discovery in psychiatry data, through combining network analysis with NLP. Further research should explore the found patterns in patient characteristics, treatment choices and outcomes prospectively, and the possibility of translating these into a tool for clinical decision support.
Patients seeking treatment for severe depression symptoms often have a long trajectory ahead of them; only approximately one third continues their medication of first choice1,2 and about 30 percent has still not achieved remission after four treatment steps3. Meanwhile, the contribution of mental health disorders to the global burden of disease is substantial4. Despite the limitations, pharmacological treatment of severe depression is still the most common treatment choice. Since it is still difficult to predict the response to a specific antidepressant type in an individual, the prescription process is one of trial and error. For a patient this can result in unnecessary and possibly harmful side effects and delayed recovery. Especially challenging in the prescription of antidepressants is that both the choice of the antidepressant and the response are influenced by multiple variables relating to the prescriber, the patient, illness characteristics and the drug itself5. Insights into the interactions between these factors and their effects on treatment outcomes could allow greater precision in the choice of an antidepressant for a given patient, but are currently lacking6.
To empower patients and clinician during treatment choices, the multi-faceted, non-binary aspects of psychiatric care are hard, but essential to account for7. During the last decade many machine learning models with the aim of personalizing treatment recommendations for patients with symptoms of depression have been developed8. However, little has changed in actual clinical psychiatry practice yet, perhaps because of the “black box” nature of most clinical machine learning models9.
Network analysis is a promising candidate from the joint field of statistical learning and machine learning that could potentially offer the desired multi-faceted insights into psychopathology in an explainable and transparent manner10. It comprises of methods of data analysis where dependencies and/or causal pathways between all variables in a dataset are learned and visualized11. Because mental health syndromes often present as a collection of tightly intertwined signs and symptoms, which sustain and influence each other and can be intervened on through multiple pathways, network analysis appears especially apt for capturing these concepts.
Previous studies on network analysis in mental health mainly focused on modelling symptom networks and yielded promising results. A study with a penalized Gaussian graphical model, including 1029 participants and 16 depression and anxiety symptoms, resulted in stable networks12. In a greedy search Bayesian network approach with a relatively small sample size of 353 subjects where relations between 10 stress-related variables were investigated, moderate classification accuracy of the network was achieved13. Network analyses studies with similar sample sizes and numbers of variables on obsessive–compulsive disorder and depression, and suicidal ideation (408 and 336) also revealed key gateway symptoms influencing symptom clusters14,15. A pilot with personalized feedback to patients through symptom network analysis showed promising results with respect to increasing a patient’s understanding of their psychopathology16.
The above-mentioned studies illustrate the aptness of network analysis for showing and interpreting associations between symptoms. In the future, a tool for explainable personalized insights into antidepressant recommendations based on these kinds of networks could potentially be of significant value in clinical decision making. To work toward this goal, for this study, we intended to explore if treatment characteristics (antidepressant choices and co-medication), patient characteristics and treatment outcomes in addition to symptom scores can be incorporated in network analysis, using retrospective data from two mental healthcare facilities in the Netherlands. To extract information on mental health symptoms and treatment outcomes from the retrospective data, the network analysis was combined with a natural language processing (NLP) model17.
Since our end goal is to develop a tool for explainable personalized insights into antidepressant recommendations we were primarily interested in causal paths and discovering (conditional) dependence relations among patient characteristics, treatment choices and outcomes. Hence, we have chosen to perform a Bayesian network (BN) analysis instead of a partial correlation network analysis or Markov random field analysis18. The final BN, the found dependencies and predictions for hypothetical patients were compared to expert opinion to assess the potential of the model for future implementation in a tool for clinical decision support.
Main units of analysis
Main units of analysis were first-time inpatient antidepressant treatment trajectories at participating mental health care facilities; consecutive prescriptions for one type of antidepressant were viewed as a single treatment trajectory. New prescriptions for the same type of antidepressant that started within 30 days after the old prescription were viewed as belonging to the same trajectory.
Antidepressant treatment trajectories between 2014 and 2020 at two mental healthcare facilities involved were included. The first mental healthcare facility, Parnassia Group (PG), provides basic and specialized services for prevention, treatment (inpatient and outpatient), support and care after treatment. The second facility, UMC Utrecht (UMCU), is an academic specialized facility for tertiary care. As PG and UMCU deliver care in different regions in the Netherlands, the probability of overlap in patient populations is negligible.
To ensure a homogeneous patient population, only trajectories with (partial) inpatient treatment were included. We ultimately aim to assist a broader group of patients than only those with a clear-cut classification fitting the Diagnostic and Statistical Manual of Mental Disorders (DSM) categories. Therefore, all antidepressant trajectories were included regardless of DSM classification19. However, to keep the populations from both facilities comparable we did not include patients with addiction as a primary diagnosis, since PG includes a few clinics specialized in addiction treatment and UMCU does not, and addiction as a primary diagnosis has a dominant impact on all interventions20. Patients with addiction as a secondary diagnosis were included, to still enable investigating the possible interactions between depressive symptoms, choice of antidepressant and treatment with disulfiram.
Predictor variables available at the start of (or becoming available during) the treatment trajectories comprised of gender, age, antidepressant type, co-medication, psychiatric (co-)morbidities according to the DSM classification system and global assessment of functioning (GAF) scores as registered in the DSM classification system. Antidepressant types were grouped into selective serotonin reuptake inhibitors (SSRI), non-selective serotonin reuptake inhibitors (nSSRI), tricyclic antidepressants (TriCA), tetracyclic antidepressants such as mirtazapine and mianserine (TetraCA), monoamine oxidase inhibitors (MAOI) and a remainder category (other), including for example bupropion (for a full overview, see Supplementary Table 1). Co-medication subgroups included in analysis were lithium, antipsychotics, tranquilizers (benzodiazepines) and disulfiram. Disulfiram was included because of its strong interactions with TriCAs21. As information on other forms of treatment running concurrently, such as psychotherapy, was not available in a homogeneous format within and across treatment facilities, we did not incorporate these other treatments as predictor variables. (Co-)morbidities included were depression, anxiety disorder, personality disorder and problems in the social environment. Information on all variables except GAF scores was complete; missing data on GAF scores were imputed using the MICE software in R22.
Acceptability and efficacy are the main categories of outcome variables in antidepressant research. In this study acceptability is operationalized in prescription duration (≥ 5 weeks indicating an “effective” duration, i.e., long enough for a treatment effect to be observed), and continuation of the antidepressant type (the final type prescribed at the mental healthcare facility during consecutive treatment for that patient). Efficacy was measured in terms of change scores on four mental health recovery themes: psychiatric core complaints, general well-being, social functioning and patient’s experience. These last four scores were extracted from doctors’ and nurses’ notes with an NLP model, as described in previous work17. We explicitly chose not to use Hamilton scores as outcomes in this study, as those only focus on symptom reduction and are not systematically registered during routine clinical care in the Netherlands. Concisely, all available clinical notes during the patients’ antidepressant treatment trajectories were screened for sentences concerning moments of change on one of the four themes, mentioned in a correct context (including, for example, “Today, the patient’s mood significantly improved” but not “last year, after their grandmother died, the patient’s mood declined”). The detected words were then combined with a sentiment score (1 or − 1 for each detected word), a positive score indicating a positive change and vice versa, and a mean score for the entire treatment trajectory was calculated for each theme.
At least 24 different antidepressants were prescribed at PG and UMC Utrecht between 2014 and 2020. To ensure faulty entries in the electronic patient files were not included in the dataset, prescriptions where less than half of the minimal therapeutic dose according to the Dutch national standards of care was prescribed were excluded23. These minimal doses as listed May 2020 are summarized in Supplementary Table 2. Further, prescriptions exceeding five times the maximal therapeutic dose were excluded as well, as these can only be faulty entries in the electronic patient records.
Bayesian network analysis
A BN is a representation of the presence and strength of dependencies between all variables in a dataset (these could be predictive and/or causal, see further below). A BN represents qualitative and quantitative information. It includes the structure of the dependencies (sometimes also called relations or associations), often depicted in a schematic figure called a graph, and the corresponding quantitative model built with these dependencies. For example, in the toy BN depicted in Fig. 1, the dependencies between the three variables are indicated with arrows in the graph on the left, and the corresponding model quantification in the form of a conditional probability table is depicted on the right. Learning a BN from data and/ or expert knowledge also follows these two stages: first one performs structure learning, identifying the relevant dependencies and their direction; and secondly parameter learning, estimating the parameters that quantify the dependencies18,24.
Learning the structure of the BN teaches us which other variables in the dataset influence the probability that a variable takes on a certain value. Going back to the toy example, variable B has one incoming arrow, from variable A, indicating that we can write our prediction of the probability that B will occur in terms of A, “B depends on A”. Variable C has two incoming arrows, indicating that “C depends on both A and B”. Conveniently, this dependency also gives us information in the other direction11: if we have observed that B has taken on the value 1, we have a better estimate of which value A has compared to the scenario where we do not have any information at all, which we will also use for making predictions in the final part of this paper.
In general, there are two approaches for structure learning: constraint-based and score-based. Constraint-based learning aims to optimize the learning process to discover conditional dependencies between variables based on statistical inference and hypothesis testing. Score-based structure learning is aimed at optimizing the predictions the model makes for the data (formally: the likelihood of the joint probability distribution of all variables in the dataset). In this paper, both approaches were applied (“pcStable” was used as a constraint-based method, and “tabu” as a score-based method). To reduce the possibility of including spurious dependencies, model averaging was performed with bootstrap resampling, with 100 iterations. To ensure stability of the found associations, only edges that appeared in more than 85% of bootstrap samples were included in the averaged network18. To investigate stability of associations across the two mental healthcare facilities, bootstrapped averaged networks were obtained at both facilities with both methods and compared with respect to found dependencies between variables.
To quantify the model, the current version of the Bayesian network software we used only offers the possibility of incorporating discrete variables as predictors of discrete variables; discrete variables cannot depend on continuous variables, potentially limiting the structures that can be found. To account for this, all variables were converted to binary variables. Age and GAF scores were compared to their respective median value at PG to ensure comparability across locations, with age being converted to older or younger than 48 (the median age in the PG data), and GAF being higher or lower than 50. Antidepressant prescriptions durations were converted to ≥ 5 weeks or < 5 weeks (minimum time for an expected clinical effect), and mean sentiment scores being positive (≥ 0) or negative (< 0).
Model parameters were fitted for the average model according to their maximum likelihood estimators and the resulting conditional probability tables were recorded. A toy example of such a table is included in Fig. 1. For example, because B depends on A, it can be observed that the probability of B occurring increases from 0.4 to 0.7 if we know A has occurred. C depends on both A and B, and it can also be observed that the model captures an interaction between A and B: in the absence of B, the effect of A on C disappears. Such model predictions in the presence or absence of information on specific hypothetical patient and treatment characteristics were also generated for the final network using the logic sampling functionality in the bnlearn package and compared to expert (FS) knowledge.
This study (number 22–705/DB) was assessed and approved to not fall under the scope of the Medical Research Involving Human Subjects Act (WMO) by MREC NedMec: a recognized medical research ethics committee to which the Antoni van Leeuwenhoek, the Princess Máxima Center for pediatric oncology and the UMC Utrecht are affiliated. Complying with the guidelines issued by the MREC NedMec for research not falling under the Medical Research Involving Human Subjects Act (WMO), informed consent was waived by a quality officer from the research and ethics board of the Brain Center of UMC Utrecht on behalf of the MREC NedMec. It was deemed a disproportional effort to obtain informed consent of each individual patient because of the retrospective nature of the study and number of patients, of which many could not be contacted anymore because they continued their treatment elsewhere. However, the centers where this study was carried out uses an opt-out policy for patients who do not want their data to be used for research. Only data from patients who did not object to the use of their routinely collected electronic health record data were analyzed. According to Dutch national guidelines, the board of each university medical center is responsible for research quality control26. For this study, the protocol was approved by a quality officer from the research and ethics board of the Brain Center of UMC Utrecht, appointed by the board of UMC Utrecht. This study conforms to the declaration of Helsinki for ethical principles involving human participants. To assure patients’ privacy data were de-identified, for which the DEDUCE software was used27.
4808 and 735 trajectories of patients with first-time inpatient antidepressant prescriptions were included in PG and UMCU respectively. In Table 1 summary statistics of included trajectories are depicted. At PG, there is generally a long outpatient follow-up of patients, as the facility offers a wide range of levels of care: the mean period during which follow-up treatment was given at PG after the start of a first inpatient antidepressant trajectory was 1175 days (median follow-up duration: 866 days). At UMCU however, care is very specialized and patients are referred to other care facilities after dismissal: 1 month after dismissal, for 261 trajectories where patients were released into ambulatory care there still was an (ambulatory) care path at UMCU. For 174 trajectories, patients were referred to inpatient care at another facility. This resulted in a mean (inpatient) follow up duration of only 52 days after the start of antidepressant prescriptions.
Duration and continuation
The average prescription duration of the first-time antidepressant trajectories at PG was 163 days and 109 days at UMCU. At PG, 33.7% of patients switched to a different antidepressant type during follow-up, whereas at UMCU, only 10.6% of patients switched. This could partially be explained by the shorter follow-up period at UMCU, or the fact that more patients at UMCU had a history of ineffective antidepressant use. Note that the average prescription duration at UMCU exceeds the mean follow-up time, as many patients were dismissed with a prescription to continue their antidepressant use as at home or in another clinic.
Outcome measures are summarized in detail for each type of initially prescribed antidepressant in Supplementary Table 3. At both facilities, patients were most likely to continue their prescription when they started with SSRI or TriCA. Patients were most likely to switch when they started with an “other” type of antidepressant (often bupropion), a MAO inhibitor (UMCU) or a tetracyclic antidepressant (PG). Prescription durations were also the shortest for tetracyclic antidepressants, and relatively long for MAO inhibitors and nSSRIs.
In Fig. 2 (constructed using the ggalluvial package28), antidepressant type prescription switches for patients who did not continue their initial type(s) of antidepressant are depicted. At PG, SSRI is the biggest group that patients switch to, and at UMCU, patients more often switch to a tricyclic antidepressant. At UMCU, MAO inhibiters form a significant fraction of follow-up medication, including patients that tried an nSSRI, SSRI or tricyclic antidepressant first.
Mental health recovery outcome measures
Examples of (translated) found sentences for each of the analyzed themes, core complaints, social functioning, well-being and patient’s experience, are “Anxiety complaints less than Tuesday last week and manageable”, “Patient says they have the feeling they are improving every day”, “Patient likes working more, because it improves daily structure” and “Patient experiences more peaceful feelings”. At PG, on average 4.06, 1.65, 4.04 and 5.69 sentences indicating a moment of change with respect to complaints, social functioning, well-being and experience were detected during antidepressant prescription periods. At UMCU, 11.2, 4.63, 10.0 and 16.7 sentences were on average detected for the respective themes. A possible explanation for this difference could be the nature of the patient reports at both centers: at the UMCU, follow-up was entirely inpatient, reflected in a higher mean number of days with available clinical notes (34) and total length of all clinical notes combined (mean 82.691 characters per patient). At PG the follow-up was mostly outpatient, where clinical notes were on average available on 28 days with a mean total length of 26.674 characters per patient.
With the constraint-based algorithm, the bootstrapped averaged network contained 24 arcs connecting the variables in the network for the PG data (Fig. 3). The UMCU bootstrapped averaged network only contained 9 arcs, of which 2 were also present in the PG network. Interestingly, many dependencies were found between the text-mined outcome measures and prescription duration nodes, indicating that trajectory outcomes are tightly intertwined. In the PG data, the use of benzodiazepines and antipsychotics during antidepressant prescriptions were directly linked to these outcomes. Whether a patient switched antidepressant types was directly dependent on TetraCA prescriptions and a DSM diagnosis of a (type of) depressive disorder.
The analysis was repeated with a score-based algorithm (tabu). In the PG data, 28 dependencies were found in the bootstrapped averaged network (see Fig. 4), of which 19 overlapped with the constraint-based network (irrespective of the direction of the dependency). In the UMCU data, only 9 dependencies were found, of which 5 overlapped with the PG network. The direct dependencies between benzodiazepines, antipsychotic prescriptions and the outcome measures remained present. A direct effect of tricyclic antidepressants on the probability of switching to another type of antidepressant was found in this network, instead of an indirect effect through the DSM diagnosis of a specific depressive disorder, and no dependency on the prescription of tetracyclic antidepressants was found.
Found dependencies and comparison to expert opinion
Below a few examples are given of hypothetical patients and quantification of the dependencies found in the network. These patterns could give some interesting pointers for future confirmatory research. Note that even though sometimes variables are not direct neighbors in the network, they can depend on each other indirectly, in the absence of information on other nodes. For example, if we are unsure whether we are going to diagnose a patient as having depressive disorder as a main diagnosis, the patient’s age and DSM classification for social problems can give us extra information about whether the patient will switch antidepressants according to the score-based network. When we decide on the patient’s depression diagnosis, these paths become “blocked” and these variables do not give us extra information on a possible future switch anymore29.
Building on this example, we see that the network predicts that for patients with social problems that are also prescribed antipsychotics, the probability of choosing the correct antidepressant type (not having the switch) increases with 6% when they are prescribed a TriCA instead of another antidepressant type. This could potentially be explained by the fact that the prescription of anti-psychotics suggests severe, possibly psychotic, depression and TriCAs are more effective in more severe depression states, possibly due to anticholinergic effects that more strongly reduce stress or anxiety. For patients without social problems and without antipsychotics prescriptions, this “profit” after choosing a TriCA is even bigger and increases to 11%. A possible rationale could be the beneficial effect of TriCAs being explained by its anticholinergic, sedating properties, which would have a smaller effect on patients already taking antipsychotics30.
Focusing on the other outcome measures, we see that these are completely determined by each other and the decision to prescribe benzodiazepines and antipsychotics. If our hypothetical patient is treated with both benzodiazepines and antipsychotics, the probability of sufficient prescription duration to experience a clinical effect would be 76%. The probability of well-being having a positive sentiment score in clinical notes would be 52%. However, if our hypothetical patient is not going to take benzodiazepines and antipsychotics, the probability of continuing the initial antidepressant prescription beyond 5 weeks drops to 52%, and the probability of positive well-being scores drops to 46%. There appears to exist some interaction between benzodiazepine and antipsychotic use that strengthens or dominates the effect of the antidepressant prescribed which makes switching less necessary.
The outcome measures prescription duration, core complaints, social functioning, well-being and patient experience were tightly connected in the found networks. For example, a net positive well-being score improved the probability of obtaining a positive score on the core complaints domain with 15.2%. Incorporating the different domains in the network also allows for possible personalized recommendations in future decision support tools. For example, in the score-based network, adding benzodiazepine and antipsychotics to a treatment regimen only improved the probability of a positive net mean score on the complaints domain with 1.4%, but the social domain score improved with 6.9%. A patient that is especially interested in improving social functioning might find information on these outcome domains presented separately in a decision support tool especially useful, in contrast to a single pooled outcome measure.
This work in this manuscript concerned using Bayesian network analysis combined with NLP for pattern discovery in patient characteristics, treatment choices and outcomes during antidepressant trajectories. Several interesting trends were observed in the routinely collected clinical data studied. In the secondary and tertiary care settings studied, antidepressant choices had a higher continuation rate (66% and 89%) than expected from literature. Bayesian networks based on the data from PG, the secondary care mental healthcare facility, revealed 28 (predictive) dependencies between treatment choices, patient characteristics and outcomes. At UMCU, the tertiary care mental healthcare facility, most of these dependencies could not be replicated.
We have shown that using NLP to preprocess routinely collected clinical data can allow pattern discovery through Bayesian network analysis in a relatively big corpus of patient data. The combination with NLP enables large-scale studies without burdening clinical staff with extra administrative tasks for research purposes, such as separately registering patient prescriptions and specific treatment outcome measures. These tools could be combined in future research for investigating similar exploratory research questions. The possibility of using Bayesian network analysis for confirmatory research is discussed further below.
In patients who switched their antidepressant type during follow-up, switches were quite evenly distributed over other antidepressant types, although switching occurred more often after prescribing tetracyclic antidepressants or “other” antidepressants (for example bupropion) at PG. Interestingly, these types of antidepressants, frequently prescribed as third-line therapy options, appear slightly less effective in actual clinical practice. This leads to the hypothesis that specific subtypes of depression, perhaps not studied in clinical trials, must have different antidepressant working mechanisms. This makes it even more relevant to search for patterns that can predict the right prescription in an early phase of treatment.
Unfortunately, follow-up at the tertiary care facility UMCU was limited, possibly explaining the absence of most dependencies found at PG. As the network we are estimating here appears to be sparse and we do not expect variables in the network to have more than five predictive factors, the 735 patient trajectories used for learning at the tertiary care facility should have sufficed18, thus not explaining the missing dependencies. Another possible explanation could be the specialized nature of the care given at UMCU, with the different types of patients really having another network graph underlying the antidepressant trajectory data, where perhaps different variables should be included.
Patterns discovered in this study should be purely interpreted in an exploratory manner, as Bayesian networks require several assumptions to be met to enable causal interpretations18. Two important assumptions are that there should be no selection bias in the data, and there should be no (hidden) confounding variables. These are two assumptions that are very difficult to verify when working with retrospective data. Exploratory analysis did not show a confounding effect of treatment location on model outcomes (data not shown), but to truly fulfill these assumptions a randomized controlled trial should be performed where patients are randomly allocated to a (combination of) antidepressant(s). Such a trial would probably be unattainable in clinical practice because of ethical constraints (assigning a MAO inhibitor with severe potential side effects to someone with mild symptoms of depression, for example).
Nevertheless, unlocking additional data sources could already potentially improve the quality and value of exploratory analyses with the goal of pattern discovery such as the current study. We studied first-time inpatient antidepressant treatment trajectories, but limited information on the trajectory leading up to and following this inpatient treatment period, for example from general practitioners, was available in the data collected during inpatient care. It could possibly add a lot of value to incorporate antidepressant types tried before and after inpatient treatment into the model. Linking electronic patient files between general practitioners and mental health care facilities would enable this, but is currently not standard in the Netherlands. Future studies should also consider non-pharmaceutical therapies such as psychotherapy. Further, as selecting an antidepressant, especially in the inpatient setting, is a process where lots of factors, such as specific symptoms, side effects, earlier use of antidepressants, and patient’s preferences can be considered (at least according to Dutch guidelines)31, individual psychiatrists could potentially influence the choice and thus outcomes of antidepressant treatment32. Therefore, studies on the interplay between the specific psychiatrist prescribing the antidepressant, treatment choices made and treatment outcomes are warranted.
To formalize (confirm) the patterns found in the larger samples, a prospective study could eventually be conducted. This would enable precisely registering which antidepressants were actually administered, in addition to knowing which were prescribed. Further, this would allow a comparison with standard measuring instruments of depressive disorder. Such a prospective study could also enable the opportunity to include more detailed information on different symptoms patients are experiencing, and possible side effects of antidepressants. Since side effects are an important cause of discontinuation of antidepressants, the incorporation of different types of side effects could be of great value in the decision making about the type of antidepressant and medication adherence. Cipriani et al.33 found significant differences between types of antidepressants and continuation rates and highlighted the importance of strategies to distinguish differences in response to antidepressants on an individual level.
When it is not possible to collect this more detailed information on symptoms or side effects, possibly because of the high administrative burden of a prospective study with large sample sizes, feature extraction through natural language processing could potentially offer a solution. The NLP model used in this study was specifically developed to model broadly defined treatments for diverse groups of patients. More symptom-specific NLP models such as MedCAT could be used to extract specific symptoms or side-effects from routinely collected clinical notes34. A recent pilot study on using MedCAT for extracting information on cognitive side effects during depression treatment with electroconvulsive therapy showed promising results35. These approaches with reuse of clinical data could be of great value for personalized medicine because it will enable learning for a wider spectrum of patient types. For personalized modelling this is needed because the current strict selection criteria for patients to be included in clinical trials limits the extrapolation of study outcomes to individuals in daily practice5.
In the future, networks like the one described in this study could be translated to decision support tools in clinical practice. Individual patients could for example choose the outcomes they are most interested in, and the characteristics that influence the predicted outcomes for individual patients the most could be highlighted36. A systematic review of Samalin et al.37 showed positive effects of shared decision making interventions on medication adherence and depression outcome. A personalized tool to facilitate this process would be of great value37. Essential for such a decision support tool is the incorporation of prospectively collected data, and the incorporation of uncertainty estimates. Recent advances in the field of statistics have revealed new possibilities to give these kind of estimates, for example confidence sequences for discrete (conditional) independence relations that are robust under sequential testing38. Incorporating these into a Bayesian-network based clinical decision tool that is prospectively updated would enable offering patients and clinicians robust and up-to-date estimates. Hopefully, the techniques for finding new patterns in routinely collected clinical data presented in this work will ultimately contribute to the development of such new support tools.
The data that support the findings of this study are available from UMCU and PG but restrictions apply to the availability of these data, which were used under license for the current study, and so are not publicly available. Data are however available from the authors (contact RT, email@example.com or KH, firstname.lastname@example.org) upon reasonable request and with permission of PG. Note: because of the nature of the data transfer agreement involved and the privacy regulations that are currently in place, it is not possible to transfer the data, but for example for replication purposes a guest appointment at UMCU and PG to analyze the data locally could be requested upon reasonable request.
Rybak, Y. E. et al. Treatment-resistant major depressive disorder: Canadian expert consensus on definition and assessment. Depress. Anxiety 38, 456–467. https://doi.org/10.1002/da.23135 (2021).
Rush, A. J. et al. Acute and longer-term outcomes in depressed outpatients requiring one or several treatment steps: A STAR* D report. Am. J. Psychiatry 163, 1905–1917 (2006).
Gaynes, B. N. et al. What did STAR* D teach us? Results from a large-scale, practical, clinical trial for patients with depression. Psychiatr. Serv. 60, 1439–1445 (2009).
Whiteford, H. A., Ferrari, A. J., Degenhardt, L., Feigin, V. & Vos, T. The global burden of mental, neurological and substance use disorders: An analysis from the Global Burden of Disease Study 2010. PLoS ONE 10, e0116820. https://doi.org/10.1371/journal.pone.0116820 (2015).
Bayes, A. & Parker, G. How to choose an antidepressant medication. Acta Psychiatr. Scand. 139, 280–291 (2019).
Pradier, M. F., McCoy, T. H. Jr., Hughes, M., Perlis, R. H. & Doshi-Velez, F. Predicting treatment dropout after antidepressant initiation. Transl. Psychiatry 10, 1–8 (2020).
Kirtley, O. J., van Mens, K., Hoogendoorn, M., Kapur, N. & de Beurs, D. Translating promise into practice: A review of machine learning in suicide research and prevention. Lancet Psychiatry 9, 243–252. https://doi.org/10.1016/s2215-0366(21)00254-6 (2022).
Ermers, N. J., Hagoort, K. & Scheepers, F. E. The predictive validity of machine learning models in the classification and treatment of major depressive disorder: State of the art and future directions. Front. Psychiatry 11, 472 (2020).
Kundu, S. AI in medicine must be explainable. Nat. Med. 27, 1328–1328 (2021).
Borsboom, D. & Cramer, A. O. Network analysis: An integrative approach to the structure of psychopathology. Annu. Rev. Clin. Psychol. 9, 91–121. https://doi.org/10.1146/annurev-clinpsy-050212-185608 (2013).
Scutari, M. & Strimmer, K. Introduction to Graphical Modelling. Handbook of Statistical Systems Biology, 237 (2011).
Beard, C. et al. Network analysis of depression and anxiety symptom relationships in a psychiatric sample. Psychol. Med. 46, 3359–3369 (2016).
Lee, J., Henning, R. & Cherniack, M. Correction workers’ burnout and outcomes: A Bayesian network approach. Int. J. Environ. Res. Public Health 16, 282 (2019).
McNally, R., Mair, P., Mugno, B. & Riemann, B. Co-morbid obsessive–compulsive disorder and depression: A Bayesian network approach. Psychol. Med. 47, 1204–1214 (2017).
de Beurs, D. et al. A network perspective on suicidal behavior: Understanding suicidality as a complex system. Suicide Life Threat. Behav. 51, 115–126. https://doi.org/10.1111/sltb.12676 (2021).
Kroeze, R. et al. Personalized feedback on symptom dynamics of psychopathology: A proof-of-principle study. J. Person-Oriented Res. 3, 1 (2017).
Turner, R. J. et al. Information extraction from free text for aiding transdiagnostic psychiatry: constructing NLP pipelines tailored to clinicians’ needs. BMC Psychiatry 22, 407. https://doi.org/10.1186/s12888-022-04058-z (2022).
Briganti, G., Scutari, M. & McNally, R. J. A tutorial on bayesian networks for psychopathology researchers. Psychol. Methods (2022).
American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders 4th edn. (American Psychiatric Association, 1994).
Naglich, A. C., Lin, A., Wakhlu, S. & Adinoff, B. H. Systematic review of combined pharmacotherapy for the treatment of alcohol use disorder in patients without comorbid conditions. CNS Drugs 32, 13–31. https://doi.org/10.1007/s40263-017-0484-2 (2018).
Ciraulo, D. A., Barnhill, J. & Boxenbaum, H. Pharmacokinetic interaction of disulfiram and antidepressants. Am. J. Psychiatry 142, 1373–1374. https://doi.org/10.1176/ajp.142.11.1373 (1985).
Van Buuren, S. & Groothuis-Oudshoorn, K. mice: Multivariate imputation by chained equations in R. J. Stat. Softw. 45, 1–67 (2011).
Dutch National Healthcare Institute. Farmacotherapeutisch Kompas, https://www.farmacotherapeutischkompas.nl/ (2020).
Scutari, M. Learning Bayesian Networks with the bnlearn R Package. J. Stat. Softw. 35, 1–22 (2010).
Epskamp, S., Cramer, A. O., Waldorp, L. J., Schmittmann, V. D. & Borsboom, D. qgraph: Network visualizations of relationships in psychometric data. J. Stat. Softw. 48, 1–18 (2012).
Netherlands Federation of University Medical Centers. Guideline Quality assurance of research involving human subjects, https://www.nfu.nl/sites/default/files/2021-01/21.00024_Guideline_Quality_assurance_of_research_involving_human_subjects_dec20_0.pdf (2020).
Menger, V., Scheepers, F., van Wijk, L. M. & Spruit, M. DEDUCE: A pattern matching method for automatic de-identification of Dutch medical text. Telemat. Inform. 35, 727–736 (2018).
Brunson, J. C. & Read, Q. D. ggalluvial: Alluvial Plots in 'ggplot2'. R package version 0.12.3., http://corybrunson.github.io/ggalluvial/. (2020).
Peters, J., Janzing, D. & Schölkopf, B. Elements of Causal Inference: Foundations and Learning Algorithms (The MIT Press, 2017).
Schneider, J., Patterson, M. & Jimenez, X. F. Beyond depression: Other uses for tricyclic antidepressants. Clevel. Clin. J. Med. 86, 807–814 (2019).
Dutch Psychiatry Association (NvvP). Biologische behandelingen bij depressie, https://richtlijnendatabase.nl/richtlijn/depressie/chronische_en_therapieresistente_depressie/biologische_behandelingen_bij_depressie.htmls (2013).
Zimmerman, M. et al. Which factors influence psychiatrists’ selection of antidepressants?. Am. J. Psychiatry 161, 1285–1289. https://doi.org/10.1176/appi.ajp.161.7.1285 (2004).
Cipriani, A. et al. Comparative efficacy and acceptability of 21 antidepressant drugs for the acute treatment of adults with major depressive disorder: A systematic review and network meta-analysis. Lancet 391, 1357–1366. https://doi.org/10.1016/s0140-6736(17)32802-7 (2018).
Kraljevic, Z. et al. MedCAT--medical concept annotation tool. arXiv preprint arXiv:1912.10166 (2019).
Schepper, C. W. M., Turner, R. J., Schaijk, L. & Hagoort, K. in Bijwerkingen van ECT detecteren in klinische teksten, conference presentation at NVVP Voorjaarscongres 2022 (Maastricht, The Netherlands, 2022).
Sevilla, J. Finding, scoring and explaining arguments in Bayesian networks. arXiv preprint arXiv:2112.00799 (2021).
Samalin, L. et al. Shared decision-making: A systematic review focusing on mood disorders. Curr. Psychiatry Rep. 20, 1–11 (2018).
Turner, R., Ly, A. & Grünwald, P. Generic e-variables for exact sequential k-sample tests that allow for optional stopping. arXiv preprint arXiv:2106.02693 (2021).
This work is part of the Enabling Personalized Interventions (EPI) project, which is supported by the Dutch Research Council (NWO) in the Commit2 Data—Data2Person program under contract 628.011.028. We especially thank Roel van Est and Martijn Groen for all the help with data collection at PG, and Zimbo Boudewijns for help with data collection and construction of a data management plan at UMCU. We further thank Eline Nap, Peter Grünwald, Aki Härmä, and Kees de Schepper for many insightful discussions about the manuscript.
The authors declare no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
About this article
Cite this article
Turner, R.J., Hagoort, K., Meijer, R.J. et al. Bayesian network analysis of antidepressant treatment trajectories. Sci Rep 13, 8428 (2023). https://doi.org/10.1038/s41598-023-35508-7