Skip to main content
Top

Open Access 29-03-2024 | Psychotherapy | Original Article

Measuring Alliance and Symptom Severity in Psychotherapy Transcripts Using Bert Topic Modeling

Authors: Christopher Lalk, Tobias Steinbrenner, Weronika Kania, Alexander Popko, Robin Wester, Jana Schaffrath, Steffen Eberhardt, Brian Schwartz, Wolfgang Lutz, Julian Rubel

Published in: Administration and Policy in Mental Health and Mental Health Services Research

Login to get access

Abstract

We aim to use topic modeling, an approach for discovering clusters of related words (“topics”), to predict symptom severity and therapeutic alliance in psychotherapy transcripts, while also identifying the most important topics and overarching themes for prediction. We analyzed 552 psychotherapy transcripts from 124 patients. Using BERTopic (Grootendorst, 2022), we extracted 250 topics each for patient and therapist speech. These topics were used to predict symptom severity and alliance with various competing machine-learning methods. Sensitivity analyses were calculated for a model based on 50 topics, LDA-based topic modeling, and a bigram model. Additionally, we grouped topics into themes using qualitative analysis and identified key topics and themes with eXplainable Artificial Intelligence (XAI). Symptom severity could be predicted with highest accuracy by patient topics (\(r\)=0.45, 95%-CI 0.40, 0.51), whereas alliance was better predicted by therapist topics (\(r\)=0.20, 95%-CI 0.16, 0.24). Drivers for symptom severity were themes related to health and negative experiences. Lower alliance was correlated with various themes, especially psychotherapy framework, income, and everyday life. This analysis shows the potential of using topic modeling in psychotherapy research allowing to predict several treatment-relevant metrics with reasonable accuracy. Further, the use of XAI allows for an analysis of the individual predictive value of topics and themes. Limitations entail heterogeneity across different topic modeling hyperparameters and a relatively small sample size.
Appendix
Available only for authorised users
Footnotes
1
We also tested a combined model with patient and therapist topics, which did not improve the performance.
 
Literature
go back to reference Ægisdóttir, S., White, M. J., Spengler, P. M., Maugherman, A. S., Anderson, L. A., Cook, R. S., Nichols, C. N., Lampropoulos, G. K., Walker, B. S., Cohen, G., & Rush, J. D. (2006). The Meta-Analysis of Clinical Judgment Project: Fifty-six years of Accumulated Research on Clinical Versus Statistical Prediction. The Counseling Psychologist, 34(3), 341–382. https://doi.org/10.1177/0011000005285875.CrossRef Ægisdóttir, S., White, M. J., Spengler, P. M., Maugherman, A. S., Anderson, L. A., Cook, R. S., Nichols, C. N., Lampropoulos, G. K., Walker, B. S., Cohen, G., & Rush, J. D. (2006). The Meta-Analysis of Clinical Judgment Project: Fifty-six years of Accumulated Research on Clinical Versus Statistical Prediction. The Counseling Psychologist, 34(3), 341–382. https://​doi.​org/​10.​1177/​0011000005285875​.CrossRef
go back to reference Blei, D. M., Ng, A. Y., & Jordan, M. I. (2003). Latent dirichlet allocation. Journal of Machine Learning Research, 3(Jan), 993–1022. Blei, D. M., Ng, A. Y., & Jordan, M. I. (2003). Latent dirichlet allocation. Journal of Machine Learning Research, 3(Jan), 993–1022.
go back to reference Burkhardt, H., Pullmann, M., Hull, T., Aren, P., & Cohen, T. (2022). Comparing emotion feature extraction approaches for predicting depression and anxiety. In A. Zirikly, D. Atzil-Slonim, M. Liakata, S. Bedrick, B. Desmet, M. Ireland, A. Lee, S. MacAvaney, M. Purver, R. Resnik, & A. Yates (Eds.), Proceedings of the Eighth Workshop on Computational Linguistics and Clinical Psychology (pp. 105–115). Association for Computational Linguistics. https://doi.org/10.18653/v1/2022.clpsych-1.9. Burkhardt, H., Pullmann, M., Hull, T., Aren, P., & Cohen, T. (2022). Comparing emotion feature extraction approaches for predicting depression and anxiety. In A. Zirikly, D. Atzil-Slonim, M. Liakata, S. Bedrick, B. Desmet, M. Ireland, A. Lee, S. MacAvaney, M. Purver, R. Resnik, & A. Yates (Eds.), Proceedings of the Eighth Workshop on Computational Linguistics and Clinical Psychology (pp. 105–115). Association for Computational Linguistics. https://​doi.​org/​10.​18653/​v1/​2022.​clpsych-1.​9.
go back to reference Castonguay, L. G., Barkham, M., Lutz, W., & McAleavey, A. A. (2013). Practice oriented research: Approaches and applications. In M. J. Lambert (Ed.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (6th ed., pp. 85–133). Wiley Castonguay, L. G., Barkham, M., Lutz, W., & McAleavey, A. A. (2013). Practice oriented research: Approaches and applications. In M. J. Lambert (Ed.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (6th ed., pp. 85–133). Wiley
go back to reference Crits-Christoph, P., Gibbons, M. B. C., & Mukherjee, D. (2021). Psychotherapy Process-Outcome Research. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 298–340). Wiley. Crits-Christoph, P., Gibbons, M. B. C., & Mukherjee, D. (2021). Psychotherapy Process-Outcome Research. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 298–340). Wiley.
go back to reference Deerwester, S., Dumais, S. T., Furnas, G. W., Landauer, T. K., & Harshman, R. (1990). Indexing by latent semantic analysis. Journal of the American Society for Information Science, 41(6), 391–407.CrossRef Deerwester, S., Dumais, S. T., Furnas, G. W., Landauer, T. K., & Harshman, R. (1990). Indexing by latent semantic analysis. Journal of the American Society for Information Science, 41(6), 391–407.CrossRef
go back to reference Delgadillo, J., de Jong, K., Lucock, M., Lutz, W., Rubel, J., Gilbody, S., Ali, S., Aguirre, E., Appleton, M., Nevin, J., O’Hayon, H., Patel, U., Sainty, A., Spencer, P., & McMillan, D. (2018). Feedback-informed treatment versus usual psychological treatment for depression and anxiety: A multisite, open-label, cluster randomised controlled trial. The Lancet Psychiatry, 5(7), 564–572. https://doi.org/10.1016/S2215-0366(18)30162-7.CrossRefPubMed Delgadillo, J., de Jong, K., Lucock, M., Lutz, W., Rubel, J., Gilbody, S., Ali, S., Aguirre, E., Appleton, M., Nevin, J., O’Hayon, H., Patel, U., Sainty, A., Spencer, P., & McMillan, D. (2018). Feedback-informed treatment versus usual psychological treatment for depression and anxiety: A multisite, open-label, cluster randomised controlled trial. The Lancet Psychiatry, 5(7), 564–572. https://​doi.​org/​10.​1016/​S2215-0366(18)30162-7.CrossRefPubMed
go back to reference Derogatis, L. R., & Melisaratos, N. (1983). The brief Symptom Inventory: An introductory report. Psychological Medicine, 13(3), 595–605.CrossRefPubMed Derogatis, L. R., & Melisaratos, N. (1983). The brief Symptom Inventory: An introductory report. Psychological Medicine, 13(3), 595–605.CrossRefPubMed
go back to reference First, M. B., & Gibbon, M. (2004). The structured clinical interview for DSM-IV axis I disorders (SCID-I) and the structured clinical interview for DSM-IV axis II disorders (SCID-II). In M. J. Hilsenroth & D. L. Segal (Eds.), Comprehensive handbook of psychological assessment: Vol. 2 Personality assessment (pp. 134–143). Wiley. https://psycnet.apa.org/record/2004-12821-011. First, M. B., & Gibbon, M. (2004). The structured clinical interview for DSM-IV axis I disorders (SCID-I) and the structured clinical interview for DSM-IV axis II disorders (SCID-II). In M. J. Hilsenroth & D. L. Segal (Eds.), Comprehensive handbook of psychological assessment: Vol. 2 Personality assessment (pp. 134–143). Wiley. https://​psycnet.​apa.​org/​record/​2004-12821-011.​
go back to reference Goldberg, S. B., Flemotomos, N., Martinez, V. R., Tanana, M. J., Kuo, P. B., Pace, B. T., Villatte, J. L., Georgiou, P. G., van Epps, J., Imel, Z. E., Narayanan, S. S., & Atkins, D. C. (2020). Machine learning and natural language processing in psychotherapy research: Alliance as example use case. Journal of Counseling Psychology, 67(4), 438–448. https://doi.org/10.1037/cou0000382.CrossRefPubMedPubMedCentral Goldberg, S. B., Flemotomos, N., Martinez, V. R., Tanana, M. J., Kuo, P. B., Pace, B. T., Villatte, J. L., Georgiou, P. G., van Epps, J., Imel, Z. E., Narayanan, S. S., & Atkins, D. C. (2020). Machine learning and natural language processing in psychotherapy research: Alliance as example use case. Journal of Counseling Psychology, 67(4), 438–448. https://​doi.​org/​10.​1037/​cou0000382.CrossRefPubMedPubMedCentral
go back to reference Hill, C. E., & Knox, S. (2021). Essentials of consensual qualitative research. Essentials of qualitative methods series. American Psychological Association. Hill, C. E., & Knox, S. (2021). Essentials of consensual qualitative research. Essentials of qualitative methods series. American Psychological Association.
go back to reference Holzinger, A., Saranti, A., Molnar, C., Biecek, P., & Samek, W. (2022). Explainable AI Methods - A Brief Overview. In A. Holzinger (Ed.), Lecture notes in computer science Lecture notes in artificial intelligence: Vol. 13200. xxAI - beyond explainable AI: International workshop, held in conjunction with ICML 2020, July 18, 2020, Vienna, Austria: revised and extended papers (Vol. 13200, pp. 13–38). Springer. https://doi.org/10.1007/978-3-031-04083-2_2. Holzinger, A., Saranti, A., Molnar, C., Biecek, P., & Samek, W. (2022). Explainable AI Methods - A Brief Overview. In A. Holzinger (Ed.), Lecture notes in computer science Lecture notes in artificial intelligence: Vol. 13200. xxAI - beyond explainable AI: International workshop, held in conjunction with ICML 2020, July 18, 2020, Vienna, Austria: revised and extended papers (Vol. 13200, pp. 13–38). Springer. https://​doi.​org/​10.​1007/​978-3-031-04083-2_​2.
go back to reference Lambert, M. J. (2021). The Efficacy and Effectiveness of Psychotherapy. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 169–218). Wiley. Lambert, M. J. (2021). The Efficacy and Effectiveness of Psychotherapy. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 169–218). Wiley.
go back to reference Lundberg, S. M., & Lee, S. I. (2017). A Unified Approach to Interpreting Model Predictions. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Eds.), Advances in Neural Information Processing Systems 30 (pp. 4765–4774). Curran Associates, Inc. Lundberg, S. M., & Lee, S. I. (2017). A Unified Approach to Interpreting Model Predictions. In I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, & R. Garnett (Eds.), Advances in Neural Information Processing Systems 30 (pp. 4765–4774). Curran Associates, Inc.
go back to reference Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S. I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 2522–5839.CrossRef Lundberg, S. M., Erion, G., Chen, H., DeGrave, A., Prutkin, J. M., Nair, B., Katz, R., Himmelfarb, J., Bansal, N., & Lee, S. I. (2020). From local explanations to global understanding with explainable AI for trees. Nature Machine Intelligence, 2(1), 2522–5839.CrossRef
go back to reference Lutz, W., Castonguay, L. G., Lambert, M., & Barkham, M. (2021a). Traditions and New Beginnings: Historical and Current Perspectives on Research in Psychotherapy and Behavior Change. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 3–18). Wiley. Lutz, W., Castonguay, L. G., Lambert, M., & Barkham, M. (2021a). Traditions and New Beginnings: Historical and Current Perspectives on Research in Psychotherapy and Behavior Change. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 3–18). Wiley.
go back to reference Lutz, W., de Jong, K., Rubel, J. A., & Delgadillo, J. (2021b). Measuring, predicting, and tracking change in psychotherapy. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 89–133). Wiley. Lutz, W., de Jong, K., Rubel, J. A., & Delgadillo, J. (2021b). Measuring, predicting, and tracking change in psychotherapy. In M. Barkham, W. Lutz, & L. G. Castonguay (Eds.), Bergin and Garfield’s Handbook of Psychotherapy and Behavior Change (50th ed., pp. 89–133). Wiley.
go back to reference McInnes, L., & Healy, J. (2017). Accelerated Hierarchical Density Based Clustering. In Data Mining Workshops (ICDMW), 2017 IEEE International Conference on (pp. 33–42). IEEE. McInnes, L., & Healy, J. (2017). Accelerated Hierarchical Density Based Clustering. In Data Mining Workshops (ICDMW), 2017 IEEE International Conference on (pp. 33–42). IEEE.
go back to reference Miao, Y., Yu, L., & Blunsom, P. (2016). Neural Variational Inference for Text Processing. In M. F. Balcan & K. Q. Weinberger (Eds.), Proceedings of Machine Learning Research, Proceedings of The 33rd International Conference on Machine Learning (pp. 1727–1736). PMLR. https://proceedings.mlr.press/v48/miao16.html. Miao, Y., Yu, L., & Blunsom, P. (2016). Neural Variational Inference for Text Processing. In M. F. Balcan & K. Q. Weinberger (Eds.), Proceedings of Machine Learning Research, Proceedings of The 33rd International Conference on Machine Learning (pp. 1727–1736). PMLR. https://​proceedings.​mlr.​press/​v48/​miao16.​html.
go back to reference Montani, I., Honnibal, M., Boyd, A., van Landeghem, S., & Peters, H. (2023). explosion/spaCy: v3.7.2: Fixes for APIs and requirements [Computer software]. Zenodo. Montani, I., Honnibal, M., Boyd, A., van Landeghem, S., & Peters, H. (2023). explosion/spaCy: v3.7.2: Fixes for APIs and requirements [Computer software]. Zenodo.
go back to reference Reese, R. J., Gillaspy, J. A., Owen, J. J., Flora, K. L., Cunningham, L. C., Archie, D., & Marsden, T. (2013). The influence of demand characteristics and social desirability on clients’ ratings of the therapeutic alliance. Journal of Clinical Psychology, 69(7), 696–709. https://doi.org/10.1002/jclp.21946.CrossRefPubMed Reese, R. J., Gillaspy, J. A., Owen, J. J., Flora, K. L., Cunningham, L. C., Archie, D., & Marsden, T. (2013). The influence of demand characteristics and social desirability on clients’ ratings of the therapeutic alliance. Journal of Clinical Psychology, 69(7), 696–709. https://​doi.​org/​10.​1002/​jclp.​21946.CrossRefPubMed
go back to reference Rehurek, R., & Sojka, P. (2010). Software Framework for Topic Modelling with Large Corpora. In Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks (pp. 45–50). ELRA. Rehurek, R., & Sojka, P. (2010). Software Framework for Topic Modelling with Large Corpora. In Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks (pp. 45–50). ELRA.
go back to reference Reimers, N., & Gurevych, I. (2019). Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics. http://arxiv.org/abs/1908.1008. Reimers, N., & Gurevych, I. (2019). Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics. http://​arxiv.​org/​abs/​1908.​1008.
go back to reference Whipple, J. L., Lambert, M. J., Vermeersch, D. A., Smart, D. W., Nielsen, S. L., & Hawkins, E. J. (2003). Improving the effects of psychotherapy: The use of early identification of treatment and problem-solving strategies in routine practice. Journal of Counseling Psychology, 50(1), 59–68. https://doi.org/10.1037/0022-0167.50.1.59.CrossRef Whipple, J. L., Lambert, M. J., Vermeersch, D. A., Smart, D. W., Nielsen, S. L., & Hawkins, E. J. (2003). Improving the effects of psychotherapy: The use of early identification of treatment and problem-solving strategies in routine practice. Journal of Counseling Psychology, 50(1), 59–68. https://​doi.​org/​10.​1037/​0022-0167.​50.​1.​59.CrossRef
go back to reference White, K. J., McCoy, M., Watkins, K., Chen, X., Koposko, J., & Mizuta, M. (2021). We don’t talk about that: Exploring money conversations of Black, Hispanic, and White households. Family and Consumer Sciences Research Journal, 49(4), 328–343. https://doi.org/10.1111/fcsr.12397.CrossRef White, K. J., McCoy, M., Watkins, K., Chen, X., Koposko, J., & Mizuta, M. (2021). We don’t talk about that: Exploring money conversations of Black, Hispanic, and White households. Family and Consumer Sciences Research Journal, 49(4), 328–343. https://​doi.​org/​10.​1111/​fcsr.​12397.CrossRef
Metadata
Title
Measuring Alliance and Symptom Severity in Psychotherapy Transcripts Using Bert Topic Modeling
Authors
Christopher Lalk
Tobias Steinbrenner
Weronika Kania
Alexander Popko
Robin Wester
Jana Schaffrath
Steffen Eberhardt
Brian Schwartz
Wolfgang Lutz
Julian Rubel
Publication date
29-03-2024
Publisher
Springer US
Published in
Administration and Policy in Mental Health and Mental Health Services Research
Print ISSN: 0894-587X
Electronic ISSN: 1573-3289
DOI
https://doi.org/10.1007/s10488-024-01356-4